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

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

Issue 14106013: Further improve type optimization reusing the type argument vector of the (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
« 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 "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 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 267
268 void BuildTypecheckPushArguments( 268 void BuildTypecheckPushArguments(
269 intptr_t token_pos, 269 intptr_t token_pos,
270 PushArgumentInstr** push_instantiator, 270 PushArgumentInstr** push_instantiator,
271 PushArgumentInstr** push_instantiator_type_arguments); 271 PushArgumentInstr** push_instantiator_type_arguments);
272 void BuildTypecheckArguments(intptr_t token_pos, 272 void BuildTypecheckArguments(intptr_t token_pos,
273 Value** instantiator, 273 Value** instantiator,
274 Value** instantiator_type_arguments); 274 Value** instantiator_type_arguments);
275 Value* BuildInstantiator(); 275 Value* BuildInstantiator();
276 Value* BuildInstantiatorTypeArguments(intptr_t token_pos, 276 Value* BuildInstantiatorTypeArguments(intptr_t token_pos,
277 const Class& instantiator_class,
277 Value* instantiator); 278 Value* instantiator);
278 279
279 // Perform a type check on the given value. 280 // Perform a type check on the given value.
280 AssertAssignableInstr* BuildAssertAssignable(intptr_t token_pos, 281 AssertAssignableInstr* BuildAssertAssignable(intptr_t token_pos,
281 Value* value, 282 Value* value,
282 const AbstractType& dst_type, 283 const AbstractType& dst_type,
283 const String& dst_name); 284 const String& dst_name);
284 285
285 // Perform a type check on the given value and return it. 286 // Perform a type check on the given value and return it.
286 Value* BuildAssignableValue(intptr_t token_pos, 287 Value* BuildAssignableValue(intptr_t token_pos,
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
478 // Output parameters. 479 // Output parameters.
479 GrowableArray<TargetEntryInstr**> true_successor_addresses_; 480 GrowableArray<TargetEntryInstr**> true_successor_addresses_;
480 GrowableArray<TargetEntryInstr**> false_successor_addresses_; 481 GrowableArray<TargetEntryInstr**> false_successor_addresses_;
481 482
482 intptr_t condition_token_pos_; 483 intptr_t condition_token_pos_;
483 }; 484 };
484 485
485 } // namespace dart 486 } // namespace dart
486 487
487 #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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698