All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.oracle.truffle.js.runtime.JSExceptionGen Maven / Gradle / Ivy

// CheckStyle: start generated
package com.oracle.truffle.js.runtime;

import com.oracle.truffle.api.CompilerDirectives;
import com.oracle.truffle.api.CompilerDirectives.CompilationFinal;
import com.oracle.truffle.api.CompilerDirectives.TruffleBoundary;
import com.oracle.truffle.api.dsl.GeneratedBy;
import com.oracle.truffle.api.interop.ArityException;
import com.oracle.truffle.api.interop.ExceptionType;
import com.oracle.truffle.api.interop.InteropLibrary;
import com.oracle.truffle.api.interop.UnknownIdentifierException;
import com.oracle.truffle.api.interop.UnsupportedMessageException;
import com.oracle.truffle.api.interop.UnsupportedTypeException;
import com.oracle.truffle.api.library.LibraryExport;
import com.oracle.truffle.api.library.LibraryFactory;
import com.oracle.truffle.api.nodes.DenyReplace;
import com.oracle.truffle.js.runtime.GraalJSException.IsIdenticalOrUndefined;
import java.lang.invoke.VarHandle;

@GeneratedBy(JSException.class)
@SuppressWarnings("javadoc")
final class JSExceptionGen {

    private static final LibraryFactory INTEROP_LIBRARY_ = LibraryFactory.resolve(InteropLibrary.class);

    static  {
        LibraryExport.register(JSException.class, new InteropLibraryExports());
    }

    private JSExceptionGen() {
    }

    @GeneratedBy(JSException.class)
    private static final class InteropLibraryExports extends LibraryExport {

        private InteropLibraryExports() {
            super(InteropLibrary.class, JSException.class, false, false, 0);
        }

        @Override
        protected InteropLibrary createUncached(Object receiver) {
            assert receiver instanceof JSException;
            InteropLibrary uncached = new Uncached(receiver);
            return uncached;
        }

        @Override
        protected InteropLibrary createCached(Object receiver) {
            assert receiver instanceof JSException;
            return new Cached(receiver);
        }

        @GeneratedBy(JSException.class)
        private static final class Cached extends GraalJSExceptionGen.InteropLibraryExports.Cached {

