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

Side by Side Diff: runtime/vm/flow_graph_builder.h

Issue 262883005: Simplify flow graph building for instantiator. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: more small simplfications Created 6 years, 7 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
« no previous file with comments | « no previous file | runtime/vm/flow_graph_builder.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef VM_FLOW_GRAPH_BUILDER_H_ 5 #ifndef VM_FLOW_GRAPH_BUILDER_H_
6 #define VM_FLOW_GRAPH_BUILDER_H_ 6 #define VM_FLOW_GRAPH_BUILDER_H_
7 7
8 #include "platform/assert.h" 8 #include "platform/assert.h"
9 #include "platform/globals.h" 9 #include "platform/globals.h"
10 #include "vm/allocation.h" 10 #include "vm/allocation.h"
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 intptr_t token_pos, 342 intptr_t token_pos,
343 const TypeArguments& type_arguments); 343 const TypeArguments& type_arguments);
344 344
345 void BuildTypecheckPushArguments( 345 void BuildTypecheckPushArguments(
346 intptr_t token_pos, 346 intptr_t token_pos,
347 PushArgumentInstr** push_instantiator, 347 PushArgumentInstr** push_instantiator,
348 PushArgumentInstr** push_instantiator_type_arguments); 348 PushArgumentInstr** push_instantiator_type_arguments);
349 void BuildTypecheckArguments(intptr_t token_pos, 349 void BuildTypecheckArguments(intptr_t token_pos,
350 Value** instantiator, 350 Value** instantiator,
351 Value** instantiator_type_arguments); 351 Value** instantiator_type_arguments);
352 Value* BuildInstantiator(); 352 Value* BuildInstantiator(const Class& instantiator_class);
353 Value* BuildInstantiatorTypeArguments(intptr_t token_pos, 353 Value* BuildInstantiatorTypeArguments(intptr_t token_pos,
354 const Class& instantiator_class, 354 const Class& instantiator_class,
355 Value* instantiator); 355 Value* instantiator);
356 356
357 // Perform a type check on the given value. 357 // Perform a type check on the given value.
358 AssertAssignableInstr* BuildAssertAssignable(intptr_t token_pos, 358 AssertAssignableInstr* BuildAssertAssignable(intptr_t token_pos,
359 Value* value, 359 Value* value,
360 const AbstractType& dst_type, 360 const AbstractType& dst_type,
361 const String& dst_name); 361 const String& dst_name);
362 362
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
567 // Output parameters. 567 // Output parameters.
568 GrowableArray<TargetEntryInstr**> true_successor_addresses_; 568 GrowableArray<TargetEntryInstr**> true_successor_addresses_;
569 GrowableArray<TargetEntryInstr**> false_successor_addresses_; 569 GrowableArray<TargetEntryInstr**> false_successor_addresses_;
570 570
571 intptr_t condition_token_pos_; 571 intptr_t condition_token_pos_;
572 }; 572 };
573 573
574 } // namespace dart 574 } // namespace dart
575 575
576 #endif // VM_FLOW_GRAPH_BUILDER_H_ 576 #endif // VM_FLOW_GRAPH_BUILDER_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/flow_graph_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698