Index: src/mips/lithium-codegen-mips.cc |
diff --git a/src/mips/lithium-codegen-mips.cc b/src/mips/lithium-codegen-mips.cc |
index 227f5f8a2bacfbf671104abdfb08155eae326150..38b0ff5274d4c44cda241072aa8e7a7ab05a54be 100644 |
--- a/src/mips/lithium-codegen-mips.cc |
+++ b/src/mips/lithium-codegen-mips.cc |
@@ -732,6 +732,10 @@ void LCodeGen::LoadContextFromDeferred(LOperand* context) { |
__ Move(cp, ToRegister(context)); |
} else if (context->IsStackSlot()) { |
__ lw(cp, ToMemOperand(context)); |
+ } else if (context->IsConstantOperand()) { |
+ HConstant* constant = |
+ chunk_->LookupConstant(LConstantOperand::cast(context)); |
+ __ LoadObject(cp, Handle<Object>::cast(constant->handle(isolate()))); |
} else { |
UNREACHABLE(); |
} |