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(); |