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

Unified Diff: runtime/vm/signal_handler_macos.cc

Issue 2974233002: VM: Re-format to use at most one newline between functions (Closed)
Patch Set: Rebase and merge Created 3 years, 5 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 addabb9eb806e79678a85b78ecfeacae20d5e4a9..8167b81bbd290c91f286a220e02c6aaaf581eb84 100644
--- a/runtime/vm/signal_handler_macos.cc
+++ b/runtime/vm/signal_handler_macos.cc
@@ -4,8 +4,8 @@
#include "vm/globals.h"
#include "vm/instructions.h"
-#include "vm/simulator.h"
#include "vm/signal_handler.h"
+#include "vm/simulator.h"
#if defined(HOST_OS_MACOS)
namespace dart {
@@ -28,7 +28,6 @@ uintptr_t SignalHandler::GetProgramCounter(const mcontext_t& mcontext) {
return pc;
}
-
uintptr_t SignalHandler::GetFramePointer(const mcontext_t& mcontext) {
uintptr_t fp = 0;
@@ -47,7 +46,6 @@ uintptr_t SignalHandler::GetFramePointer(const mcontext_t& mcontext) {
return fp;
}
-
uintptr_t SignalHandler::GetCStackPointer(const mcontext_t& mcontext) {
uintptr_t sp = 0;
@@ -66,7 +64,6 @@ uintptr_t SignalHandler::GetCStackPointer(const mcontext_t& mcontext) {
return sp;
}
-
uintptr_t SignalHandler::GetDartStackPointer(const mcontext_t& mcontext) {
#if defined(TARGET_ARCH_ARM64) && !defined(USING_SIMULATOR)
return static_cast<uintptr_t>(mcontext->__ss.__x[SPREG]);
@@ -75,7 +72,6 @@ uintptr_t SignalHandler::GetDartStackPointer(const mcontext_t& mcontext) {
#endif
}
-
uintptr_t SignalHandler::GetLinkRegister(const mcontext_t& mcontext) {
uintptr_t lr = 0;
@@ -94,7 +90,6 @@ uintptr_t SignalHandler::GetLinkRegister(const mcontext_t& mcontext) {
return lr;
}
-
void SignalHandler::InstallImpl(SignalAction action) {
struct sigaction act;
act.sa_handler = NULL;
@@ -105,7 +100,6 @@ void SignalHandler::InstallImpl(SignalAction action) {
ASSERT(r == 0);
}
-
void SignalHandler::Remove() {
// Ignore future SIGPROF signals because by default SIGPROF will terminate
// the process and we may have some signals in flight.
@@ -117,7 +111,6 @@ void SignalHandler::Remove() {
ASSERT(r == 0);
}
-
} // namespace dart
#endif // defined(HOST_OS_MACOS)
« 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