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

Unified Diff: runtime/vm/signal_handler_linux.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_fuchsia.cc ('k') | runtime/vm/signal_handler_macos.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/signal_handler_linux.cc
diff --git a/runtime/vm/signal_handler_linux.cc b/runtime/vm/signal_handler_linux.cc
index 7c522fd8840726dbe959691a00e69da8bfb20466..3712901ceaba4bce7d2bcd99a65d08ec3b981d21 100644
--- a/runtime/vm/signal_handler_linux.cc
+++ b/runtime/vm/signal_handler_linux.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_LINUX)
namespace dart {
@@ -27,7 +27,6 @@ uintptr_t SignalHandler::GetProgramCounter(const mcontext_t& mcontext) {
return pc;
}
-
uintptr_t SignalHandler::GetFramePointer(const mcontext_t& mcontext) {
uintptr_t fp = 0;
@@ -53,7 +52,6 @@ uintptr_t SignalHandler::GetFramePointer(const mcontext_t& mcontext) {
return fp;
}
-
uintptr_t SignalHandler::GetCStackPointer(const mcontext_t& mcontext) {
uintptr_t sp = 0;
@@ -71,7 +69,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.regs[SPREG]);
@@ -80,7 +77,6 @@ uintptr_t SignalHandler::GetDartStackPointer(const mcontext_t& mcontext) {
#endif
}
-
uintptr_t SignalHandler::GetLinkRegister(const mcontext_t& mcontext) {
uintptr_t lr = 0;
@@ -98,7 +94,6 @@ uintptr_t SignalHandler::GetLinkRegister(const mcontext_t& mcontext) {
return lr;
}
-
void SignalHandler::InstallImpl(SignalAction action) {
struct sigaction act;
act.sa_handler = NULL;
@@ -109,7 +104,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.
@@ -121,7 +115,6 @@ void SignalHandler::Remove() {
ASSERT(r == 0);
}
-
} // namespace dart
#endif // defined(HOST_OS_LINUX)
« no previous file with comments | « runtime/vm/signal_handler_fuchsia.cc ('k') | runtime/vm/signal_handler_macos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698