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

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

The newest version!
// 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.nodes.cast.JSToPropertyKeyNode;
import com.oracle.truffle.js.runtime.JSContext;
import com.oracle.truffle.js.runtime.objects.JSDynamicObject;
import com.oracle.truffle.js.runtime.util.JSClassProfile;
import java.lang.invoke.MethodHandles;
import java.lang.invoke.VarHandle;
import java.util.Objects;

/**
 * Debug Info: 
 *   Specialization {@link JSProxyPropertySetNode#doGeneric}
 *     Activation probability: 1.00000
 *     With/without class size: 32/9 bytes
 * 
*/ @GeneratedBy(JSProxyPropertySetNode.class) @SuppressWarnings("javadoc") public final class JSProxyPropertySetNodeGen extends JSProxyPropertySetNode { private static final StateField STATE_0_JSProxyPropertySetNode_UPDATER = StateField.create(MethodHandles.lookup(), "state_0_"); /** * Source Info:
     *   Specialization: {@link JSProxyPropertySetNode#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_JSProxyPropertySetNode_UPDATER.subUpdater(1, 1))); /** * Source Info:
     *   Specialization: {@link JSProxyPropertySetNode#doGeneric}
     *   Parameter: {@link InlinedConditionProfile} hasTrap
     *   Inline method: {@link InlinedConditionProfile#inline}
*/ private static final InlinedConditionProfile INLINED_HAS_TRAP_ = InlinedConditionProfile.inline(InlineTarget.create(InlinedConditionProfile.class, STATE_0_JSProxyPropertySetNode_UPDATER.subUpdater(2, 2))); /** * State Info:
     *   0: SpecializationActive {@link JSProxyPropertySetNode#doGeneric}
     *   1: InlinedCache
     *        Specialization: {@link JSProxyPropertySetNode#doGeneric}
     *        Parameter: {@link InlinedBranchProfile} errorBranch
     *        Inline method: {@link InlinedBranchProfile#inline}
     *   2-3: InlinedCache
     *        Specialization: {@link JSProxyPropertySetNode#doGeneric}
     *        Parameter: {@link InlinedConditionProfile} hasTrap
     *        Inline method: {@link InlinedConditionProfile#inline}
     * 
*/ @CompilationFinal @UnsafeAccessedField private int state_0_; /** * Source Info:
     *   Specialization: {@link JSProxyPropertySetNode#doGeneric}
     *   Parameter: {@link JSToPropertyKeyNode} toPropertyKey
*/ @Child private JSToPropertyKeyNode toPropertyKey_; /** * Source Info:
     *   Specialization: {@link JSProxyPropertySetNode#doGeneric}
     *   Parameter: {@link JSClassProfile} targetClassProfile
*/ @CompilationFinal private JSClassProfile targetClassProfile_; private JSProxyPropertySetNodeGen(JSContext context, boolean isStrict, boolean defineProperty, int attributes) { super(context, isStrict, defineProperty, attributes); } @Override public boolean executeWithReceiverAndValue(Object arg0Value, Object arg1Value, Object arg2Value, Object arg3Value) { int state_0 = this.state_0_; if ((state_0 & 0b1) != 0 /* is SpecializationActive[JSProxyPropertySetNode.doGeneric(JSDynamicObject, Object, Object, Object, JSToPropertyKeyNode, InlinedBranchProfile, InlinedConditionProfile, JSClassProfile)] */ && arg0Value instanceof JSDynamicObject) { JSDynamicObject arg0Value_ = (JSDynamicObject) arg0Value; { JSToPropertyKeyNode toPropertyKey__ = this.toPropertyKey_; if (toPropertyKey__ != null) { JSClassProfile targetClassProfile__ = this.targetClassProfile_; if (targetClassProfile__ != null) { return doGeneric(arg0Value_, arg1Value, arg2Value, arg3Value, toPropertyKey__, INLINED_ERROR_BRANCH_, INLINED_HAS_TRAP_, targetClassProfile__); } } } } CompilerDirectives.transferToInterpreterAndInvalidate(); return executeAndSpecialize(arg0Value, arg1Value, arg2Value, arg3Value); } @Override public boolean executeWithReceiverAndValueInt(Object arg0Value, Object arg1Value, int arg2Value, Object arg3Value) { int state_0 = this.state_0_; if ((state_0 & 0b1) != 0 /* is SpecializationActive[JSProxyPropertySetNode.doGeneric(JSDynamicObject, Object, Object, Object, JSToPropertyKeyNode, InlinedBranchProfile, InlinedConditionProfile, JSClassProfile)] */ && arg0Value instanceof JSDynamicObject) { JSDynamicObject arg0Value_ = (JSDynamicObject) arg0Value; { JSToPropertyKeyNode toPropertyKey__ = this.toPropertyKey_; if (toPropertyKey__ != null) { JSClassProfile targetClassProfile__ = this.targetClassProfile_; if (targetClassProfile__ != null) { return doGeneric(arg0Value_, arg1Value, arg2Value, arg3Value, toPropertyKey__, INLINED_ERROR_BRANCH_, INLINED_HAS_TRAP_, targetClassProfile__); } } } } CompilerDirectives.transferToInterpreterAndInvalidate(); return executeAndSpecialize(arg0Value, arg1Value, arg2Value, arg3Value); } private boolean executeAndSpecialize(Object arg0Value, Object arg1Value, Object arg2Value, Object arg3Value) { int state_0 = this.state_0_; if (arg0Value instanceof JSDynamicObject) { JSDynamicObject arg0Value_ = (JSDynamicObject) arg0Value; JSToPropertyKeyNode toPropertyKey__ = this.insert((JSToPropertyKeyNode.create())); Objects.requireNonNull(toPropertyKey__, "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.toPropertyKey_ = toPropertyKey__; JSClassProfile targetClassProfile__ = (JSClassProfile.create()); Objects.requireNonNull(targetClassProfile__, "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.targetClassProfile_ = targetClassProfile__; state_0 = state_0 | 0b1 /* add SpecializationActive[JSProxyPropertySetNode.doGeneric(JSDynamicObject, Object, Object, Object, JSToPropertyKeyNode, InlinedBranchProfile, InlinedConditionProfile, JSClassProfile)] */; this.state_0_ = state_0; return doGeneric(arg0Value_, arg1Value, arg2Value, arg3Value, toPropertyKey__, INLINED_ERROR_BRANCH_, INLINED_HAS_TRAP_, targetClassProfile__); } throw new UnsupportedSpecializationException(this, null, arg0Value, arg1Value, arg2Value, arg3Value); } @NeverDefault public static JSProxyPropertySetNode create(JSContext context, boolean isStrict, boolean defineProperty, int attributes) { return new JSProxyPropertySetNodeGen(context, isStrict, defineProperty, attributes); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy