| 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/code_generator.h" | 10 #include "vm/code_generator.h" |
| (...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 492 ASSERT(success); | 492 ASSERT(success); |
| 493 per_compile_timer.Stop(); | 493 per_compile_timer.Stop(); |
| 494 | 494 |
| 495 if (FLAG_trace_compiler) { | 495 if (FLAG_trace_compiler) { |
| 496 OS::Print("--> '%s' entry: %#"Px" time: %"Pd64" us\n", | 496 OS::Print("--> '%s' entry: %#"Px" time: %"Pd64" us\n", |
| 497 function.ToFullyQualifiedCString(), | 497 function.ToFullyQualifiedCString(), |
| 498 Code::Handle(function.CurrentCode()).EntryPoint(), | 498 Code::Handle(function.CurrentCode()).EntryPoint(), |
| 499 per_compile_timer.TotalElapsedTime()); | 499 per_compile_timer.TotalElapsedTime()); |
| 500 } | 500 } |
| 501 | 501 |
| 502 if (Isolate::Current()->debugger()->IsActive()) { | 502 isolate->debugger()->NotifyCompilation(function); |
| 503 Isolate::Current()->debugger()->NotifyCompilation(function); | |
| 504 } | |
| 505 | 503 |
| 506 if (FLAG_disassemble) { | 504 if (FLAG_disassemble) { |
| 507 DisassembleCode(function, optimized); | 505 DisassembleCode(function, optimized); |
| 508 } else if (FLAG_disassemble_optimized && optimized) { | 506 } else if (FLAG_disassemble_optimized && optimized) { |
| 509 // TODO(fschneider): Print unoptimized code along with the optimized code. | 507 // TODO(fschneider): Print unoptimized code along with the optimized code. |
| 510 DisassembleCode(function, true); | 508 DisassembleCode(function, true); |
| 511 } | 509 } |
| 512 | 510 |
| 513 isolate->set_long_jump_base(base); | 511 isolate->set_long_jump_base(base); |
| 514 return Error::null(); | 512 return Error::null(); |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 639 Object::Handle(isolate->object_store()->sticky_error()); | 637 Object::Handle(isolate->object_store()->sticky_error()); |
| 640 isolate->object_store()->clear_sticky_error(); | 638 isolate->object_store()->clear_sticky_error(); |
| 641 isolate->set_long_jump_base(base); | 639 isolate->set_long_jump_base(base); |
| 642 return result.raw(); | 640 return result.raw(); |
| 643 } | 641 } |
| 644 UNREACHABLE(); | 642 UNREACHABLE(); |
| 645 return Object::null(); | 643 return Object::null(); |
| 646 } | 644 } |
| 647 | 645 |
| 648 } // namespace dart | 646 } // namespace dart |
| OLD | NEW |