Index: src/ic/mips64/handler-compiler-mips64.cc |
diff --git a/src/ic/mips64/handler-compiler-mips64.cc b/src/ic/mips64/handler-compiler-mips64.cc |
index 5e626c3a3f80f117de73d53584694351c2aba4d0..027768783f5ea70a9a158f04c39d5bf01901589d 100644 |
--- a/src/ic/mips64/handler-compiler-mips64.cc |
+++ b/src/ic/mips64/handler-compiler-mips64.cc |
@@ -321,10 +321,23 @@ void NamedStoreHandlerCompiler::GenerateRestoreName(Label* label, |
} |
-void NamedStoreHandlerCompiler::GenerateRestoreNameAndMap( |
- Handle<Name> name, Handle<Map> transition) { |
+void NamedStoreHandlerCompiler::GenerateRestoreName(Handle<Name> name) { |
__ li(this->name(), Operand(name)); |
- __ li(StoreTransitionDescriptor::MapRegister(), Operand(transition)); |
+} |
+ |
+ |
+void NamedStoreHandlerCompiler::GenerateRestoreMap(Handle<Map> transition, |
+ Register scratch, |
+ Label* miss) { |
+ Handle<WeakCell> cell = Map::WeakCellForMap(transition); |
+ Register map_reg = StoreTransitionDescriptor::MapRegister(); |
+ DCHECK(!map_reg.is(scratch)); |
+ __ LoadWeakValue(map_reg, cell, miss); |
+ if (transition->CanBeDeprecated()) { |
+ __ ld(scratch, FieldMemOperand(map_reg, Map::kBitField3Offset)); |
+ __ And(at, scratch, Operand(Map::Deprecated::kMask)); |
+ __ Branch(miss, ne, at, Operand(zero_reg)); |
+ } |
} |