Index: src/arm64/macro-assembler-arm64.cc |
diff --git a/src/arm64/macro-assembler-arm64.cc b/src/arm64/macro-assembler-arm64.cc |
index 53c673d176d7fc8e77689befc39426366c620c90..5b941a2a5a53648433605d6deb502bd7539e0622 100644 |
--- a/src/arm64/macro-assembler-arm64.cc |
+++ b/src/arm64/macro-assembler-arm64.cc |
@@ -1705,7 +1705,7 @@ void MacroAssembler::GetBuiltinFunction(Register target, |
int native_context_index) { |
// Load the builtins object into target register. |
Ldr(target, GlobalObjectMemOperand()); |
- Ldr(target, FieldMemOperand(target, GlobalObject::kNativeContextOffset)); |
+ Ldr(target, FieldMemOperand(target, JSGlobalObject::kNativeContextOffset)); |
// Load the JavaScript builtin function from the builtins object. |
Ldr(target, ContextMemOperand(target, native_context_index)); |
} |
@@ -3002,7 +3002,7 @@ void MacroAssembler::LoadContext(Register dst, int context_chain_length) { |
void MacroAssembler::LoadGlobalProxy(Register dst) { |
Ldr(dst, GlobalObjectMemOperand()); |
- Ldr(dst, FieldMemOperand(dst, GlobalObject::kGlobalProxyOffset)); |
+ Ldr(dst, FieldMemOperand(dst, JSGlobalObject::kGlobalProxyOffset)); |
} |
@@ -3782,7 +3782,8 @@ void MacroAssembler::CheckAccessGlobalProxy(Register holder_reg, |
int offset = |
Context::kHeaderSize + Context::GLOBAL_OBJECT_INDEX * kPointerSize; |
Ldr(scratch1, FieldMemOperand(scratch1, offset)); |
- Ldr(scratch1, FieldMemOperand(scratch1, GlobalObject::kNativeContextOffset)); |
+ Ldr(scratch1, |
+ FieldMemOperand(scratch1, JSGlobalObject::kNativeContextOffset)); |
// Check the context is a native context. |
if (emit_debug_code()) { |
@@ -4616,7 +4617,8 @@ void MacroAssembler::LoadTransitionedArrayMapConditional( |
Label* no_map_match) { |
// Load the global or builtins object from the current context. |
Ldr(scratch1, GlobalObjectMemOperand()); |
- Ldr(scratch1, FieldMemOperand(scratch1, GlobalObject::kNativeContextOffset)); |
+ Ldr(scratch1, |
+ FieldMemOperand(scratch1, JSGlobalObject::kNativeContextOffset)); |
// Check that the function's map is the same as the expected cached map. |
Ldr(scratch1, ContextMemOperand(scratch1, Context::JS_ARRAY_MAPS_INDEX)); |
@@ -4635,8 +4637,8 @@ void MacroAssembler::LoadGlobalFunction(int index, Register function) { |
// Load the global or builtins object from the current context. |
Ldr(function, GlobalObjectMemOperand()); |
// Load the native context from the global or builtins object. |
- Ldr(function, FieldMemOperand(function, |
- GlobalObject::kNativeContextOffset)); |
+ Ldr(function, |
+ FieldMemOperand(function, JSGlobalObject::kNativeContextOffset)); |
// Load the function from the native context. |
Ldr(function, ContextMemOperand(function, index)); |
} |