summaryrefslogtreecommitdiff
path: root/src/wasm-interpreter.h
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2015-11-09 14:26:49 -0800
committerAlon Zakai <alonzakai@gmail.com>2015-11-11 10:06:05 -0800
commit0cb8d3e030c9cd5c5df49d3bd513c6a8b412e5ff (patch)
tree34b454bf9bbdbb274326e9bdbf925ed860d542e6 /src/wasm-interpreter.h
parentb0c93d1d664dca6f6269517101bfca298e495b3d (diff)
downloadbinaryen-0cb8d3e030c9cd5c5df49d3bd513c6a8b412e5ff.tar.gz
binaryen-0cb8d3e030c9cd5c5df49d3bd513c6a8b412e5ff.tar.bz2
binaryen-0cb8d3e030c9cd5c5df49d3bd513c6a8b412e5ff.zip
comments
Diffstat (limited to 'src/wasm-interpreter.h')
-rw-r--r--src/wasm-interpreter.h13
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 {