RESOLVED FIXED 68294
method_check should repatch itself if it finds that the new structure(s) are the result of transitions from the old structure(s)
https://bugs.webkit.org/show_bug.cgi?id=68294
Summary method_check should repatch itself if it finds that the new structure(s) are ...
Filip Pizlo
Reported 2011-09-16 17:11:43 PDT
The method_check optimization in the old JIT is now relied upon as a kind of profiling by the DFG JIT. But this fails if the method_check takes the slow path simply because the structures it was caching on were transitioned. This results in missed dead code elimination and inlining opportunities in the DFG. The old JIT should simply repatch the fast path of method_check if it finds that the slow path was taken only because of structure transitions, but that the specific function optimization for that property is otherwise intact.
Attachments
the patch (9.20 KB, patch)
2011-09-16 17:15 PDT, Filip Pizlo
no flags
the patch (9.40 KB, patch)
2011-09-16 17:34 PDT, Filip Pizlo
barraclough: review+
Filip Pizlo
Comment 1 2011-09-16 17:15:46 PDT
Created attachment 107749 [details] the patch
WebKit Review Bot
Comment 2 2011-09-16 17:18:40 PDT
Attachment 107749 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/JavaScriptCore/ChangeLog', u'Source..." exit_code: 1 Source/JavaScriptCore/jit/JITStubs.cpp:1634: Should have only a single space after a punctuation in a comment. [whitespace/comments] [5] Source/JavaScriptCore/jit/JITStubs.cpp:1644: Should have only a single space after a punctuation in a comment. [whitespace/comments] [5] Source/JavaScriptCore/jit/JITStubs.cpp:1645: Should have only a single space after a punctuation in a comment. [whitespace/comments] [5] Source/JavaScriptCore/jit/JITStubs.cpp:1646: Should have only a single space after a punctuation in a comment. [whitespace/comments] [5] Total errors found: 4 in 5 files If any of these errors are false positives, please file a bug against check-webkit-style.
Filip Pizlo
Comment 3 2011-09-16 17:34:33 PDT
Created attachment 107751 [details] the patch
Filip Pizlo
Comment 4 2011-09-17 16:32:41 PDT
Landed in r95388.
Note You need to log in before you can comment on or make changes to this bug.