Index: src/ic/handler-compiler.cc |
diff --git a/src/ic/handler-compiler.cc b/src/ic/handler-compiler.cc |
index 8482422f84623aa4ef354af4a66c0837839601ec..c575221f19bdc75d1eabaa7ac5b546b8d0e8063e 100644 |
--- a/src/ic/handler-compiler.cc |
+++ b/src/ic/handler-compiler.cc |
@@ -229,12 +229,13 @@ Handle<Code> NamedLoadHandlerCompiler::CompileLoadCallback( |
Handle<Code> NamedLoadHandlerCompiler::CompileLoadCallback( |
- Handle<Name> name, const CallOptimization& call_optimization) { |
+ Handle<Name> name, const CallOptimization& call_optimization, |
+ int accessor_index) { |
DCHECK(call_optimization.is_simple_api_call()); |
- Frontend(name); |
+ Register holder = Frontend(name); |
Handle<Map> receiver_map = IC::TypeToMap(*type(), isolate()); |
GenerateApiAccessorCall(masm(), call_optimization, receiver_map, receiver(), |
- scratch1(), false, no_reg); |
+ scratch2(), false, no_reg, holder, accessor_index); |
return GetCode(kind(), Code::FAST, name); |
} |
@@ -454,10 +455,11 @@ Handle<Code> NamedStoreHandlerCompiler::CompileStoreViaSetter( |
Handle<Code> NamedStoreHandlerCompiler::CompileStoreCallback( |
Handle<JSObject> object, Handle<Name> name, |
- const CallOptimization& call_optimization) { |
- Frontend(name); |
+ const CallOptimization& call_optimization, int accessor_index) { |
+ Register holder = Frontend(name); |
GenerateApiAccessorCall(masm(), call_optimization, handle(object->map()), |
- receiver(), scratch1(), true, value()); |
+ receiver(), scratch2(), true, value(), holder, |
+ accessor_index); |
return GetCode(kind(), Code::FAST, name); |
} |