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

Unified Diff: runtime/vm/intermediate_language.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 | « 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 6710)
+++ runtime/vm/intermediate_language.h (working copy)
@@ -143,14 +143,14 @@
intptr_t token_index,
intptr_t try_index,
Value* value,
- Value* type_arguments, // Can be NULL.
+ Value* instantiator_type_arguments, // Can be NULL.
const AbstractType& dst_type,
const String& dst_name)
: node_id_(node_id),
token_index_(token_index),
try_index_(try_index),
value_(value),
- type_arguments_(type_arguments),
+ instantiator_type_arguments_(instantiator_type_arguments),
dst_type_(dst_type),
dst_name_(dst_name) {
ASSERT(value_ != NULL);
@@ -164,7 +164,9 @@
intptr_t token_index() const { return token_index_; }
intptr_t try_index() const { return try_index_; }
Value* value() const { return value_; }
- Value* type_arguments() const { return type_arguments_; }
+ Value* instantiator_type_arguments() const {
+ return instantiator_type_arguments_;
+ }
const AbstractType& dst_type() const { return dst_type_; }
const String& dst_name() const { return dst_name_; }
@@ -173,7 +175,7 @@
const intptr_t token_index_;
const intptr_t try_index_;
Value* value_;
- Value* type_arguments_;
+ Value* instantiator_type_arguments_;
const AbstractType& dst_type_;
const String& dst_name_;
@@ -767,7 +769,13 @@
CreateArrayComp(ArrayNode* node,
intptr_t try_index,
ZoneGrowableArray<Value*>* elements)
- : ast_node_(*node), try_index_(try_index), elements_(elements) { }
+ : ast_node_(*node), try_index_(try_index), elements_(elements) {
+#if defined(DEBUG)
+ for (int i = 0; i < ElementCount(); ++i) {
+ ASSERT(ElementAt(i) != NULL);
+ }
+#endif
+ }
DECLARE_COMPUTATION(CreateArray)
« 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