Index: src/arm/lithium-codegen-arm.cc |
diff --git a/src/arm/lithium-codegen-arm.cc b/src/arm/lithium-codegen-arm.cc |
index a8d960f93d2b1d0c614f905f7de71561323eb654..d10663cc3854bd6644516faf95c98708ff2b9802 100644 |
--- a/src/arm/lithium-codegen-arm.cc |
+++ b/src/arm/lithium-codegen-arm.cc |
@@ -3520,11 +3520,11 @@ void LCodeGen::DoWrapReceiver(LWrapReceiver* instr) { |
__ b(&result_in_receiver); |
__ bind(&global_object); |
- __ ldr(receiver, FieldMemOperand(function, JSFunction::kContextOffset)); |
- __ ldr(receiver, |
- ContextOperand(receiver, Context::GLOBAL_OBJECT_INDEX)); |
- __ ldr(receiver, |
- FieldMemOperand(receiver, GlobalObject::kGlobalReceiverOffset)); |
+ __ ldr(result, FieldMemOperand(function, JSFunction::kContextOffset)); |
+ __ ldr(result, |
+ ContextOperand(result, Context::GLOBAL_OBJECT_INDEX)); |
+ __ ldr(result, |
+ FieldMemOperand(result, GlobalObject::kGlobalReceiverOffset)); |
if (result.is(receiver)) { |
__ bind(&result_in_receiver); |