diff options
author | Ben Smith <binji@chromium.org> | 2016-03-25 23:47:26 -0700 |
---|---|---|
committer | Ben Smith <binji@chromium.org> | 2016-04-02 22:32:14 -0700 |
commit | 2e4639e97f03c306374a02c4e8097add36f31aa7 (patch) | |
tree | 21e5c7bc7288da93c8dd6a6b4b3ee748ea3932c0 /test/find_exe.py | |
parent | da5e6ec567a41f6d21b9477d67b5d1960bf1dcfa (diff) | |
download | wabt-2e4639e97f03c306374a02c4e8097add36f31aa7.tar.gz wabt-2e4639e97f03c306374a02c4e8097add36f31aa7.tar.bz2 wabt-2e4639e97f03c306374a02c4e8097add36f31aa7.zip |
wasm interpreter
Works by generating an instruction stream for a simple stack machine.
Diffstat (limited to 'test/find_exe.py')
-rw-r--r-- | test/find_exe.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/find_exe.py b/test/find_exe.py index a946388d..4ef2b9db 100644 --- a/test/find_exe.py +++ b/test/find_exe.py @@ -28,6 +28,7 @@ BUILT_D8_EXE = os.path.join(REPO_ROOT_DIR, 'third_party', 'v8', 'v8', 'out', 'Release', 'd8') DOWNLOAD_D8_EXE = os.path.join(REPO_ROOT_DIR, 'out', 'd8') DEFAULT_WASM_WAST_EXE = os.path.join(REPO_ROOT_DIR, 'out', 'wasm-wast') +DEFAULT_WASM_INTERP_EXE = os.path.join(REPO_ROOT_DIR, 'out', 'wasm-interp') if IS_WINDOWS: @@ -35,6 +36,7 @@ if IS_WINDOWS: BUILT_D8_EXE += '.exe' DOWNLOAD_D8_EXE += '.exe' DEFAULT_WASM_WAST_EXE += '.exe' + DEFAULT_WASM_INTERP_EXE += '.exe' def FindExeWithFallback(name, default_exe_list, override_exe=None): @@ -61,5 +63,9 @@ def GetWasmWastExecutable(override=None): return FindExeWithFallback('wasm-wast', [DEFAULT_WASM_WAST_EXE], override) +def GetWasmInterpExecutable(override=None): + return FindExeWithFallback('wasm-interp', [DEFAULT_WASM_INTERP_EXE], override) + + def GetD8Executable(override=None): return FindExeWithFallback('d8', [BUILT_D8_EXE, DOWNLOAD_D8_EXE], override) |