Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: jruby/jruby
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1cade782bf2a
Choose a base ref
...
head repository: jruby/jruby
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 130803dde578
Choose a head ref
  • 4 commits
  • 81 files changed
  • 1 contributor

Commits on Apr 30, 2015

  1. Copy the full SHA
    cbf7dde View commit details
  2. Copy the full SHA
    f34b913 View commit details
  3. 3
    Copy the full SHA
    c1920c1 View commit details
  4. Copy the full SHA
    130803d View commit details
Showing with 835 additions and 749 deletions.
  1. +5 −0 tool/jt.rb
  2. +4 −4 truffle/src/main/java/org/jruby/truffle/nodes/RubyCallNode.java
  3. +0 −1 truffle/src/main/java/org/jruby/truffle/nodes/RubyNode.java
  4. +1 −1 truffle/src/main/java/org/jruby/truffle/nodes/array/ArrayReadDenormalizedNode.java
  5. +1 −1 truffle/src/main/java/org/jruby/truffle/nodes/array/ArrayReadSliceDenormalizedNode.java
  6. +1 −1 truffle/src/main/java/org/jruby/truffle/nodes/array/ArrayWriteDenormalizedNode.java
  7. +2 −2 truffle/src/main/java/org/jruby/truffle/nodes/array/ArrayWriteNormalizedNode.java
  8. +4 −4 truffle/src/main/java/org/jruby/truffle/nodes/array/PrimitiveArrayNodeFactory.java
  9. +3 −3 truffle/src/main/java/org/jruby/truffle/nodes/cast/SplatCastNode.java
  10. +5 −5 truffle/src/main/java/org/jruby/truffle/nodes/cast/TaintResultNode.java
  11. +2 −2 truffle/src/main/java/org/jruby/truffle/nodes/control/AndNode.java
  12. +3 −3 truffle/src/main/java/org/jruby/truffle/nodes/control/FlipFlopNode.java
  13. +2 −2 truffle/src/main/java/org/jruby/truffle/nodes/control/IfNode.java
  14. +2 −2 truffle/src/main/java/org/jruby/truffle/nodes/control/NotNode.java
  15. +2 −2 truffle/src/main/java/org/jruby/truffle/nodes/control/OrNode.java
  16. +2 −2 truffle/src/main/java/org/jruby/truffle/nodes/control/WhileNode.java
  17. +1 −1 truffle/src/main/java/org/jruby/truffle/nodes/core/ArrayCoreMethodNode.java
  18. +78 −75 truffle/src/main/java/org/jruby/truffle/nodes/core/ArrayNodes.java
  19. +7 −7 truffle/src/main/java/org/jruby/truffle/nodes/core/BasicObjectNodes.java
  20. +16 −16 truffle/src/main/java/org/jruby/truffle/nodes/core/BignumNodes.java
  21. +1 −1 truffle/src/main/java/org/jruby/truffle/nodes/core/BinaryCoreMethodNode.java
  22. +4 −4 truffle/src/main/java/org/jruby/truffle/nodes/core/BindingNodes.java
  23. +5 −5 truffle/src/main/java/org/jruby/truffle/nodes/core/ClassNodes.java
  24. +24 −0 truffle/src/main/java/org/jruby/truffle/nodes/core/CoreMethodArrayArgumentsNode.java
  25. +2 −2 truffle/src/main/java/org/jruby/truffle/nodes/core/CoreMethodNode.java
  26. +2 −2 truffle/src/main/java/org/jruby/truffle/nodes/core/EncodingConverterNodes.java
  27. +12 −12 truffle/src/main/java/org/jruby/truffle/nodes/core/EncodingNodes.java
  28. +5 −5 truffle/src/main/java/org/jruby/truffle/nodes/core/ExceptionNodes.java
  29. +2 −2 truffle/src/main/java/org/jruby/truffle/nodes/core/FalseClassNodes.java
  30. +6 −6 truffle/src/main/java/org/jruby/truffle/nodes/core/FiberNodes.java
  31. +19 −19 truffle/src/main/java/org/jruby/truffle/nodes/core/FixnumNodes.java
  32. +23 −23 truffle/src/main/java/org/jruby/truffle/nodes/core/FloatNodes.java
  33. +1 −1 truffle/src/main/java/org/jruby/truffle/nodes/core/HashCoreMethodNode.java
  34. +12 −6 truffle/src/main/java/org/jruby/truffle/nodes/core/HashNodes.java
  35. +1 −1 truffle/src/main/java/org/jruby/truffle/nodes/core/IntegerNodes.java
  36. +4 −4 truffle/src/main/java/org/jruby/truffle/nodes/core/InterpolatedStringNode.java
  37. +72 −72 truffle/src/main/java/org/jruby/truffle/nodes/core/KernelNodes.java
  38. +2 −2 truffle/src/main/java/org/jruby/truffle/nodes/core/MainNodes.java
  39. +12 −12 truffle/src/main/java/org/jruby/truffle/nodes/core/MatchDataNodes.java
  40. +5 −5 truffle/src/main/java/org/jruby/truffle/nodes/core/MathNodes.java
  41. +11 −11 truffle/src/main/java/org/jruby/truffle/nodes/core/MethodNodes.java
  42. +132 −91 truffle/src/main/java/org/jruby/truffle/nodes/core/ModuleNodes.java
  43. +3 −3 truffle/src/main/java/org/jruby/truffle/nodes/core/ObjectSpaceNodes.java
  44. +7 −7 truffle/src/main/java/org/jruby/truffle/nodes/core/ProcNodes.java
  45. +3 −3 truffle/src/main/java/org/jruby/truffle/nodes/core/ProcessNodes.java
  46. +2 −2 truffle/src/main/java/org/jruby/truffle/nodes/core/RaiseIfFrozenNode.java
  47. +5 −5 truffle/src/main/java/org/jruby/truffle/nodes/core/RangeNodes.java
  48. +13 −13 truffle/src/main/java/org/jruby/truffle/nodes/core/RegexpNodes.java
  49. +105 −105 truffle/src/main/java/org/jruby/truffle/nodes/core/StringNodes.java
  50. +17 −17 truffle/src/main/java/org/jruby/truffle/nodes/core/SymbolNodes.java
  51. +12 −12 truffle/src/main/java/org/jruby/truffle/nodes/core/ThreadNodes.java
  52. +14 −8 truffle/src/main/java/org/jruby/truffle/nodes/core/TimeNodes.java
  53. +4 −4 truffle/src/main/java/org/jruby/truffle/nodes/core/TrueClassNodes.java
  54. +10 −10 truffle/src/main/java/org/jruby/truffle/nodes/core/TruffleInteropNodes.java
  55. +27 −27 truffle/src/main/java/org/jruby/truffle/nodes/core/TrufflePrimitiveNodes.java
  56. +1 −1 truffle/src/main/java/org/jruby/truffle/nodes/core/UnaryCoreMethodNode.java
  57. +9 −9 truffle/src/main/java/org/jruby/truffle/nodes/core/UnboundMethodNodes.java
  58. +3 −3 truffle/src/main/java/org/jruby/truffle/nodes/core/YieldingCoreMethodNode.java
  59. +2 −2 truffle/src/main/java/org/jruby/truffle/nodes/dispatch/CachedForeignDispatchNode.java
  60. +2 −2 truffle/src/main/java/org/jruby/truffle/nodes/dispatch/CallDispatchHeadNode.java
  61. +6 −6 truffle/src/main/java/org/jruby/truffle/nodes/dispatch/UncachedDispatchNode.java
  62. +2 −2 truffle/src/main/java/org/jruby/truffle/nodes/interop/InteropNode.java
  63. +2 −2 truffle/src/main/java/org/jruby/truffle/nodes/literal/HashLiteralNode.java
  64. +2 −2 truffle/src/main/java/org/jruby/truffle/nodes/methods/AddMethodNode.java
  65. +1 −1 truffle/src/main/java/org/jruby/truffle/nodes/methods/locals/ReadLevelVariableNode.java
  66. +1 −1 truffle/src/main/java/org/jruby/truffle/nodes/methods/locals/ReadLocalVariableNode.java
  67. +1 −1 truffle/src/main/java/org/jruby/truffle/nodes/methods/locals/WriteLevelVariableNode.java
  68. +1 −1 truffle/src/main/java/org/jruby/truffle/nodes/methods/locals/WriteLocalVariableNode.java
  69. +6 −6 truffle/src/main/java/org/jruby/truffle/nodes/rubinius/ByteArrayNodes.java
  70. +4 −4 truffle/src/main/java/org/jruby/truffle/nodes/rubinius/ObjectPrimitiveNodes.java
  71. +9 −9 truffle/src/main/java/org/jruby/truffle/nodes/rubinius/PosixNodes.java
  72. +2 −0 truffle/src/main/java/org/jruby/truffle/nodes/rubinius/RubiniusPrimitiveNode.java
  73. +2 −2 truffle/src/main/java/org/jruby/truffle/nodes/rubinius/VMPrimitiveNodes.java
  74. +2 −2 truffle/src/main/java/org/jruby/truffle/nodes/supercall/AbstractGeneralSuperCallNode.java
  75. +2 −2 truffle/src/main/java/org/jruby/truffle/pack/nodes/type/ToStringNode.java
  76. +4 −4 truffle/src/main/java/org/jruby/truffle/runtime/DebugOperations.java
  77. +25 −25 truffle/src/main/java/org/jruby/truffle/translator/BodyTranslator.java
  78. +16 −16 truffle/src/main/java/org/jruby/truffle/translator/LoadArgumentsTranslator.java
  79. +4 −4 truffle/src/main/java/org/jruby/truffle/translator/MethodTranslator.java
  80. +2 −2 truffle/src/main/java/org/jruby/truffle/translator/ModuleTranslator.java
  81. +4 −4 truffle/src/main/java/org/jruby/truffle/translator/TranslatorEnvironment.java
