Prevent GC from occuring during IC linking (bug 837714, r=bhackett).

--HG--
extra : rebase_source : 4973d1be905775ea5623dbe808a034659e8c7797
This commit is contained in:
David Anderson 2013-02-21 13:52:09 -08:00
parent abd9343591
commit 181154e5a3

View File

@ -14,6 +14,7 @@
#include "ion/IonCompartment.h"
#include "assembler/jit/ExecutableAllocator.h"
#include "ion/IonMacroAssembler.h"
#include "jsgcinlines.h"
namespace js {
namespace ion {
@ -30,6 +31,7 @@ class Linker
IonCode *newCode(JSContext *cx, IonCompartment *comp) {
AssertCanGC();
gc::AutoSuppressGC suppressGC(cx);
if (masm.oom())
return fail(cx);