Bug 54901 - Use ASSERT_JIT_OFFSET in JITPropertyAccess32_64.cpp
Summary: Use ASSERT_JIT_OFFSET in JITPropertyAccess32_64.cpp
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-21 12:43 PST by Xan Lopez
Modified: 2011-02-21 13:15 PST (History)
1 user (show)

See Also:


Attachments
assertjitoffset.diff (7.50 KB, patch)
2011-02-21 12:45 PST, Xan Lopez
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Xan Lopez 2011-02-21 12:43:28 PST
It's already used in JITPropertyAcess.cpp, and it's useful because it gives a message with the difference between the actual and the expected offset in case of failure.
Comment 1 Xan Lopez 2011-02-21 12:45:40 PST
Created attachment 83204 [details]
assertjitoffset.diff
Comment 2 Martin Robinson 2011-02-21 13:05:04 PST
Comment on attachment 83204 [details]
assertjitoffset.diff

View in context: https://bugs.webkit.org/attachment.cgi?id=83204&action=review

> Source/JavaScriptCore/jit/JITPropertyAccess32_64.cpp:522
>  void JIT::emitSlow_op_put_by_id(Instruction* currentInstruction, Vector<SlowCaseEntry>::iterator& iter)
> -- 
>  1.7.3.4

I guess this was an accident?
Comment 3 Gavin Barraclough 2011-02-21 13:07:18 PST
Comment on attachment 83204 [details]
assertjitoffset.diff

Excellent, thank you! - but please also change the case in JITCAll32_64.cpp, in compileOpCall.
Comment 4 Xan Lopez 2011-02-21 13:15:35 PST
Comment on attachment 83204 [details]
assertjitoffset.diff

Landed as r79247, also changing JITCall32_64.cpp
Comment 5 Xan Lopez 2011-02-21 13:15:50 PST
Closing.