Index: src/x64/macro-assembler-x64.cc |
diff --git a/src/x64/macro-assembler-x64.cc b/src/x64/macro-assembler-x64.cc |
index 3a90343b844998253fe4f498e9b2051be008a65b..be230f783fa0259f50c81b280d1cafc1618ea20c 100644 |
--- a/src/x64/macro-assembler-x64.cc |
+++ b/src/x64/macro-assembler-x64.cc |
@@ -650,6 +650,7 @@ MaybeObject* MacroAssembler::TryCallApiFunctionAndReturn( |
Label leave_exit_frame; |
Label write_back; |
+ Factory* factory = isolate()->factory(); |
ExternalReference next_address = |
ExternalReference::handle_scope_next_address(); |
const int kNextOffset = 0; |
@@ -697,7 +698,7 @@ MaybeObject* MacroAssembler::TryCallApiFunctionAndReturn( |
// Check if the function scheduled an exception. |
movq(rsi, scheduled_exception_address); |
- Cmp(Operand(rsi, 0), FACTORY->the_hole_value()); |
+ Cmp(Operand(rsi, 0), factory->the_hole_value()); |
j(not_equal, &promote_scheduled_exception); |
LeaveApiExitFrame(); |
@@ -712,7 +713,7 @@ MaybeObject* MacroAssembler::TryCallApiFunctionAndReturn( |
bind(&empty_result); |
// It was zero; the result is undefined. |
- Move(rax, FACTORY->undefined_value()); |
+ Move(rax, factory->undefined_value()); |
jmp(&prologue); |
// HandleScope limit has changed. Delete allocated extensions. |
@@ -1893,7 +1894,7 @@ void MacroAssembler::AbortIfNotNumber(Register object) { |
Condition is_smi = CheckSmi(object); |
j(is_smi, &ok); |
Cmp(FieldOperand(object, HeapObject::kMapOffset), |
- FACTORY->heap_number_map()); |
+ isolate()->factory()->heap_number_map()); |
Assert(equal, "Operand not a number"); |
bind(&ok); |
} |
@@ -2150,7 +2151,7 @@ void MacroAssembler::EnterFrame(StackFrame::Type type) { |
push(kScratchRegister); |
if (emit_debug_code()) { |
movq(kScratchRegister, |
- FACTORY->undefined_value(), |
+ isolate()->factory()->undefined_value(), |
RelocInfo::EMBEDDED_OBJECT); |
cmpq(Operand(rsp, 0), kScratchRegister); |
Check(not_equal, "code object not properly patched"); |
@@ -2319,7 +2320,7 @@ void MacroAssembler::CheckAccessGlobalProxy(Register holder_reg, |
// Check the context is a global context. |
if (emit_debug_code()) { |
Cmp(FieldOperand(scratch, HeapObject::kMapOffset), |
- FACTORY->global_context_map()); |
+ isolate()->factory()->global_context_map()); |
Check(equal, "JSGlobalObject::global_context should be a global context."); |
} |
@@ -2821,7 +2822,7 @@ void MacroAssembler::LoadGlobalFunctionInitialMap(Register function, |
movq(map, FieldOperand(function, JSFunction::kPrototypeOrInitialMapOffset)); |
if (emit_debug_code()) { |
Label ok, fail; |
- CheckMap(map, FACTORY->meta_map(), &fail, false); |
+ CheckMap(map, isolate()->factory()->meta_map(), &fail, false); |
jmp(&ok); |
bind(&fail); |
Abort("Global functions must have initial map"); |