mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-15 02:44:47 +01:00
add script engine Wat2WasmGC
This commit is contained in:
parent
de1befcc1d
commit
87af94232c
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2017 - 2020 Volker Berlin (i-net software)
|
||||
* Copyright 2017 - 2021 Volker Berlin (i-net software)
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@ -31,6 +31,7 @@ public enum ScriptEngine {
|
||||
SpiderMonkeyGC(true),
|
||||
NodeWatGC(true),
|
||||
SpiderMonkeyWatGC(true),
|
||||
Wat2WasmGC(true),
|
||||
;
|
||||
|
||||
public final String useGC;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2017 - 2020 Volker Berlin (i-net software)
|
||||
* Copyright 2017 - 2021 Volker Berlin (i-net software)
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@ -157,6 +157,7 @@ public class WasmRule extends TemporaryFolder {
|
||||
public void before( ScriptEngine script ) throws Exception {
|
||||
switch( script ) {
|
||||
case Wat2Wasm:
|
||||
case Wat2WasmGC:
|
||||
// this is already part of execute and not only a compile
|
||||
return;
|
||||
default:
|
||||
@ -540,6 +541,7 @@ public class WasmRule extends TemporaryFolder {
|
||||
processBuilder.environment().put( "NODE_PATH", getNodeModulePath() );
|
||||
return processBuilder;
|
||||
case Wat2Wasm:
|
||||
case Wat2WasmGC:
|
||||
return nodeJsCommand( prepareWat2Wasm( script ) );
|
||||
default:
|
||||
throw new IllegalStateException( script.toString() );
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2019 Volker Berlin (i-net software)
|
||||
* Copyright 2019 - 2021 Volker Berlin (i-net software)
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@ -108,7 +108,7 @@ class Wat2Wasm {
|
||||
searchExecuteable( file );
|
||||
} else {
|
||||
String name = file.getName();
|
||||
if( name.equals( "wat2wasm" ) || name.equals( "wat2wasm.exe" ) ) {
|
||||
if( name.equals( "wat2wasm" ) || name.equals( "wat2wasm.exe" ) || name.equals( "wat2wasm.bat" ) ) {
|
||||
command = file.getAbsolutePath();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user