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

Unified Diff: runtime/vm/flow_graph_builder.cc

Issue 11312122: Change List constructors. (Closed) Base URL: https://dart.googlecode.com/svn/experimental/lib_v2/dart
Patch Set: Reupload. Adapt code for List.fixedLength. Created 8 years 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/lib/string_base.dart ('k') | runtime/vm/snapshot_test.dart » ('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 96d4cb875cabda6af08bb254dbc734aafa60b77e..9e635f17045b38669c4a5c4bd76a2ce9e42f8c6d 100644
--- a/runtime/vm/flow_graph_builder.cc
+++ b/runtime/vm/flow_graph_builder.cc
@@ -1769,9 +1769,7 @@ static intptr_t GetResultCidOfConstructor(ConstructorCallNode* node) {
// GrowableObjectArray. However if there is an argument the result
// is not guaranteed to be a fixed size array because the argument
// can be null.
- if (node->arguments()->length() == 0) {
- return kGrowableObjectArrayCid;
- }
+ return kGrowableObjectArrayCid;
} else {
if (IsRecognizedConstructor(function,
String::Handle(Symbols::ObjectArray())) &&
« no previous file with comments | « runtime/lib/string_base.dart ('k') | runtime/vm/snapshot_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698