Index: src/mips/stub-cache-mips.cc |
diff --git a/src/mips/stub-cache-mips.cc b/src/mips/stub-cache-mips.cc |
index 4d18c942db86b0d185e3fc6cf3d50e8dc32dbbfd..c6834687597f4fc948f5e3eb2306cc6311fefebf 100644 |
--- a/src/mips/stub-cache-mips.cc |
+++ b/src/mips/stub-cache-mips.cc |
@@ -429,8 +429,10 @@ void StubCompiler::GenerateStoreField(MacroAssembler* masm, |
// a0 : value. |
Label exit; |
// Check that the map of the object hasn't changed. |
+ CompareMapMode mode = transition.is_null() ? ALLOW_ELEMENT_TRANSITION_MAPS |
+ : REQUIRE_EXACT_MAP; |
__ CheckMap(receiver_reg, scratch, Handle<Map>(object->map()), miss_label, |
- DO_SMI_CHECK, ALLOW_ELEMENT_TRANSITION_MAPS); |
+ DO_SMI_CHECK, mode); |
// Perform global security token check if needed. |
if (object->IsJSGlobalProxy()) { |