| 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/cha.h" | 9 #include "vm/cha.h" |
| 10 #include "vm/dart_entry.h" | 10 #include "vm/dart_entry.h" |
| (...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 318 const Array& handler_types, | 318 const Array& handler_types, |
| 319 bool needs_stacktrace) { | 319 bool needs_stacktrace) { |
| 320 exception_handlers_list_->AddHandler(try_index, | 320 exception_handlers_list_->AddHandler(try_index, |
| 321 outer_try_index, | 321 outer_try_index, |
| 322 pc_offset, | 322 pc_offset, |
| 323 handler_types, | 323 handler_types, |
| 324 needs_stacktrace); | 324 needs_stacktrace); |
| 325 } | 325 } |
| 326 | 326 |
| 327 | 327 |
| 328 void FlowGraphCompiler::SetNeedsStacktrace(intptr_t try_index) { |
| 329 exception_handlers_list_->SetNeedsStacktrace(try_index); |
| 330 } |
| 331 |
| 332 |
| 328 // Uses current pc position and try-index. | 333 // Uses current pc position and try-index. |
| 329 void FlowGraphCompiler::AddCurrentDescriptor(PcDescriptors::Kind kind, | 334 void FlowGraphCompiler::AddCurrentDescriptor(PcDescriptors::Kind kind, |
| 330 intptr_t deopt_id, | 335 intptr_t deopt_id, |
| 331 intptr_t token_pos) { | 336 intptr_t token_pos) { |
| 332 pc_descriptors_list()->AddDescriptor(kind, | 337 pc_descriptors_list()->AddDescriptor(kind, |
| 333 assembler()->CodeSize(), | 338 assembler()->CodeSize(), |
| 334 deopt_id, | 339 deopt_id, |
| 335 token_pos, | 340 token_pos, |
| 336 CurrentTryIndex()); | 341 CurrentTryIndex()); |
| 337 } | 342 } |
| (...skipping 802 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1140 | 1145 |
| 1141 for (int i = 0; i < len; i++) { | 1146 for (int i = 0; i < len; i++) { |
| 1142 sorted->Add(CidTarget(ic_data.GetReceiverClassIdAt(i), | 1147 sorted->Add(CidTarget(ic_data.GetReceiverClassIdAt(i), |
| 1143 &Function::ZoneHandle(ic_data.GetTargetAt(i)), | 1148 &Function::ZoneHandle(ic_data.GetTargetAt(i)), |
| 1144 ic_data.GetCountAt(i))); | 1149 ic_data.GetCountAt(i))); |
| 1145 } | 1150 } |
| 1146 sorted->Sort(HighestCountFirst); | 1151 sorted->Sort(HighestCountFirst); |
| 1147 } | 1152 } |
| 1148 | 1153 |
| 1149 } // namespace dart | 1154 } // namespace dart |
| OLD | NEW |