From 3fbae879fc1b678e748ab3f8c24148e1c3818f45 Mon Sep 17 00:00:00 2001 From: JF Bastien Date: Thu, 4 Feb 2016 05:18:07 -0800 Subject: Support start As spec'd in: https://github.com/WebAssembly/design/pull/495 And discussed in: https://github.com/WebAssembly/spec/issues/231 This will make it simpler and more uniform to add a start entry point. s2wasm is the right place to add start because it'll eventually need to do other basic setup, e.g. put code in start to setup the stack, as dschuff is doing in: https://github.com/WebAssembly/binaryen/pull/179 Or rather, the linker is the right place and s2wasm happens to act as our linker right now. --- src/shared-constants.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/shared-constants.h') diff --git a/src/shared-constants.h b/src/shared-constants.h index a928756da..6662c50b2 100644 --- a/src/shared-constants.h +++ b/src/shared-constants.h @@ -52,6 +52,7 @@ cashew::IString GLOBAL("global"), GROW_WASM_MEMORY("__growWasmMemory"), NEW_SIZE("newSize"), MODULE("module"), + START("start"), FUNC("func"), PARAM("param"), RESULT("result"), -- cgit v1.2.3