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

Unified Diff: runtime/vm/bootstrap.cc

Issue 2508923002: VM: Fix libdart_lib_nosnapshot_precompiled_runtime build target. (Closed)
Patch Set: Created 4 years, 1 month 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 | « no previous file | no next file » | 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 c3bcdd6fdef72b4d9893640cdd1a5df8a9f43607..5b4c20f115c842f28b9122eb89f1fc0f1c9aa67d 100644
--- a/runtime/vm/bootstrap.cc
+++ b/runtime/vm/bootstrap.cc
@@ -10,8 +10,10 @@
#include "vm/class_finalizer.h"
#include "vm/compiler.h"
#include "vm/dart_api_impl.h"
+#if !defined(DART_PRECOMPILED_RUNTIME)
#include "vm/kernel.h"
#include "vm/kernel_reader.h"
+#endif
#include "vm/object.h"
#include "vm/object_store.h"
#include "vm/symbols.h"
@@ -314,6 +316,7 @@ static RawError* BootstrapFromSource(Thread* thread) {
}
+#if !defined(DART_PRECOMPILED_RUNTIME)
static RawError* BootstrapFromKernel(Thread* thread,
const uint8_t* buffer,
intptr_t buffer_size) {
@@ -360,6 +363,14 @@ static RawError* BootstrapFromKernel(Thread* thread,
Finish(thread, /*from_kernel=*/true);
return Error::null();
}
+#else
+static RawError* BootstrapFromKernel(Thread* thread,
+ const uint8_t* buffer,
+ intptr_t buffer_size) {
+ UNREACHABLE();
+ return Error::null();
+}
+#endif
RawError* Bootstrap::DoBootstrapping(const uint8_t* kernel_buffer,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698