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

Unified Diff: runtime/vm/flow_graph_builder.h

Issue 10021070: Move type check elimination from backend to graph builder in new compiler. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 8 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 6710)
+++ runtime/vm/flow_graph_builder.h (working copy)
@@ -156,6 +156,22 @@
Value* BuildInstantiatorTypeArguments(intptr_t token_index,
intptr_t start_index);
+ // Perform a type check on the given value.
+ void BuildAssertAssignable(intptr_t node_id,
+ intptr_t token_index,
+ Value* value,
+ const AbstractType& dst_type,
+ const String& dst_name,
+ intptr_t start_index);
+
+ // Perform a type check on the given value and return it.
+ Value* BuildAssignableValue(intptr_t node_id,
+ intptr_t token_index,
+ Value* value,
+ const AbstractType& dst_type,
+ const String& dst_name,
+ intptr_t start_index);
+
virtual void BuildInstanceOf(ComparisonNode* node);
bool MustSaveRestoreContext(SequenceNode* node) const;
@@ -211,6 +227,7 @@
// Visit functions overridden by this class.
virtual void VisitLiteralNode(LiteralNode* node);
+ virtual void VisitAssignableNode(AssignableNode* node);
virtual void VisitIncrOpLocalNode(IncrOpLocalNode* node);
virtual void VisitIncrOpInstanceFieldNode(IncrOpInstanceFieldNode* node);
virtual void VisitIncrOpIndexedNode(IncrOpIndexedNode* node);
« 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