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

com.oracle.truffle.js.nodes.access.GroupByNodeGen 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.DSLSupport.SpecializationDataNode;
import com.oracle.truffle.api.dsl.InlineSupport.InlineTarget;
import com.oracle.truffle.api.dsl.InlineSupport.ReferenceField;
import com.oracle.truffle.api.dsl.InlineSupport.StateField;
import com.oracle.truffle.api.dsl.InlineSupport.UnsafeAccessedField;
import com.oracle.truffle.api.nodes.DenyReplace;
import com.oracle.truffle.api.nodes.Node;
import com.oracle.truffle.api.profiles.InlinedBranchProfile;
import com.oracle.truffle.js.builtins.helper.JSCollectionsNormalizeNode;
import com.oracle.truffle.js.nodes.cast.JSToPropertyKeyNode;
import com.oracle.truffle.js.nodes.cast.LongToIntOrDoubleNode;
import com.oracle.truffle.js.nodes.cast.LongToIntOrDoubleNodeGen;
import com.oracle.truffle.js.nodes.function.JSFunctionCallNode;
import com.oracle.truffle.js.nodes.unary.IsCallableNode;
import com.oracle.truffle.js.runtime.JSContext;
import java.lang.invoke.MethodHandles;
import java.lang.invoke.VarHandle;
import java.lang.invoke.MethodHandles.Lookup;
import java.util.List;
import java.util.Map;
import java.util.Objects;

