Bug 793905 - Prevent JM recompilation when generating Ion stubs. r=dvander

This commit is contained in:
Nicolas B. Pierron 2012-09-27 11:00:35 -07:00 committed by Nicolas Pierron
parent 5577668b61
commit 8e88d60882

View File

@ -557,15 +557,10 @@ class CallCompiler : public BaseCompiler
{
RecompilationMonitor monitor(cx);
if (f.script()->function()) {
f.script()->uninlineable = true;
MarkTypeObjectFlags(cx, f.script()->function(), types::OBJECT_FLAG_UNINLINEABLE);
}
/* Don't touch the IC if the call triggered a recompilation. */
if (monitor.recompiled())
return true;
/*
* When IonMonkey is enabled we never inline in JM. So do not cause any
* recompilation by setting the UNINLINEABLE flag.
*/
JS_ASSERT(!f.regs.inlined());
Assembler masm;