Index: runtime/vm/flow_graph_builder.cc |
diff --git a/runtime/vm/flow_graph_builder.cc b/runtime/vm/flow_graph_builder.cc |
index 33fad69afca7109c49c68967186f8a48629d4fd8..96d82a53b6035bdbfd1311bc1260602049ba38b3 100644 |
--- a/runtime/vm/flow_graph_builder.cc |
+++ b/runtime/vm/flow_graph_builder.cc |
@@ -2005,9 +2005,9 @@ static intptr_t GetResultCidOfConstructor(ConstructorCallNode* node) { |
if (node->constructor().IsFactory()) { |
if ((function_class.Name() == Symbols::List().raw()) && |
(function.name() == Symbols::ListFactory().raw())) { |
- return kGrowableObjectArrayCid; |
- } else if ((function_class.Name() == Symbols::List().raw()) && |
- (function.name() == Symbols::ListFixedLengthFactory().raw())) { |
+ if (node->arguments()->length() == 0) { |
Florian Schneider
2013/02/27 12:26:55
style suggestion:
return (node->arguments()->leng
|
+ return kGrowableObjectArrayCid; |
+ } |
return kArrayCid; |
} else { |
if (IsRecognizedConstructor(function, Symbols::ObjectArray()) && |