Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(942)

Unified Diff: runtime/vm/signal_handler_android.cc

Issue 539573003: Adds support for building arm64 Android. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/signal_handler.h ('k') | tools/android_link.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/signal_handler_android.cc
===================================================================
--- runtime/vm/signal_handler_android.cc (revision 39843)
+++ runtime/vm/signal_handler_android.cc (working copy)
@@ -14,6 +14,8 @@
#if defined(TARGET_ARCH_ARM)
pc = static_cast<uintptr_t>(mcontext.arm_pc);
+#elif defined(TARGET_ARCH_ARM64)
+ pc = static_cast<uintptr_t>(mcontext.pc);
#else
UNIMPLEMENTED();
#endif // TARGET_ARCH_...
@@ -26,6 +28,8 @@
#if defined(TARGET_ARCH_ARM)
fp = static_cast<uintptr_t>(mcontext.arm_fp);
+#elif defined(TARGET_ARCH_ARM64)
+ fp = static_cast<uintptr_t>(mcontext.regs[29]);
#else
UNIMPLEMENTED();
#endif // TARGET_ARCH_...
@@ -39,6 +43,8 @@
#if defined(TARGET_ARCH_ARM)
sp = static_cast<uintptr_t>(mcontext.arm_sp);
+#elif defined(TARGET_ARCH_ARM64)
+ sp = static_cast<uintptr_t>(mcontext.sp);
#else
UNIMPLEMENTED();
#endif // TARGET_ARCH_...
« no previous file with comments | « runtime/vm/signal_handler.h ('k') | tools/android_link.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698