com.oracle.truffle.js.nodes.access.JSProxyHasPropertyNodeGen 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.profiles.InlinedBranchProfile;
import com.oracle.truffle.api.profiles.InlinedConditionProfile;
import com.oracle.truffle.js.runtime.JSContext;
import com.oracle.truffle.js.runtime.objects.JSDynamicObject;
import java.lang.invoke.MethodHandles;
/**
* Debug Info:
* Specialization {@link JSProxyHasPropertyNode#doGeneric}
* Activation probability: 1.00000
* With/without class size: 24/1 bytes
*
*/
@GeneratedBy(JSProxyHasPropertyNode.class)
@SuppressWarnings("javadoc")
public final class JSProxyHasPropertyNodeGen extends JSProxyHasPropertyNode {
private static final StateField STATE_0_JSProxyHasPropertyNode_UPDATER = StateField.create(MethodHandles.lookup(), "state_0_");
/**
* Source Info:
* Specialization: {@link JSProxyHasPropertyNode#doGeneric}
* Parameter: {@link InlinedConditionProfile} trapFunProfile
* Inline method: {@link InlinedConditionProfile#inline}
*/
private static final InlinedConditionProfile INLINED_TRAP_FUN_PROFILE_ = InlinedConditionProfile.inline(InlineTarget.create(InlinedConditionProfile.class, STATE_0_JSProxyHasPropertyNode_UPDATER.subUpdater(1, 2)));
/**
* Source Info:
* Specialization: {@link JSProxyHasPropertyNode#doGeneric}
* Parameter: {@link InlinedBranchProfile} errorBranch
* Inline method: {@link InlinedBranchProfile#inline}
*/
private static final InlinedBranchProfile INLINED_ERROR_BRANCH_ = InlinedBranchProfile.inline(InlineTarget.create(InlinedBranchProfile.class, STATE_0_JSProxyHasPropertyNode_UPDATER.subUpdater(3, 1)));
/**
* State Info:
* 0: SpecializationActive {@link JSProxyHasPropertyNode#doGeneric}
* 1-2: InlinedCache
* Specialization: {@link JSProxyHasPropertyNode#doGeneric}
* Parameter: {@link InlinedConditionProfile} trapFunProfile
* Inline method: {@link InlinedConditionProfile#inline}
* 3: InlinedCache
* Specialization: {@link JSProxyHasPropertyNode#doGeneric}
* Parameter: {@link InlinedBranchProfile} errorBranch
* Inline method: {@link InlinedBranchProfile#inline}
*
*/
@CompilationFinal @UnsafeAccessedField private int state_0_;
private JSProxyHasPropertyNodeGen(JSContext context) {
super(context);
}
@Override
public boolean executeWithTargetAndKeyBoolean(Object arg0Value, Object arg1Value) {
int state_0 = this.state_0_;
if ((state_0 & 0b1) != 0 /* is SpecializationActive[JSProxyHasPropertyNode.doGeneric(JSDynamicObject, Object, InlinedConditionProfile, InlinedBranchProfile)] */ && arg0Value instanceof JSDynamicObject) {
JSDynamicObject arg0Value_ = (JSDynamicObject) arg0Value;
return doGeneric(arg0Value_, arg1Value, INLINED_TRAP_FUN_PROFILE_, INLINED_ERROR_BRANCH_);
}
CompilerDirectives.transferToInterpreterAndInvalidate();
return executeAndSpecialize(arg0Value, arg1Value);
}
private boolean executeAndSpecialize(Object arg0Value, Object arg1Value) {
int state_0 = this.state_0_;
if (arg0Value instanceof JSDynamicObject) {
JSDynamicObject arg0Value_ = (JSDynamicObject) arg0Value;
state_0 = state_0 | 0b1 /* add SpecializationActive[JSProxyHasPropertyNode.doGeneric(JSDynamicObject, Object, InlinedConditionProfile, InlinedBranchProfile)] */;
this.state_0_ = state_0;
return doGeneric(arg0Value_, arg1Value, INLINED_TRAP_FUN_PROFILE_, INLINED_ERROR_BRANCH_);
}
throw new UnsupportedSpecializationException(this, null, arg0Value, arg1Value);
}
@NeverDefault
public static JSProxyHasPropertyNode create(JSContext context) {
return new JSProxyHasPropertyNodeGen(context);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy