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

Unified Diff: runtime/vm/intermediate_language.h

Issue 9978014: Implement closure with type arguments. (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 | « runtime/vm/flow_graph_compiler_x64.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/intermediate_language.h
===================================================================
--- runtime/vm/intermediate_language.h (revision 6195)
+++ runtime/vm/intermediate_language.h (working copy)
@@ -650,15 +650,19 @@
class CreateClosureComp : public Computation {
public:
- explicit CreateClosureComp(ClosureNode* node) : ast_node_(*node) { }
+ // 'type_arguments' is null if function() does not require type arguments.
+ CreateClosureComp(ClosureNode* node, Value* type_arguments)
+ : ast_node_(*node), type_arguments_(type_arguments) { }
DECLARE_COMPUTATION(CreateClosure)
intptr_t token_index() const { return ast_node_.token_index(); }
const Function& function() const { return ast_node_.function(); }
+ Value* type_arguments() const { return type_arguments_; }
private:
const ClosureNode& ast_node_;
+ Value* type_arguments_;
DISALLOW_COPY_AND_ASSIGN(CreateClosureComp);
};
« no previous file with comments | « runtime/vm/flow_graph_compiler_x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698