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 1359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1370 } | 1370 } |
1371 UNREACHABLE(); | 1371 UNREACHABLE(); |
1372 return Error::null(); | 1372 return Error::null(); |
1373 } | 1373 } |
1374 | 1374 |
1375 | 1375 |
1376 RawError* Compiler::CompileFunction(Thread* thread, | 1376 RawError* Compiler::CompileFunction(Thread* thread, |
1377 const Function& function) { | 1377 const Function& function) { |
1378 #ifdef DART_PRECOMPILER | 1378 #ifdef DART_PRECOMPILER |
1379 if (FLAG_precompiled_mode) { | 1379 if (FLAG_precompiled_mode) { |
1380 return Precompiler::CompileFunction(thread, function); | 1380 return Precompiler::CompileFunction(thread, thread->zone(), function); |
1381 } | 1381 } |
1382 #endif | 1382 #endif |
1383 Isolate* isolate = thread->isolate(); | 1383 Isolate* isolate = thread->isolate(); |
1384 NOT_IN_PRODUCT( | 1384 NOT_IN_PRODUCT( |
1385 VMTagScope tagScope(thread, VMTag::kCompileUnoptimizedTagId); | 1385 VMTagScope tagScope(thread, VMTag::kCompileUnoptimizedTagId); |
1386 TIMELINE_FUNCTION_COMPILATION_DURATION(thread, "CompileFunction", function); | 1386 TIMELINE_FUNCTION_COMPILATION_DURATION(thread, "CompileFunction", function); |
1387 ) // !PRODUCT | 1387 ) // !PRODUCT |
1388 | 1388 |
1389 if (!isolate->compilation_allowed()) { | 1389 if (!isolate->compilation_allowed()) { |
1390 FATAL3("Precompilation missed function %s (%s, %s)\n", | 1390 FATAL3("Precompilation missed function %s (%s, %s)\n", |
(...skipping 788 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2179 | 2179 |
2180 | 2180 |
2181 bool BackgroundCompiler::IsDisabled() { | 2181 bool BackgroundCompiler::IsDisabled() { |
2182 UNREACHABLE(); | 2182 UNREACHABLE(); |
2183 return true; | 2183 return true; |
2184 } | 2184 } |
2185 | 2185 |
2186 #endif // DART_PRECOMPILED_RUNTIME | 2186 #endif // DART_PRECOMPILED_RUNTIME |
2187 | 2187 |
2188 } // namespace dart | 2188 } // namespace dart |
OLD | NEW |