diff options
author | George Marques <george@gmarqu.es> | 2020-11-22 12:24:40 -0300 |
---|---|---|
committer | George Marques <george@gmarqu.es> | 2020-11-25 11:24:13 -0300 |
commit | 2e528ef38298544d040dddce1aa3110c651eaf6b (patch) | |
tree | 65fc12f0e5a47e9c8549deb3aa6cb4ef3bef0244 /tests/test_oa_hash_map.cpp | |
parent | 60fd7bfe424d7e38b66c2e60e2bd15774421cd50 (diff) |
GDScript: Fix mishandling of stack pointers
- Replace the for loop temporaries by locals. They cause conflicts with
the stack when being popped, while locals are properly handled in the
scope.
- Change the interface for the codegen so the for loop list doesn't live
through the whole block if it's a temporary.
- Keep track of the actual amount of local variables in the stack. Using
the size of the map is misleading in cases where multiple locals have
the same name (which is allowed when there's no shadowing).
- Added a few debug checks for temporaries, to avoid them being wrongly
manipulated in the future. They should not live more than a line of
code.
- Rearrange some of compiler code to make sure the temporaries don't
live across blocks.
Diffstat (limited to 'tests/test_oa_hash_map.cpp')
0 files changed, 0 insertions, 0 deletions