Revision: 19328
Author:   [email protected]
Date:     Wed Feb 12 13:34:40 2014 UTC
Log:      Avoid doing explicit cast in simulator-a64::get_sp().

[email protected]

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

Modified:
 /branches/bleeding_edge/src/a64/simulator-a64.h

=======================================
--- /branches/bleeding_edge/src/a64/simulator-a64.h Wed Feb 12 13:27:13 2014 UTC +++ /branches/bleeding_edge/src/a64/simulator-a64.h Wed Feb 12 13:34:40 2014 UTC
@@ -447,7 +447,7 @@
   }
   Instruction* lr() { return reg<Instruction*>(kLinkRegCode); }

-  Address get_sp() { return reinterpret_cast<Address>(sp()); }
+  Address get_sp() { return reg<Address>(31, Reg31IsStackPointer); }

   // Return 'size' bits of the value of a floating-point register, as the
   // specified type. The value is zero-extended to fill the result.

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