From 0cb8d3e030c9cd5c5df49d3bd513c6a8b412e5ff Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Mon, 9 Nov 2015 14:26:49 -0800 Subject: comments --- src/wasm-interpreter.h | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'src/wasm-interpreter.h') 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 @@ -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 { -- cgit v1.2.3