| Index: src/mips/builtins-mips.cc | 
| diff --git a/src/mips/builtins-mips.cc b/src/mips/builtins-mips.cc | 
| index efa78a2b441158c0249695edd0da858739c065e9..36cb9c45915fb7055100e26584dabd876afddf99 100644 | 
| --- a/src/mips/builtins-mips.cc | 
| +++ b/src/mips/builtins-mips.cc | 
| @@ -36,6 +36,7 @@ | 
| #include "deoptimizer.h" | 
| #include "full-codegen.h" | 
| #include "runtime.h" | 
| +#include "stub-cache.h" | 
|  | 
| namespace v8 { | 
| namespace internal { | 
| @@ -1116,11 +1117,7 @@ void Builtins::Generate_FunctionCall(MacroAssembler* masm) { | 
| // Use the global receiver object from the called function as the | 
| // receiver. | 
| __ bind(&use_global_receiver); | 
| -    const int kGlobalIndex = | 
| -        Context::kHeaderSize + Context::GLOBAL_OBJECT_INDEX * kPointerSize; | 
| -    __ lw(a2, FieldMemOperand(cp, kGlobalIndex)); | 
| -    __ lw(a2, FieldMemOperand(a2, GlobalObject::kNativeContextOffset)); | 
| -    __ lw(a2, FieldMemOperand(a2, kGlobalIndex)); | 
| +    __ lw(a2, ContextOperand(cp, Context::GLOBAL_OBJECT_INDEX)); | 
| __ lw(a2, FieldMemOperand(a2, GlobalObject::kGlobalReceiverOffset)); | 
|  | 
| __ bind(&patch_receiver); | 
| @@ -1310,11 +1307,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_OBJECT_INDEX * kPointerSize; | 
| -    __ lw(a0, FieldMemOperand(cp, kGlobalOffset)); | 
| -    __ lw(a0, FieldMemOperand(a0, GlobalObject::kNativeContextOffset)); | 
| -    __ lw(a0, FieldMemOperand(a0, kGlobalOffset)); | 
| +    __ lw(a0, ContextOperand(cp, Context::GLOBAL_OBJECT_INDEX)); | 
| __ lw(a0, FieldMemOperand(a0, GlobalObject::kGlobalReceiverOffset)); | 
|  | 
| // Push the receiver. | 
|  |