RESOLVED FIXED 185281
OSR entry pruning of Program Bytecodes doesn't take into account try/catch
https://bugs.webkit.org/show_bug.cgi?id=185281
Summary OSR entry pruning of Program Bytecodes doesn't take into account try/catch
Michael Saboff
Reported 2018-05-03 17:11:37 PDT
In the baseline, we have an optimization where we prune unreachable code beginning from the instruction we OSR entry to. This pruning needs to take into account the reachability from local catch statements.
Attachments
Patch (4.09 KB, patch)
2018-05-03 17:24 PDT, Michael Saboff
no flags
Updated Patch (4.01 KB, patch)
2018-05-03 17:48 PDT, Michael Saboff
saam: review+
Michael Saboff
Comment 1 2018-05-03 17:12:08 PDT
Michael Saboff
Comment 2 2018-05-03 17:24:05 PDT
Michael Saboff
Comment 3 2018-05-03 17:48:46 PDT
Created attachment 339497 [details] Updated Patch
Saam Barati
Comment 4 2018-05-03 17:50:29 PDT
Comment on attachment 339497 [details] Updated Patch View in context: https://bugs.webkit.org/attachment.cgi?id=339497&action=review r=me > Source/JavaScriptCore/jit/JIT.cpp:203 > + please delete. > Source/JavaScriptCore/jit/JIT.cpp:228 > + for (unsigned bytecodeOffset = block->leaderOffset(); bytecodeOffset < block->leaderOffset() + block->totalLength();) { Can we skip this loop if the program has no catch handlers?
Michael Saboff
Comment 5 2018-05-03 18:00:50 PDT
(In reply to Saam Barati from comment #4) > Comment on attachment 339497 [details] > Updated Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=339497&action=review > > r=me > > > Source/JavaScriptCore/jit/JIT.cpp:203 > > + > > please delete. > > > Source/JavaScriptCore/jit/JIT.cpp:228 > > + for (unsigned bytecodeOffset = block->leaderOffset(); bytecodeOffset < block->leaderOffset() + block->totalLength();) { > > Can we skip this loop if the program has no catch handlers? I'll take care of those changes locally before landing.
Michael Saboff
Comment 6 2018-05-03 18:11:49 PDT
Note You need to log in before you can comment on or make changes to this bug.