nitc :: JavaCompilerVisitor :: send
method
with arguments
# Generate a polymorphic send for `method` with `arguments`
fun send(mmethod: MMethod, arguments: Array[RuntimeVariable]): nullable RuntimeVariable do
# Shortcut calls on primitives
if arguments.first.mcasttype.is_java_primitive then
return monomorphic_send(mmethod, arguments.first.mcasttype, arguments)
end
# Polymorphic send
return table_send(mmethod, arguments)
end
src/compiler/java_compiler.nit:565,2--573,4