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

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

Issue 11883023: Collect debugging info for catch clauses (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 11 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) 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/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 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 for (intptr_t i = 0; i < slow_path_code_.length(); i++) { 289 for (intptr_t i = 0; i < slow_path_code_.length(); i++) {
290 slow_path_code_[i]->EmitNativeCode(this); 290 slow_path_code_[i]->EmitNativeCode(this);
291 } 291 }
292 for (intptr_t i = 0; i < deopt_infos_.length(); i++) { 292 for (intptr_t i = 0; i < deopt_infos_.length(); i++) {
293 deopt_infos_[i]->GenerateCode(this, i); 293 deopt_infos_[i]->GenerateCode(this, i);
294 } 294 }
295 } 295 }
296 296
297 297
298 void FlowGraphCompiler::AddExceptionHandler(intptr_t try_index, 298 void FlowGraphCompiler::AddExceptionHandler(intptr_t try_index,
299 intptr_t pc_offset) { 299 intptr_t outer_try_index,
300 exception_handlers_list_->AddHandler(try_index, pc_offset); 300 intptr_t pc_offset,
301 const Array& handler_types) {
302 exception_handlers_list_->AddHandler(try_index,
303 outer_try_index,
304 pc_offset,
305 handler_types);
301 } 306 }
302 307
303 308
304 // Uses current pc position and try-index. 309 // Uses current pc position and try-index.
305 void FlowGraphCompiler::AddCurrentDescriptor(PcDescriptors::Kind kind, 310 void FlowGraphCompiler::AddCurrentDescriptor(PcDescriptors::Kind kind,
306 intptr_t deopt_id, 311 intptr_t deopt_id,
307 intptr_t token_pos) { 312 intptr_t token_pos) {
308 pc_descriptors_list()->AddDescriptor(kind, 313 pc_descriptors_list()->AddDescriptor(kind,
309 assembler()->CodeSize(), 314 assembler()->CodeSize(),
310 deopt_id, 315 deopt_id,
(...skipping 825 matching lines...) Expand 10 before | Expand all | Expand 10 after
1136 const AbstractTypeArguments& type_arguments = 1141 const AbstractTypeArguments& type_arguments =
1137 AbstractTypeArguments::Handle(type.arguments()); 1142 AbstractTypeArguments::Handle(type.arguments());
1138 const bool is_raw_type = type_arguments.IsNull() || 1143 const bool is_raw_type = type_arguments.IsNull() ||
1139 type_arguments.IsRaw(type_arguments.Length()); 1144 type_arguments.IsRaw(type_arguments.Length());
1140 return is_raw_type; 1145 return is_raw_type;
1141 } 1146 }
1142 return true; 1147 return true;
1143 } 1148 }
1144 1149
1145 } // namespace dart 1150 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698