summaryrefslogtreecommitdiff
path: root/src/wasm-interpreter.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm-interpreter.h')
-rw-r--r--src/wasm-interpreter.h38
1 files changed, 1 insertions, 37 deletions
diff --git a/src/wasm-interpreter.h b/src/wasm-interpreter.h
index 55edbdfa0..f7e213b93 100644
--- a/src/wasm-interpreter.h
+++ b/src/wasm-interpreter.h
@@ -39,8 +39,7 @@ using namespace cashew;
// Utilities
-IString WASM("wasm"),
- RETURN_FLOW("*return:)*");
+extern Name WASM, RETURN_FLOW;
enum {
maxCallDepth = 250
@@ -492,41 +491,6 @@ public:
}
};
-// Execute an expression by itself. Errors if we hit anything we need anything not in the expression itself standalone.
-class StandaloneExpressionRunner : public ExpressionRunner<StandaloneExpressionRunner> {
-public:
- struct NonstandaloneException {};
-
- Flow visitCall(Call* curr) {
- throw NonstandaloneException();
- }
- Flow visitCallImport(CallImport* curr) {
- throw NonstandaloneException();
- }
- Flow visitCallIndirect(CallIndirect* curr) {
- throw NonstandaloneException();
- }
- Flow visitGetLocal(GetLocal *curr) {
- throw NonstandaloneException();
- }
- Flow visitSetLocal(SetLocal *curr) {
- throw NonstandaloneException();
- }
- Flow visitLoad(Load *curr) {
- throw NonstandaloneException();
- }
- Flow visitStore(Store *curr) {
- throw NonstandaloneException();
- }
- Flow visitHost(Host *curr) {
- throw NonstandaloneException();
- }
-
- void trap(const char* why) {
- throw NonstandaloneException();
- }
-};
-
//
// An instance of a WebAssembly module, which can execute it via AST interpretation.
//