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

com.oracle.truffle.js.nodes.access.JSGuardDisconnectedArgumentWriteNodeGen Maven / Gradle / Ivy

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

import com.oracle.truffle.api.CompilerDirectives;
import com.oracle.truffle.api.CompilerDirectives.CompilationFinal;
import com.oracle.truffle.api.dsl.GeneratedBy;
import com.oracle.truffle.api.dsl.NeverDefault;
import com.oracle.truffle.api.dsl.UnsupportedSpecializationException;
import com.oracle.truffle.api.dsl.InlineSupport.InlineTarget;
import com.oracle.truffle.api.dsl.InlineSupport.StateField;
import com.oracle.truffle.api.dsl.InlineSupport.UnsafeAccessedField;
import com.oracle.truffle.api.frame.VirtualFrame;
import com.oracle.truffle.api.nodes.Node;
import com.oracle.truffle.api.profiles.InlinedConditionProfile;
import com.oracle.truffle.api.strings.TruffleString;
import com.oracle.truffle.js.nodes.JSGuards;
import com.oracle.truffle.js.nodes.JavaScriptNode;
import com.oracle.truffle.js.runtime.builtins.JSArgumentsObject;
import java.lang.invoke.MethodHandles;

/**
 * Debug Info: 
 *   Specialization {@link JSGuardDisconnectedArgumentWrite#doObject}
 *     Activation probability: 0.65000
 *     With/without class size: 14/0 bytes
 *   Specialization {@link JSGuardDisconnectedArgumentWrite#doObjectDisconnected}
 *     Activation probability: 0.35000
 *     With/without class size: 11/1 bytes
 * 
*/ @GeneratedBy(JSGuardDisconnectedArgumentWrite.class) @SuppressWarnings("javadoc") public final class JSGuardDisconnectedArgumentWriteNodeGen extends JSGuardDisconnectedArgumentWrite { private static final StateField STATE_0_UPDATER = StateField.create(MethodHandles.lookup(), "state_0_"); private static final StateField STATE_0_JSGuardDisconnectedArgumentWrite_UPDATER = StateField.create(MethodHandles.lookup(), "state_0_"); /** * Source Info:
     *   Specialization: {@link JSGuardDisconnectedArgumentWrite#doObject}
     *   Parameter: {@link InlinedConditionProfile} unconnected
     *   Inline method: {@link InlinedConditionProfile#inline}
*/ private static final InlinedConditionProfile INLINED_UNCONNECTED = InlinedConditionProfile.inline(InlineTarget.create(InlinedConditionProfile.class, STATE_0_UPDATER.subUpdater(2, 2))); /** * Source Info:
     *   Specialization: {@link JSGuardDisconnectedArgumentWrite#doObjectDisconnected}
     *   Parameter: {@link InlinedConditionProfile} wasDisconnected
     *   Inline method: {@link InlinedConditionProfile#inline}
*/ private static final InlinedConditionProfile INLINED_OBJECT_DISCONNECTED_WAS_DISCONNECTED_ = InlinedConditionProfile.inline(InlineTarget.create(InlinedConditionProfile.class, STATE_0_JSGuardDisconnectedArgumentWrite_UPDATER.subUpdater(4, 2))); /** * State Info:
     *   0: SpecializationActive {@link JSGuardDisconnectedArgumentWrite#doObject}
     *   1: SpecializationActive {@link JSGuardDisconnectedArgumentWrite#doObjectDisconnected}
     *   2-3: InlinedCache
     *        Specialization: {@link JSGuardDisconnectedArgumentWrite#doObject}
     *        Parameter: {@link InlinedConditionProfile} unconnected
     *        Inline method: {@link InlinedConditionProfile#inline}
     *   4-5: InlinedCache
     *        Specialization: {@link JSGuardDisconnectedArgumentWrite#doObjectDisconnected}
     *        Parameter: {@link InlinedConditionProfile} wasDisconnected
     *        Inline method: {@link InlinedConditionProfile#inline}
     * 
*/ @CompilationFinal @UnsafeAccessedField private int state_0_; private JSGuardDisconnectedArgumentWriteNodeGen(int index, WriteElementNode argumentsArrayAccess, JavaScriptNode argumentsArray, JavaScriptNode rhs, TruffleString name) { super(index, argumentsArrayAccess, argumentsArray, rhs, name); } @Override public Object execute(VirtualFrame frameValue) { int state_0 = this.state_0_; Object argumentsArrayNodeValue_ = super.argumentsArrayNode.execute(frameValue); Object rhsNodeValue_ = super.rhsNode.execute(frameValue); if ((state_0 & 0b11) != 0 /* is SpecializationActive[JSGuardDisconnectedArgumentWrite.doObject(JSArgumentsObject, Object, InlinedConditionProfile)] || SpecializationActive[JSGuardDisconnectedArgumentWrite.doObjectDisconnected(JSArgumentsObject, Object, InlinedConditionProfile, InlinedConditionProfile)] */ && argumentsArrayNodeValue_ instanceof JSArgumentsObject) { JSArgumentsObject argumentsArrayNodeValue__ = (JSArgumentsObject) argumentsArrayNodeValue_; if ((state_0 & 0b1) != 0 /* is SpecializationActive[JSGuardDisconnectedArgumentWrite.doObject(JSArgumentsObject, Object, InlinedConditionProfile)] */) { if ((!(JSGuards.isArgumentsDisconnected(argumentsArrayNodeValue__)))) { return doObject(argumentsArrayNodeValue__, rhsNodeValue_, INLINED_UNCONNECTED); } } if ((state_0 & 0b10) != 0 /* is SpecializationActive[JSGuardDisconnectedArgumentWrite.doObjectDisconnected(JSArgumentsObject, Object, InlinedConditionProfile, InlinedConditionProfile)] */) { if ((JSGuards.isArgumentsDisconnected(argumentsArrayNodeValue__))) { return doObjectDisconnected(argumentsArrayNodeValue__, rhsNodeValue_, INLINED_OBJECT_DISCONNECTED_WAS_DISCONNECTED_, INLINED_UNCONNECTED); } } } CompilerDirectives.transferToInterpreterAndInvalidate(); return executeAndSpecialize(argumentsArrayNodeValue_, rhsNodeValue_); } @Override protected void executeWrite(VirtualFrame frameValue, Object argumentsArrayNodeValue, Object rhsNodeValue) { int state_0 = this.state_0_; if ((state_0 & 0b11) != 0 /* is SpecializationActive[JSGuardDisconnectedArgumentWrite.doObject(JSArgumentsObject, Object, InlinedConditionProfile)] || SpecializationActive[JSGuardDisconnectedArgumentWrite.doObjectDisconnected(JSArgumentsObject, Object, InlinedConditionProfile, InlinedConditionProfile)] */ && argumentsArrayNodeValue instanceof JSArgumentsObject) { JSArgumentsObject argumentsArrayNodeValue_ = (JSArgumentsObject) argumentsArrayNodeValue; if ((state_0 & 0b1) != 0 /* is SpecializationActive[JSGuardDisconnectedArgumentWrite.doObject(JSArgumentsObject, Object, InlinedConditionProfile)] */) { if ((!(JSGuards.isArgumentsDisconnected(argumentsArrayNodeValue_)))) { doObject(argumentsArrayNodeValue_, rhsNodeValue, INLINED_UNCONNECTED); return; } } if ((state_0 & 0b10) != 0 /* is SpecializationActive[JSGuardDisconnectedArgumentWrite.doObjectDisconnected(JSArgumentsObject, Object, InlinedConditionProfile, InlinedConditionProfile)] */) { if ((JSGuards.isArgumentsDisconnected(argumentsArrayNodeValue_))) { doObjectDisconnected(argumentsArrayNodeValue_, rhsNodeValue, INLINED_OBJECT_DISCONNECTED_WAS_DISCONNECTED_, INLINED_UNCONNECTED); return; } } } CompilerDirectives.transferToInterpreterAndInvalidate(); executeAndSpecialize(argumentsArrayNodeValue, rhsNodeValue); return; } @Override public void executeVoid(VirtualFrame frameValue) { execute(frameValue); return; } private Object executeAndSpecialize(Object argumentsArrayNodeValue, Object rhsNodeValue) { int state_0 = this.state_0_; if (argumentsArrayNodeValue instanceof JSArgumentsObject) { JSArgumentsObject argumentsArrayNodeValue_ = (JSArgumentsObject) argumentsArrayNodeValue; if ((!(JSGuards.isArgumentsDisconnected(argumentsArrayNodeValue_)))) { state_0 = state_0 | 0b1 /* add SpecializationActive[JSGuardDisconnectedArgumentWrite.doObject(JSArgumentsObject, Object, InlinedConditionProfile)] */; this.state_0_ = state_0; return doObject(argumentsArrayNodeValue_, rhsNodeValue, INLINED_UNCONNECTED); } if ((JSGuards.isArgumentsDisconnected(argumentsArrayNodeValue_))) { state_0 = state_0 | 0b10 /* add SpecializationActive[JSGuardDisconnectedArgumentWrite.doObjectDisconnected(JSArgumentsObject, Object, InlinedConditionProfile, InlinedConditionProfile)] */; this.state_0_ = state_0; return doObjectDisconnected(argumentsArrayNodeValue_, rhsNodeValue, INLINED_OBJECT_DISCONNECTED_WAS_DISCONNECTED_, INLINED_UNCONNECTED); } } throw new UnsupportedSpecializationException(this, new Node[] {super.argumentsArrayNode, super.rhsNode}, argumentsArrayNodeValue, rhsNodeValue); } @NeverDefault public static JSGuardDisconnectedArgumentWrite create(int index, WriteElementNode argumentsArrayAccess, JavaScriptNode argumentsArray, JavaScriptNode rhs, TruffleString name) { return new JSGuardDisconnectedArgumentWriteNodeGen(index, argumentsArrayAccess, argumentsArray, rhs, name); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy