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 565 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
576 // after generating unoptimized code. | 576 // after generating unoptimized code. |
577 function.set_usage_counter(INT_MIN); | 577 function.set_usage_counter(INT_MIN); |
578 } | 578 } |
579 | 579 |
580 graph_compiler->FinalizePcDescriptors(code); | 580 graph_compiler->FinalizePcDescriptors(code); |
581 code.set_deopt_info_array(deopt_info_array); | 581 code.set_deopt_info_array(deopt_info_array); |
582 | 582 |
583 graph_compiler->FinalizeStackMaps(code); | 583 graph_compiler->FinalizeStackMaps(code); |
584 graph_compiler->FinalizeVarDescriptors(code); | 584 graph_compiler->FinalizeVarDescriptors(code); |
585 graph_compiler->FinalizeExceptionHandlers(code); | 585 graph_compiler->FinalizeExceptionHandlers(code); |
586 graph_compiler->FinalizeCatchEntryStateMap(code); | |
587 graph_compiler->FinalizeStaticCallTargetsTable(code); | 586 graph_compiler->FinalizeStaticCallTargetsTable(code); |
588 graph_compiler->FinalizeCodeSourceMap(code); | 587 graph_compiler->FinalizeCodeSourceMap(code); |
589 | 588 |
590 if (optimized()) { | 589 if (optimized()) { |
591 bool code_was_installed = false; | 590 bool code_was_installed = false; |
592 // Installs code while at safepoint. | 591 // Installs code while at safepoint. |
593 if (thread()->IsMutatorThread()) { | 592 if (thread()->IsMutatorThread()) { |
594 const bool is_osr = osr_id() != Compiler::kNoOSRDeoptId; | 593 const bool is_osr = osr_id() != Compiler::kNoOSRDeoptId; |
595 function.InstallOptimizedCode(code, is_osr); | 594 function.InstallOptimizedCode(code, is_osr); |
596 code_was_installed = true; | 595 code_was_installed = true; |
(...skipping 1699 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2296 | 2295 |
2297 | 2296 |
2298 bool BackgroundCompiler::IsDisabled() { | 2297 bool BackgroundCompiler::IsDisabled() { |
2299 UNREACHABLE(); | 2298 UNREACHABLE(); |
2300 return true; | 2299 return true; |
2301 } | 2300 } |
2302 | 2301 |
2303 #endif // DART_PRECOMPILED_RUNTIME | 2302 #endif // DART_PRECOMPILED_RUNTIME |
2304 | 2303 |
2305 } // namespace dart | 2304 } // namespace dart |
OLD | NEW |