Index: src/ic/x87/handler-compiler-x87.cc |
diff --git a/src/ic/x87/handler-compiler-x87.cc b/src/ic/x87/handler-compiler-x87.cc |
index 056bd952c7d105e4d52872964f5f24dde3c60452..8df6da395ab3fb24ddce98cb2672b64465c2b133 100644 |
--- a/src/ic/x87/handler-compiler-x87.cc |
+++ b/src/ic/x87/handler-compiler-x87.cc |
@@ -354,11 +354,20 @@ void NamedStoreHandlerCompiler::GenerateRestoreName(Handle<Name> name) { |
} |
+void NamedStoreHandlerCompiler::GeneratePushMap(Register map_reg, |
+ Register scratch) { |
+ // Get the return address, push the argument and then continue. |
+ __ pop(scratch); |
+ __ push(map_reg); |
+ __ push(scratch); |
+} |
+ |
+ |
void NamedStoreHandlerCompiler::GenerateRestoreMap(Handle<Map> transition, |
+ Register map_reg, |
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()) { |