MIPS: load ics for js api accessors.

Port r16551 (61ce507)

BUG=
R=gergely@homejinni.com

Review URL: https://codereview.chromium.org/23868007

Patch from Balazs Kilvady <kilvadyb@homejinni.com>.

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@16557 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent d9659da6
...@@ -1287,7 +1287,7 @@ Register BaseLoadStubCompiler::CallbackHandlerFrontend( ...@@ -1287,7 +1287,7 @@ Register BaseLoadStubCompiler::CallbackHandlerFrontend(
Handle<JSObject> holder, Handle<JSObject> holder,
Handle<Name> name, Handle<Name> name,
Label* success, Label* success,
Handle<ExecutableAccessorInfo> callback) { Handle<Object> callback) {
Label miss; Label miss;
Register reg = HandlerFrontendHeader(object, object_reg, holder, name, &miss); Register reg = HandlerFrontendHeader(object, object_reg, holder, name, &miss);
...@@ -1373,6 +1373,24 @@ void BaseLoadStubCompiler::GenerateLoadConstant(Handle<Object> value) { ...@@ -1373,6 +1373,24 @@ void BaseLoadStubCompiler::GenerateLoadConstant(Handle<Object> value) {
} }
void BaseLoadStubCompiler::GenerateLoadCallback(
const CallOptimization& call_optimization) {
ASSERT(call_optimization.is_simple_api_call());
// Assign stack space for the call arguments.
__ Subu(sp, sp, Operand((kFastApiCallArguments + 1) * kPointerSize));
int argc = 0;
int api_call_argc = argc + kFastApiCallArguments;
// Write holder to stack frame.
__ sw(receiver(), MemOperand(sp, 0));
// Write receiver to stack frame.
__ sw(receiver(), MemOperand(sp, api_call_argc * kPointerSize));
GenerateFastApiDirectCall(masm(), call_optimization, argc);
}
void BaseLoadStubCompiler::GenerateLoadCallback( void BaseLoadStubCompiler::GenerateLoadCallback(
Register reg, Register reg,
Handle<ExecutableAccessorInfo> callback) { Handle<ExecutableAccessorInfo> callback) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment