Move duplicated code from implementations of writeVirtualFunctionCall() into the caller WasmCallIndirectInstruction

This commit is contained in:
Volker Berlin 2019-09-13 20:34:44 +02:00
parent d4a2214131
commit a458fd2c2a

View File

@ -659,6 +659,7 @@ public class TextModuleWriter extends ModuleWriter {
protected void writeVirtualFunctionCall( FunctionName name, AnyType type ) throws IOException {
callIndirect = true;
newline( methodOutput );
if(spiderMonkey)
methodOutput.append( "call_indirect $t" ).append( functions.get( name.signatureName ).typeId ); // https://bugzilla.mozilla.org/show_bug.cgi?id=1556779
else