/**
 * Debug Info: 
 *   Specialization {@link GroupByNode#groupBy}
 *     Activation probability: 1.00000
 *     With/without class size: 76/53 bytes
 * 
*/ @GeneratedBy(GroupByNode.class) @SuppressWarnings("javadoc") public final class GroupByNodeGen extends GroupByNode { private static final StateField GROUP_BY__GROUP_BY_NODE_GROUP_BY_STATE_0_UPDATER = StateField.create(GroupByData.lookup_(), "groupBy_state_0_"); /** * Source Info:
     *   Specialization: {@link GroupByNode#groupBy}
     *   Parameter: {@link GetIteratorNode} getIteratorNode
     *   Inline method: {@link GetIteratorNodeGen#inline}
*/ private static final GetIteratorNode INLINED_GET_ITERATOR_NODE_ = GetIteratorNodeGen.inline(InlineTarget.create(GetIteratorNode.class, GROUP_BY__GROUP_BY_NODE_GROUP_BY_STATE_0_UPDATER.subUpdater(0, 6), ReferenceField.create(GroupByData.lookup_(), "getIteratorNode__field1_", Node.class), ReferenceField.create(GroupByData.lookup_(), "getIteratorNode__field2_", Node.class), ReferenceField.create(GroupByData.lookup_(), "getIteratorNode__field3_", Node.class), ReferenceField.create(GroupByData.lookup_(), "getIteratorNode__field4_", Node.class), ReferenceField.create(GroupByData.lookup_(), "getIteratorNode__field5_", Node.class))); /** * Source Info:
     *   Specialization: {@link GroupByNode#groupBy}
     *   Parameter: {@link LongToIntOrDoubleNode} toIntOrDoubleNode
     *   Inline method: {@link LongToIntOrDoubleNodeGen#inline}
*/ private static final LongToIntOrDoubleNode INLINED_TO_INT_OR_DOUBLE_NODE_ = LongToIntOrDoubleNodeGen.inline(InlineTarget.create(LongToIntOrDoubleNode.class, GROUP_BY__GROUP_BY_NODE_GROUP_BY_STATE_0_UPDATER.subUpdater(6, 1))); /** * Source Info:
     *   Specialization: {@link GroupByNode#groupBy}
     *   Parameter: {@link InlinedBranchProfile} errorBranch
     *   Inline method: {@link InlinedBranchProfile#inline}
*/ private static final InlinedBranchProfile INLINED_ERROR_BRANCH_ = InlinedBranchProfile.inline(InlineTarget.create(InlinedBranchProfile.class, GROUP_BY__GROUP_BY_NODE_GROUP_BY_STATE_0_UPDATER.subUpdater(7, 1))); /** * State Info:
     *   0: SpecializationActive {@link GroupByNode#groupBy}
     * 
*/ @CompilationFinal private int state_0_; @Child private GroupByData groupBy_cache; private GroupByNodeGen(JSContext context, boolean toPropertyKeyCoercion) { super(context, toPropertyKeyCoercion); } @Override public Map> execute(Object arg0Value, Object arg1Value) { int state_0 = this.state_0_; if (state_0 != 0 /* is SpecializationActive[GroupByNode.groupBy(Object, Object, Node, RequireObjectCoercibleNode, IsCallableNode, GetIteratorNode, IteratorStepNode, IteratorValueNode, IteratorCloseNode, JSFunctionCallNode, LongToIntOrDoubleNode, JSToPropertyKeyNode, JSCollectionsNormalizeNode, InlinedBranchProfile)] */) { GroupByData s0_ = this.groupBy_cache; if (s0_ != null) { { Node node__ = (s0_); return GroupByNode.groupBy(arg0Value, arg1Value, node__, s0_.requireObjectCoercibleNode_, s0_.isCallableNode_, INLINED_GET_ITERATOR_NODE_, s0_.iteratorStepNode_, s0_.iteratorValueNode_, s0_.iteratorCloseNode_, s0_.callNode_, INLINED_TO_INT_OR_DOUBLE_NODE_, s0_.toPropertyKeyNode_, s0_.normalizeKeyNode_, INLINED_ERROR_BRANCH_); } } } CompilerDirectives.transferToInterpreterAndInvalidate(); return executeAndSpecialize(arg0Value, arg1Value); } private Map> executeAndSpecialize(Object arg0Value, Object arg1Value) { int state_0 = this.state_0_; { Node node__ = null; GroupByData s0_ = this.insert(new GroupByData()); node__ = (s0_); RequireObjectCoercibleNode requireObjectCoercibleNode__ = s0_.insert((RequireObjectCoercibleNode.create())); Objects.requireNonNull(requireObjectCoercibleNode__, "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."); s0_.requireObjectCoercibleNode_ = requireObjectCoercibleNode__; IsCallableNode isCallableNode__ = s0_.insert((IsCallableNode.create())); Objects.requireNonNull(isCallableNode__, "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."); s0_.isCallableNode_ = isCallableNode__; IteratorStepNode iteratorStepNode__ = s0_.insert((IteratorStepNode.create())); Objects.requireNonNull(iteratorStepNode__, "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."); s0_.iteratorStepNode_ = iteratorStepNode__; IteratorValueNode iteratorValueNode__ = s0_.insert((IteratorValueNode.create())); Objects.requireNonNull(iteratorValueNode__, "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."); s0_.iteratorValueNode_ = iteratorValueNode__; IteratorCloseNode iteratorCloseNode__ = s0_.insert((IteratorCloseNode.create(context))); Objects.requireNonNull(iteratorCloseNode__, "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."); s0_.iteratorCloseNode_ = iteratorCloseNode__; JSFunctionCallNode callNode__ = s0_.insert((JSFunctionCallNode.createCall())); 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."); s0_.callNode_ = callNode__; s0_.toPropertyKeyNode_ = s0_.insert((GroupByNode.maybeCreateToPropertyKeyNode(toPropertyKeyCoercion))); s0_.normalizeKeyNode_ = s0_.insert((GroupByNode.maybeCreateNormalizeKeyNode(toPropertyKeyCoercion))); VarHandle.storeStoreFence(); this.groupBy_cache = s0_; state_0 = state_0 | 0b1 /* add SpecializationActive[GroupByNode.groupBy(Object, Object, Node, RequireObjectCoercibleNode, IsCallableNode, GetIteratorNode, IteratorStepNode, IteratorValueNode, IteratorCloseNode, JSFunctionCallNode, LongToIntOrDoubleNode, JSToPropertyKeyNode, JSCollectionsNormalizeNode, InlinedBranchProfile)] */; this.state_0_ = state_0; return GroupByNode.groupBy(arg0Value, arg1Value, node__, requireObjectCoercibleNode__, isCallableNode__, INLINED_GET_ITERATOR_NODE_, iteratorStepNode__, iteratorValueNode__, iteratorCloseNode__, callNode__, INLINED_TO_INT_OR_DOUBLE_NODE_, s0_.toPropertyKeyNode_, s0_.normalizeKeyNode_, INLINED_ERROR_BRANCH_); } } @NeverDefault public static GroupByNode create(JSContext context, boolean toPropertyKeyCoercion) { return new GroupByNodeGen(context, toPropertyKeyCoercion); } @GeneratedBy(GroupByNode.class) @DenyReplace private static final class GroupByData extends Node implements SpecializationDataNode { /** * State Info:
         *   0-5: InlinedCache
         *        Specialization: {@link GroupByNode#groupBy}
         *        Parameter: {@link GetIteratorNode} getIteratorNode
         *        Inline method: {@link GetIteratorNodeGen#inline}
         *   6: InlinedCache
         *        Specialization: {@link GroupByNode#groupBy}
         *        Parameter: {@link LongToIntOrDoubleNode} toIntOrDoubleNode
         *        Inline method: {@link LongToIntOrDoubleNodeGen#inline}
         *   7: InlinedCache
         *        Specialization: {@link GroupByNode#groupBy}
         *        Parameter: {@link InlinedBranchProfile} errorBranch
         *        Inline method: {@link InlinedBranchProfile#inline}
         * 
*/ @CompilationFinal @UnsafeAccessedField private int groupBy_state_0_; /** * Source Info:
         *   Specialization: {@link GroupByNode#groupBy}
         *   Parameter: {@link RequireObjectCoercibleNode} requireObjectCoercibleNode
*/ @Child RequireObjectCoercibleNode requireObjectCoercibleNode_; /** * Source Info:
         *   Specialization: {@link GroupByNode#groupBy}
         *   Parameter: {@link IsCallableNode} isCallableNode
*/ @Child IsCallableNode isCallableNode_; /** * Source Info:
         *   Specialization: {@link GroupByNode#groupBy}
         *   Parameter: {@link GetIteratorNode} getIteratorNode
         *   Inline method: {@link GetIteratorNodeGen#inline}
         *   Inline field: {@link Node} field1
*/ @Child @UnsafeAccessedField @SuppressWarnings("unused") private Node getIteratorNode__field1_; /** * Source Info:
         *   Specialization: {@link GroupByNode#groupBy}
         *   Parameter: {@link GetIteratorNode} getIteratorNode
         *   Inline method: {@link GetIteratorNodeGen#inline}
         *   Inline field: {@link Node} field2
*/ @Child @UnsafeAccessedField @SuppressWarnings("unused") private Node getIteratorNode__field2_; /** * Source Info:
         *   Specialization: {@link GroupByNode#groupBy}
         *   Parameter: {@link GetIteratorNode} getIteratorNode
         *   Inline method: {@link GetIteratorNodeGen#inline}
         *   Inline field: {@link Node} field3
*/ @Child @UnsafeAccessedField @SuppressWarnings("unused") private Node getIteratorNode__field3_; /** * Source Info:
         *   Specialization: {@link GroupByNode#groupBy}
         *   Parameter: {@link GetIteratorNode} getIteratorNode
         *   Inline method: {@link GetIteratorNodeGen#inline}
         *   Inline field: {@link Node} field4
*/ @Child @UnsafeAccessedField @SuppressWarnings("unused") private Node getIteratorNode__field4_; /** * Source Info:
         *   Specialization: {@link GroupByNode#groupBy}
         *   Parameter: {@link GetIteratorNode} getIteratorNode
         *   Inline method: {@link GetIteratorNodeGen#inline}
         *   Inline field: {@link Node} field5
*/ @Child @UnsafeAccessedField @SuppressWarnings("unused") private Node getIteratorNode__field5_; /** * Source Info:
         *   Specialization: {@link GroupByNode#groupBy}
         *   Parameter: {@link IteratorStepNode} iteratorStepNode
*/ @Child IteratorStepNode iteratorStepNode_; /** * Source Info:
         *   Specialization: {@link GroupByNode#groupBy}
         *   Parameter: {@link IteratorValueNode} iteratorValueNode
*/ @Child IteratorValueNode iteratorValueNode_; /** * Source Info:
         *   Specialization: {@link GroupByNode#groupBy}
         *   Parameter: {@link IteratorCloseNode} iteratorCloseNode
*/ @Child IteratorCloseNode iteratorCloseNode_; /** * Source Info:
         *   Specialization: {@link GroupByNode#groupBy}
         *   Parameter: {@link JSFunctionCallNode} callNode
*/ @Child JSFunctionCallNode callNode_; /** * Source Info:
         *   Specialization: {@link GroupByNode#groupBy}
         *   Parameter: {@link JSToPropertyKeyNode} toPropertyKeyNode
*/ @Child JSToPropertyKeyNode toPropertyKeyNode_; /** * Source Info:
         *   Specialization: {@link GroupByNode#groupBy}
         *   Parameter: {@link JSCollectionsNormalizeNode} normalizeKeyNode
*/ @Child JSCollectionsNormalizeNode normalizeKeyNode_; GroupByData() { } private static Lookup lookup_() { return MethodHandles.lookup(); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy