Index: src/mips/lithium-codegen-mips.cc |
diff --git a/src/mips/lithium-codegen-mips.cc b/src/mips/lithium-codegen-mips.cc |
index e8593d98e33b5368b391ef97f0136ac263394c59..bdbc010bd3840ae5715986e7b9055bde909a20a2 100644 |
--- a/src/mips/lithium-codegen-mips.cc |
+++ b/src/mips/lithium-codegen-mips.cc |
@@ -1728,9 +1728,15 @@ void LCodeGen::DoConstantE(LConstantE* instr) { |
void LCodeGen::DoConstantT(LConstantT* instr) { |
- Handle<Object> value = instr->value(isolate()); |
+ Handle<Object> object = instr->value(isolate()); |
AllowDeferredHandleDereference smi_check; |
- __ li(ToRegister(instr->result()), value); |
+ if (instr->hydrogen()->HasObjectMap()) { |
+ Handle<Map> object_map = instr->hydrogen()->ObjectMap().handle(); |
+ CHECK(object->IsHeapObject()); |
+ CHECK(!object_map->is_stable() || |
+ *object_map == Handle<HeapObject>::cast(object)->map()); |
+ } |
+ __ li(ToRegister(instr->result()), object); |
} |