Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[Truffle] Remove casts that aren't needed any more.
  • Loading branch information
chrisseaton committed Jan 29, 2015
1 parent 7b7df13 commit c504e87
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 20 deletions.
30 changes: 15 additions & 15 deletions truffle/src/main/java/org/jruby/truffle/nodes/core/ArrayNodes.java
Expand Up @@ -1420,7 +1420,7 @@ public Object eachIntegerFixnum(VirtualFrame frame, RubyArray array, RubyProc bl
}
} finally {
if (CompilerDirectives.inInterpreter()) {
((RubyRootNode) getRootNode()).reportLoopCount(count);
getRootNode().reportLoopCount(count);
}
}

Expand Down Expand Up @@ -1457,7 +1457,7 @@ public Object eachLongFixnum(VirtualFrame frame, RubyArray array, RubyProc block
}
} finally {
if (CompilerDirectives.inInterpreter()) {
((RubyRootNode) getRootNode()).reportLoopCount(count);
getRootNode().reportLoopCount(count);
}
}

Expand Down Expand Up @@ -1494,7 +1494,7 @@ public Object eachFloat(VirtualFrame frame, RubyArray array, RubyProc block) {
}
} finally {
if (CompilerDirectives.inInterpreter()) {
((RubyRootNode) getRootNode()).reportLoopCount(count);
getRootNode().reportLoopCount(count);
}
}

Expand Down Expand Up @@ -1531,7 +1531,7 @@ public Object eachObject(VirtualFrame frame, RubyArray array, RubyProc block) {
}
} finally {
if (CompilerDirectives.inInterpreter()) {
((RubyRootNode) getRootNode()).reportLoopCount(count);
getRootNode().reportLoopCount(count);
}
}

Expand Down Expand Up @@ -1591,7 +1591,7 @@ public Object eachWithIndexObject(VirtualFrame frame, RubyArray array, RubyProc
}
} finally {
if (CompilerDirectives.inInterpreter()) {
((RubyRootNode) getRootNode()).reportLoopCount(count);
getRootNode().reportLoopCount(count);
}
}

Expand Down Expand Up @@ -2084,7 +2084,7 @@ public Object injectObject(VirtualFrame frame, RubyArray array, Object initial,
}
} finally {
if (CompilerDirectives.inInterpreter()) {
((RubyRootNode) getRootNode()).reportLoopCount(count);
getRootNode().reportLoopCount(count);
}
}

Expand Down Expand Up @@ -2328,7 +2328,7 @@ public RubyArray mapIntegerFixnum(VirtualFrame frame, RubyArray array, RubyProc
}
} finally {
if (CompilerDirectives.inInterpreter()) {
((RubyRootNode) getRootNode()).reportLoopCount(count);
getRootNode().reportLoopCount(count);
}
}

Expand All @@ -2353,7 +2353,7 @@ public RubyArray mapLongFixnum(VirtualFrame frame, RubyArray array, RubyProc blo
}
} finally {
if (CompilerDirectives.inInterpreter()) {
((RubyRootNode) getRootNode()).reportLoopCount(count);
getRootNode().reportLoopCount(count);
}
}

Expand Down Expand Up @@ -2403,7 +2403,7 @@ public RubyArray mapObject(VirtualFrame frame, RubyArray array, RubyProc block)
}
} finally {
if (CompilerDirectives.inInterpreter()) {
((RubyRootNode) getRootNode()).reportLoopCount(count);
getRootNode().reportLoopCount(count);
}
}

Expand Down Expand Up @@ -2450,7 +2450,7 @@ public RubyArray mapInPlaceFixnumInteger(VirtualFrame frame, RubyArray array, Ru
}
} finally {
if (CompilerDirectives.inInterpreter()) {
((RubyRootNode) getRootNode()).reportLoopCount(count);
getRootNode().reportLoopCount(count);
}
}

Expand All @@ -2477,7 +2477,7 @@ public RubyArray mapInPlaceObject(VirtualFrame frame, RubyArray array, RubyProc
}
} finally {
if (CompilerDirectives.inInterpreter()) {
((RubyRootNode) getRootNode()).reportLoopCount(count);
getRootNode().reportLoopCount(count);
}
}

Expand Down Expand Up @@ -3233,7 +3233,7 @@ public Object selectObject(VirtualFrame frame, RubyArray array, RubyProc block)
}
} finally {
if (CompilerDirectives.inInterpreter()) {
((RubyRootNode) getRootNode()).reportLoopCount(count);
getRootNode().reportLoopCount(count);
}
}

Expand Down Expand Up @@ -3266,7 +3266,7 @@ public Object selectFixnumInteger(VirtualFrame frame, RubyArray array, RubyProc
}
} finally {
if (CompilerDirectives.inInterpreter()) {
((RubyRootNode) getRootNode()).reportLoopCount(count);
getRootNode().reportLoopCount(count);
}
}

Expand Down Expand Up @@ -3416,7 +3416,7 @@ public Object selectObject(VirtualFrame frame, RubyArray array, RubyProc block)
}
} finally {
if (CompilerDirectives.inInterpreter()) {
((RubyRootNode) getRootNode()).reportLoopCount(count);
getRootNode().reportLoopCount(count);
}
}

Expand Down Expand Up @@ -3449,7 +3449,7 @@ public Object selectFixnumInteger(VirtualFrame frame, RubyArray array, RubyProc
}
} finally {
if (CompilerDirectives.inInterpreter()) {
((RubyRootNode) getRootNode()).reportLoopCount(count);
getRootNode().reportLoopCount(count);
}
}

Expand Down
Expand Up @@ -573,7 +573,7 @@ public RubyHash eachPackedArray(VirtualFrame frame, RubyHash hash, RubyProc bloc
}
} finally {
if (CompilerDirectives.inInterpreter()) {
((RubyRootNode) getRootNode()).reportLoopCount(count);
getRootNode().reportLoopCount(count);
}
}

Expand Down Expand Up @@ -897,7 +897,7 @@ public RubyArray mapPackedArray(VirtualFrame frame, RubyHash hash, RubyProc bloc
}
} finally {
if (CompilerDirectives.inInterpreter()) {
((RubyRootNode) getRootNode()).reportLoopCount(count);
getRootNode().reportLoopCount(count);
}
}

Expand Down
Expand Up @@ -124,7 +124,7 @@ public RubyArray collect(VirtualFrame frame, RubyRange.IntegerFixnumRange range,
}
} finally {
if (CompilerDirectives.inInterpreter()) {
((RubyRootNode) getRootNode()).reportLoopCount(count);
getRootNode().reportLoopCount(count);
}
}

Expand Down Expand Up @@ -178,7 +178,7 @@ public Object each(VirtualFrame frame, RubyRange.IntegerFixnumRange range, RubyP
}
} finally {
if (CompilerDirectives.inInterpreter()) {
((RubyRootNode) getRootNode()).reportLoopCount(count);
getRootNode().reportLoopCount(count);
}
}

Expand Down Expand Up @@ -342,7 +342,7 @@ public Object step(VirtualFrame frame, RubyRange.IntegerFixnumRange range, int s
}
} finally {
if (CompilerDirectives.inInterpreter()) {
((RubyRootNode) getRootNode()).reportLoopCount(count);
getRootNode().reportLoopCount(count);
}
}

Expand Down

0 comments on commit c504e87

Please sign in to comment.