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 коммит произвёл Nicolas Pierron
Родитель be6dbb47fe
Коммит 12cb58e9f9
1 изменённых файлов: 4 добавлений и 9 удалений

Просмотреть файл

@ -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;