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] Implementing more Array#multiply. #2743

Merged
merged 1 commit into from Mar 23, 2015

Conversation

bjfish
Copy link
Contributor

@bjfish bjfish commented Mar 23, 2015

No description provided.

CompilerDirectives.transferToInterpreter();
respondToToStrNode = insert(KernelNodesFactory.RespondToNodeFactory.create(getContext(), getSourceSection(), new RubyNode[] { null, null, null }));
}
if(respondToToStrNode.doesRespondTo(frame, object, getContext().makeString("to_str"), false)){
Copy link
Contributor

Choose a reason for hiding this comment

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

Given this is notDesignedForCompilation, you could even write the condition here using ruby - if ((boolean) ruby(frame, "object.respond_to 'to_str'", "object", object)) {. The avoids the need for the node. No need to change it - just thought I'd point it out.

@chrisseaton
Copy link
Contributor

Looks good - please try on the spacing though. Feel free to merge it yourself.

@bjfish
Copy link
Contributor Author

bjfish commented Mar 23, 2015

@chrisseaton thanks, I think i've got my code formatter configured correctly now for spacing.

bjfish added a commit that referenced this pull request Mar 23, 2015
[Truffle] Implementing more Array#multiply.
@bjfish bjfish merged commit 3ea7fcd into jruby:master Mar 23, 2015
@bjfish bjfish deleted the truffle_array_multiply branch March 23, 2015 00:50
@chrisseaton chrisseaton modified the milestone: truffle-dev May 4, 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