| Index: runtime/vm/precompiler.cc
|
| diff --git a/runtime/vm/precompiler.cc b/runtime/vm/precompiler.cc
|
| index 657af552de406c2455dacf5028ad9892f11afa11..dcf3519c1d8c11322b00e788a3a64fdcbe6c7b7b 100644
|
| --- a/runtime/vm/precompiler.cc
|
| +++ b/runtime/vm/precompiler.cc
|
| @@ -1932,11 +1932,9 @@ void Precompiler::SwitchICCalls() {
|
| if (entry_.IsICData()) {
|
| ic_ ^= entry_.raw();
|
|
|
| - // Only single check ICs are SwitchableCalls that use the ICLookup
|
| - // stubs. Some operators like + have ICData that check the types of
|
| - // arguments in addition to the receiver and use special stubs
|
| - // with fast paths for Smi operations.
|
| - if (ic_.NumArgsTested() != 1) continue;
|
| + // SwitchableCalls use single-check ICs. No other kind of IC call is
|
| + // generated in precompilation mode.
|
| + ASSERT(ic_.NumArgsTested() == 1);
|
|
|
| for (intptr_t j = 0; j < ic_.NumberOfChecks(); j++) {
|
| entry_ = ic_.GetTargetOrCodeAt(j);
|
|
|