public inbox for ~johnnyrichard/olang-devel@lists.sr.ht
 help / color / mirror / code / Atom feed
* [PATCH olang 0/5] fix multiple variables
@ 2024-09-21  1:12 Carlos Maniero
  2024-09-21  1:12 ` [PATCH olang 1/5] map: add function to retrieve all key-value pairs Carlos Maniero
                   ` (5 more replies)
  0 siblings, 6 replies; 8+ messages in thread
From: Carlos Maniero @ 2024-09-21  1:12 UTC (permalink / raw)
  To: ~johnnyrichard/olang-devel; +Cc: Carlos Maniero

The expressions in x86 performs stack instructions which was causing
conflicts with the space that was reserved for variables.

This patchset ensures that theses instructions no longer messes with the
stack.

Carlos Maniero (5):
  map: add function to retrieve all key-value pairs
  scope: make scope a bi-directional tree
  ast: checker: add function scope
  codegen: reset variable offset on block leave
  codegen: preserve function's variable stack location

 src/ast.h                                     |  1 +
 src/checker.c                                 |  1 +
 src/codegen_linux_x86_64.c                    | 47 ++++++++++++++++++-
 src/map.c                                     | 17 +++++++
 src/map.h                                     | 10 ++++
 src/scope.c                                   | 14 ++++++
 src/scope.h                                   |  2 +
 .../tests/0025_var_definition_nested.ol       | 35 ++++++++++++++
 tests/unit/map_test.c                         | 30 ++++++++++++
 9 files changed, 156 insertions(+), 1 deletion(-)
 create mode 100644 tests/integration/tests/0025_var_definition_nested.ol


base-commit: cb4b63f5879862d2f8282382128995d4e6eff76c
-- 
2.34.1


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2024-09-21  1:25 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-09-21  1:12 [PATCH olang 0/5] fix multiple variables Carlos Maniero
2024-09-21  1:12 ` [PATCH olang 1/5] map: add function to retrieve all key-value pairs Carlos Maniero
2024-09-21  1:12 ` [PATCH olang 2/5] scope: make scope a bi-directional tree Carlos Maniero
2024-09-21  1:13 ` [PATCH olang 3/5] ast: checker: add function scope Carlos Maniero
2024-09-21  1:13 ` [PATCH olang 4/5] codegen: reset variable offset on block leave Carlos Maniero
2024-09-21  1:13 ` [PATCH olang 5/5] codegen: preserve function's variable stack location Carlos Maniero
2024-09-21  1:13   ` [olang/patches/.build.yml] build success builds.sr.ht
2024-09-21  1:25 ` [PATCH olang 0/5] fix multiple variables Johnny Richard

Code repositories for project(s) associated with this public inbox

	https://git.johnnyrichard.com/olang.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox