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

Unified Diff: runtime/vm/signal_handler_macos.cc

Issue 928833003: Add Function based profile tree (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 10 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_linux.cc ('k') | runtime/vm/signal_handler_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/signal_handler_macos.cc
diff --git a/runtime/vm/signal_handler_macos.cc b/runtime/vm/signal_handler_macos.cc
index 9d5b1c73a3a2a7175c190f6289abd5798196af0b..3bb610157dee611d5ecaf3b4d3cbda180dbe7add 100644
--- a/runtime/vm/signal_handler_macos.cc
+++ b/runtime/vm/signal_handler_macos.cc
@@ -77,6 +77,33 @@ uintptr_t SignalHandler::GetDartStackPointer(const mcontext_t& mcontext) {
}
+uintptr_t SignalHandler::GetLinkRegister(const mcontext_t& mcontext) {
+ uintptr_t lr = 0;
+
+#if defined(TARGET_ARCH_IA32)
+ lr = 0;
+#elif defined(TARGET_ARCH_X64)
+ lr = 0;
+#elif defined(TARGET_ARCH_MIPS) && defined(USING_SIMULATOR)
+ lr = 0;
+#elif defined(TARGET_ARCH_ARM) && defined(USING_SIMULATOR)
+ lr = 0;
+#elif defined(TARGET_ARCH_ARM64) && defined(USING_SIMULATOR)
+ lr = 0;
+#elif defined(TARGET_ARCH_ARM)
+ lr = 0;
+#elif defined(TARGET_ARCH_ARM64)
+ lr = 0;
+#elif defined(TARGET_ARCH_MIPS)
+ lr = 0;
+#else
+ UNIMPLEMENTED();
+#endif // TARGET_ARCH_...
+
+ return lr;
+}
+
+
void SignalHandler::Install(SignalAction action) {
struct sigaction act;
act.sa_handler = NULL;
« no previous file with comments | « runtime/vm/signal_handler_linux.cc ('k') | runtime/vm/signal_handler_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698