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

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

Issue 15564004: Refactor the IL for object allocation with type arguments. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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
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 "vm/allocation.h" 8 #include "vm/allocation.h"
9 #include "vm/ast.h" 9 #include "vm/ast.h"
10 #include "vm/growable_array.h" 10 #include "vm/growable_array.h"
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 Value* BuildInstantiatedTypeArguments( 256 Value* BuildInstantiatedTypeArguments(
257 intptr_t token_pos, 257 intptr_t token_pos,
258 const AbstractTypeArguments& type_arguments); 258 const AbstractTypeArguments& type_arguments);
259 259
260 // Creates a possibly uninstantiated type argument vector and the type 260 // Creates a possibly uninstantiated type argument vector and the type
261 // argument vector of the instantiator used in 261 // argument vector of the instantiator used in
262 // preparation of a constructor call. 262 // preparation of a constructor call.
263 // May be called only if allocating an object of a parameterized class. 263 // May be called only if allocating an object of a parameterized class.
264 void BuildConstructorTypeArguments( 264 void BuildConstructorTypeArguments(
265 ConstructorCallNode* node, 265 ConstructorCallNode* node,
266 Value** type_arguments,
267 Value** instantiator,
268 ZoneGrowableArray<PushArgumentInstr*>* call_arguments); 266 ZoneGrowableArray<PushArgumentInstr*>* call_arguments);
269 267
270 void BuildTypecheckPushArguments( 268 void BuildTypecheckPushArguments(
271 intptr_t token_pos, 269 intptr_t token_pos,
272 PushArgumentInstr** push_instantiator, 270 PushArgumentInstr** push_instantiator,
273 PushArgumentInstr** push_instantiator_type_arguments); 271 PushArgumentInstr** push_instantiator_type_arguments);
274 void BuildTypecheckArguments(intptr_t token_pos, 272 void BuildTypecheckArguments(intptr_t token_pos,
275 Value** instantiator, 273 Value** instantiator,
276 Value** instantiator_type_arguments); 274 Value** instantiator_type_arguments);
277 Value* BuildInstantiator(); 275 Value* BuildInstantiator();
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
481 // Output parameters. 479 // Output parameters.
482 GrowableArray<TargetEntryInstr**> true_successor_addresses_; 480 GrowableArray<TargetEntryInstr**> true_successor_addresses_;
483 GrowableArray<TargetEntryInstr**> false_successor_addresses_; 481 GrowableArray<TargetEntryInstr**> false_successor_addresses_;
484 482
485 intptr_t condition_token_pos_; 483 intptr_t condition_token_pos_;
486 }; 484 };
487 485
488 } // namespace dart 486 } // namespace dart
489 487
490 #endif // VM_FLOW_GRAPH_BUILDER_H_ 488 #endif // VM_FLOW_GRAPH_BUILDER_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/flow_graph_builder.cc » ('j') | runtime/vm/intermediate_language_arm.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698