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 /src/wasm-common.h | |
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 'src/wasm-common.h')
-rw-r--r-- | src/wasm-common.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wasm-common.h b/src/wasm-common.h index 4c1c87ea..f7221446 100644 --- a/src/wasm-common.h +++ b/src/wasm-common.h @@ -35,6 +35,7 @@ #define WASM_FATAL(...) fprintf(stderr, __VA_ARGS__), exit(1) #define WASM_ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0])) #define WASM_ZERO_MEMORY(var) memset((void*)&(var), 0, sizeof(var)) +#define WASM_USE(x) (void)x #define WASM_PAGE_SIZE 0x10000 /* 64k */ @@ -258,6 +259,7 @@ typedef enum WasmOpcode { WASM_OPCODE_##NAME = code, WASM_FOREACH_OPCODE(V) #undef V + WASM_LAST_OPCODE } WasmOpcode; typedef enum WasmLiteralType { |