diff options
author | George Marques <george@gmarqu.es> | 2021-04-08 11:55:24 -0300 |
---|---|---|
committer | George Marques <george@gmarqu.es> | 2021-04-08 14:29:55 -0300 |
commit | cf4079cb5f51a40c8370a84f5131f944c398f4b8 (patch) | |
tree | f24fa383603a01b525d4528698c60dc2606062cb /editor/icons/MaterialPreviewCube.svg | |
parent | 084b882c0a1957ca15bbb6ddadce050e81315f58 (diff) |
Reduce number of addressing modes in GDScript VM
There's now only 3 addressing modes: stack, constant, and member.
Self, class, and nil are now present respectively in the first 3 stack
slots. Global and class constants are moved to local constants when
compiling. Named globals is only present on editor to use on tool
singletons, so its use now emits a new instruction to copy the global to
the stack.
This allow us to further optimize the VM later by embedding the
addressing modes in the instructions themselves, which is better done
with less permutations.
Diffstat (limited to 'editor/icons/MaterialPreviewCube.svg')
0 files changed, 0 insertions, 0 deletions