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 1306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1317 LanguageError::Cast(error).kind() != Report::kBailout); | 1317 LanguageError::Cast(error).kind() != Report::kBailout); |
1318 return error.raw(); | 1318 return error.raw(); |
1319 } | 1319 } |
1320 } | 1320 } |
1321 | 1321 |
1322 per_compile_timer.Stop(); | 1322 per_compile_timer.Stop(); |
1323 | 1323 |
1324 if (trace_compiler && success) { | 1324 if (trace_compiler && success) { |
1325 THR_Print("--> '%s' entry: %#" Px " size: %" Pd " time: %" Pd64 " us\n", | 1325 THR_Print("--> '%s' entry: %#" Px " size: %" Pd " time: %" Pd64 " us\n", |
1326 function.ToFullyQualifiedCString(), | 1326 function.ToFullyQualifiedCString(), |
1327 Code::Handle(function.CurrentCode()).EntryPoint(), | 1327 Code::Handle(function.CurrentCode()).PayloadStart(), |
1328 Code::Handle(function.CurrentCode()).Size(), | 1328 Code::Handle(function.CurrentCode()).Size(), |
1329 per_compile_timer.TotalElapsedTime()); | 1329 per_compile_timer.TotalElapsedTime()); |
1330 } | 1330 } |
1331 | 1331 |
1332 if (FLAG_support_debugger) { | 1332 if (FLAG_support_debugger) { |
1333 isolate->debugger()->NotifyCompilation(function); | 1333 isolate->debugger()->NotifyCompilation(function); |
1334 } | 1334 } |
1335 | 1335 |
1336 if (FLAG_disassemble && FlowGraphPrinter::ShouldPrint(function)) { | 1336 if (FLAG_disassemble && FlowGraphPrinter::ShouldPrint(function)) { |
1337 SafepointOperationScope safepoint_scope(thread); | 1337 SafepointOperationScope safepoint_scope(thread); |
(...skipping 841 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 |