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); |
586 graph_compiler->FinalizeStaticCallTargetsTable(code); | 587 graph_compiler->FinalizeStaticCallTargetsTable(code); |
587 graph_compiler->FinalizeCodeSourceMap(code); | 588 graph_compiler->FinalizeCodeSourceMap(code); |
588 | 589 |
589 if (optimized()) { | 590 if (optimized()) { |
590 bool code_was_installed = false; | 591 bool code_was_installed = false; |
591 // Installs code while at safepoint. | 592 // Installs code while at safepoint. |
592 if (thread()->IsMutatorThread()) { | 593 if (thread()->IsMutatorThread()) { |
593 const bool is_osr = osr_id() != Compiler::kNoOSRDeoptId; | 594 const bool is_osr = osr_id() != Compiler::kNoOSRDeoptId; |
594 function.InstallOptimizedCode(code, is_osr); | 595 function.InstallOptimizedCode(code, is_osr); |
595 code_was_installed = true; | 596 code_was_installed = true; |
(...skipping 1699 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2295 | 2296 |
2296 | 2297 |
2297 bool BackgroundCompiler::IsDisabled() { | 2298 bool BackgroundCompiler::IsDisabled() { |
2298 UNREACHABLE(); | 2299 UNREACHABLE(); |
2299 return true; | 2300 return true; |
2300 } | 2301 } |
2301 | 2302 |
2302 #endif // DART_PRECOMPILED_RUNTIME | 2303 #endif // DART_PRECOMPILED_RUNTIME |
2303 | 2304 |
2304 } // namespace dart | 2305 } // namespace dart |
OLD | NEW |