Skip to content

Commit

Permalink
[PRISM] Restructure parameters on ScopeNodes
Browse files Browse the repository at this point in the history
This commit completely restructures how we handle parameters. The
motivation for this commit was the fix compilation of MultiTargetNodes
within parameters, including nested MultiTargetNodes. A subsequent
commit will actually do the compilation for the MultiTargetNodes.

This commit's main accomplishment is restructuring the locals table
and how we account for it on the ScopeNode, specifically with regards
to hidden variables.

It has multiple steps, all commented within the code, to calculate
the locals table correctly and compile the parameters:
- Step 1: Caculate the table size for the locals
- Step 2: Populate iv index table and local table
- Step 3: Fill in parameter names of MultiTargetNodes on local table
- Step 4: Fill in method body locals on local table
- Step 5: Compile any locals
  • Loading branch information
jemmaissroff committed Dec 11, 2023
1 parent e1d995a commit 85ad5be
Show file tree
Hide file tree
Showing 2 changed files with 386 additions and 115 deletions.

0 comments on commit 85ad5be

Please sign in to comment.