| 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 703 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 714 Array::Handle(isolate, graph_compiler.CreateDeoptInfo(&assembler)); | 714 Array::Handle(isolate, graph_compiler.CreateDeoptInfo(&assembler)); |
| 715 INC_STAT(isolate, total_code_size, | 715 INC_STAT(isolate, total_code_size, |
| 716 deopt_info_array.Length() * sizeof(uword)); | 716 deopt_info_array.Length() * sizeof(uword)); |
| 717 const Code& code = Code::Handle( | 717 const Code& code = Code::Handle( |
| 718 Code::FinalizeCode(function, &assembler, optimized)); | 718 Code::FinalizeCode(function, &assembler, optimized)); |
| 719 code.set_is_optimized(optimized); | 719 code.set_is_optimized(optimized); |
| 720 | 720 |
| 721 const Array& intervals = graph_compiler.inlined_code_intervals(); | 721 const Array& intervals = graph_compiler.inlined_code_intervals(); |
| 722 INC_STAT(isolate, total_code_size, | 722 INC_STAT(isolate, total_code_size, |
| 723 intervals.Length() * sizeof(uword)); | 723 intervals.Length() * sizeof(uword)); |
| 724 code.set_inlined_intervals(intervals); | 724 code.SetInlinedIntervals(intervals); |
| 725 | 725 |
| 726 const Array& inlined_id_array = | 726 const Array& inlined_id_array = |
| 727 Array::Handle(isolate, graph_compiler.InliningIdToFunction()); | 727 Array::Handle(isolate, graph_compiler.InliningIdToFunction()); |
| 728 INC_STAT(isolate, total_code_size, | 728 INC_STAT(isolate, total_code_size, |
| 729 inlined_id_array.Length() * sizeof(uword)); | 729 inlined_id_array.Length() * sizeof(uword)); |
| 730 code.set_inlined_id_to_function(inlined_id_array); | 730 code.SetInlinedIdToFunction(inlined_id_array); |
| 731 | 731 |
| 732 graph_compiler.FinalizePcDescriptors(code); | 732 graph_compiler.FinalizePcDescriptors(code); |
| 733 code.set_deopt_info_array(deopt_info_array); | 733 code.set_deopt_info_array(deopt_info_array); |
| 734 | 734 |
| 735 graph_compiler.FinalizeStackmaps(code); | 735 graph_compiler.FinalizeStackmaps(code); |
| 736 graph_compiler.FinalizeVarDescriptors(code); | 736 graph_compiler.FinalizeVarDescriptors(code); |
| 737 graph_compiler.FinalizeExceptionHandlers(code); | 737 graph_compiler.FinalizeExceptionHandlers(code); |
| 738 graph_compiler.FinalizeStaticCallTargetsTable(code); | 738 graph_compiler.FinalizeStaticCallTargetsTable(code); |
| 739 | 739 |
| 740 if (optimized) { | 740 if (optimized) { |
| (...skipping 565 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1306 const Object& result = | 1306 const Object& result = |
| 1307 PassiveObject::Handle(isolate->object_store()->sticky_error()); | 1307 PassiveObject::Handle(isolate->object_store()->sticky_error()); |
| 1308 isolate->object_store()->clear_sticky_error(); | 1308 isolate->object_store()->clear_sticky_error(); |
| 1309 return result.raw(); | 1309 return result.raw(); |
| 1310 } | 1310 } |
| 1311 UNREACHABLE(); | 1311 UNREACHABLE(); |
| 1312 return Object::null(); | 1312 return Object::null(); |
| 1313 } | 1313 } |
| 1314 | 1314 |
| 1315 } // namespace dart | 1315 } // namespace dart |
| OLD | NEW |