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

Move some Opal helpers to the Runtime #2077

Merged
merged 7 commits into from
Mar 16, 2020
Merged

Conversation

elia
Copy link
Member

@elia elia commented Feb 12, 2020

Move the most used Opal helpers to the runtime for better performance and to treat them as core (there was some situations in which the helpers were loaded after they were needed).

@elia elia self-assigned this Feb 12, 2020
@elia elia force-pushed the elia/remove-helpers-special-calls branch from 25cb790 to 7bd3108 Compare March 6, 2020 18:28
@elia elia force-pushed the elia/remove-helpers-special-calls branch 2 times, most recently from 68ec09a to 35f0eda Compare March 14, 2020 22:11
@elia elia force-pushed the elia/remove-helpers-special-calls branch from 35f0eda to d84d225 Compare March 14, 2020 22:27
When calling super and for better method missing management when the
method body is provided we should also have access to the method name.
The last parameter of Opal.find_super_dispatcher wasn't used. It now
accepts a boolean that will control if a stub (to support
#method_missing) or null should be returned. It also makes use of the
new Opal.send2 so that if null is returned because the method is not
found and no stub was present (e.g. if the method is only called via
__send__) it will correctly call method_missing.
@elia elia force-pushed the elia/remove-helpers-special-calls branch from d84d225 to c5318c8 Compare March 16, 2020 00:15
@elia elia changed the title Remove helpers special calls and move them to the Runtime Move some Opal helpers to the Runtime Mar 16, 2020
@elia elia marked this pull request as ready for review March 16, 2020 00:47
@elia elia merged commit dd1df2a into master Mar 16, 2020
@elia elia deleted the elia/remove-helpers-special-calls branch March 16, 2020 00:47
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.

None yet

1 participant