5 changes: 5 additions & 0 deletions tool/jt.rb
Original file line number Diff line number Diff line change
@@ -169,6 +169,7 @@ def help
puts 'jt findbugs run findbugs'
puts 'jt findbugs report run findbugs and generate an HTML report'
puts 'jt install ..../graal/mx/suite.py install a JRuby distribution into an mx suite'
puts 'jt poms rebuild Maven POM XML files from Ruby files'
puts
puts 'you can also put build or rebuild in front of any command'
puts
@@ -383,6 +384,10 @@ def install(arg)
raise ArgumentError, kind
end
end

def poms
sh 'rake', 'maven:dump_poms'
end
end

class JT
Original file line number Diff line number Diff line change
@@ -17,9 +17,9 @@
import com.oracle.truffle.api.source.SourceSection;
import com.oracle.truffle.api.utilities.BranchProfile;
import org.jruby.truffle.nodes.cast.BooleanCastNode;
import org.jruby.truffle.nodes.cast.BooleanCastNodeFactory;
import org.jruby.truffle.nodes.cast.BooleanCastNodeGen;
import org.jruby.truffle.nodes.cast.ProcOrNullNode;
import org.jruby.truffle.nodes.cast.ProcOrNullNodeFactory;
import org.jruby.truffle.nodes.cast.ProcOrNullNodeGen;
import org.jruby.truffle.nodes.dispatch.*;
import org.jruby.truffle.nodes.literal.HashLiteralNode;
import org.jruby.truffle.nodes.literal.ObjectLiteralNode;
@@ -84,7 +84,7 @@ public RubyCallNode(RubyContext context, SourceSection section, String methodNam
if (block == null) {
this.block = null;
} else {
this.block = ProcOrNullNodeFactory.create(context, section, block);
this.block = ProcOrNullNodeGen.create(context, section, block);
}

this.arguments = arguments;
@@ -93,7 +93,7 @@ public RubyCallNode(RubyContext context, SourceSection section, String methodNam

dispatchHead = DispatchHeadNodeFactory.createMethodCall(context, ignoreVisibility, false, MissingBehavior.CALL_METHOD_MISSING);
respondToMissing = DispatchHeadNodeFactory.createMethodCall(context, true, MissingBehavior.RETURN_MISSING);
respondToMissingCast = BooleanCastNodeFactory.create(context, section, null);
respondToMissingCast = BooleanCastNodeGen.create(context, section, null);

this.ignoreVisibility = ignoreVisibility;

Original file line number Diff line number Diff line change
@@ -37,7 +37,6 @@
* @see YieldDispatchNode
*/
@TypeSystemReference(RubyTypes.class)
@GenerateNodeFactory
public abstract class RubyNode extends Node {

private final RubyContext context;
Original file line number Diff line number Diff line change
@@ -37,7 +37,7 @@ public ArrayReadDenormalizedNode(RubyContext context, SourceSection sourceSectio
public Object read(VirtualFrame frame, RubyArray array, int index) {
if (readNode == null) {
CompilerDirectives.transferToInterpreter();
readNode = insert(ArrayReadNormalizedNodeFactory.create(getContext(), getSourceSection(), null, null));
readNode = insert(ArrayReadNormalizedNodeGen.create(getContext(), getSourceSection(), null, null));
}

final int normalizedIndex = array.normalizeIndex(index);
Original file line number Diff line number Diff line change
@@ -38,7 +38,7 @@ public ArrayReadSliceDenormalizedNode(RubyContext context, SourceSection sourceS
public Object read(VirtualFrame frame, RubyArray array, int index, int length) {
if (readNode == null) {
CompilerDirectives.transferToInterpreter();
readNode = insert(ArrayReadSliceNormalizedNodeFactory.create(getContext(), getSourceSection(), null, null, null));
readNode = insert(ArrayReadSliceNormalizedNodeGen.create(getContext(), getSourceSection(), null, null, null));
}

final int normalizedIndex = array.normalizeIndex(index);
Original file line number Diff line number Diff line change
@@ -38,7 +38,7 @@ public ArrayWriteDenormalizedNode(RubyContext context, SourceSection sourceSecti
public Object write(VirtualFrame frame, RubyArray array, int index, Object value) {
if (writeNode == null) {
CompilerDirectives.transferToInterpreter();
writeNode = insert(ArrayWriteNormalizedNodeFactory.create(getContext(), getSourceSection(), null, null, null));
writeNode = insert(ArrayWriteNormalizedNodeGen.create(getContext(), getSourceSection(), null, null, null));
}

final int normalizedIndex = array.normalizeIndex(index);
Original file line number Diff line number Diff line change
@@ -37,8 +37,8 @@ public ArrayWriteNormalizedNode(RubyContext context, SourceSection sourceSection
super(context, sourceSection);

// TODO CS 9-Feb-15 make this lazy later on
ensureCapacityNode = EnsureCapacityArrayNodeFactory.create(context, sourceSection, null, null);
generalizeNode = GeneralizeArrayNodeFactory.create(context, sourceSection, null, null);
ensureCapacityNode = EnsureCapacityArrayNodeGen.create(context, sourceSection, null, null);
generalizeNode = GeneralizeArrayNodeGen.create(context, sourceSection, null, null);
}

public abstract Object executeWrite(VirtualFrame frame, RubyArray array, int index, Object value);
Original file line number Diff line number Diff line change
@@ -23,9 +23,9 @@ public static RubyNode read(RubyContext context, SourceSection sourceSection, Ru
final RubyNode literalIndex = new FixnumLiteralNode.IntegerFixnumLiteralNode(context, sourceSection, index);

if (index >= 0) {
return ArrayReadNormalizedNodeFactory.create(context, sourceSection, array, literalIndex);
return ArrayReadNormalizedNodeGen.create(context, sourceSection, array, literalIndex);
} else {
return ArrayReadDenormalizedNodeFactory.create(context, sourceSection, array, literalIndex);
return ArrayReadDenormalizedNodeGen.create(context, sourceSection, array, literalIndex);
}
}

@@ -37,9 +37,9 @@ public static RubyNode readSlice(RubyContext context, SourceSection sourceSectio
final RubyNode literalExclusiveEnd = new FixnumLiteralNode.IntegerFixnumLiteralNode(context, sourceSection, exclusiveEnd);

if (start >= 0 && exclusiveEnd >= 0) {
return ArrayReadSliceNormalizedNodeFactory.create(context, sourceSection, array, literalStart, literalExclusiveEnd);
return ArrayReadSliceNormalizedNodeGen.create(context, sourceSection, array, literalStart, literalExclusiveEnd);
} else {
return ArrayReadSliceDenormalizedNodeFactory.create(context, sourceSection, array, literalStart, literalExclusiveEnd);
return ArrayReadSliceDenormalizedNodeGen.create(context, sourceSection, array, literalStart, literalExclusiveEnd);
}
}

Original file line number Diff line number Diff line change
@@ -16,7 +16,7 @@
import com.oracle.truffle.api.source.SourceSection;
import org.jruby.truffle.nodes.RubyNode;
import org.jruby.truffle.nodes.core.ArrayDupNode;
import org.jruby.truffle.nodes.core.ArrayDupNodeFactory;
import org.jruby.truffle.nodes.core.ArrayDupNodeGen;
import org.jruby.truffle.nodes.dispatch.CallDispatchHeadNode;
import org.jruby.truffle.nodes.dispatch.DispatchHeadNodeFactory;
import org.jruby.truffle.nodes.dispatch.DispatchNode;
@@ -50,9 +50,9 @@ public SplatCastNode(RubyContext context, SourceSection sourceSection, NilBehavi
super(context, sourceSection);
this.nilBehavior = nilBehavior;
// Calling private #to_a is allowed for the *splat operator.
dup = ArrayDupNodeFactory.create(context, sourceSection, null);
dup = ArrayDupNodeGen.create(context, sourceSection, null);
respondToToA = DispatchHeadNodeFactory.createMethodCall(context, true, MissingBehavior.RETURN_MISSING);
respondToCast = BooleanCastNodeFactory.create(context, sourceSection, null);
respondToCast = BooleanCastNodeGen.create(context, sourceSection, null);
toA = DispatchHeadNodeFactory.createMethodCall(context, true, MissingBehavior.RETURN_MISSING);
this.useToAry = useToAry;
}
Original file line number Diff line number Diff line change
@@ -18,9 +18,9 @@
import com.oracle.truffle.api.utilities.ConditionProfile;
import org.jruby.truffle.nodes.RubyNode;
import org.jruby.truffle.nodes.objects.IsTaintedNode;
import org.jruby.truffle.nodes.objects.IsTaintedNodeFactory;
import org.jruby.truffle.nodes.objects.IsTaintedNodeGen;
import org.jruby.truffle.nodes.objects.TaintNode;
import org.jruby.truffle.nodes.objects.TaintNodeFactory;
import org.jruby.truffle.nodes.objects.TaintNodeGen;
import org.jruby.truffle.runtime.RubyArguments;
import org.jruby.truffle.runtime.RubyContext;
import org.jruby.truffle.runtime.core.RubyBasicObject;
@@ -40,21 +40,21 @@ public TaintResultNode(boolean taintFromSelf, int taintFromParameter, RubyNode m
this.taintFromSelf = taintFromSelf;
this.taintFromParameter = taintFromParameter;
this.method = method;
this.isTaintedNode = IsTaintedNodeFactory.create(getContext(), getSourceSection(), null);
this.isTaintedNode = IsTaintedNodeGen.create(getContext(), getSourceSection(), null);
}

public TaintResultNode(RubyContext context, SourceSection sourceSection) {
super(context, sourceSection);
this.taintFromSelf = false;
this.taintFromParameter = -1;
this.isTaintedNode = IsTaintedNodeFactory.create(getContext(), getSourceSection(), null);
this.isTaintedNode = IsTaintedNodeGen.create(getContext(), getSourceSection(), null);
}

public Object maybeTaint(RubyBasicObject source, RubyBasicObject result) {
if (taintProfile.profile(isTaintedNode.isTainted(source))) {
if (taintNode == null) {
CompilerDirectives.transferToInterpreter();
taintNode = insert(TaintNodeFactory.create(getContext(), getSourceSection(), null));
taintNode = insert(TaintNodeGen.create(getContext(), getSourceSection(), null));
}

taintNode.taint(result);
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@
import com.oracle.truffle.api.utilities.ConditionProfile;
import org.jruby.truffle.nodes.RubyNode;
import org.jruby.truffle.nodes.cast.BooleanCastNode;
import org.jruby.truffle.nodes.cast.BooleanCastNodeFactory;
import org.jruby.truffle.nodes.cast.BooleanCastNodeGen;
import org.jruby.truffle.runtime.RubyContext;

/**
@@ -30,7 +30,7 @@ public class AndNode extends RubyNode {
public AndNode(RubyContext context, SourceSection sourceSection, RubyNode left, RubyNode right) {
super(context, sourceSection);
this.left = left;
leftCast = BooleanCastNodeFactory.create(context, sourceSection, null);
leftCast = BooleanCastNodeGen.create(context, sourceSection, null);
this.right = right;
}

Original file line number Diff line number Diff line change
@@ -13,7 +13,7 @@
import com.oracle.truffle.api.source.SourceSection;
import org.jruby.truffle.nodes.RubyNode;
import org.jruby.truffle.nodes.cast.BooleanCastNode;
import org.jruby.truffle.nodes.cast.BooleanCastNodeFactory;
import org.jruby.truffle.nodes.cast.BooleanCastNodeGen;
import org.jruby.truffle.nodes.methods.locals.FlipFlopStateNode;
import org.jruby.truffle.runtime.RubyContext;

@@ -27,8 +27,8 @@ public class FlipFlopNode extends RubyNode {

public FlipFlopNode(RubyContext context, SourceSection sourceSection, RubyNode begin, RubyNode end, FlipFlopStateNode stateNode, boolean exclusive) {
super(context, sourceSection);
this.begin = BooleanCastNodeFactory.create(context, sourceSection, begin);
this.end = BooleanCastNodeFactory.create(context, sourceSection, end);
this.begin = BooleanCastNodeGen.create(context, sourceSection, begin);
this.end = BooleanCastNodeGen.create(context, sourceSection, end);
this.stateNode = stateNode;
this.exclusive = exclusive;
}
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@
import com.oracle.truffle.api.utilities.BranchProfile;
import org.jruby.truffle.nodes.RubyNode;
import org.jruby.truffle.nodes.cast.BooleanCastNode;
import org.jruby.truffle.nodes.cast.BooleanCastNodeFactory;
import org.jruby.truffle.nodes.cast.BooleanCastNodeGen;
import org.jruby.truffle.runtime.RubyContext;

/**
@@ -39,7 +39,7 @@ public IfNode(RubyContext context, SourceSection sourceSection, RubyNode conditi
assert thenBody != null;
assert elseBody != null;

this.condition = BooleanCastNodeFactory.create(context, sourceSection, condition);
this.condition = BooleanCastNodeGen.create(context, sourceSection, condition);
this.thenBody = thenBody;
this.elseBody = elseBody;
}
Original file line number Diff line number Diff line change
@@ -13,7 +13,7 @@
import com.oracle.truffle.api.source.SourceSection;
import org.jruby.truffle.nodes.RubyNode;
import org.jruby.truffle.nodes.cast.BooleanCastNode;
import org.jruby.truffle.nodes.cast.BooleanCastNodeFactory;
import org.jruby.truffle.nodes.cast.BooleanCastNodeGen;
import org.jruby.truffle.runtime.RubyContext;

/**
@@ -25,7 +25,7 @@ public class NotNode extends RubyNode {

public NotNode(RubyContext context, SourceSection sourceSection, RubyNode child) {
super(context, sourceSection);
this.child = BooleanCastNodeFactory.create(context, sourceSection, child);
this.child = BooleanCastNodeGen.create(context, sourceSection, child);
}

@Override
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@
import com.oracle.truffle.api.utilities.ConditionProfile;
import org.jruby.truffle.nodes.RubyNode;
import org.jruby.truffle.nodes.cast.BooleanCastNode;
import org.jruby.truffle.nodes.cast.BooleanCastNodeFactory;
import org.jruby.truffle.nodes.cast.BooleanCastNodeGen;
import org.jruby.truffle.runtime.RubyContext;

/**
@@ -30,7 +30,7 @@ public class OrNode extends RubyNode {
public OrNode(RubyContext context, SourceSection sourceSection, RubyNode left, RubyNode right) {
super(context, sourceSection);
this.left = left;
leftCast = BooleanCastNodeFactory.create(context, sourceSection, null);
leftCast = BooleanCastNodeGen.create(context, sourceSection, null);
this.right = right;
}

Original file line number Diff line number Diff line change
@@ -18,7 +18,7 @@
import com.oracle.truffle.api.utilities.BranchProfile;
import org.jruby.truffle.nodes.RubyNode;
import org.jruby.truffle.nodes.cast.BooleanCastNode;
import org.jruby.truffle.nodes.cast.BooleanCastNodeFactory;
import org.jruby.truffle.nodes.cast.BooleanCastNodeGen;
import org.jruby.truffle.runtime.RubyContext;
import org.jruby.truffle.runtime.control.NextException;
import org.jruby.truffle.runtime.control.RedoException;
@@ -60,7 +60,7 @@ private static abstract class WhileRepeatingBaseNode extends Node implements Rep

public WhileRepeatingBaseNode(RubyContext context, RubyNode condition, RubyNode body) {
this.context = context;
this.condition = BooleanCastNodeFactory.create(context, condition.getSourceSection(), condition);
this.condition = BooleanCastNodeGen.create(context, condition.getSourceSection(), condition);
this.body = body;
}
}
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@
import org.jruby.truffle.runtime.RubyContext;

@ImportStatic(ArrayGuards.class)
public abstract class ArrayCoreMethodNode extends CoreMethodNode {
public abstract class ArrayCoreMethodNode extends CoreMethodArrayArgumentsNode {

public ArrayCoreMethodNode(RubyContext context, SourceSection sourceSection) {
super(context, sourceSection);
Loading