            /**
             * State Info: 
             *   0: SpecializationActive {@link JSException#getMembers(JSException, boolean, InteropLibrary)}
             *   1: SpecializationActive {@link JSException#isMemberReadable(JSException, String, InteropLibrary)}
             *   2: SpecializationActive {@link JSException#isMemberModifiable(JSException, String, InteropLibrary)}
             *   3: SpecializationActive {@link JSException#isMemberInsertable(JSException, String, InteropLibrary)}
             *   4: SpecializationActive {@link JSException#isMemberRemovable(JSException, String, InteropLibrary)}
             *   5: SpecializationActive {@link JSException#isMemberInvocable(JSException, String, InteropLibrary)}
             *   6: SpecializationActive {@link JSException#hasMemberReadSideEffects(JSException, String, InteropLibrary)}
             *   7: SpecializationActive {@link JSException#hasMemberWriteSideEffects(JSException, String, InteropLibrary)}
             *   8: SpecializationActive {@link JSException#readMember(JSException, String, InteropLibrary)}
             *   9: SpecializationActive {@link JSException#writeMember(JSException, String, Object, InteropLibrary)}
             *   10: SpecializationActive {@link JSException#removeMember(JSException, String, InteropLibrary)}
             *   11: SpecializationActive {@link JSException#invokeMember(JSException, String, Object[], InteropLibrary)}
             *   12: SpecializationActive {@link JSException#hasMetaObject(JSException, InteropLibrary)}
             *   13: SpecializationActive {@link JSException#getMetaObject(JSException, InteropLibrary)}
             * 
*/ @CompilationFinal private int state_0_; /** * Source Info:
             *   Specialization: {@link IsIdenticalOrUndefined#doException}
             *   Parameter: {@link InteropLibrary} thisLib
*/ @Child private InteropLibrary thisLib; /** * Source Info:
             *   Specialization: {@link IsIdenticalOrUndefined#doException}
             *   Parameter: {@link InteropLibrary} otherLib
*/ @Child private InteropLibrary otherLib; /** * Source Info:
             *   Specialization: {@link JSException#getMembers}
             *   Parameter: {@link InteropLibrary} delegateLib
*/ @Child private InteropLibrary delegateLib; protected Cached(Object receiver) { super(receiver); } @Override public ExceptionType getExceptionType(Object receiver) throws UnsupportedMessageException { assert this.accepts(receiver) : "Invalid library usage. Library does not accept given receiver."; assert assertAdopted(); return (((JSException) receiver)).getExceptionType(); } @Override public boolean isExceptionIncompleteSource(Object receiver) throws UnsupportedMessageException { assert this.accepts(receiver) : "Invalid library usage. Library does not accept given receiver."; assert assertAdopted(); return (((JSException) receiver)).isExceptionIncompleteSource(); } @Override public boolean hasMembers(Object receiver) { assert this.accepts(receiver) : "Invalid library usage. Library does not accept given receiver."; assert assertAdopted(); return (((JSException) receiver)).hasMembers(); } /** * Debug Info:
             *   Specialization {@link JSException#getMembers(JSException, boolean, InteropLibrary)}
             *     Activation probability: 0.06250
             *     With/without class size: 4/0 bytes
             * 
*/ @Override public Object getMembers(Object arg0Value_, boolean arg1Value) throws UnsupportedMessageException { assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver."; assert assertAdopted(); JSException arg0Value = ((JSException) arg0Value_); int state_0 = this.state_0_; if ((state_0 & 0b1) != 0 /* is SpecializationActive[JSException.getMembers(JSException, boolean, InteropLibrary)] */) { { InteropLibrary delegateLib_ = this.delegateLib; if (delegateLib_ != null) { return arg0Value.getMembers(arg1Value, delegateLib_); } } } CompilerDirectives.transferToInterpreterAndInvalidate(); return getMembersNode_AndSpecialize(arg0Value, arg1Value); } private Object getMembersNode_AndSpecialize(JSException arg0Value, boolean arg1Value) throws UnsupportedMessageException { int state_0 = this.state_0_; InteropLibrary delegateLib_; InteropLibrary delegateLib__shared = this.delegateLib; if (delegateLib__shared != null) { delegateLib_ = delegateLib__shared; } else { delegateLib_ = this.insert((INTEROP_LIBRARY_.createDispatched(JSConfig.InteropLibraryLimit))); if (delegateLib_ == null) { throw new IllegalStateException("A specialization returned a default value for a cached initializer. Default values are not supported for shared cached initializers because the default value is reserved for the uninitialized state."); } } if (this.delegateLib == null) { VarHandle.storeStoreFence(); this.delegateLib = delegateLib_; } state_0 = state_0 | 0b1 /* add SpecializationActive[JSException.getMembers(JSException, boolean, InteropLibrary)] */; this.state_0_ = state_0; return arg0Value.getMembers(arg1Value, delegateLib_); } /** * Debug Info:
             *   Specialization {@link JSException#isMemberReadable(JSException, String, InteropLibrary)}
             *     Activation probability: 0.06250
             *     With/without class size: 4/0 bytes
             * 
*/ @Override public boolean isMemberReadable(Object arg0Value_, String arg1Value) { assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver."; assert assertAdopted(); JSException arg0Value = ((JSException) arg0Value_); int state_0 = this.state_0_; if ((state_0 & 0b10) != 0 /* is SpecializationActive[JSException.isMemberReadable(JSException, String, InteropLibrary)] */) { { InteropLibrary delegateLib_ = this.delegateLib; if (delegateLib_ != null) { return arg0Value.isMemberReadable(arg1Value, delegateLib_); } } } CompilerDirectives.transferToInterpreterAndInvalidate(); return isMemberReadableNode_AndSpecialize(arg0Value, arg1Value); } private boolean isMemberReadableNode_AndSpecialize(JSException arg0Value, String arg1Value) { int state_0 = this.state_0_; InteropLibrary delegateLib_; InteropLibrary delegateLib__shared = this.delegateLib; if (delegateLib__shared != null) { delegateLib_ = delegateLib__shared; } else { delegateLib_ = this.insert((INTEROP_LIBRARY_.createDispatched(JSConfig.InteropLibraryLimit))); if (delegateLib_ == null) { throw new IllegalStateException("A specialization returned a default value for a cached initializer. Default values are not supported for shared cached initializers because the default value is reserved for the uninitialized state."); } } if (this.delegateLib == null) { VarHandle.storeStoreFence(); this.delegateLib = delegateLib_; } state_0 = state_0 | 0b10 /* add SpecializationActive[JSException.isMemberReadable(JSException, String, InteropLibrary)] */; this.state_0_ = state_0; return arg0Value.isMemberReadable(arg1Value, delegateLib_); } /** * Debug Info:
             *   Specialization {@link JSException#isMemberModifiable(JSException, String, InteropLibrary)}
             *     Activation probability: 0.06250
             *     With/without class size: 4/0 bytes
             * 
*/ @Override public boolean isMemberModifiable(Object arg0Value_, String arg1Value) { assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver."; assert assertAdopted(); JSException arg0Value = ((JSException) arg0Value_); int state_0 = this.state_0_; if ((state_0 & 0b100) != 0 /* is SpecializationActive[JSException.isMemberModifiable(JSException, String, InteropLibrary)] */) { { InteropLibrary delegateLib_ = this.delegateLib; if (delegateLib_ != null) { return arg0Value.isMemberModifiable(arg1Value, delegateLib_); } } } CompilerDirectives.transferToInterpreterAndInvalidate(); return isMemberModifiableNode_AndSpecialize(arg0Value, arg1Value); } private boolean isMemberModifiableNode_AndSpecialize(JSException arg0Value, String arg1Value) { int state_0 = this.state_0_; InteropLibrary delegateLib_; InteropLibrary delegateLib__shared = this.delegateLib; if (delegateLib__shared != null) { delegateLib_ = delegateLib__shared; } else { delegateLib_ = this.insert((INTEROP_LIBRARY_.createDispatched(JSConfig.InteropLibraryLimit))); if (delegateLib_ == null) { throw new IllegalStateException("A specialization returned a default value for a cached initializer. Default values are not supported for shared cached initializers because the default value is reserved for the uninitialized state."); } } if (this.delegateLib == null) { VarHandle.storeStoreFence(); this.delegateLib = delegateLib_; } state_0 = state_0 | 0b100 /* add SpecializationActive[JSException.isMemberModifiable(JSException, String, InteropLibrary)] */; this.state_0_ = state_0; return arg0Value.isMemberModifiable(arg1Value, delegateLib_); } /** * Debug Info:
             *   Specialization {@link JSException#isMemberInsertable(JSException, String, InteropLibrary)}
             *     Activation probability: 0.06250
             *     With/without class size: 4/0 bytes
             * 
*/ @Override public boolean isMemberInsertable(Object arg0Value_, String arg1Value) { assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver."; assert assertAdopted(); JSException arg0Value = ((JSException) arg0Value_); int state_0 = this.state_0_; if ((state_0 & 0b1000) != 0 /* is SpecializationActive[JSException.isMemberInsertable(JSException, String, InteropLibrary)] */) { { InteropLibrary delegateLib_ = this.delegateLib; if (delegateLib_ != null) { return arg0Value.isMemberInsertable(arg1Value, delegateLib_); } } } CompilerDirectives.transferToInterpreterAndInvalidate(); return isMemberInsertableNode_AndSpecialize(arg0Value, arg1Value); } private boolean isMemberInsertableNode_AndSpecialize(JSException arg0Value, String arg1Value) { int state_0 = this.state_0_; InteropLibrary delegateLib_; InteropLibrary delegateLib__shared = this.delegateLib; if (delegateLib__shared != null) { delegateLib_ = delegateLib__shared; } else { delegateLib_ = this.insert((INTEROP_LIBRARY_.createDispatched(JSConfig.InteropLibraryLimit))); if (delegateLib_ == null) { throw new IllegalStateException("A specialization returned a default value for a cached initializer. Default values are not supported for shared cached initializers because the default value is reserved for the uninitialized state."); } } if (this.delegateLib == null) { VarHandle.storeStoreFence(); this.delegateLib = delegateLib_; } state_0 = state_0 | 0b1000 /* add SpecializationActive[JSException.isMemberInsertable(JSException, String, InteropLibrary)] */; this.state_0_ = state_0; return arg0Value.isMemberInsertable(arg1Value, delegateLib_); } /** * Debug Info:
             *   Specialization {@link JSException#isMemberRemovable(JSException, String, InteropLibrary)}
             *     Activation probability: 0.06250
             *     With/without class size: 4/0 bytes
             * 
*/ @Override public boolean isMemberRemovable(Object arg0Value_, String arg1Value) { assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver."; assert assertAdopted(); JSException arg0Value = ((JSException) arg0Value_); int state_0 = this.state_0_; if ((state_0 & 0b10000) != 0 /* is SpecializationActive[JSException.isMemberRemovable(JSException, String, InteropLibrary)] */) { { InteropLibrary delegateLib_ = this.delegateLib; if (delegateLib_ != null) { return arg0Value.isMemberRemovable(arg1Value, delegateLib_); } } } CompilerDirectives.transferToInterpreterAndInvalidate(); return isMemberRemovableNode_AndSpecialize(arg0Value, arg1Value); } private boolean isMemberRemovableNode_AndSpecialize(JSException arg0Value, String arg1Value) { int state_0 = this.state_0_; InteropLibrary delegateLib_; InteropLibrary delegateLib__shared = this.delegateLib; if (delegateLib__shared != null) { delegateLib_ = delegateLib__shared; } else { delegateLib_ = this.insert((INTEROP_LIBRARY_.createDispatched(JSConfig.InteropLibraryLimit))); if (delegateLib_ == null) { throw new IllegalStateException("A specialization returned a default value for a cached initializer. Default values are not supported for shared cached initializers because the default value is reserved for the uninitialized state."); } } if (this.delegateLib == null) { VarHandle.storeStoreFence(); this.delegateLib = delegateLib_; } state_0 = state_0 | 0b10000 /* add SpecializationActive[JSException.isMemberRemovable(JSException, String, InteropLibrary)] */; this.state_0_ = state_0; return arg0Value.isMemberRemovable(arg1Value, delegateLib_); } /** * Debug Info:
             *   Specialization {@link JSException#isMemberInvocable(JSException, String, InteropLibrary)}
             *     Activation probability: 0.06250
             *     With/without class size: 4/0 bytes
             * 
*/ @Override public boolean isMemberInvocable(Object arg0Value_, String arg1Value) { assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver."; assert assertAdopted(); JSException arg0Value = ((JSException) arg0Value_); int state_0 = this.state_0_; if ((state_0 & 0b100000) != 0 /* is SpecializationActive[JSException.isMemberInvocable(JSException, String, InteropLibrary)] */) { { InteropLibrary delegateLib_ = this.delegateLib; if (delegateLib_ != null) { return arg0Value.isMemberInvocable(arg1Value, delegateLib_); } } } CompilerDirectives.transferToInterpreterAndInvalidate(); return isMemberInvocableNode_AndSpecialize(arg0Value, arg1Value); } private boolean isMemberInvocableNode_AndSpecialize(JSException arg0Value, String arg1Value) { int state_0 = this.state_0_; InteropLibrary delegateLib_; InteropLibrary delegateLib__shared = this.delegateLib; if (delegateLib__shared != null) { delegateLib_ = delegateLib__shared; } else { delegateLib_ = this.insert((INTEROP_LIBRARY_.createDispatched(JSConfig.InteropLibraryLimit))); if (delegateLib_ == null) { throw new IllegalStateException("A specialization returned a default value for a cached initializer. Default values are not supported for shared cached initializers because the default value is reserved for the uninitialized state."); } } if (this.delegateLib == null) { VarHandle.storeStoreFence(); this.delegateLib = delegateLib_; } state_0 = state_0 | 0b100000 /* add SpecializationActive[JSException.isMemberInvocable(JSException, String, InteropLibrary)] */; this.state_0_ = state_0; return arg0Value.isMemberInvocable(arg1Value, delegateLib_); } /** * Debug Info:
             *   Specialization {@link JSException#hasMemberReadSideEffects(JSException, String, InteropLibrary)}
             *     Activation probability: 0.06250
             *     With/without class size: 4/0 bytes
             * 
*/ @Override public boolean hasMemberReadSideEffects(Object arg0Value_, String arg1Value) { assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver."; assert assertAdopted(); JSException arg0Value = ((JSException) arg0Value_); int state_0 = this.state_0_; if ((state_0 & 0b1000000) != 0 /* is SpecializationActive[JSException.hasMemberReadSideEffects(JSException, String, InteropLibrary)] */) { { InteropLibrary delegateLib_ = this.delegateLib; if (delegateLib_ != null) { return arg0Value.hasMemberReadSideEffects(arg1Value, delegateLib_); } } } CompilerDirectives.transferToInterpreterAndInvalidate(); return hasMemberReadSideEffectsNode_AndSpecialize(arg0Value, arg1Value); } private boolean hasMemberReadSideEffectsNode_AndSpecialize(JSException arg0Value, String arg1Value) { int state_0 = this.state_0_; InteropLibrary delegateLib_; InteropLibrary delegateLib__shared = this.delegateLib; if (delegateLib__shared != null) { delegateLib_ = delegateLib__shared; } else { delegateLib_ = this.insert((INTEROP_LIBRARY_.createDispatched(JSConfig.InteropLibraryLimit))); if (delegateLib_ == null) { throw new IllegalStateException("A specialization returned a default value for a cached initializer. Default values are not supported for shared cached initializers because the default value is reserved for the uninitialized state."); } } if (this.delegateLib == null) { VarHandle.storeStoreFence(); this.delegateLib = delegateLib_; } state_0 = state_0 | 0b1000000 /* add SpecializationActive[JSException.hasMemberReadSideEffects(JSException, String, InteropLibrary)] */; this.state_0_ = state_0; return arg0Value.hasMemberReadSideEffects(arg1Value, delegateLib_); } /** * Debug Info:
             *   Specialization {@link JSException#hasMemberWriteSideEffects(JSException, String, InteropLibrary)}
             *     Activation probability: 0.06250
             *     With/without class size: 4/0 bytes
             * 
*/ @Override public boolean hasMemberWriteSideEffects(Object arg0Value_, String arg1Value) { assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver."; assert assertAdopted(); JSException arg0Value = ((JSException) arg0Value_); int state_0 = this.state_0_; if ((state_0 & 0b10000000) != 0 /* is SpecializationActive[JSException.hasMemberWriteSideEffects(JSException, String, InteropLibrary)] */) { { InteropLibrary delegateLib_ = this.delegateLib; if (delegateLib_ != null) { return arg0Value.hasMemberWriteSideEffects(arg1Value, delegateLib_); } } } CompilerDirectives.transferToInterpreterAndInvalidate(); return hasMemberWriteSideEffectsNode_AndSpecialize(arg0Value, arg1Value); } private boolean hasMemberWriteSideEffectsNode_AndSpecialize(JSException arg0Value, String arg1Value) { int state_0 = this.state_0_; InteropLibrary delegateLib_; InteropLibrary delegateLib__shared = this.delegateLib; if (delegateLib__shared != null) { delegateLib_ = delegateLib__shared; } else { delegateLib_ = this.insert((INTEROP_LIBRARY_.createDispatched(JSConfig.InteropLibraryLimit))); if (delegateLib_ == null) { throw new IllegalStateException("A specialization returned a default value for a cached initializer. Default values are not supported for shared cached initializers because the default value is reserved for the uninitialized state."); } } if (this.delegateLib == null) { VarHandle.storeStoreFence(); this.delegateLib = delegateLib_; } state_0 = state_0 | 0b10000000 /* add SpecializationActive[JSException.hasMemberWriteSideEffects(JSException, String, InteropLibrary)] */; this.state_0_ = state_0; return arg0Value.hasMemberWriteSideEffects(arg1Value, delegateLib_); } /** * Debug Info:
             *   Specialization {@link JSException#readMember(JSException, String, InteropLibrary)}
             *     Activation probability: 0.06250
             *     With/without class size: 4/0 bytes
             * 
*/ @Override public Object readMember(Object arg0Value_, String arg1Value) throws UnsupportedMessageException, UnknownIdentifierException { assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver."; assert assertAdopted(); JSException arg0Value = ((JSException) arg0Value_); int state_0 = this.state_0_; if ((state_0 & 0b100000000) != 0 /* is SpecializationActive[JSException.readMember(JSException, String, InteropLibrary)] */) { { InteropLibrary delegateLib_ = this.delegateLib; if (delegateLib_ != null) { return arg0Value.readMember(arg1Value, delegateLib_); } } } CompilerDirectives.transferToInterpreterAndInvalidate(); return readMemberNode_AndSpecialize(arg0Value, arg1Value); } private Object readMemberNode_AndSpecialize(JSException arg0Value, String arg1Value) throws UnknownIdentifierException, UnsupportedMessageException { int state_0 = this.state_0_; InteropLibrary delegateLib_; InteropLibrary delegateLib__shared = this.delegateLib; if (delegateLib__shared != null) { delegateLib_ = delegateLib__shared; } else { delegateLib_ = this.insert((INTEROP_LIBRARY_.createDispatched(JSConfig.InteropLibraryLimit))); if (delegateLib_ == null) { throw new IllegalStateException("A specialization returned a default value for a cached initializer. Default values are not supported for shared cached initializers because the default value is reserved for the uninitialized state."); } } if (this.delegateLib == null) { VarHandle.storeStoreFence(); this.delegateLib = delegateLib_; } state_0 = state_0 | 0b100000000 /* add SpecializationActive[JSException.readMember(JSException, String, InteropLibrary)] */; this.state_0_ = state_0; return arg0Value.readMember(arg1Value, delegateLib_); } /** * Debug Info:
             *   Specialization {@link JSException#writeMember(JSException, String, Object, InteropLibrary)}
             *     Activation probability: 0.06250
             *     With/without class size: 4/0 bytes
             * 
*/ @Override public void writeMember(Object arg0Value_, String arg1Value, Object arg2Value) throws UnsupportedMessageException, UnknownIdentifierException, UnsupportedTypeException { assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver."; assert assertAdopted(); JSException arg0Value = ((JSException) arg0Value_); int state_0 = this.state_0_; if ((state_0 & 0b1000000000) != 0 /* is SpecializationActive[JSException.writeMember(JSException, String, Object, InteropLibrary)] */) { { InteropLibrary delegateLib_ = this.delegateLib; if (delegateLib_ != null) { arg0Value.writeMember(arg1Value, arg2Value, delegateLib_); return; } } } CompilerDirectives.transferToInterpreterAndInvalidate(); writeMemberNode_AndSpecialize(arg0Value, arg1Value, arg2Value); return; } private void writeMemberNode_AndSpecialize(JSException arg0Value, String arg1Value, Object arg2Value) throws UnsupportedMessageException, UnknownIdentifierException, UnsupportedTypeException { int state_0 = this.state_0_; InteropLibrary delegateLib_; InteropLibrary delegateLib__shared = this.delegateLib; if (delegateLib__shared != null) { delegateLib_ = delegateLib__shared; } else { delegateLib_ = this.insert((INTEROP_LIBRARY_.createDispatched(JSConfig.InteropLibraryLimit))); if (delegateLib_ == null) { throw new IllegalStateException("A specialization returned a default value for a cached initializer. Default values are not supported for shared cached initializers because the default value is reserved for the uninitialized state."); } } if (this.delegateLib == null) { VarHandle.storeStoreFence(); this.delegateLib = delegateLib_; } state_0 = state_0 | 0b1000000000 /* add SpecializationActive[JSException.writeMember(JSException, String, Object, InteropLibrary)] */; this.state_0_ = state_0; arg0Value.writeMember(arg1Value, arg2Value, delegateLib_); return; } /** * Debug Info:
             *   Specialization {@link JSException#removeMember(JSException, String, InteropLibrary)}
             *     Activation probability: 0.06250
             *     With/without class size: 4/0 bytes
             * 
*/ @Override public void removeMember(Object arg0Value_, String arg1Value) throws UnsupportedMessageException, UnknownIdentifierException { assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver."; assert assertAdopted(); JSException arg0Value = ((JSException) arg0Value_); int state_0 = this.state_0_; if ((state_0 & 0b10000000000) != 0 /* is SpecializationActive[JSException.removeMember(JSException, String, InteropLibrary)] */) { { InteropLibrary delegateLib_ = this.delegateLib; if (delegateLib_ != null) { arg0Value.removeMember(arg1Value, delegateLib_); return; } } } CompilerDirectives.transferToInterpreterAndInvalidate(); removeMemberNode_AndSpecialize(arg0Value, arg1Value); return; } private void removeMemberNode_AndSpecialize(JSException arg0Value, String arg1Value) throws UnsupportedMessageException, UnknownIdentifierException { int state_0 = this.state_0_; InteropLibrary delegateLib_; InteropLibrary delegateLib__shared = this.delegateLib; if (delegateLib__shared != null) { delegateLib_ = delegateLib__shared; } else { delegateLib_ = this.insert((INTEROP_LIBRARY_.createDispatched(JSConfig.InteropLibraryLimit))); if (delegateLib_ == null) { throw new IllegalStateException("A specialization returned a default value for a cached initializer. Default values are not supported for shared cached initializers because the default value is reserved for the uninitialized state."); } } if (this.delegateLib == null) { VarHandle.storeStoreFence(); this.delegateLib = delegateLib_; } state_0 = state_0 | 0b10000000000 /* add SpecializationActive[JSException.removeMember(JSException, String, InteropLibrary)] */; this.state_0_ = state_0; arg0Value.removeMember(arg1Value, delegateLib_); return; } /** * Debug Info:
             *   Specialization {@link JSException#invokeMember(JSException, String, Object[], InteropLibrary)}
             *     Activation probability: 0.06250
             *     With/without class size: 4/0 bytes
             * 
*/ @Override public Object invokeMember(Object arg0Value_, String arg1Value, Object... arg2Value) throws UnsupportedMessageException, ArityException, UnknownIdentifierException, UnsupportedTypeException { assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver."; assert assertAdopted(); JSException arg0Value = ((JSException) arg0Value_); int state_0 = this.state_0_; if ((state_0 & 0b100000000000) != 0 /* is SpecializationActive[JSException.invokeMember(JSException, String, Object[], InteropLibrary)] */) { { InteropLibrary delegateLib_ = this.delegateLib; if (delegateLib_ != null) { return arg0Value.invokeMember(arg1Value, arg2Value, delegateLib_); } } } CompilerDirectives.transferToInterpreterAndInvalidate(); return invokeMemberNode_AndSpecialize(arg0Value, arg1Value, arg2Value); } private Object invokeMemberNode_AndSpecialize(JSException arg0Value, String arg1Value, Object[] arg2Value) throws UnsupportedMessageException, UnknownIdentifierException, ArityException, UnsupportedTypeException { int state_0 = this.state_0_; InteropLibrary delegateLib_; InteropLibrary delegateLib__shared = this.delegateLib; if (delegateLib__shared != null) { delegateLib_ = delegateLib__shared; } else { delegateLib_ = this.insert((INTEROP_LIBRARY_.createDispatched(JSConfig.InteropLibraryLimit))); if (delegateLib_ == null) { throw new IllegalStateException("A specialization returned a default value for a cached initializer. Default values are not supported for shared cached initializers because the default value is reserved for the uninitialized state."); } } if (this.delegateLib == null) { VarHandle.storeStoreFence(); this.delegateLib = delegateLib_; } state_0 = state_0 | 0b100000000000 /* add SpecializationActive[JSException.invokeMember(JSException, String, Object[], InteropLibrary)] */; this.state_0_ = state_0; return arg0Value.invokeMember(arg1Value, arg2Value, delegateLib_); } /** * Debug Info:
             *   Specialization {@link JSException#hasMetaObject(JSException, InteropLibrary)}
             *     Activation probability: 0.06250
             *     With/without class size: 4/0 bytes
             * 
*/ @Override public boolean hasMetaObject(Object arg0Value_) { assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver."; assert assertAdopted(); JSException arg0Value = ((JSException) arg0Value_); int state_0 = this.state_0_; if ((state_0 & 0b1000000000000) != 0 /* is SpecializationActive[JSException.hasMetaObject(JSException, InteropLibrary)] */) { { InteropLibrary delegateLib_ = this.delegateLib; if (delegateLib_ != null) { return arg0Value.hasMetaObject(delegateLib_); } } } CompilerDirectives.transferToInterpreterAndInvalidate(); return hasMetaObjectNode_AndSpecialize(arg0Value); } private boolean hasMetaObjectNode_AndSpecialize(JSException arg0Value) { int state_0 = this.state_0_; InteropLibrary delegateLib_; InteropLibrary delegateLib__shared = this.delegateLib; if (delegateLib__shared != null) { delegateLib_ = delegateLib__shared; } else { delegateLib_ = this.insert((INTEROP_LIBRARY_.createDispatched(JSConfig.InteropLibraryLimit))); if (delegateLib_ == null) { throw new IllegalStateException("A specialization returned a default value for a cached initializer. Default values are not supported for shared cached initializers because the default value is reserved for the uninitialized state."); } } if (this.delegateLib == null) { VarHandle.storeStoreFence(); this.delegateLib = delegateLib_; } state_0 = state_0 | 0b1000000000000 /* add SpecializationActive[JSException.hasMetaObject(JSException, InteropLibrary)] */; this.state_0_ = state_0; return arg0Value.hasMetaObject(delegateLib_); } /** * Debug Info:
             *   Specialization {@link JSException#getMetaObject(JSException, InteropLibrary)}
             *     Activation probability: 0.06250
             *     With/without class size: 4/0 bytes
             * 
*/ @Override public Object getMetaObject(Object arg0Value_) throws UnsupportedMessageException { assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver."; assert assertAdopted(); JSException arg0Value = ((JSException) arg0Value_); int state_0 = this.state_0_; if ((state_0 & 0b10000000000000) != 0 /* is SpecializationActive[JSException.getMetaObject(JSException, InteropLibrary)] */) { { InteropLibrary delegateLib_ = this.delegateLib; if (delegateLib_ != null) { return arg0Value.getMetaObject(delegateLib_); } } } CompilerDirectives.transferToInterpreterAndInvalidate(); return getMetaObjectNode_AndSpecialize(arg0Value); } private Object getMetaObjectNode_AndSpecialize(JSException arg0Value) throws UnsupportedMessageException { int state_0 = this.state_0_; InteropLibrary delegateLib_; InteropLibrary delegateLib__shared = this.delegateLib; if (delegateLib__shared != null) { delegateLib_ = delegateLib__shared; } else { delegateLib_ = this.insert((INTEROP_LIBRARY_.createDispatched(JSConfig.InteropLibraryLimit))); if (delegateLib_ == null) { throw new IllegalStateException("A specialization returned a default value for a cached initializer. Default values are not supported for shared cached initializers because the default value is reserved for the uninitialized state."); } } if (this.delegateLib == null) { VarHandle.storeStoreFence(); this.delegateLib = delegateLib_; } state_0 = state_0 | 0b10000000000000 /* add SpecializationActive[JSException.getMetaObject(JSException, InteropLibrary)] */; this.state_0_ = state_0; return arg0Value.getMetaObject(delegateLib_); } } @GeneratedBy(JSException.class) @DenyReplace private static final class Uncached extends GraalJSExceptionGen.InteropLibraryExports.Uncached { protected Uncached(Object receiver) { super(receiver); } @Override @TruffleBoundary public boolean accepts(Object receiver) { return super.accepts(receiver); } @TruffleBoundary @Override public ExceptionType getExceptionType(Object receiver) throws UnsupportedMessageException { // declared: true assert this.accepts(receiver) : "Invalid library usage. Library does not accept given receiver."; return ((JSException) receiver) .getExceptionType(); } @TruffleBoundary @Override public boolean isExceptionIncompleteSource(Object receiver) throws UnsupportedMessageException { // declared: true assert this.accepts(receiver) : "Invalid library usage. Library does not accept given receiver."; return ((JSException) receiver) .isExceptionIncompleteSource(); } @TruffleBoundary @Override public boolean hasMembers(Object receiver) { // declared: true assert this.accepts(receiver) : "Invalid library usage. Library does not accept given receiver."; return ((JSException) receiver) .hasMembers(); } @TruffleBoundary @Override public Object getMembers(Object arg0Value_, boolean arg1Value) throws UnsupportedMessageException { // declared: true assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver."; JSException arg0Value = ((JSException) arg0Value_); return arg0Value.getMembers(arg1Value, (INTEROP_LIBRARY_.getUncached())); } @TruffleBoundary @Override public boolean isMemberReadable(Object arg0Value_, String arg1Value) { // declared: true assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver."; JSException arg0Value = ((JSException) arg0Value_); return arg0Value.isMemberReadable(arg1Value, (INTEROP_LIBRARY_.getUncached())); } @TruffleBoundary @Override public boolean isMemberModifiable(Object arg0Value_, String arg1Value) { // declared: true assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver."; JSException arg0Value = ((JSException) arg0Value_); return arg0Value.isMemberModifiable(arg1Value, (INTEROP_LIBRARY_.getUncached())); } @TruffleBoundary @Override public boolean isMemberInsertable(Object arg0Value_, String arg1Value) { // declared: true assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver."; JSException arg0Value = ((JSException) arg0Value_); return arg0Value.isMemberInsertable(arg1Value, (INTEROP_LIBRARY_.getUncached())); } @TruffleBoundary @Override public boolean isMemberRemovable(Object arg0Value_, String arg1Value) { // declared: true assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver."; JSException arg0Value = ((JSException) arg0Value_); return arg0Value.isMemberRemovable(arg1Value, (INTEROP_LIBRARY_.getUncached())); } @TruffleBoundary @Override public boolean isMemberInvocable(Object arg0Value_, String arg1Value) { // declared: true assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver."; JSException arg0Value = ((JSException) arg0Value_); return arg0Value.isMemberInvocable(arg1Value, (INTEROP_LIBRARY_.getUncached())); } @TruffleBoundary @Override public boolean hasMemberReadSideEffects(Object arg0Value_, String arg1Value) { // declared: true assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver."; JSException arg0Value = ((JSException) arg0Value_); return arg0Value.hasMemberReadSideEffects(arg1Value, (INTEROP_LIBRARY_.getUncached())); } @TruffleBoundary @Override public boolean hasMemberWriteSideEffects(Object arg0Value_, String arg1Value) { // declared: true assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver."; JSException arg0Value = ((JSException) arg0Value_); return arg0Value.hasMemberWriteSideEffects(arg1Value, (INTEROP_LIBRARY_.getUncached())); } @TruffleBoundary @Override public Object readMember(Object arg0Value_, String arg1Value) throws UnknownIdentifierException, UnsupportedMessageException { // declared: true assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver."; JSException arg0Value = ((JSException) arg0Value_); return arg0Value.readMember(arg1Value, (INTEROP_LIBRARY_.getUncached())); } @TruffleBoundary @Override public void writeMember(Object arg0Value_, String arg1Value, Object arg2Value) throws UnsupportedMessageException, UnknownIdentifierException, UnsupportedTypeException { // declared: true assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver."; JSException arg0Value = ((JSException) arg0Value_); arg0Value.writeMember(arg1Value, arg2Value, (INTEROP_LIBRARY_.getUncached())); return; } @TruffleBoundary @Override public void removeMember(Object arg0Value_, String arg1Value) throws UnsupportedMessageException, UnknownIdentifierException { // declared: true assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver."; JSException arg0Value = ((JSException) arg0Value_); arg0Value.removeMember(arg1Value, (INTEROP_LIBRARY_.getUncached())); return; } @TruffleBoundary @Override public Object invokeMember(Object arg0Value_, String arg1Value, Object... arg2Value) throws UnsupportedMessageException, UnknownIdentifierException, ArityException, UnsupportedTypeException { // declared: true assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver."; JSException arg0Value = ((JSException) arg0Value_); return arg0Value.invokeMember(arg1Value, arg2Value, (INTEROP_LIBRARY_.getUncached())); } @TruffleBoundary @Override public boolean hasMetaObject(Object arg0Value_) { // declared: true assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver."; JSException arg0Value = ((JSException) arg0Value_); return arg0Value.hasMetaObject((INTEROP_LIBRARY_.getUncached())); } @TruffleBoundary @Override public Object getMetaObject(Object arg0Value_) throws UnsupportedMessageException { // declared: true assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver."; JSException arg0Value = ((JSException) arg0Value_); return arg0Value.getMetaObject((INTEROP_LIBRARY_.getUncached())); } } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy