Index: src/arm/regexp-macro-assembler-arm.cc |
diff --git a/src/arm/regexp-macro-assembler-arm.cc b/src/arm/regexp-macro-assembler-arm.cc |
index da7afee3fb50c6cf5ed0235029a3eda7595d0712..42415027e0bbbbde460a53fd48be4bf16d351978 100644 |
--- a/src/arm/regexp-macro-assembler-arm.cc |
+++ b/src/arm/regexp-macro-assembler-arm.cc |
@@ -917,9 +917,8 @@ Handle<HeapObject> RegExpMacroAssemblerARM::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()); |
PROFILE(Isolate::Current(), RegExpCodeCreateEvent(*code, *source)); |
return Handle<HeapObject>::cast(code); |
} |