Index: src/mips/lithium-codegen-mips.cc |
diff --git a/src/mips/lithium-codegen-mips.cc b/src/mips/lithium-codegen-mips.cc |
index 796e61d6717e35825682ca705a8ad138742e61e9..23b8d13c8cedea5c46ce797ff532a2737f425ff4 100644 |
--- a/src/mips/lithium-codegen-mips.cc |
+++ b/src/mips/lithium-codegen-mips.cc |
@@ -2018,7 +2018,10 @@ void LCodeGen::DoInstanceOfKnownGlobal(LInstanceOfKnownGlobal* instr) { |
// We use Factory::the_hole_value() on purpose instead of loading from the |
// root array to force relocation to be able to later patch with |
// the cached map. |
- __ li(at, Operand(factory()->the_hole_value()), true); |
+ Handle<JSGlobalPropertyCell> cell = |
+ factory()->NewJSGlobalPropertyCell(factory()->the_hole_value()); |
+ __ li(at, Operand(Handle<Object>(cell))); |
+ __ lw(at, FieldMemOperand(at, JSGlobalPropertyCell::kValueOffset)); |
__ Branch(&cache_miss, ne, map, Operand(at)); |
// We use Factory::the_hole_value() on purpose instead of loading from the |
// root array to force relocation to be able to later patch |