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

Unified Diff: runtime/vm/signal_handler_android.cc

Issue 25909002: Sampling profiler (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 1 month 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') | runtime/vm/signal_handler_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/signal_handler_android.cc
diff --git a/runtime/vm/signal_handler_android.cc b/runtime/vm/signal_handler_android.cc
new file mode 100644
index 0000000000000000000000000000000000000000..f749ba114c8b158e37e645594896abcfc4c514db
--- /dev/null
+++ b/runtime/vm/signal_handler_android.cc
@@ -0,0 +1,45 @@
+// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
+#include "vm/globals.h"
+#include "vm/signal_handler.h"
+#if defined(TARGET_OS_ANDROID)
+
+namespace dart {
+
+uintptr_t SignalHandler::GetProgramCounter(const mcontext_t& mcontext) {
+ UNIMPLEMENTED();
+}
+
+
+uintptr_t SignalHandler::GetFramePointer(const mcontext_t& mcontext) {
+ UNIMPLEMENTED();
+}
+
+
+uintptr_t SignalHandler::GetStackPointer(const mcontext_t& mcontext) {
+ UNIMPLEMENTED();
+}
+
+
+void SignalHandler::Install(SignalAction action) {
+ UNIMPLEMENTED();
+}
+
+
+ScopedSignalBlocker::ScopedSignalBlocker() {
+ sigset_t set;
+ sigemptyset(&set);
+ sigaddset(&set, SIGPROF);
+ pthread_sigmask(SIG_SETMASK, &set, &old_);
+}
+
+
+ScopedSignalBlocker::~ScopedSignalBlocker() {
+ pthread_sigmask(SIG_SETMASK, &old_, NULL);
+}
+
+} // namespace dart
+
+#endif // defined(TARGET_OS_ANDROID)
« no previous file with comments | « runtime/vm/signal_handler.h ('k') | runtime/vm/signal_handler_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698