Index: src/arm/builtins-arm.cc |
diff --git a/src/arm/builtins-arm.cc b/src/arm/builtins-arm.cc |
index 58f4fa3c5c9011dceed9a664e8b5e660258762fc..2d1d7b1199712556880ac857eec03ab7facc2aa6 100644 |
--- a/src/arm/builtins-arm.cc |
+++ b/src/arm/builtins-arm.cc |
@@ -77,7 +77,8 @@ static void GenerateLoadInternalArrayFunction(MacroAssembler* masm, |
Register result) { |
// Load the native context. |
- __ ldr(result, MemOperand(cp, Context::SlotOffset(Context::GLOBAL_INDEX))); |
+ __ ldr(result, |
+ MemOperand(cp, Context::SlotOffset(Context::GLOBAL_OBJECT_INDEX))); |
__ ldr(result, |
FieldMemOperand(result, GlobalObject::kNativeContextOffset)); |
// Load the InternalArray function from the native context. |
@@ -92,7 +93,8 @@ static void GenerateLoadInternalArrayFunction(MacroAssembler* masm, |
static void GenerateLoadArrayFunction(MacroAssembler* masm, Register result) { |
// Load the native context. |
- __ ldr(result, MemOperand(cp, Context::SlotOffset(Context::GLOBAL_INDEX))); |
+ __ ldr(result, |
+ MemOperand(cp, Context::SlotOffset(Context::GLOBAL_OBJECT_INDEX))); |
__ ldr(result, |
FieldMemOperand(result, GlobalObject::kNativeContextOffset)); |
// Load the Array function from the native context. |
@@ -1403,7 +1405,7 @@ void Builtins::Generate_FunctionCall(MacroAssembler* masm) { |
// receiver. |
__ bind(&use_global_receiver); |
const int kGlobalIndex = |
- Context::kHeaderSize + Context::GLOBAL_INDEX * kPointerSize; |
+ Context::kHeaderSize + Context::GLOBAL_OBJECT_INDEX * kPointerSize; |
__ ldr(r2, FieldMemOperand(cp, kGlobalIndex)); |
__ ldr(r2, FieldMemOperand(r2, GlobalObject::kNativeContextOffset)); |
__ ldr(r2, FieldMemOperand(r2, kGlobalIndex)); |
@@ -1598,7 +1600,7 @@ void Builtins::Generate_FunctionApply(MacroAssembler* masm) { |
// Use the current global receiver object as the receiver. |
__ bind(&use_global_receiver); |
const int kGlobalOffset = |
- Context::kHeaderSize + Context::GLOBAL_INDEX * kPointerSize; |
+ Context::kHeaderSize + Context::GLOBAL_OBJECT_INDEX * kPointerSize; |
__ ldr(r0, FieldMemOperand(cp, kGlobalOffset)); |
__ ldr(r0, FieldMemOperand(r0, GlobalObject::kNativeContextOffset)); |
__ ldr(r0, FieldMemOperand(r0, kGlobalOffset)); |