| Index: src/ic/handler-compiler.cc
|
| diff --git a/src/ic/handler-compiler.cc b/src/ic/handler-compiler.cc
|
| index 9915ed11dcb302c238104f6b23883edf30c0d90c..b942a705fa09a132f01f628feecc6b853e7b40da 100644
|
| --- a/src/ic/handler-compiler.cc
|
| +++ b/src/ic/handler-compiler.cc
|
| @@ -340,9 +340,10 @@ Handle<Code> NamedStoreHandlerCompiler::CompileStoreTransition(
|
|
|
| // 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());
|
|
|