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