Index: src/arm/lithium-codegen-arm.cc |
diff --git a/src/arm/lithium-codegen-arm.cc b/src/arm/lithium-codegen-arm.cc |
index ade69286c8446405e8f9a39fe0beebf8721ba3f1..2919eb072aa852b92e11282f7a0cbdad057a68f2 100644 |
--- a/src/arm/lithium-codegen-arm.cc |
+++ b/src/arm/lithium-codegen-arm.cc |
@@ -3494,7 +3494,9 @@ void LCodeGen::DoWrapReceiver(LWrapReceiver* instr) { |
__ b(&result_in_receiver); |
__ bind(&global_object); |
- __ ldr(result, GlobalObjectOperand()); |
+ |
+ __ ldr(result, MemOperand(fp, StandardFrameConstants::kContextOffset)); |
+ __ ldr(result, ContextOperand(result, Context::GLOBAL_OBJECT_INDEX)); |
__ ldr(result, |
FieldMemOperand(result, JSGlobalObject::kGlobalReceiverOffset)); |
if (result.is(receiver)) { |