OSR entry pruning of Program Bytecodes doesn't take into account try/catch
authormsaboff@apple.com <msaboff@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 4 May 2018 01:11:47 +0000 (01:11 +0000)
committermsaboff@apple.com <msaboff@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 4 May 2018 01:11:47 +0000 (01:11 +0000)
commit8a4adb9e06c5aafe7c8b12a2f557f37228c41ad3
tree8ba1fb66e5bd99b38fc324e675f9513b37a6bc48
parent7ca4eb59f94467f5de08156d7f5146018dfeba1c
OSR entry pruning of Program Bytecodes doesn't take into account try/catch
https://bugs.webkit.org/show_bug.cgi?id=185281

Reviewed by Saam Barati.

JSTests:

New regression test.

* stress/baseline-osrentry-catch-is-reachable.js: Added.
(i.j.catch):

Source/JavaScriptCore:

When we compute bytecode block reachability, we need to take into account blocks
containing try/catch.

* jit/JIT.cpp:
(JSC::JIT::privateCompileMainPass):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@231343 268f45cc-cd09-0410-ab3c-d52691b4dbfc
JSTests/ChangeLog
JSTests/stress/baseline-osrentry-catch-is-reachable.js [new file with mode: 0644]
Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/jit/JIT.cpp