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

com.oracle.truffle.js.nodes.interop.JSInteropInstantiateNodeGen Maven / Gradle / Ivy

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

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.dsl.NeverDefault;
import com.oracle.truffle.api.interop.UnsupportedMessageException;
import com.oracle.truffle.api.nodes.DenyReplace;
import com.oracle.truffle.api.nodes.UnadoptableNode;
import com.oracle.truffle.js.nodes.function.JSFunctionCallNode;
import com.oracle.truffle.js.nodes.unary.IsConstructorNode;
import com.oracle.truffle.js.nodes.unary.IsConstructorNodeGen;
import com.oracle.truffle.js.runtime.objects.JSDynamicObject;
import java.lang.invoke.VarHandle;
import java.util.Objects;

/**
 * Debug Info: 
 *   Specialization {@link JSInteropInstantiateNode#doDefault}
 *     Activation probability: 1.00000
 *     With/without class size: 32/12 bytes
 * 
*/ @GeneratedBy(JSInteropInstantiateNode.class) @SuppressWarnings("javadoc") public final class JSInteropInstantiateNodeGen extends JSInteropInstantiateNode { private static final Uncached UNCACHED = new Uncached(); /** * State Info:
     *   0: SpecializationActive {@link JSInteropInstantiateNode#doDefault}
     * 
*/ @CompilationFinal private int state_0_; /** * Source Info:
     *   Specialization: {@link JSInteropInstantiateNode#doDefault}
     *   Parameter: {@link IsConstructorNode} isConstructorNode
*/ @Child private IsConstructorNode isConstructorNode_; /** * Source Info:
     *   Specialization: {@link JSInteropInstantiateNode#doDefault}
     *   Parameter: {@link JSFunctionCallNode} callNode
*/ @Child private JSFunctionCallNode callNode_; /** * Source Info:
     *   Specialization: {@link JSInteropInstantiateNode#doDefault}
     *   Parameter: {@link ImportValueNode} importValueNode
*/ @Child private ImportValueNode importValueNode_; private JSInteropInstantiateNodeGen() { } @Override public Object execute(JSDynamicObject arg0Value, Object[] arg1Value) throws UnsupportedMessageException { int state_0 = this.state_0_; if (state_0 != 0 /* is SpecializationActive[JSInteropInstantiateNode.doDefault(JSDynamicObject, Object[], IsConstructorNode, JSFunctionCallNode, ImportValueNode)] */) { { IsConstructorNode isConstructorNode__ = this.isConstructorNode_; if (isConstructorNode__ != null) { JSFunctionCallNode callNode__ = this.callNode_; if (callNode__ != null) { ImportValueNode importValueNode__ = this.importValueNode_; if (importValueNode__ != null) { return doDefault(arg0Value, arg1Value, isConstructorNode__, callNode__, importValueNode__); } } } } } CompilerDirectives.transferToInterpreterAndInvalidate(); return executeAndSpecialize(arg0Value, arg1Value); } private Object executeAndSpecialize(JSDynamicObject arg0Value, Object[] arg1Value) throws UnsupportedMessageException { int state_0 = this.state_0_; IsConstructorNode isConstructorNode__ = this.insert((IsConstructorNode.create())); Objects.requireNonNull(isConstructorNode__, "A specialization cache returned a default value. The cache initializer must never return a default value for this cache. Use @Cached(neverDefault=false) to allow default values for this cached value or make sure the cache initializer never returns the default value."); VarHandle.storeStoreFence(); this.isConstructorNode_ = isConstructorNode__; JSFunctionCallNode callNode__ = this.insert((JSFunctionCallNode.createNew())); Objects.requireNonNull(callNode__, "A specialization cache returned a default value. The cache initializer must never return a default value for this cache. Use @Cached(neverDefault=false) to allow default values for this cached value or make sure the cache initializer never returns the default value."); VarHandle.storeStoreFence(); this.callNode_ = callNode__; ImportValueNode importValueNode__ = this.insert((ImportValueNode.create())); Objects.requireNonNull(importValueNode__, "A specialization cache returned a default value. The cache initializer must never return a default value for this cache. Use @Cached(neverDefault=false) to allow default values for this cached value or make sure the cache initializer never returns the default value."); VarHandle.storeStoreFence(); this.importValueNode_ = importValueNode__; state_0 = state_0 | 0b1 /* add SpecializationActive[JSInteropInstantiateNode.doDefault(JSDynamicObject, Object[], IsConstructorNode, JSFunctionCallNode, ImportValueNode)] */; this.state_0_ = state_0; return doDefault(arg0Value, arg1Value, isConstructorNode__, callNode__, importValueNode__); } @NeverDefault public static JSInteropInstantiateNode create() { return new JSInteropInstantiateNodeGen(); } @NeverDefault public static JSInteropInstantiateNode getUncached() { return JSInteropInstantiateNodeGen.UNCACHED; } @GeneratedBy(JSInteropInstantiateNode.class) @DenyReplace private static final class Uncached extends JSInteropInstantiateNode implements UnadoptableNode { @TruffleBoundary @Override public Object execute(JSDynamicObject arg0Value, Object[] arg1Value) throws UnsupportedMessageException { return doDefault(arg0Value, arg1Value, (IsConstructorNodeGen.getUncached()), (JSFunctionCallNode.getUncachedNew()), (ImportValueNode.getUncached())); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy