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 556 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
567 | 567 |
568 const Array& inlined_id_to_token_pos = | 568 const Array& inlined_id_to_token_pos = |
569 Array::Handle(zone, graph_compiler->InliningIdToTokenPos()); | 569 Array::Handle(zone, graph_compiler->InliningIdToTokenPos()); |
570 INC_STAT(thread(), total_code_size, | 570 INC_STAT(thread(), total_code_size, |
571 inlined_id_to_token_pos.Length() * sizeof(uword)); | 571 inlined_id_to_token_pos.Length() * sizeof(uword)); |
572 code.SetInlinedIdToTokenPos(inlined_id_to_token_pos); | 572 code.SetInlinedIdToTokenPos(inlined_id_to_token_pos); |
573 | 573 |
574 graph_compiler->FinalizePcDescriptors(code); | 574 graph_compiler->FinalizePcDescriptors(code); |
575 code.set_deopt_info_array(deopt_info_array); | 575 code.set_deopt_info_array(deopt_info_array); |
576 | 576 |
577 graph_compiler->FinalizeStackmaps(code); | 577 graph_compiler->FinalizeStackMaps(code); |
578 graph_compiler->FinalizeVarDescriptors(code); | 578 graph_compiler->FinalizeVarDescriptors(code); |
579 graph_compiler->FinalizeExceptionHandlers(code); | 579 graph_compiler->FinalizeExceptionHandlers(code); |
580 graph_compiler->FinalizeStaticCallTargetsTable(code); | 580 graph_compiler->FinalizeStaticCallTargetsTable(code); |
581 | 581 |
582 #if !defined(PRODUCT) | 582 #if !defined(PRODUCT) |
583 // Set the code source map after setting the inlined information because | 583 // Set the code source map after setting the inlined information because |
584 // we use the inlined information when printing. | 584 // we use the inlined information when printing. |
585 const CodeSourceMap& code_source_map = CodeSourceMap::Handle( | 585 const CodeSourceMap& code_source_map = CodeSourceMap::Handle( |
586 zone, graph_compiler->code_source_map_builder()->Finalize()); | 586 zone, graph_compiler->code_source_map_builder()->Finalize()); |
587 code.set_code_source_map(code_source_map); | 587 code.set_code_source_map(code_source_map); |
(...skipping 1728 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2316 | 2316 |
2317 | 2317 |
2318 bool BackgroundCompiler::IsDisabled() { | 2318 bool BackgroundCompiler::IsDisabled() { |
2319 UNREACHABLE(); | 2319 UNREACHABLE(); |
2320 return true; | 2320 return true; |
2321 } | 2321 } |
2322 | 2322 |
2323 #endif // DART_PRECOMPILED_RUNTIME | 2323 #endif // DART_PRECOMPILED_RUNTIME |
2324 | 2324 |
2325 } // namespace dart | 2325 } // namespace dart |
OLD | NEW |