@Override public Object execute_(VirtualFrame frameValue, Object valueNodeValue) { if (valueNodeValue instanceof Long) { long valueNodeValue_ = (long) valueNodeValue; return root.executeUnbox(valueNodeValue_); } return getNext().execute_(frameValue, valueNodeValue); }
@Override public Object execute_(VirtualFrame frameValue, Object firstNodeValue, Object secondNodeValue) { if (firstNodeValue instanceof Long && secondNodeValue instanceof Long) { long firstNodeValue_ = (long) firstNodeValue; long secondNodeValue_ = (long) secondNodeValue; return root.execute(firstNodeValue_, secondNodeValue_); } return getNext().execute_(frameValue, firstNodeValue, secondNodeValue); }
/** * Internal method used by the JUnit framework. Do not call directly. * * @since 0.25 */ @Override protected void validateTestMethods(List<Throwable> errors) { TruffleTestInvoker.validateTestMethods(getTestClass(), errors); }
@Override public void testIgnored(Description description) { l.testStarted(description); l.testStartedDelimiter(); l.testIgnored(description); l.testFinished(description); l.testFinishedDelimiter(); }
@Override public Object execute_(VirtualFrame frameValue, Object valueNodeValue) { if (valueNodeValue instanceof TruffleObject) { TruffleObject valueNodeValue_ = (TruffleObject) valueNodeValue; if ((root.isBoxedPrimitive(frameValue, valueNodeValue_))) { return root.executeUnbox(frameValue, valueNodeValue_); } } return getNext().execute_(frameValue, valueNodeValue); }
@Override protected void validateTestMethods(List<Throwable> errors) { TruffleTestInvoker.validateTestMethods(getTestClass(), errors); }
@Override public Object execute_(VirtualFrame frameValue, Object firstNodeValue, Object secondNodeValue) { if (firstNodeValue instanceof Double && secondNodeValue instanceof Double) { double firstNodeValue_ = (double) firstNodeValue; double secondNodeValue_ = (double) secondNodeValue; return root.execute(firstNodeValue_, secondNodeValue_); } return getNext().execute_(frameValue, firstNodeValue, secondNodeValue); }
@Override public Object execute_(VirtualFrame frameValue, Object valueNodeValue) { if (valueNodeValue instanceof Integer) { int valueNodeValue_ = (int) valueNodeValue; return root.executeUnbox(valueNodeValue_); } return getNext().execute_(frameValue, valueNodeValue); }
@Override public Object execute_(VirtualFrame frameValue, Object valueNodeValue) { if (valueNodeValue instanceof String) { String valueNodeValue_ = (String) valueNodeValue; return root.executeUnbox(valueNodeValue_); } return getNext().execute_(frameValue, valueNodeValue); }
@Override public Object execute_(VirtualFrame frameValue, Object firstNodeValue, Object secondNodeValue) { if (firstNodeValue instanceof Integer && secondNodeValue instanceof Integer) { int firstNodeValue_ = (int) firstNodeValue; int secondNodeValue_ = (int) secondNodeValue; return root.execute(firstNodeValue_, secondNodeValue_); } return getNext().execute_(frameValue, firstNodeValue, secondNodeValue); }
@Override protected final SpecializationNode createNext(Frame frameValue, Object firstNodeValue, Object secondNodeValue) { if (firstNodeValue instanceof Integer && secondNodeValue instanceof Integer) { return Execute0Node_.create(root); } if (firstNodeValue instanceof Long && secondNodeValue instanceof Long) { return Execute1Node_.create(root); } if (firstNodeValue instanceof Double && secondNodeValue instanceof Double) { return Execute2Node_.create(root); } return null; }
public Object execute(VirtualFrame frameValue) { Object firstNodeValue_ = root.firstNode_.executeUnbox(frameValue); Object secondNodeValue_ = root.secondNode_.executeUnbox(frameValue); return execute_(frameValue, firstNodeValue_, secondNodeValue_); }
@Override public SpecializationNode merge(SpecializationNode newNode, Frame frameValue, Object firstNodeValue, Object secondNodeValue) { return polymorphicMerge(newNode, super.merge(newNode, frameValue, firstNodeValue, secondNodeValue)); }
@Override public SpecializationNode merge(SpecializationNode newNode, Frame frameValue, Object valueNodeValue) { return polymorphicMerge(newNode, super.merge(newNode, frameValue, valueNodeValue)); }
/** * Expects the current evaluation to be completed successfully and not be killed or to produce * further suspended events. It returns a string representation of the result value to be * asserted. If the evaluation caused any errors they are thrown as {@link AssertionError}. * Throws an {@link IllegalStateException} if the tester is already closed. * * @since 0.16 */ public String expectDone() { return (String) expectDoneImpl(false); }
/** * Internal method used by the JUnit framework. Do not call directly. * * @since 0.27 */ @Override protected TestClass createTestClass(Class<?> testClass) { return new TruffleTestClass(testClass); } }
private MaxMinNodeGen(boolean max, UnboxNode firstNode, UnboxNode secondNode) { super(max); this.firstNode_ = firstNode; this.secondNode_ = secondNode; this.specialization_ = UninitializedNode_.create(this); }
@Override public final void testFailure(Failure failure) { failed = true; l.testFailed(failure); }
/** * Internal method used by the JUnit framework. Do not call directly. * * @since 0.25 */ @Override protected void validateTestMethods(List<Throwable> errors) { TruffleTestInvoker.validateTestMethods(getTestClass(), errors); }