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 more implementation of Array#initialize. #2763

Merged
merged 2 commits into from Mar 28, 2015

Conversation

bjfish
Copy link
Contributor

@bjfish bjfish commented Mar 26, 2015

No description provided.

@@ -1648,6 +1702,10 @@ public RubyArray initialize(RubyArray array, int size, long defaultValue, Undefi

@Specialization
public RubyArray initialize(RubyArray array, int size, double defaultValue, UndefinedPlaceholder block) {
if (size < 0) {
Copy link
Contributor

Choose a reason for hiding this comment

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

If you made an isPositive guard on all these specialisations, then the exception case could be a separate specialisation.

chrisseaton added a commit that referenced this pull request Mar 28, 2015
[Truffle] Adding more implementation of Array#initialize.
@chrisseaton chrisseaton merged commit 5ac9059 into jruby:master Mar 28, 2015
@chrisseaton chrisseaton added this to the truffle-dev milestone Mar 28, 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