Index: src/ic/handler-compiler.cc |
diff --git a/src/ic/handler-compiler.cc b/src/ic/handler-compiler.cc |
index b942a705fa09a132f01f628feecc6b853e7b40da..9915ed11dcb302c238104f6b23883edf30c0d90c 100644 |
--- a/src/ic/handler-compiler.cc |
+++ b/src/ic/handler-compiler.cc |
@@ -340,10 +340,9 @@ |
// Call to respective StoreTransitionStub. |
if (details.type() == CONSTANT) { |
+ GenerateConstantCheck(descriptors->GetValue(descriptor), value(), &miss); |
+ |
GenerateRestoreMap(transition, scratch2(), &miss); |
- DCHECK(descriptors->GetValue(descriptor)->IsJSFunction()); |
- Register map_reg = StoreTransitionDescriptor::MapRegister(); |
- GenerateConstantCheck(map_reg, descriptor, value(), scratch2(), &miss); |
GenerateRestoreName(name); |
StoreTransitionStub stub(isolate()); |
GenerateTailCall(masm(), stub.GetCode()); |