Skip to content

Commit

Permalink
[Truffle] Array#select is fine for compilation.
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisseaton committed May 23, 2015
1 parent 57edf61 commit 0472e2d
Showing 1 changed file with 0 additions and 4 deletions.
Expand Up @@ -3665,8 +3665,6 @@ public Object selectObject(VirtualFrame frame, RubyArray array, RubyProc block)

final Object value = store[n];

CompilerDirectives.transferToInterpreter();

if (yieldIsTruthy(frame, block, new Object[]{value})) {
selectedStore = arrayBuilder.append(selectedStore, selectedSize, value);
selectedSize++;
Expand Down Expand Up @@ -3698,8 +3696,6 @@ public Object selectFixnumInteger(VirtualFrame frame, RubyArray array, RubyProc

final Object value = store[n];

CompilerDirectives.transferToInterpreter();

if (yieldIsTruthy(frame, block, value)) {
selectedStore = arrayBuilder.append(selectedStore, selectedSize, value);
selectedSize++;
Expand Down

0 comments on commit 0472e2d

Please sign in to comment.