com.oracle.truffle.api.dsl.Fallback Java Examples

The following examples show how to use com.oracle.truffle.api.dsl.Fallback. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: NativeObjectNodes.java    From trufflesqueak with MIT License 5 votes vote down vote up
@SuppressWarnings("unused")
@Fallback
protected static final void doFail(final NativeObject obj, final long index, final Object value) {
    /*
     * Throw primitive failed (instead of UnsupportedSpecializationException) here for
     * PrimBasicAtPutNode.
     */
    throw PrimitiveFailed.GENERIC_ERROR;
}
 
Example #2
Source File: IOPrimitives.java    From trufflesqueak with MIT License 4 votes vote down vote up
@SuppressWarnings("unused")
@Fallback
protected static final void doFail(final NativeObject rcvr, final long start, final long stop, final Object repl, final long replStart) {
    throw PrimitiveFailed.GENERIC_ERROR;
}
 
Example #3
Source File: PrimitiveInterfaces.java    From trufflesqueak with MIT License 4 votes vote down vote up
@SuppressWarnings("unused")
@Fallback
default Object doPrimitiveFail(final Object arg1, final Object arg2, final Object arg3, final Object arg4, final Object arg5) {
    throw PrimitiveFailed.GENERIC_ERROR;
}
 
Example #4
Source File: PrimitiveInterfaces.java    From trufflesqueak with MIT License 4 votes vote down vote up
@SuppressWarnings("unused")
@Fallback
default Object doPrimitiveFail(final Object arg1, final Object arg2, final Object arg3, final Object arg4, final Object arg5, final Object arg6) {
    throw PrimitiveFailed.GENERIC_ERROR;
}
 
Example #5
Source File: PrimitiveInterfaces.java    From trufflesqueak with MIT License 4 votes vote down vote up
@SuppressWarnings("unused")
@Fallback
default Object doPrimitiveFail(final Object arg1, final Object arg2, final Object arg3, final Object arg4, final Object arg5, final Object arg6, final Object arg7) {
    throw PrimitiveFailed.GENERIC_ERROR;
}
 
Example #6
Source File: PrimitiveInterfaces.java    From trufflesqueak with MIT License 4 votes vote down vote up
@SuppressWarnings("unused")
@Fallback
default Object doPrimitiveFail(final Object arg1, final Object arg2, final Object arg3, final Object arg4, final Object arg5, final Object arg6, final Object arg7, final Object arg8) {
    throw PrimitiveFailed.GENERIC_ERROR;
}
 
Example #7
Source File: PrimitiveInterfaces.java    From trufflesqueak with MIT License 4 votes vote down vote up
@SuppressWarnings("unused")
@Fallback
default Object doPrimitiveFail(final Object arg1, final Object arg2, final Object arg3, final Object arg4, final Object arg5, final Object arg6, final Object arg7, final Object arg,
                final Object arg9, final Object arg10, final Object arg11, final Object arg12) {
    throw PrimitiveFailed.GENERIC_ERROR;
}
 
Example #8
Source File: StoragePrimitives.java    From trufflesqueak with MIT License 4 votes vote down vote up
@SuppressWarnings("unused")
@Fallback
protected static final Object doBadArgument(final Object receiver, final Object value) {
    throw PrimitiveFailed.BAD_ARGUMENT;
}
 
Example #9
Source File: IOPrimitives.java    From trufflesqueak with MIT License 4 votes vote down vote up
@SuppressWarnings("unused")
@Fallback
protected static final void doFail(final ArrayObject rcvr, final long start, final long stop, final Object repl, final long replStart) {
    throw PrimitiveFailed.GENERIC_ERROR;
}
 
Example #10
Source File: IOPrimitives.java    From trufflesqueak with MIT License 4 votes vote down vote up
@SuppressWarnings("unused")
@Fallback
protected static final void doFail(final LargeIntegerObject rcvr, final long start, final long stop, final Object repl, final long replStart) {
    throw PrimitiveFailed.GENERIC_ERROR;
}
 
Example #11
Source File: PrimitiveInterfaces.java    From trufflesqueak with MIT License 4 votes vote down vote up
@SuppressWarnings("unused")
@Fallback
default Object doPrimitiveFail(final Object arg1, final Object arg2, final Object arg3, final Object arg4) {
    throw PrimitiveFailed.GENERIC_ERROR;
}
 
Example #12
Source File: IOPrimitives.java    From trufflesqueak with MIT License 4 votes vote down vote up
@SuppressWarnings("unused")
@Fallback
protected static final void doFail(final PointersObject rcvr, final long start, final long stop, final Object repl, final long replStart) {
    throw PrimitiveFailed.GENERIC_ERROR;
}
 
Example #13
Source File: IOPrimitives.java    From trufflesqueak with MIT License 4 votes vote down vote up
@SuppressWarnings("unused")
@Fallback
protected static final void doFail(final VariablePointersObject rcvr, final long start, final long stop, final Object repl, final long replStart) {
    throw PrimitiveFailed.GENERIC_ERROR;
}
 
