diff options
author | Alon Zakai <alonzakai@gmail.com> | 2015-11-09 14:26:49 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2015-11-11 10:06:05 -0800 |
commit | 0cb8d3e030c9cd5c5df49d3bd513c6a8b412e5ff (patch) | |
tree | 34b454bf9bbdbb274326e9bdbf925ed860d542e6 /src/wasm-interpreter.h | |
parent | b0c93d1d664dca6f6269517101bfca298e495b3d (diff) | |
download | binaryen-0cb8d3e030c9cd5c5df49d3bd513c6a8b412e5ff.tar.gz binaryen-0cb8d3e030c9cd5c5df49d3bd513c6a8b412e5ff.tar.bz2 binaryen-0cb8d3e030c9cd5c5df49d3bd513c6a8b412e5ff.zip |
comments
Diffstat (limited to 'src/wasm-interpreter.h')
-rw-r--r-- | src/wasm-interpreter.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/wasm-interpreter.h b/src/wasm-interpreter.h index 8aeab2e97..dc88e296a 100644 --- a/src/wasm-interpreter.h +++ b/src/wasm-interpreter.h @@ -1,7 +1,8 @@ // -// Simple WebAssembly interpreter, designed to be embeddable in JavaScript, so it -// can function as a polyfill. +// Simple WebAssembly interpreter. This operates directly on the AST, +// for simplicity and clarity. A goal is for it to be possible for +// people to read this code and understand WebAssembly semantics. // #include <limits.h> @@ -32,7 +33,13 @@ enum { }; // -// An instance of a WebAssembly module, which can execute it via AST interpretation +// An instance of a WebAssembly module, which can execute it via AST interpretation. +// +// To embed this interpreter, you need to provide an ExternalInterface instance +// (see below) which provides the embedding-specific details, that is, how to +// connect to the embedding implementation. +// +// To call into the interpreter, use callExport. // class ModuleInstance { |