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

Unified Diff: runtime/vm/compilation_trace.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/code_patcher_x64_test.cc ('k') | runtime/vm/compiler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/compilation_trace.cc
diff --git a/runtime/vm/compilation_trace.cc b/runtime/vm/compilation_trace.cc
index 2fd2cf0b7b0c079733bfc470adfb2c1177bcc630..22be20ecfb42a17c553e2f220b97af2986f4a780 100644
--- a/runtime/vm/compilation_trace.cc
+++ b/runtime/vm/compilation_trace.cc
@@ -19,7 +19,6 @@ CompilationTraceSaver::CompilationTraceSaver(Zone* zone)
lib_(Library::Handle(zone)),
uri_(String::Handle(zone)) {}
-
void CompilationTraceSaver::Visit(const Function& function) {
if (!function.HasCode()) {
return; // Not compiled.
@@ -41,7 +40,6 @@ void CompilationTraceSaver::Visit(const Function& function) {
func_name_.ToCString());
}
-
CompilationTraceLoader::CompilationTraceLoader(Thread* thread)
: thread_(thread),
zone_(thread->zone()),
@@ -56,7 +54,6 @@ CompilationTraceLoader::CompilationTraceLoader(Thread* thread)
field_(Field::Handle(zone_)),
error_(Object::Handle(zone_)) {}
-
static char* FindCharacter(char* str, char goal, char* limit) {
while (str < limit) {
if (*str == goal) {
@@ -67,7 +64,6 @@ static char* FindCharacter(char* str, char goal, char* limit) {
return NULL;
}
-
RawObject* CompilationTraceLoader::CompileTrace(uint8_t* buffer,
intptr_t size) {
// First compile functions named in the trace.
@@ -136,7 +132,6 @@ RawObject* CompilationTraceLoader::CompileTrace(uint8_t* buffer,
return Object::null();
}
-
// Use a fuzzy match to find the right function to compile. This allows a
// compilation trace to remain mostly valid in the face of program changes, and
// deals with implicit/dispatcher functions that don't have proper names.
@@ -238,7 +233,6 @@ RawObject* CompilationTraceLoader::CompileTriple(const char* uri_cstr,
return Object::null();
}
-
RawObject* CompilationTraceLoader::CompileFunction(const Function& function) {
if (function.is_abstract()) {
return Object::null();
@@ -246,7 +240,6 @@ RawObject* CompilationTraceLoader::CompileFunction(const Function& function) {
return Compiler::CompileFunction(thread_, function);
}
-
RawObject* CompilationTraceLoader::EvaluateInitializer(const Field& field) {
LongJumpScope jump;
if (setjmp(*jump.Set()) == 0) {
« no previous file with comments | « runtime/vm/code_patcher_x64_test.cc ('k') | runtime/vm/compiler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698