Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | [ctor-eval] Eval and store changes to globals (#4430) | Alon Zakai | 2022-01-07 | 1 | -0/+1 |
This is necessary for being able to optimize real-world code, as it lets us use the stack pointer for example. With this PR we allow changes to globals, and we simply store the final state of the global in the global at the end. Basically the same as we do for memory, but for globals. Remove a test that now fails ("imported2"). Replace it with a nicer test of saving the values of globals. Also add a test for an imported global, which we do not allow (we never did, but I don't see a test for it). |