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

Unified Diff: runtime/vm/flow_graph_builder.h

Issue 9703080: Split the computation of uninstantiated type arguments between the factory case (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | runtime/vm/flow_graph_builder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flow_graph_builder.h
===================================================================
--- runtime/vm/flow_graph_builder.h (revision 5536)
+++ runtime/vm/flow_graph_builder.h (working copy)
@@ -98,13 +98,13 @@
// receiver and loads the value. The receiver will be named with
// start_index, the temporary index of the value is returned (always
// start_index+1).
- int BuildIncrOpFieldLoad(IncrOpInstanceFieldNode* node, int start_index);
+ int BuildIncrOpFieldLoad(IncrOpInstanceFieldNode* node, intptr_t start_index);
// Build the load part of an indexed increment. Translates the receiver
// and index and loads the value. The receiver will be named with
// start_index, the index with start_index+1, and the temporary index of
// the value is returned (always start_index+2).
- int BuildIncrOpIndexedLoad(IncrOpIndexedNode* node, int start_index);
+ int BuildIncrOpIndexedLoad(IncrOpIndexedNode* node, intptr_t start_index);
// Build the increment part of an increment operation (add or subtract 1).
// The original value is expected to be named with start_index-1, and the
@@ -112,20 +112,25 @@
void BuildIncrOpIncrement(Token::Kind kind,
intptr_t node_id,
intptr_t token_index,
- int start_index);
+ intptr_t start_index);
- // Creates type arguments (one or two values in 'args') used in preparation
- // of a constructor or factory call.
- // For factory call instantiates and returns type argument vector in 'args'.
- // For constructor call returns type arguments and type arguments of the
- // instantiator.
+ // Creates an instantiated type argument vector used in preparation of a
+ // factory call.
// May be called only if allocating an object of a parameterized class.
- void BuildTypeArguments(ConstructorCallNode* node,
- ZoneGrowableArray<Value*>* args);
+ Value* BuildFactoryTypeArguments(ConstructorCallNode* node,
+ intptr_t start_index);
+ // Creates a possibly uninstantiated type argument vector and the type
+ // argument vector of the instantiator (two values in 'args') used in
+ // preparation of a constructor call.
+ // May be called only if allocating an object of a parameterized class.
+ void BuildConstructorTypeArguments(ConstructorCallNode* node,
+ intptr_t start_index,
+ ZoneGrowableArray<Value*>* args);
+
// Returns the value of the type arguments of the instantiator.
- Value* GenerateInstantiatorTypeArguments(intptr_t token_index,
- intptr_t type_arguments);
+ Value* BuildInstantiatorTypeArguments(intptr_t token_index,
+ intptr_t start_index);
void CloseFragment() { exit_ = NULL; }
intptr_t AllocateTempIndex() { return temp_index_++; }
« 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