Index: src/mips/regexp-macro-assembler-mips.cc |
diff --git a/src/mips/regexp-macro-assembler-mips.cc b/src/mips/regexp-macro-assembler-mips.cc |
index 7289296d56815e48c39107ddabd142b6ef316dcc..3e255b7d80d69751878298683997514e21a35433 100644 |
--- a/src/mips/regexp-macro-assembler-mips.cc |
+++ b/src/mips/regexp-macro-assembler-mips.cc |
@@ -929,9 +929,8 @@ Handle<HeapObject> RegExpMacroAssemblerMIPS::GetCode(Handle<String> source) { |
CodeDesc code_desc; |
masm_->GetCode(&code_desc); |
- Handle<Code> code = FACTORY->NewCode(code_desc, |
- Code::ComputeFlags(Code::REGEXP), |
- masm_->CodeObject()); |
+ Handle<Code> code = isolate()->factory()->NewCode( |
+ code_desc, Code::ComputeFlags(Code::REGEXP), masm_->CodeObject()); |
LOG(Isolate::Current(), RegExpCodeCreateEvent(*code, *source)); |
return Handle<HeapObject>::cast(code); |
} |