| Index: runtime/vm/flow_graph_optimizer.cc
|
| ===================================================================
|
| --- runtime/vm/flow_graph_optimizer.cc (revision 18412)
|
| +++ runtime/vm/flow_graph_optimizer.cc (working copy)
|
| @@ -4274,7 +4274,7 @@
|
| if ((instr->recognized_kind() == MethodRecognizer::kObjectArrayLength) &&
|
| (instr->value()->definition()->IsCreateArray())) {
|
| const intptr_t length =
|
| - instr->value()->definition()->AsCreateArray()->ArgumentCount();
|
| + instr->value()->definition()->AsCreateArray()->num_elements();
|
| const Object& result = Smi::ZoneHandle(Smi::New(length));
|
| SetValue(instr, result);
|
| return;
|
|
|