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

[Truffle] Adding args to to_enum call in returnsEnumeratorIfNoBlock annotation. #2725

Merged
merged 1 commit into from Mar 19, 2015

Conversation

bjfish
Copy link
Contributor

@bjfish bjfish commented Mar 19, 2015

No description provided.

@@ -41,4 +43,12 @@ public Object execute(VirtualFrame frame) {
}
}

private static <T> T[] unshift(T first, T[] array) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this could be done with less copying if a helper method was added to RubyArguments that unshifted this first argument when the user arguments are being extracted.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah - feel free to move this helper into RubyArguments and make something like extractUserArgumentsWithUnshift.

@chrisseaton chrisseaton added this to the truffle-dev milestone Mar 19, 2015
chrisseaton added a commit that referenced this pull request Mar 19, 2015
[Truffle] Adding args to to_enum call in returnsEnumeratorIfNoBlock annotation.
@chrisseaton chrisseaton merged commit 25debc4 into jruby:master Mar 19, 2015
@enebo enebo added this to the Non-Release milestone Dec 7, 2017
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

3 participants