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

Misc improvements 12 #58

Merged
merged 7 commits into from
Nov 28, 2024
Merged

Misc improvements 12 #58

merged 7 commits into from
Nov 28, 2024

Conversation

janvrany
Copy link
Owner

No description provided.

This commit uses symbols (sub-instances of `TRSymbol`) as labels rather
than just plain strings. This is a preparation for using (function)
symbols exports.
When building TRIL, one can use `#location:` to set source location for
nodes being build. This commit changes to behavior so if `#location:`
is used before any node is actually built, it *ALSO* sets location of
the whole function.

Technically, it sets location of functions entry block's `bbstart` node.
This has the nice side-effect of prologue instruction having this location
(since prologue instructions are associated with `bbstart` node).
Now when `#getPackageDirectoryForPackage:` is part of pharo-hacks'
LibCompat package, `#shellDirectory` can be simplified.
This commit adds `#isBBStart` and `#isBBEnd`.

While at it, it changes the way `is<opcode>` methods are implemented.
Instead of comparing *opcode's names*, it compares self with the tested
opcode itself (using TRILOpcodes pool).
@janvrany janvrany merged commit 37d550a into master Nov 28, 2024
2 checks passed
@janvrany janvrany deleted the pr/misc-improvements-12 branch November 28, 2024 18:05
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

Successfully merging this pull request may close these issues.

1 participant