| Index: src/arm/stub-cache-arm.cc
|
| diff --git a/src/arm/stub-cache-arm.cc b/src/arm/stub-cache-arm.cc
|
| index 0c7df71eaf646d0cdb451a05035843daa77e1359..694a4ed68f25b81d144555a961f6fba6b5676f26 100644
|
| --- a/src/arm/stub-cache-arm.cc
|
| +++ b/src/arm/stub-cache-arm.cc
|
| @@ -783,14 +783,13 @@ static void CompileCallLoadPropertyWithInterceptor(
|
|
|
|
|
| // Generate call to api function.
|
| -void StubCompiler::GenerateFastApiCall(MacroAssembler* masm,
|
| - const CallOptimization& optimization,
|
| - Handle<Map> receiver_map,
|
| - Register receiver,
|
| - Register scratch_in,
|
| - bool is_store,
|
| - int argc,
|
| - Register* values) {
|
| +static void GenerateFastApiCall(MacroAssembler* masm,
|
| + const CallOptimization& optimization,
|
| + Handle<Map> receiver_map,
|
| + Register receiver,
|
| + Register scratch_in,
|
| + int argc,
|
| + Register* values) {
|
| ASSERT(!receiver.is(scratch_in));
|
| __ push(receiver);
|
| // Write the arguments to stack frame.
|
| @@ -855,7 +854,7 @@ void StubCompiler::GenerateFastApiCall(MacroAssembler* masm,
|
| __ mov(api_function_address, Operand(ref));
|
|
|
| // Jump to stub.
|
| - CallApiFunctionStub stub(is_store, call_data_undefined, argc);
|
| + CallApiFunctionStub stub(true, call_data_undefined, argc);
|
| __ TailCallStub(&stub);
|
| }
|
|
|
| @@ -879,6 +878,9 @@ Register StubCompiler::CheckPrototypes(Handle<HeapType> type,
|
| Label* miss,
|
| PrototypeCheckType check) {
|
| Handle<Map> receiver_map(IC::TypeToMap(*type, isolate()));
|
| + // Make sure that the type feedback oracle harvests the receiver map.
|
| + // TODO(svenpanne) Remove this hack when all ICs are reworked.
|
| + __ mov(scratch1, Operand(receiver_map));
|
|
|
| // Make sure there's no overlap between holder and object registers.
|
| ASSERT(!scratch1.is(object_reg) && !scratch1.is(holder_reg));
|
| @@ -1074,6 +1076,15 @@ void LoadStubCompiler::GenerateLoadConstant(Handle<Object> value) {
|
|
|
|
|
| void LoadStubCompiler::GenerateLoadCallback(
|
| + const CallOptimization& call_optimization,
|
| + Handle<Map> receiver_map) {
|
| + GenerateFastApiCall(
|
| + masm(), call_optimization, receiver_map,
|
| + receiver(), scratch3(), 0, NULL);
|
| +}
|
| +
|
| +
|
| +void LoadStubCompiler::GenerateLoadCallback(
|
| Register reg,
|
| Handle<ExecutableAccessorInfo> callback) {
|
| // Build AccessorInfo::args_ list on the stack and push property name below
|
| @@ -1249,6 +1260,24 @@ Handle<Code> StoreStubCompiler::CompileStoreCallback(
|
| }
|
|
|
|
|
| +Handle<Code> StoreStubCompiler::CompileStoreCallback(
|
| + Handle<JSObject> object,
|
| + Handle<JSObject> holder,
|
| + Handle<Name> name,
|
| + const CallOptimization& call_optimization) {
|
| + HandlerFrontend(IC::CurrentTypeOf(object, isolate()),
|
| + receiver(), holder, name);
|
| +
|
| + Register values[] = { value() };
|
| + GenerateFastApiCall(
|
| + masm(), call_optimization, handle(object->map()),
|
| + receiver(), scratch3(), 1, values);
|
| +
|
| + // Return the generated code.
|
| + return GetCode(kind(), Code::FAST, name);
|
| +}
|
| +
|
| +
|
| #undef __
|
| #define __ ACCESS_MASM(masm)
|
|
|
|
|