Revision: 18782
Author:   [email protected]
Date:     Thu Jan 23 14:59:13 2014 UTC
Log:      A64: fix ProfileEntryHookStub to pass return address location.

BUG=314606
TEST=cctest/test-api/SetFunctionEntryHook
[email protected]

Review URL: https://codereview.chromium.org/145703002
http://code.google.com/p/v8/source/detail?r=18782

Modified:
 /branches/experimental/a64/src/a64/code-stubs-a64.cc

=======================================
--- /branches/experimental/a64/src/a64/code-stubs-a64.cc Thu Jan 23 13:51:32 2014 UTC +++ /branches/experimental/a64/src/a64/code-stubs-a64.cc Thu Jan 23 14:59:13 2014 UTC
@@ -6713,8 +6713,8 @@
 #endif

   // The caller's return address is above the saved temporaries.
-  // Grab that for the second argument to the hook.
-  __ Peek(x1, kNumSavedRegs * kPointerSize);
+  // Grab its location for the second argument to the hook.
+  __ Add(x1, __ StackPointer(), kNumSavedRegs * kPointerSize);

   {
     // Create a dummy frame, as CallCFunction requires this.

--
--
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