| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #include "vm/compiler.h" | 5 #include "vm/compiler.h" |
| 6 | 6 |
| 7 #include "vm/assembler.h" | 7 #include "vm/assembler.h" |
| 8 | 8 |
| 9 #include "vm/ast_printer.h" | 9 #include "vm/ast_printer.h" |
| 10 #include "vm/block_scheduler.h" | 10 #include "vm/block_scheduler.h" |
| (...skipping 1924 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1935 if (start_task) { | 1935 if (start_task) { |
| 1936 Dart::thread_pool()->Run(isolate->background_compiler()); | 1936 Dart::thread_pool()->Run(isolate->background_compiler()); |
| 1937 } | 1937 } |
| 1938 } | 1938 } |
| 1939 | 1939 |
| 1940 | 1940 |
| 1941 #else // DART_PRECOMPILED_RUNTIME | 1941 #else // DART_PRECOMPILED_RUNTIME |
| 1942 | 1942 |
| 1943 | 1943 |
| 1944 DEFINE_RUNTIME_ENTRY(CompileFunction, 1) { | 1944 DEFINE_RUNTIME_ENTRY(CompileFunction, 1) { |
| 1945 UNREACHABLE(); | 1945 const Function& function = Function::CheckedHandle(arguments.ArgAt(0)); |
| 1946 FATAL3("Precompilation missed function %s (%" Pd ", %s)\n", |
| 1947 function.ToLibNamePrefixedQualifiedCString(), |
| 1948 function.token_pos(), |
| 1949 Function::KindToCString(function.kind())); |
| 1946 } | 1950 } |
| 1947 | 1951 |
| 1948 | 1952 |
| 1949 bool Compiler::IsBackgroundCompilation() { | 1953 bool Compiler::IsBackgroundCompilation() { |
| 1950 UNREACHABLE(); | 1954 UNREACHABLE(); |
| 1951 return false; | 1955 return false; |
| 1952 } | 1956 } |
| 1953 | 1957 |
| 1954 | 1958 |
| 1955 RawError* Compiler::Compile(const Library& library, const Script& script) { | 1959 RawError* Compiler::Compile(const Library& library, const Script& script) { |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2039 } | 2043 } |
| 2040 | 2044 |
| 2041 | 2045 |
| 2042 void BackgroundCompiler::EnsureInit(Thread* thread) { | 2046 void BackgroundCompiler::EnsureInit(Thread* thread) { |
| 2043 UNREACHABLE(); | 2047 UNREACHABLE(); |
| 2044 } | 2048 } |
| 2045 | 2049 |
| 2046 #endif // DART_PRECOMPILED_RUNTIME | 2050 #endif // DART_PRECOMPILED_RUNTIME |
| 2047 | 2051 |
| 2048 } // namespace dart | 2052 } // namespace dart |
| OLD | NEW |