| 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 762 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 773 ++i) { | 773 ++i) { |
| 774 thread->cha()->leaf_classes()[i]->RegisterCHACode(code); | 774 thread->cha()->leaf_classes()[i]->RegisterCHACode(code); |
| 775 } | 775 } |
| 776 | 776 |
| 777 for (intptr_t i = 0; | 777 for (intptr_t i = 0; |
| 778 i < flow_graph->guarded_fields()->length(); | 778 i < flow_graph->guarded_fields()->length(); |
| 779 i++) { | 779 i++) { |
| 780 const Field* field = (*flow_graph->guarded_fields())[i]; | 780 const Field* field = (*flow_graph->guarded_fields())[i]; |
| 781 field->RegisterDependentCode(code); | 781 field->RegisterDependentCode(code); |
| 782 } | 782 } |
| 783 |
| 784 if (FLAG_trace_inlining_intervals) { |
| 785 code.DumpInlinedIntervals(); |
| 786 } |
| 783 } else { // not optimized. | 787 } else { // not optimized. |
| 784 if (!Compiler::always_optimize() && | 788 if (!Compiler::always_optimize() && |
| 785 (function.ic_data_array() == Array::null())) { | 789 (function.ic_data_array() == Array::null())) { |
| 786 function.SaveICDataMap(graph_compiler.deopt_id_to_ic_data()); | 790 function.SaveICDataMap(graph_compiler.deopt_id_to_ic_data()); |
| 787 } | 791 } |
| 788 function.set_unoptimized_code(code); | 792 function.set_unoptimized_code(code); |
| 789 function.AttachCode(code); | 793 function.AttachCode(code); |
| 790 ASSERT(CodePatcher::CodeIsPatchable(code)); | 794 ASSERT(CodePatcher::CodeIsPatchable(code)); |
| 791 } | 795 } |
| 792 if (parsed_function->HasDeferredPrefixes()) { | 796 if (parsed_function->HasDeferredPrefixes()) { |
| (...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1342 const Object& result = | 1346 const Object& result = |
| 1343 PassiveObject::Handle(isolate->object_store()->sticky_error()); | 1347 PassiveObject::Handle(isolate->object_store()->sticky_error()); |
| 1344 isolate->object_store()->clear_sticky_error(); | 1348 isolate->object_store()->clear_sticky_error(); |
| 1345 return result.raw(); | 1349 return result.raw(); |
| 1346 } | 1350 } |
| 1347 UNREACHABLE(); | 1351 UNREACHABLE(); |
| 1348 return Object::null(); | 1352 return Object::null(); |
| 1349 } | 1353 } |
| 1350 | 1354 |
| 1351 } // namespace dart | 1355 } // namespace dart |
| OLD | NEW |