mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-06 00:55:37 +00:00
Bug 842430 - Only enter baseline script prologue for non-resumeAfter bailouts. r=djvj
This commit is contained in:
parent
27a68c4a62
commit
99aeb87cfa
@ -520,7 +520,7 @@ InitFromBailout(JSContext *cx, HandleFunction fun, HandleScript script, Snapshot
|
|||||||
// Get scope chain from function or script if not already set. If
|
// Get scope chain from function or script if not already set. If
|
||||||
// pcOffset == 0, we may have to push a new call object, so we leave
|
// pcOffset == 0, we may have to push a new call object, so we leave
|
||||||
// scopeChain NULL and enter baseline code before the prologue.
|
// scopeChain NULL and enter baseline code before the prologue.
|
||||||
if (iter.pcOffset() != 0) {
|
if (iter.pcOffset() != 0 || iter.resumeAfter()) {
|
||||||
if (fun)
|
if (fun)
|
||||||
scopeChain = fun->environment();
|
scopeChain = fun->environment();
|
||||||
else
|
else
|
||||||
|
5
js/src/jit-test/tests/bug842430.js
Normal file
5
js/src/jit-test/tests/bug842430.js
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
test();
|
||||||
|
function test() {
|
||||||
|
({}).abstract;
|
||||||
|
}
|
||||||
|
test();
|
Loading…
Reference in New Issue
Block a user