-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Closed
Description
Lines 2187 to 2193 in 7dd9069
| // Globals that are normally exported from the wasm module but in relocatable | |
| // mode are created here and imported by the module. | |
| __stack_pointer: "new WebAssembly.Global({'value': '{{{ POINTER_WASM_TYPE }}}', 'mutable': true}, {{{ to64(STACK_HIGH) }}})", | |
| // tell the memory segments where to place themselves | |
| __memory_base: "new WebAssembly.Global({'value': '{{{ POINTER_WASM_TYPE }}}', 'mutable': false}, {{{ to64(GLOBAL_BASE) }}})", | |
| // the wasm backend reserves slot 0 for the NULL function pointer | |
| __table_base: "new WebAssembly.Global({'value': '{{{ POINTER_WASM_TYPE }}}', 'mutable': false}, {{{ to64(TABLE_BASE) }}})", |
These utilize {{{ to64('foo') }}} to handle Wasm64 case. And 2GB memory case is handled by default.
Though shouldn't there be a >>> 0 for 4GB memory mode? Iirc these values come out as int32 also?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels