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

Add INDY ops for math operations #1711

Merged
merged 2 commits into from
Oct 30, 2024
Merged

Conversation

gbrail
Copy link
Collaborator

@gbrail gbrail commented Oct 25, 2024

Right now, this makes the bytecode a tiny bit more readable IMO, and doesn't really affect performance.

Once we have these in, however, we can add additional type-specific linkers which will shorten the codepaths to these common operations for common types, and avoid the long strings of "instanceof" checks that make up most of the generic math operations today.

This will let us optimize them later, since most math operations are
long chains of "instanceof" checks.
@gbrail
Copy link
Collaborator Author

gbrail commented Oct 30, 2024

This seems uncontroversial so I'm going to merge it, and happy to entertain questions any time!

@gbrail gbrail merged commit 838b6ca into mozilla:master Oct 30, 2024
1 check passed
@gbrail gbrail deleted the indy-10-math-ops branch October 30, 2024 03:10
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