mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
[INFER] Check for heavyweight functions when deciding to inline, bug 645645.
This commit is contained in:
parent
20901cf7b7
commit
aa6b5e0e2f
4
js/src/jit-test/tests/jaeger/inline/bug645645.js
Normal file
4
js/src/jit-test/tests/jaeger/inline/bug645645.js
Normal file
@ -0,0 +1,4 @@
|
||||
function f() {
|
||||
f = Math.x;
|
||||
}
|
||||
f();
|
@ -309,6 +309,7 @@ Script::analyze(JSContext *cx, JSScript *script)
|
||||
|
||||
isInlineable = true;
|
||||
if (script->nClosedArgs || script->nClosedVars ||
|
||||
(script->fun && script->fun->isHeavyweight()) ||
|
||||
script->usesEval || script->usesArguments || cx->compartment->debugMode) {
|
||||
isInlineable = false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user