| Index: src/mips/stub-cache-mips.cc
|
| diff --git a/src/mips/stub-cache-mips.cc b/src/mips/stub-cache-mips.cc
|
| index 9e00692afaabadd6a9004c053eacf8fecae01a1c..d1b428a34560d41a0d7c55f96e383423c26b4fdf 100644
|
| --- a/src/mips/stub-cache-mips.cc
|
| +++ b/src/mips/stub-cache-mips.cc
|
| @@ -770,14 +770,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));
|
| // Preparing to push, adjust sp.
|
| __ Subu(sp, sp, Operand((argc + 1) * kPointerSize));
|
| @@ -844,7 +843,7 @@ void StubCompiler::GenerateFastApiCall(MacroAssembler* masm,
|
| __ li(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);
|
| }
|
|
|
| @@ -868,6 +867,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.
|
| + __ li(scratch1, Operand(receiver_map));
|
|
|
| // Make sure there's no overlap between holder and object registers.
|
| ASSERT(!scratch1.is(object_reg) && !scratch1.is(holder_reg));
|
| @@ -1062,6 +1064,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
|
| @@ -1235,6 +1246,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)
|
|
|
|
|