Example #14
Source File: IOPrimitives.java    From trufflesqueak with MIT License 4 votes vote down vote up
@SuppressWarnings("unused")
@Fallback
protected static final void doFail(final WeakVariablePointersObject rcvr, final long start, final long stop, final Object repl, final long replStart) {
    throw PrimitiveFailed.GENERIC_ERROR;
}
 
Example #15
Source File: SqueakObjectIdentityNode.java    From trufflesqueak with MIT License 4 votes vote down vote up
@Fallback
protected static final boolean doObject(final Object a, final Object b) {
    return BooleanObject.wrap(a == b);
}
 
Example #16
Source File: SqueakObjectChangeClassOfToNode.java    From trufflesqueak with MIT License 4 votes vote down vote up
@SuppressWarnings("unused")
@Fallback
protected static final AbstractSqueakObject doFail(final AbstractSqueakObjectWithClassAndHash receiver, final ClassObject argument) {
    throw PrimitiveFailed.GENERIC_ERROR;
}
 
Example #17
Source File: MiscPrimitivePlugin.java    From trufflesqueak with MIT License 4 votes vote down vote up
@SuppressWarnings("unused")
@Fallback
protected static final long doFail(final Object receiver, final Object string1, final Object string2, final Object order) {
    throw PrimitiveFailed.BAD_ARGUMENT;
}
 
Example #18
Source File: SqueakFFIPrims.java    From trufflesqueak with MIT License 4 votes vote down vote up
@Fallback
protected static final Object doFallback(@SuppressWarnings("unused") final int headerWord, final Object value) {
    return value;
}
 
Example #19
Source File: Kernel.java    From grcuda with BSD 3-Clause "New" or "Revised" License 4 votes vote down vote up
@Fallback
public static Object readMemberOther(Kernel receiver, String member) throws UnknownIdentifierException {
    throw UnknownIdentifierException.create(member);
}
 
Example #20
Source File: HashemMulNode.java    From mr-hashemi with Universal Permissive License v1.0 4 votes vote down vote up
@Fallback
protected Object typeError(Object left, Object right) {
    throw HashemException.typeError(this, left, right);
}
 
Example #21
Source File: HashemDivNode.java    From mr-hashemi with Universal Permissive License v1.0 4 votes vote down vote up
@Fallback
protected Object typeError(Object left, Object right) {
    throw HashemException.typeError(this, left, right);
}
 
Example #22
Source File: HashemAddNode.java    From mr-hashemi with Universal Permissive License v1.0 4 votes vote down vote up
@Fallback
protected Object typeError(Object left, Object right) {
    throw HashemException.typeError(this, left, right);
}
 
Example #23
Source File: HashemEqualNode.java    From mr-hashemi with Universal Permissive License v1.0 4 votes vote down vote up
@Fallback
protected Object typeError(Object left, Object right) {
    throw HashemException.typeError(this, left, right);
}
 
Example #24
Source File: HashemLessOrEqualNode.java    From mr-hashemi with Universal Permissive License v1.0 4 votes vote down vote up
@Fallback
protected Object typeError(Object left, Object right) {
    throw HashemException.typeError(this, left, right);
}
 
Example #25
Source File: HashemModNode.java    From mr-hashemi with Universal Permissive License v1.0 4 votes vote down vote up
@Fallback
protected Object typeError(Object left, Object right) {
    throw HashemException.typeError(this, left, right);
}
 
Example #26
Source File: HashemLessThanNode.java    From mr-hashemi with Universal Permissive License v1.0 4 votes vote down vote up
@Fallback
protected Object typeError(Object left, Object right) {
    throw HashemException.typeError(this, left, right);
}
 
Example #27
Source File: HashemSubNode.java    From mr-hashemi with Universal Permissive License v1.0 4 votes vote down vote up
@Fallback
protected Object typeError(Object left, Object right) {
    throw HashemException.typeError(this, left, right);
}
 
Example #28
Source File: HashemLogicalNotNode.java    From mr-hashemi with Universal Permissive License v1.0 4 votes vote down vote up
@Fallback
protected Object typeError(Object value) {
    throw HashemException.typeError(this, value);
}
 
Example #29
Source File: MapFunction.java    From grcuda with BSD 3-Clause "New" or "Revised" License 4 votes vote down vote up
@Fallback
static MapFunctionBase readMemberOther(MapFunction receiver, String member) throws UnknownIdentifierException {
    throw UnknownIdentifierException.create(member);
}
 
Example #30
Source File: ConvertToSqueakNode.java    From trufflesqueak with MIT License 4 votes vote down vote up
@Fallback
protected static final NilObject doFail(@SuppressWarnings("unused") final Object value) {
    return NilObject.SINGLETON; /* Return nil if conversion fails. */
}