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 1353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1364 per_compile_timer.Stop(); | 1364 per_compile_timer.Stop(); |
1365 | 1365 |
1366 if (trace_compiler && success) { | 1366 if (trace_compiler && success) { |
1367 THR_Print("--> '%s' entry: %#" Px " size: %" Pd " time: %" Pd64 " us\n", | 1367 THR_Print("--> '%s' entry: %#" Px " size: %" Pd " time: %" Pd64 " us\n", |
1368 function.ToFullyQualifiedCString(), | 1368 function.ToFullyQualifiedCString(), |
1369 Code::Handle(function.CurrentCode()).EntryPoint(), | 1369 Code::Handle(function.CurrentCode()).EntryPoint(), |
1370 Code::Handle(function.CurrentCode()).Size(), | 1370 Code::Handle(function.CurrentCode()).Size(), |
1371 per_compile_timer.TotalElapsedTime()); | 1371 per_compile_timer.TotalElapsedTime()); |
1372 } | 1372 } |
1373 | 1373 |
1374 isolate->debugger()->NotifyCompilation(function); | 1374 if (FLAG_support_debugger) { |
| 1375 isolate->debugger()->NotifyCompilation(function); |
| 1376 } |
1375 | 1377 |
1376 if (FLAG_disassemble && FlowGraphPrinter::ShouldPrint(function)) { | 1378 if (FLAG_disassemble && FlowGraphPrinter::ShouldPrint(function)) { |
1377 DisassembleCode(function, optimized); | 1379 DisassembleCode(function, optimized); |
1378 } else if (FLAG_disassemble_optimized && | 1380 } else if (FLAG_disassemble_optimized && |
1379 optimized && | 1381 optimized && |
1380 FlowGraphPrinter::ShouldPrint(function)) { | 1382 FlowGraphPrinter::ShouldPrint(function)) { |
1381 // TODO(fschneider): Print unoptimized code along with the optimized code. | 1383 // TODO(fschneider): Print unoptimized code along with the optimized code. |
1382 THR_Print("*** BEGIN CODE\n"); | 1384 THR_Print("*** BEGIN CODE\n"); |
1383 DisassembleCode(function, true); | 1385 DisassembleCode(function, true); |
1384 THR_Print("*** END CODE\n"); | 1386 THR_Print("*** END CODE\n"); |
(...skipping 657 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2042 } | 2044 } |
2043 | 2045 |
2044 | 2046 |
2045 void BackgroundCompiler::EnsureInit(Thread* thread) { | 2047 void BackgroundCompiler::EnsureInit(Thread* thread) { |
2046 UNREACHABLE(); | 2048 UNREACHABLE(); |
2047 } | 2049 } |
2048 | 2050 |
2049 #endif // DART_PRECOMPILED_RUNTIME | 2051 #endif // DART_PRECOMPILED_RUNTIME |
2050 | 2052 |
2051 } // namespace dart | 2053 } // namespace dart |
OLD | NEW |