Revision: 16557
Author:   [email protected]
Date:     Thu Sep  5 16:19:33 2013 UTC
Log:      MIPS: load ics for js api accessors.

Port r16551 (61ce507)

BUG=
[email protected]

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

Patch from Balazs Kilvady <[email protected]>.
http://code.google.com/p/v8/source/detail?r=16557

Modified:
 /branches/bleeding_edge/src/mips/stub-cache-mips.cc

=======================================
--- /branches/bleeding_edge/src/mips/stub-cache-mips.cc Thu Aug 29 03:29:24 2013 UTC +++ /branches/bleeding_edge/src/mips/stub-cache-mips.cc Thu Sep 5 16:19:33 2013 UTC
@@ -1287,7 +1287,7 @@
     Handle<JSObject> holder,
     Handle<Name> name,
     Label* success,
-    Handle<ExecutableAccessorInfo> callback) {
+    Handle<Object> callback) {
   Label miss;

Register reg = HandlerFrontendHeader(object, object_reg, holder, name, &miss);
@@ -1371,6 +1371,24 @@
   __ LoadObject(v0, value);
   __ Ret();
 }
+
+
+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(

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to