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

Unified Diff: runtime/vm/flow_graph_builder.cc

Issue 11273111: Allow bound check elimination to eliminate checks when both array length and index boundaries are e… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: address Florian's comments Created 8 years, 2 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_optimizer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flow_graph_builder.cc
diff --git a/runtime/vm/flow_graph_builder.cc b/runtime/vm/flow_graph_builder.cc
index 734cd4c574d5e40968ec2b7ffcee8a53802683ff..3246f49da5568b716e96757761c80e0c0a831bc9 100644
--- a/runtime/vm/flow_graph_builder.cc
+++ b/runtime/vm/flow_graph_builder.cc
@@ -1737,7 +1737,9 @@ void EffectGraphVisitor::VisitConstructorCallNode(ConstructorCallNode* node) {
node->arguments()->names(),
arguments);
// List factories return kArrayCid or kGrowableObjectArrayCid.
- call->set_result_cid(GetResultCidOfConstructor(node));
+ const intptr_t result_cid = GetResultCidOfConstructor(node);
+ call->set_result_cid(result_cid);
+ call->set_is_known_constructor(result_cid != kDynamicCid);
ReturnDefinition(call);
return;
}
« no previous file with comments | « no previous file | runtime/vm/flow_graph_optimizer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698