Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(93)

Side by Side Diff: runtime/vm/flow_graph_compiler.cc

Issue 23691024: If a rethrow is encountered in the catch block, then its handler must be marked that it needs stack… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698