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

Unified Diff: runtime/vm/bootstrap.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/boolfield_test.cc ('k') | runtime/vm/bootstrap_natives.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/bootstrap.cc
diff --git a/runtime/vm/bootstrap.cc b/runtime/vm/bootstrap.cc
index b1b21d19f25b8dc979a549e244e7ebbabce1059f..8aa507588ef391e294a31422004c79d288d3e23f 100644
--- a/runtime/vm/bootstrap.cc
+++ b/runtime/vm/bootstrap.cc
@@ -28,13 +28,10 @@ struct BootstrapLibProps {
const char** patch_paths;
};
-
enum { kPathsUriOffset = 0, kPathsSourceOffset = 1, kPathsEntryLength = 2 };
-
const char** Bootstrap::profiler_patch_paths_ = NULL;
-
#define MAKE_PROPERTIES(CamelName, name) \
{ObjectStore::k##CamelName, "dart:" #name, Bootstrap::name##_source_paths_, \
"dart:" #name "-patch", Bootstrap::name##_patch_paths_},
@@ -44,10 +41,8 @@ static const BootstrapLibProps bootstrap_libraries[] = {
#undef MAKE_PROPERTIES
-
static const intptr_t kBootstrapLibraryCount = ARRAY_SIZE(bootstrap_libraries);
-
static RawString* GetLibrarySourceByIndex(intptr_t index,
const String& uri,
bool patch) {
@@ -84,7 +79,6 @@ static RawString* GetLibrarySourceByIndex(intptr_t index,
return String::FromUTF8(utf8_array, file_length);
}
-
static RawString* GetLibrarySource(const Library& lib,
const String& uri,
bool patch) {
@@ -104,7 +98,6 @@ static RawString* GetLibrarySource(const Library& lib,
return GetLibrarySourceByIndex(index, uri, patch);
}
-
static RawError* Compile(const Library& library, const Script& script) {
bool update_lib_status = (script.kind() == RawScript::kScriptTag ||
script.kind() == RawScript::kLibraryTag);
@@ -124,7 +117,6 @@ static RawError* Compile(const Library& library, const Script& script) {
return error.raw();
}
-
static Dart_Handle LoadPartSource(Thread* thread,
const Library& lib,
const String& uri) {
@@ -151,7 +143,6 @@ static Dart_Handle LoadPartSource(Thread* thread,
return Api::NewHandle(thread, error.raw());
}
-
static Dart_Handle BootstrapLibraryTagHandler(Dart_LibraryTag tag,
Dart_Handle library,
Dart_Handle uri) {
@@ -187,7 +178,6 @@ static Dart_Handle BootstrapLibraryTagHandler(Dart_LibraryTag tag,
return LoadPartSource(thread, lib, uri_str);
}
-
static RawError* LoadPatchFiles(Thread* thread,
const Library& lib,
intptr_t index) {
@@ -225,7 +215,6 @@ static RawError* LoadPatchFiles(Thread* thread,
return Error::null();
}
-
static void Finish(Thread* thread, bool from_kernel) {
Bootstrap::SetupNativeResolver();
if (!ClassFinalizer::ProcessPendingClasses(from_kernel)) {
@@ -260,7 +249,6 @@ static void Finish(Thread* thread, bool from_kernel) {
Compiler::CompileClass(cls);
}
-
static RawError* BootstrapFromSource(Thread* thread) {
Isolate* isolate = thread->isolate();
Zone* zone = thread->zone();
@@ -310,7 +298,6 @@ static RawError* BootstrapFromSource(Thread* thread) {
return error.raw();
}
-
#if !defined(DART_PRECOMPILED_RUNTIME)
static RawError* BootstrapFromKernel(Thread* thread, kernel::Program* program) {
Zone* zone = thread->zone();
@@ -365,7 +352,6 @@ static RawError* BootstrapFromKernel(Thread* thread, kernel::Program* program) {
}
#endif
-
RawError* Bootstrap::DoBootstrapping(kernel::Program* kernel_program) {
Thread* thread = Thread::Current();
Isolate* isolate = thread->isolate();
« no previous file with comments | « runtime/vm/boolfield_test.cc ('k') | runtime/vm/bootstrap_natives.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698