mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-25 07:27:52 +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");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@ -31,6 +31,7 @@ public enum ScriptEngine {
|
|||||||
SpiderMonkeyGC(true),
|
SpiderMonkeyGC(true),
|
||||||
NodeWatGC(true),
|
NodeWatGC(true),
|
||||||
SpiderMonkeyWatGC(true),
|
SpiderMonkeyWatGC(true),
|
||||||
|
Wat2WasmGC(true),
|
||||||
;
|
;
|
||||||
|
|
||||||
public final String useGC;
|
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");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with 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 {
|
public void before( ScriptEngine script ) throws Exception {
|
||||||
switch( script ) {
|
switch( script ) {
|
||||||
case Wat2Wasm:
|
case Wat2Wasm:
|
||||||
|
case Wat2WasmGC:
|
||||||
// this is already part of execute and not only a compile
|
// this is already part of execute and not only a compile
|
||||||
return;
|
return;
|
||||||
default:
|
default:
|
||||||
@ -540,6 +541,7 @@ public class WasmRule extends TemporaryFolder {
|
|||||||
processBuilder.environment().put( "NODE_PATH", getNodeModulePath() );
|
processBuilder.environment().put( "NODE_PATH", getNodeModulePath() );
|
||||||
return processBuilder;
|
return processBuilder;
|
||||||
case Wat2Wasm:
|
case Wat2Wasm:
|
||||||
|
case Wat2WasmGC:
|
||||||
return nodeJsCommand( prepareWat2Wasm( script ) );
|
return nodeJsCommand( prepareWat2Wasm( script ) );
|
||||||
default:
|
default:
|
||||||
throw new IllegalStateException( script.toString() );
|
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");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@ -108,7 +108,7 @@ class Wat2Wasm {
|
|||||||
searchExecuteable( file );
|
searchExecuteable( file );
|
||||||
} else {
|
} else {
|
||||||
String name = file.getName();
|
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();
|
command = file.getAbsolutePath();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user