Index: src/stub-cache.cc |
diff --git a/src/stub-cache.cc b/src/stub-cache.cc |
index 4cf85c3f20f6d62b92cacf149923102fea9e6540..5dfce55fb9c27fdd3672d7a395666d85f67fd051 100644 |
--- a/src/stub-cache.cc |
+++ b/src/stub-cache.cc |
@@ -1030,7 +1030,7 @@ Handle<Code> LoadStubCompiler::CompileLoadViaGetter( |
Handle<Name> name, |
Handle<JSFunction> getter) { |
HandlerFrontend(type, receiver(), holder, name); |
- GenerateLoadViaGetter(masm(), receiver(), getter); |
+ GenerateLoadViaGetter(masm(), type, receiver(), getter); |
// Return the generated code. |
return GetCode(kind(), Code::FAST, name); |
@@ -1123,9 +1123,9 @@ Handle<Code> StoreStubCompiler::CompileStoreViaSetter( |
Handle<JSObject> holder, |
Handle<Name> name, |
Handle<JSFunction> setter) { |
- HandlerFrontend(IC::CurrentTypeOf(object, isolate()), |
- receiver(), holder, name); |
- GenerateStoreViaSetter(masm(), setter); |
+ Handle<HeapType> type = IC::CurrentTypeOf(object, isolate()); |
+ HandlerFrontend(type, receiver(), holder, name); |
+ GenerateStoreViaSetter(masm(), type, setter); |
return GetCode(kind(), Code::FAST, name); |
} |