Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify the local_index space. #861

Closed
ghost opened this issue Nov 3, 2016 · 1 comment
Closed

Clarify the local_index space. #861

ghost opened this issue Nov 3, 2016 · 1 comment

Comments

@ghost
Copy link

ghost commented Nov 3, 2016

The design documentation does not appear to define the index space of 'locals' well.

This zero base index space should include the function parameters first and these are defined in the function section, and then an index for each local variable defined in the function body in the code section.

The names section also uses the local_index space, and I presume this space also includes the function parameters so function parameters can be named too. Importantly this means that the parameters for imported functions can be named in the names section, so imported functions can have a non-zero local_count value.

@ghost
Copy link
Author

ghost commented Feb 1, 2017

Closing, assume it will be sorted out in #750 or be subsumed by more general support for custom debug names.

@ghost ghost closed this as completed Feb 1, 2017
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants