Open
Description
As globals can now have initial expressions that point to other globals, it's not possible to compute all the initialiser expressions into a vector ahead of global allocation.
For example
(module (global $g i32 (i32.const 0)) (global i32 (global.get $g)))
The second initialiser here would call global.get on a yet to be allocated global
Instead we should probably do
for each global in module
- compute initial value
- allocate global
Metadata
Assignees
Labels
No labels
Activity