| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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/globals.h" // Needed here to get TARGET_ARCH_XXX. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_XXX. |
| 6 | 6 |
| 7 #include "vm/flow_graph_compiler.h" | 7 #include "vm/flow_graph_compiler.h" |
| 8 | 8 |
| 9 #include "vm/bit_vector.h" | 9 #include "vm/bit_vector.h" |
| 10 #include "vm/cha.h" | 10 #include "vm/cha.h" |
| (...skipping 653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 664 BeginCodeSourceRange(); | 664 BeginCodeSourceRange(); |
| 665 deopt_infos_[i]->GenerateCode(this, i); | 665 deopt_infos_[i]->GenerateCode(this, i); |
| 666 EndCodeSourceRange(TokenPosition::kDeferredDeoptInfo); | 666 EndCodeSourceRange(TokenPosition::kDeferredDeoptInfo); |
| 667 } | 667 } |
| 668 } | 668 } |
| 669 | 669 |
| 670 | 670 |
| 671 void FlowGraphCompiler::AddExceptionHandler(intptr_t try_index, | 671 void FlowGraphCompiler::AddExceptionHandler(intptr_t try_index, |
| 672 intptr_t outer_try_index, | 672 intptr_t outer_try_index, |
| 673 intptr_t pc_offset, | 673 intptr_t pc_offset, |
| 674 TokenPosition token_pos, | |
| 675 bool is_generated, | |
| 676 const Array& handler_types, | 674 const Array& handler_types, |
| 677 bool needs_stacktrace) { | 675 bool needs_stacktrace) { |
| 678 exception_handlers_list_->AddHandler(try_index, outer_try_index, pc_offset, | 676 exception_handlers_list_->AddHandler(try_index, outer_try_index, pc_offset, |
| 679 token_pos, is_generated, handler_types, | 677 handler_types, needs_stacktrace); |
| 680 needs_stacktrace); | |
| 681 } | 678 } |
| 682 | 679 |
| 683 | 680 |
| 684 void FlowGraphCompiler::SetNeedsStackTrace(intptr_t try_index) { | 681 void FlowGraphCompiler::SetNeedsStackTrace(intptr_t try_index) { |
| 685 exception_handlers_list_->SetNeedsStackTrace(try_index); | 682 exception_handlers_list_->SetNeedsStackTrace(try_index); |
| 686 } | 683 } |
| 687 | 684 |
| 688 | 685 |
| 689 void FlowGraphCompiler::AddDescriptor(RawPcDescriptors::Kind kind, | 686 void FlowGraphCompiler::AddDescriptor(RawPcDescriptors::Kind kind, |
| 690 intptr_t pc_offset, | 687 intptr_t pc_offset, |
| (...skipping 1195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1886 | 1883 |
| 1887 | 1884 |
| 1888 void FlowGraphCompiler::FrameStateClear() { | 1885 void FlowGraphCompiler::FrameStateClear() { |
| 1889 ASSERT(!is_optimizing()); | 1886 ASSERT(!is_optimizing()); |
| 1890 frame_state_.TruncateTo(0); | 1887 frame_state_.TruncateTo(0); |
| 1891 } | 1888 } |
| 1892 #endif // defined(DEBUG) && !defined(TARGET_ARCH_DBC) | 1889 #endif // defined(DEBUG) && !defined(TARGET_ARCH_DBC) |
| 1893 | 1890 |
| 1894 | 1891 |
| 1895 } // namespace dart | 1892 } // namespace dart |
| OLD | NEW |