15 | | Make global code work, including: |
16 | | |
17 | | {{{ |
18 | | global code should only emit "overwrite var with undefined" if the var doesn't exist already. |
19 | | Global code needs to deal with new vars being added. Stupid solution: always allocate a new vector, add new, then copy old. Better solution: provide pre-capacity to the existing vector. Alternative solution: just renumber the vars -- does any code depend on the old numbers? |
20 | | }}} |
| 15 | Re-entry into Machine::privateExecute: |
| 16 | * More indirection in the register file |
| 17 | * Don't overwrite nested register frames when re-entering global execution |
| 18 | * Provide API for re-entering non-global execution (i.e., function callbacks) |