Index: runtime/vm/intermediate_language_dbc.cc |
diff --git a/runtime/vm/intermediate_language_dbc.cc b/runtime/vm/intermediate_language_dbc.cc |
index d4210c08cb4a116d3fa6f542b2feb3cb028c1041..31857939f29ba7334fcee40c2a9e87b5585540d5 100644 |
--- a/runtime/vm/intermediate_language_dbc.cc |
+++ b/runtime/vm/intermediate_language_dbc.cc |
@@ -251,10 +251,11 @@ EMIT_NATIVE_CODE(PolymorphicInstanceCall, |
} |
if (using_ranges) { |
- __ PushPolymorphicInstanceCallByRange(instance_call()->ArgumentCount(), |
- length); |
+ __ PushPolymorphicInstanceCallByRange( |
+ instance_call()->ArgumentCountWithoutTypeArgs(), length); |
} else { |
- __ PushPolymorphicInstanceCall(instance_call()->ArgumentCount(), length); |
+ __ PushPolymorphicInstanceCall( |
+ instance_call()->ArgumentCountWithoutTypeArgs(), length); |
} |
for (intptr_t i = 0; i < length; i++) { |
const Function& target = *targets_.TargetAt(i)->target; |