mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-25 15:37:52 +01:00
Set flag --wasm-gc only for GC tests to improve performance.
This commit is contained in:
parent
53319942ae
commit
e3eb66efc9
@ -537,7 +537,11 @@ public class WasmRule extends TemporaryFolder {
|
|||||||
compiler.setProperty( JWebAssembly.WASM_USE_GC, null );
|
compiler.setProperty( JWebAssembly.WASM_USE_GC, null );
|
||||||
System.clearProperty( "SpiderMonkey" );
|
System.clearProperty( "SpiderMonkey" );
|
||||||
}
|
}
|
||||||
return new ProcessBuilder( spiderMonkey.getCommand(), "--wasm-gc", /*"--wasm-bigint",*/ script.getAbsolutePath() );
|
ProcessBuilder process = new ProcessBuilder( spiderMonkey.getCommand(), /*"--wasm-bigint",*/ script.getAbsolutePath() );
|
||||||
|
if( gc ) {
|
||||||
|
process.command().add( 1, "--wasm-gc" );
|
||||||
|
}
|
||||||
|
return process;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user