Index: runtime/vm/compiler.cc |
diff --git a/runtime/vm/compiler.cc b/runtime/vm/compiler.cc |
index f3d879a8c90bf2a28d645b2b1974441517858ac5..b7d3fe127e03d4dc4408cf9befd3b4ad734fd8a0 100644 |
--- a/runtime/vm/compiler.cc |
+++ b/runtime/vm/compiler.cc |
@@ -74,6 +74,7 @@ DECLARE_FLAG(bool, trace_irregexp); |
bool Compiler::always_optimize_ = false; |
bool Compiler::allow_recompilation_ = true; |
+#ifndef DART_PRECOMPILED |
// TODO(zerny): Factor out unoptimizing/optimizing pipelines and remove |
// separate helpers functions & `optimizing` args. |
@@ -1910,9 +1911,7 @@ void BackgroundCompiler::VisitPointers(ObjectPointerVisitor* visitor) { |
void BackgroundCompiler::Stop(BackgroundCompiler* task) { |
ASSERT(Isolate::Current()->background_compiler() == task); |
- if (task == NULL) { |
- return; |
- } |
+ ASSERT(task != NULL); |
BackgroundCompilationQueue* function_queue = task->function_queue(); |
BackgroundCompilationQueue* result_queue = task->result_queue(); |
@@ -1971,4 +1970,117 @@ void BackgroundCompiler::EnsureInit(Thread* thread) { |
} |
} |
+ |
+#else |
rmacnak
2015/11/17 20:51:18
#else // DART_PRECOMPILED
Florian Schneider
2015/11/18 11:44:08
Done.
|
+ |
+ |
+DEFINE_RUNTIME_ENTRY(CompileFunction, 1) { |
+ UNREACHABLE(); |
+} |
+ |
+ |
+bool Compiler::IsBackgroundCompilation() { |
+ return false; |
rmacnak
2015/11/17 20:51:18
UNREACHABLE()
Florian Schneider
2015/11/18 11:44:09
Done.
|
+} |
+ |
+ |
+RawError* Compiler::Compile(const Library& library, const Script& script) { |
+ UNREACHABLE(); |
+ return Error::null(); |
+} |
+ |
+ |
+RawError* Compiler::CompileClass(const Class& cls) { |
+ UNREACHABLE(); |
+ return Error::null(); |
+} |
+ |
+ |
+RawError* Compiler::CompileFunction(Thread* thread, |
+ const Function& function) { |
+ UNREACHABLE(); |
+ return Error::null(); |
+} |
+ |
+ |
+RawError* Compiler::EnsureUnoptimizedCode(Thread* thread, |
+ const Function& function) { |
+ UNREACHABLE(); |
+ return Error::null(); |
+} |
+ |
+ |
+RawError* Compiler::CompileOptimizedFunction(Thread* thread, |
+ const Function& function, |
+ intptr_t osr_id, |
+ BackgroundCompilationResult* res) { |
+ UNREACHABLE(); |
+ return Error::null(); |
+} |
+ |
+ |
+RawError* Compiler::CompileParsedFunction( |
+ ParsedFunction* parsed_function) { |
+ UNREACHABLE(); |
+ return Error::null(); |
+} |
+ |
+ |
+void Compiler::ComputeLocalVarDescriptors(const Code& code) { |
+ UNREACHABLE(); |
+} |
+ |
+ |
+RawError* Compiler::CompileAllFunctions(const Class& cls) { |
+ UNREACHABLE(); |
+ return Error::null(); |
+} |
+ |
+ |
+void Compiler::CompileStaticInitializer(const Field& field) { |
+ UNREACHABLE(); |
+} |
+ |
+ |
+RawObject* Compiler::EvaluateStaticInitializer(const Field& field) { |
+ ASSERT(field.HasPrecompiledInitializer()); |
+ const Function& initializer = |
+ Function::Handle(field.PrecompiledInitializer()); |
+ return DartEntry::InvokeFunction(initializer, Object::empty_array()); |
+} |
+ |
+ |
+ |
+RawObject* Compiler::ExecuteOnce(SequenceNode* fragment) { |
+ UNREACHABLE(); |
+ return Object::null(); |
+} |
+ |
+ |
+void BackgroundCompiler::CompileOptimized(const Function& function) { |
+ UNREACHABLE(); |
+} |
+ |
+ |
+void BackgroundCompiler::InstallGeneratedCode() { |
+ UNREACHABLE(); |
+} |
+ |
+ |
+void BackgroundCompiler::VisitPointers(ObjectPointerVisitor* visitor) { |
+ UNREACHABLE(); |
+} |
+ |
+ |
+void BackgroundCompiler::Stop(BackgroundCompiler* task) { |
+ UNREACHABLE(); |
+} |
+ |
+ |
+void BackgroundCompiler::EnsureInit(Thread* thread) { |
+ UNREACHABLE(); |
+} |
+ |
+#endif // DART_PRECOMPILED |
+ |
} // namespace dart |