| Index: runtime/vm/flow_graph_compiler.cc
|
| ===================================================================
|
| --- runtime/vm/flow_graph_compiler.cc (revision 39414)
|
| +++ runtime/vm/flow_graph_compiler.cc (working copy)
|
| @@ -159,7 +159,7 @@
|
| ic_data = current->AsInstanceCall()->ic_data();
|
| ASSERT(ic_data != NULL);
|
| }
|
| - if ((ic_data != NULL) && (ic_data->NumberOfChecks() == 0)) {
|
| + if ((ic_data != NULL) && (ic_data->NumberOfUsedChecks() == 0)) {
|
| may_reoptimize_ = true;
|
| }
|
| if (is_leaf &&
|
| @@ -836,10 +836,10 @@
|
| LocationSummary* locs,
|
| const ICData& ic_data) {
|
| ASSERT(!ic_data.IsNull());
|
| - ASSERT(FLAG_propagate_ic_data || (ic_data.NumberOfChecks() == 0));
|
| + ASSERT(FLAG_propagate_ic_data || (ic_data.NumberOfUsedChecks() == 0));
|
| uword label_address = 0;
|
| StubCode* stub_code = isolate()->stub_code();
|
| - if (is_optimizing() && (ic_data.NumberOfChecks() == 0)) {
|
| + if (is_optimizing() && (ic_data.NumberOfUsedChecks() == 0)) {
|
| if (ic_data.IsClosureCall()) {
|
| // This IC call may be closure call only.
|
| label_address = stub_code->ClosureCallInlineCacheEntryPoint();
|
|
|