com.oracle.graal.python.nodes.frame.ReadFromLocalsNodeGen Maven / Gradle / Ivy
// CheckStyle: start generated
package com.oracle.graal.python.nodes.frame;
import com.oracle.graal.python.builtins.objects.common.HashingStorageNodes.HashingStorageGetItem;
import com.oracle.graal.python.builtins.objects.common.HashingStorageNodesFactory.HashingStorageGetItemNodeGen;
import com.oracle.graal.python.builtins.objects.dict.PDict;
import com.oracle.graal.python.lib.PyObjectGetItem;
import com.oracle.graal.python.lib.PyObjectGetItemNodeGen;
import com.oracle.graal.python.nodes.PGuards;
import com.oracle.graal.python.nodes.object.BuiltinClassProfiles.IsBuiltinObjectProfile;
import com.oracle.graal.python.nodes.object.BuiltinClassProfilesFactory.IsBuiltinObjectProfileNodeGen;
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.RequiredField;
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.DenyReplace;
import com.oracle.truffle.api.nodes.Node;
import com.oracle.truffle.api.nodes.NodeCost;
import com.oracle.truffle.api.strings.TruffleString;
import java.lang.invoke.MethodHandles;
import java.lang.invoke.VarHandle;
import java.lang.invoke.MethodHandles.Lookup;
/**
* Debug Info:
* Specialization {@link ReadFromLocalsNode#noLocals}
* Activation probability: 0.48333
* With/without class size: 9/0 bytes
* Specialization {@link ReadFromLocalsNode#readFromLocalsDict}
* Activation probability: 0.33333
* With/without class size: 17/21 bytes
* Specialization {@link ReadFromLocalsNode#readFromLocals}
* Activation probability: 0.18333
* With/without class size: 11/23 bytes
*
*/
@GeneratedBy(ReadFromLocalsNode.class)
@SuppressWarnings({"javadoc", "unused"})
public final class ReadFromLocalsNodeGen extends ReadFromLocalsNode {
private static final StateField READ_FROM_LOCALS_DICT__READ_FROM_LOCALS_NODE_READ_FROM_LOCALS_DICT_STATE_0_UPDATER = StateField.create(ReadFromLocalsDictData.lookup_(), "readFromLocalsDict_state_0_");
private static final StateField FALLBACK__READ_FROM_LOCALS_NODE_FALLBACK_STATE_0_UPDATER = StateField.create(FallbackData.lookup_(), "fallback_state_0_");
/**
* Source Info:
* Specialization: {@link ReadFromLocalsNode#readFromLocalsDict}
* Parameter: {@link HashingStorageGetItem} getItem
* Inline method: {@link HashingStorageGetItemNodeGen#inline}
*/
private static final HashingStorageGetItem INLINED_READ_FROM_LOCALS_DICT_GET_ITEM_ = HashingStorageGetItemNodeGen.inline(InlineTarget.create(HashingStorageGetItem.class, READ_FROM_LOCALS_DICT__READ_FROM_LOCALS_NODE_READ_FROM_LOCALS_DICT_STATE_0_UPDATER.subUpdater(0, 8), ReferenceField.create(ReadFromLocalsDictData.lookup_(), "readFromLocalsDict_getItem__field1_", Node.class), ReferenceField.create(ReadFromLocalsDictData.lookup_(), "readFromLocalsDict_getItem__field2_", Node.class), ReferenceField.create(ReadFromLocalsDictData.lookup_(), "readFromLocalsDict_getItem__field3_", Node.class), ReferenceField.create(ReadFromLocalsDictData.lookup_(), "readFromLocalsDict_getItem__field4_", Node.class), ReferenceField.create(ReadFromLocalsDictData.lookup_(), "readFromLocalsDict_getItem__field5_", Node.class)));
/**
* Source Info:
* Specialization: {@link ReadFromLocalsNode#readFromLocals}
* Parameter: {@link PyObjectGetItem} getItem
* Inline method: {@link PyObjectGetItemNodeGen#inline}
*/
private static final PyObjectGetItem INLINED_FALLBACK_GET_ITEM_ = PyObjectGetItemNodeGen.inline(InlineTarget.create(PyObjectGetItem.class, FALLBACK__READ_FROM_LOCALS_NODE_FALLBACK_STATE_0_UPDATER.subUpdater(0, 4), ReferenceField.create(FallbackData.lookup_(), "fallback_getItem__field1_", Node.class), ReferenceField.create(FallbackData.lookup_(), "fallback_getItem__field2_", Node.class), ReferenceField.create(FallbackData.lookup_(), "fallback_getItem__field3_", Node.class), ReferenceField.create(FallbackData.lookup_(), "fallback_getItem__field4_", Node.class)));
/**
* Source Info:
* Specialization: {@link ReadFromLocalsNode#readFromLocals}
* Parameter: {@link IsBuiltinObjectProfile} errorProfile
* Inline method: {@link IsBuiltinObjectProfileNodeGen#inline}
*/
private static final IsBuiltinObjectProfile INLINED_FALLBACK_ERROR_PROFILE_ = IsBuiltinObjectProfileNodeGen.inline(InlineTarget.create(IsBuiltinObjectProfile.class, FALLBACK__READ_FROM_LOCALS_NODE_FALLBACK_STATE_0_UPDATER.subUpdater(4, 20), ReferenceField.create(FallbackData.lookup_(), "fallback_errorProfile__field1_", Node.class)));
private static final Uncached UNCACHED = new Uncached();
/**
* State Info:
* 0: SpecializationActive {@link ReadFromLocalsNode#noLocals}
* 1: SpecializationActive {@link ReadFromLocalsNode#readFromLocalsDict}
* 2: SpecializationActive {@link ReadFromLocalsNode#readFromLocals}
*
*/
@CompilationFinal private int state_0_;
@Child private ReadFromLocalsDictData readFromLocalsDict_cache;
@Child private FallbackData fallback_cache;
private ReadFromLocalsNodeGen() {
}
@SuppressWarnings("static-method")
private boolean fallbackGuard_(int state_0, Node arg0Value, Object arg1Value, TruffleString arg2Value) {
if (!((state_0 & 0b1) != 0 /* is SpecializationActive[ReadFromLocalsNode.noLocals(VirtualFrame, Object, TruffleString)] */) && (arg1Value == null)) {
return false;
}
if (arg1Value instanceof PDict) {
PDict arg1Value_ = (PDict) arg1Value;
if ((PGuards.isBuiltinDict(arg1Value_))) {
return false;
}
}
return true;
}
@Override
public Object execute(VirtualFrame frameValue, Node arg0Value, Object arg1Value, TruffleString arg2Value) {
int state_0 = this.state_0_;
if (state_0 != 0 /* is SpecializationActive[ReadFromLocalsNode.noLocals(VirtualFrame, Object, TruffleString)] || SpecializationActive[ReadFromLocalsNode.readFromLocalsDict(Node, PDict, TruffleString, HashingStorageGetItem)] || SpecializationActive[ReadFromLocalsNode.readFromLocals(VirtualFrame, Node, Object, TruffleString, PyObjectGetItem, IsBuiltinObjectProfile)] */) {
if ((state_0 & 0b1) != 0 /* is SpecializationActive[ReadFromLocalsNode.noLocals(VirtualFrame, Object, TruffleString)] */) {
if ((arg1Value == null)) {
return ReadFromLocalsNode.noLocals(frameValue, arg1Value, arg2Value);
}
}
if ((state_0 & 0b10) != 0 /* is SpecializationActive[ReadFromLocalsNode.readFromLocalsDict(Node, PDict, TruffleString, HashingStorageGetItem)] */ && arg1Value instanceof PDict) {
PDict arg1Value_ = (PDict) arg1Value;
ReadFromLocalsDictData s1_ = this.readFromLocalsDict_cache;
if (s1_ != null) {
if ((PGuards.isBuiltinDict(arg1Value_))) {
return ReadFromLocalsNode.readFromLocalsDict(s1_, arg1Value_, arg2Value, INLINED_READ_FROM_LOCALS_DICT_GET_ITEM_);
}
}
}
if ((state_0 & 0b100) != 0 /* is SpecializationActive[ReadFromLocalsNode.readFromLocals(VirtualFrame, Node, Object, TruffleString, PyObjectGetItem, IsBuiltinObjectProfile)] */) {
FallbackData s2_ = this.fallback_cache;
if (s2_ != null) {
if (fallbackGuard_(state_0, arg0Value, arg1Value, arg2Value)) {
return ReadFromLocalsNode.readFromLocals(frameValue, s2_, arg1Value, arg2Value, INLINED_FALLBACK_GET_ITEM_, INLINED_FALLBACK_ERROR_PROFILE_);
}
}
}
}
CompilerDirectives.transferToInterpreterAndInvalidate();
return executeAndSpecialize(frameValue, arg0Value, arg1Value, arg2Value);
}
private Object executeAndSpecialize(VirtualFrame frameValue, Node arg0Value, Object arg1Value, TruffleString arg2Value) {
int state_0 = this.state_0_;
if ((arg1Value == null)) {
state_0 = state_0 | 0b1 /* add SpecializationActive[ReadFromLocalsNode.noLocals(VirtualFrame, Object, TruffleString)] */;
this.state_0_ = state_0;
return ReadFromLocalsNode.noLocals(frameValue, arg1Value, arg2Value);
}
if (arg1Value instanceof PDict) {
PDict arg1Value_ = (PDict) arg1Value;
if ((PGuards.isBuiltinDict(arg1Value_))) {
ReadFromLocalsDictData s1_ = this.insert(new ReadFromLocalsDictData());
VarHandle.storeStoreFence();
this.readFromLocalsDict_cache = s1_;
state_0 = state_0 | 0b10 /* add SpecializationActive[ReadFromLocalsNode.readFromLocalsDict(Node, PDict, TruffleString, HashingStorageGetItem)] */;
this.state_0_ = state_0;
return ReadFromLocalsNode.readFromLocalsDict(s1_, arg1Value_, arg2Value, INLINED_READ_FROM_LOCALS_DICT_GET_ITEM_);
}
}
FallbackData s2_ = this.insert(new FallbackData());
VarHandle.storeStoreFence();
this.fallback_cache = s2_;
state_0 = state_0 | 0b100 /* add SpecializationActive[ReadFromLocalsNode.readFromLocals(VirtualFrame, Node, Object, TruffleString, PyObjectGetItem, IsBuiltinObjectProfile)] */;
this.state_0_ = state_0;
return ReadFromLocalsNode.readFromLocals(frameValue, s2_, arg1Value, arg2Value, INLINED_FALLBACK_GET_ITEM_, INLINED_FALLBACK_ERROR_PROFILE_);
}
@Override
public NodeCost getCost() {
int state_0 = this.state_0_;
if (state_0 == 0) {
return NodeCost.UNINITIALIZED;
} else {
if ((state_0 & (state_0 - 1)) == 0 /* is-single */) {
return NodeCost.MONOMORPHIC;
}
}
return NodeCost.POLYMORPHIC;
}
@NeverDefault
public static ReadFromLocalsNode create() {
return new ReadFromLocalsNodeGen();
}
@NeverDefault
public static ReadFromLocalsNode getUncached() {
return ReadFromLocalsNodeGen.UNCACHED;
}
/**
* Required Fields:
* - {@link Inlined#state_0_}
*
- {@link Inlined#readFromLocalsDict_cache}
*
- {@link Inlined#fallback_cache}
*
*/
@NeverDefault
public static ReadFromLocalsNode inline(@RequiredField(bits = 3, value = StateField.class)@RequiredField(type = Node.class, value = ReferenceField.class)@RequiredField(type = Node.class, value = ReferenceField.class) InlineTarget target) {
return new ReadFromLocalsNodeGen.Inlined(target);
}
@GeneratedBy(ReadFromLocalsNode.class)
@DenyReplace
private static final class Inlined extends ReadFromLocalsNode {
/**
* State Info:
* 0: SpecializationActive {@link ReadFromLocalsNode#noLocals}
* 1: SpecializationActive {@link ReadFromLocalsNode#readFromLocalsDict}
* 2: SpecializationActive {@link ReadFromLocalsNode#readFromLocals}
*
*/
private final StateField state_0_;
private final ReferenceField readFromLocalsDict_cache;
private final ReferenceField fallback_cache;
/**
* Source Info:
* Specialization: {@link ReadFromLocalsNode#readFromLocalsDict}
* Parameter: {@link HashingStorageGetItem} getItem
* Inline method: {@link HashingStorageGetItemNodeGen#inline}
*/
private final HashingStorageGetItem readFromLocalsDict_getItem_;
/**
* Source Info:
* Specialization: {@link ReadFromLocalsNode#readFromLocals}
* Parameter: {@link PyObjectGetItem} getItem
* Inline method: {@link PyObjectGetItemNodeGen#inline}
*/
private final PyObjectGetItem fallback_getItem_;
/**
* Source Info:
* Specialization: {@link ReadFromLocalsNode#readFromLocals}
* Parameter: {@link IsBuiltinObjectProfile} errorProfile
* Inline method: {@link IsBuiltinObjectProfileNodeGen#inline}
*/
private final IsBuiltinObjectProfile fallback_errorProfile_;
@SuppressWarnings("unchecked")
private Inlined(InlineTarget target) {
assert target.getTargetClass().isAssignableFrom(ReadFromLocalsNode.class);
this.state_0_ = target.getState(0, 3);
this.readFromLocalsDict_cache = target.getReference(1, ReadFromLocalsDictData.class);
this.fallback_cache = target.getReference(2, FallbackData.class);
this.readFromLocalsDict_getItem_ = HashingStorageGetItemNodeGen.inline(InlineTarget.create(HashingStorageGetItem.class, READ_FROM_LOCALS_DICT__READ_FROM_LOCALS_NODE_READ_FROM_LOCALS_DICT_STATE_0_UPDATER.subUpdater(0, 8), ReferenceField.create(ReadFromLocalsDictData.lookup_(), "readFromLocalsDict_getItem__field1_", Node.class), ReferenceField.create(ReadFromLocalsDictData.lookup_(), "readFromLocalsDict_getItem__field2_", Node.class), ReferenceField.create(ReadFromLocalsDictData.lookup_(), "readFromLocalsDict_getItem__field3_", Node.class), ReferenceField.create(ReadFromLocalsDictData.lookup_(), "readFromLocalsDict_getItem__field4_", Node.class), ReferenceField.create(ReadFromLocalsDictData.lookup_(), "readFromLocalsDict_getItem__field5_", Node.class)));
this.fallback_getItem_ = PyObjectGetItemNodeGen.inline(InlineTarget.create(PyObjectGetItem.class, FALLBACK__READ_FROM_LOCALS_NODE_FALLBACK_STATE_0_UPDATER.subUpdater(0, 4), ReferenceField.create(FallbackData.lookup_(), "fallback_getItem__field1_", Node.class), ReferenceField.create(FallbackData.lookup_(), "fallback_getItem__field2_", Node.class), ReferenceField.create(FallbackData.lookup_(), "fallback_getItem__field3_", Node.class), ReferenceField.create(FallbackData.lookup_(), "fallback_getItem__field4_", Node.class)));
this.fallback_errorProfile_ = IsBuiltinObjectProfileNodeGen.inline(InlineTarget.create(IsBuiltinObjectProfile.class, FALLBACK__READ_FROM_LOCALS_NODE_FALLBACK_STATE_0_UPDATER.subUpdater(4, 20), ReferenceField.create(FallbackData.lookup_(), "fallback_errorProfile__field1_", Node.class)));
}
@SuppressWarnings("static-method")
private boolean fallbackGuard_(int state_0, Node arg0Value, Object arg1Value, TruffleString arg2Value) {
if (!((state_0 & 0b1) != 0 /* is SpecializationActive[ReadFromLocalsNode.noLocals(VirtualFrame, Object, TruffleString)] */) && (arg1Value == null)) {
return false;
}
if (arg1Value instanceof PDict) {
PDict arg1Value_ = (PDict) arg1Value;
if ((PGuards.isBuiltinDict(arg1Value_))) {
return false;
}
}
return true;
}
@Override
public Object execute(VirtualFrame frameValue, Node arg0Value, Object arg1Value, TruffleString arg2Value) {
int state_0 = this.state_0_.get(arg0Value);
if (state_0 != 0 /* is SpecializationActive[ReadFromLocalsNode.noLocals(VirtualFrame, Object, TruffleString)] || SpecializationActive[ReadFromLocalsNode.readFromLocalsDict(Node, PDict, TruffleString, HashingStorageGetItem)] || SpecializationActive[ReadFromLocalsNode.readFromLocals(VirtualFrame, Node, Object, TruffleString, PyObjectGetItem, IsBuiltinObjectProfile)] */) {
if ((state_0 & 0b1) != 0 /* is SpecializationActive[ReadFromLocalsNode.noLocals(VirtualFrame, Object, TruffleString)] */) {
if ((arg1Value == null)) {
return ReadFromLocalsNode.noLocals(frameValue, arg1Value, arg2Value);
}
}
if ((state_0 & 0b10) != 0 /* is SpecializationActive[ReadFromLocalsNode.readFromLocalsDict(Node, PDict, TruffleString, HashingStorageGetItem)] */ && arg1Value instanceof PDict) {
PDict arg1Value_ = (PDict) arg1Value;
ReadFromLocalsDictData s1_ = this.readFromLocalsDict_cache.get(arg0Value);
if (s1_ != null) {
if ((PGuards.isBuiltinDict(arg1Value_))) {
return ReadFromLocalsNode.readFromLocalsDict(s1_, arg1Value_, arg2Value, this.readFromLocalsDict_getItem_);
}
}
}
if ((state_0 & 0b100) != 0 /* is SpecializationActive[ReadFromLocalsNode.readFromLocals(VirtualFrame, Node, Object, TruffleString, PyObjectGetItem, IsBuiltinObjectProfile)] */) {
FallbackData s2_ = this.fallback_cache.get(arg0Value);
if (s2_ != null) {
if (fallbackGuard_(state_0, arg0Value, arg1Value, arg2Value)) {
return ReadFromLocalsNode.readFromLocals(frameValue, s2_, arg1Value, arg2Value, this.fallback_getItem_, this.fallback_errorProfile_);
}
}
}
}
CompilerDirectives.transferToInterpreterAndInvalidate();
return executeAndSpecialize(frameValue, arg0Value, arg1Value, arg2Value);
}
private Object executeAndSpecialize(VirtualFrame frameValue, Node arg0Value, Object arg1Value, TruffleString arg2Value) {
int state_0 = this.state_0_.get(arg0Value);
if ((arg1Value == null)) {
state_0 = state_0 | 0b1 /* add SpecializationActive[ReadFromLocalsNode.noLocals(VirtualFrame, Object, TruffleString)] */;
this.state_0_.set(arg0Value, state_0);
return ReadFromLocalsNode.noLocals(frameValue, arg1Value, arg2Value);
}
if (arg1Value instanceof PDict) {
PDict arg1Value_ = (PDict) arg1Value;
if ((PGuards.isBuiltinDict(arg1Value_))) {
ReadFromLocalsDictData s1_ = arg0Value.insert(new ReadFromLocalsDictData());
VarHandle.storeStoreFence();
this.readFromLocalsDict_cache.set(arg0Value, s1_);
state_0 = state_0 | 0b10 /* add SpecializationActive[ReadFromLocalsNode.readFromLocalsDict(Node, PDict, TruffleString, HashingStorageGetItem)] */;
this.state_0_.set(arg0Value, state_0);
return ReadFromLocalsNode.readFromLocalsDict(s1_, arg1Value_, arg2Value, this.readFromLocalsDict_getItem_);
}
}
FallbackData s2_ = arg0Value.insert(new FallbackData());
VarHandle.storeStoreFence();
this.fallback_cache.set(arg0Value, s2_);
state_0 = state_0 | 0b100 /* add SpecializationActive[ReadFromLocalsNode.readFromLocals(VirtualFrame, Node, Object, TruffleString, PyObjectGetItem, IsBuiltinObjectProfile)] */;
this.state_0_.set(arg0Value, state_0);
return ReadFromLocalsNode.readFromLocals(frameValue, s2_, arg1Value, arg2Value, this.fallback_getItem_, this.fallback_errorProfile_);
}
@Override
public boolean isAdoptable() {
return false;
}
}
@GeneratedBy(ReadFromLocalsNode.class)
@DenyReplace
private static final class ReadFromLocalsDictData extends Node implements SpecializationDataNode {
/**
* State Info:
* 0-7: InlinedCache
* Specialization: {@link ReadFromLocalsNode#readFromLocalsDict}
* Parameter: {@link HashingStorageGetItem} getItem
* Inline method: {@link HashingStorageGetItemNodeGen#inline}
*
*/
@CompilationFinal @UnsafeAccessedField private int readFromLocalsDict_state_0_;
/**
* Source Info:
* Specialization: {@link ReadFromLocalsNode#readFromLocalsDict}
* Parameter: {@link HashingStorageGetItem} getItem
* Inline method: {@link HashingStorageGetItemNodeGen#inline}
* Inline field: {@link Node} field1
*/
@Child @UnsafeAccessedField @SuppressWarnings("unused") private Node readFromLocalsDict_getItem__field1_;
/**
* Source Info:
* Specialization: {@link ReadFromLocalsNode#readFromLocalsDict}
* Parameter: {@link HashingStorageGetItem} getItem
* Inline method: {@link HashingStorageGetItemNodeGen#inline}
* Inline field: {@link Node} field2
*/
@Child @UnsafeAccessedField @SuppressWarnings("unused") private Node readFromLocalsDict_getItem__field2_;
/**
* Source Info:
* Specialization: {@link ReadFromLocalsNode#readFromLocalsDict}
* Parameter: {@link HashingStorageGetItem} getItem
* Inline method: {@link HashingStorageGetItemNodeGen#inline}
* Inline field: {@link Node} field3
*/
@Child @UnsafeAccessedField @SuppressWarnings("unused") private Node readFromLocalsDict_getItem__field3_;
/**
* Source Info:
* Specialization: {@link ReadFromLocalsNode#readFromLocalsDict}
* Parameter: {@link HashingStorageGetItem} getItem
* Inline method: {@link HashingStorageGetItemNodeGen#inline}
* Inline field: {@link Node} field4
*/
@Child @UnsafeAccessedField @SuppressWarnings("unused") private Node readFromLocalsDict_getItem__field4_;
/**
* Source Info:
* Specialization: {@link ReadFromLocalsNode#readFromLocalsDict}
* Parameter: {@link HashingStorageGetItem} getItem
* Inline method: {@link HashingStorageGetItemNodeGen#inline}
* Inline field: {@link Node} field5
*/
@Child @UnsafeAccessedField @SuppressWarnings("unused") private Node readFromLocalsDict_getItem__field5_;
ReadFromLocalsDictData() {
}
@Override
public NodeCost getCost() {
return NodeCost.NONE;
}
private static Lookup lookup_() {
return MethodHandles.lookup();
}
}
@GeneratedBy(ReadFromLocalsNode.class)
@DenyReplace
private static final class FallbackData extends Node implements SpecializationDataNode {
/**
* State Info:
* 0-3: InlinedCache
* Specialization: {@link ReadFromLocalsNode#readFromLocals}
* Parameter: {@link PyObjectGetItem} getItem
* Inline method: {@link PyObjectGetItemNodeGen#inline}
* 4-23: InlinedCache
* Specialization: {@link ReadFromLocalsNode#readFromLocals}
* Parameter: {@link IsBuiltinObjectProfile} errorProfile
* Inline method: {@link IsBuiltinObjectProfileNodeGen#inline}
*
*/
@CompilationFinal @UnsafeAccessedField private int fallback_state_0_;
/**
* Source Info:
* Specialization: {@link ReadFromLocalsNode#readFromLocals}
* Parameter: {@link PyObjectGetItem} getItem
* Inline method: {@link PyObjectGetItemNodeGen#inline}
* Inline field: {@link Node} field1
*/
@Child @UnsafeAccessedField @SuppressWarnings("unused") private Node fallback_getItem__field1_;
/**
* Source Info:
* Specialization: {@link ReadFromLocalsNode#readFromLocals}
* Parameter: {@link PyObjectGetItem} getItem
* Inline method: {@link PyObjectGetItemNodeGen#inline}
* Inline field: {@link Node} field2
*/
@Child @UnsafeAccessedField @SuppressWarnings("unused") private Node fallback_getItem__field2_;
/**
* Source Info:
* Specialization: {@link ReadFromLocalsNode#readFromLocals}
* Parameter: {@link PyObjectGetItem} getItem
* Inline method: {@link PyObjectGetItemNodeGen#inline}
* Inline field: {@link Node} field3
*/
@Child @UnsafeAccessedField @SuppressWarnings("unused") private Node fallback_getItem__field3_;
/**
* Source Info:
* Specialization: {@link ReadFromLocalsNode#readFromLocals}
* Parameter: {@link PyObjectGetItem} getItem
* Inline method: {@link PyObjectGetItemNodeGen#inline}
* Inline field: {@link Node} field4
*/
@Child @UnsafeAccessedField @SuppressWarnings("unused") private Node fallback_getItem__field4_;
/**
* Source Info:
* Specialization: {@link ReadFromLocalsNode#readFromLocals}
* Parameter: {@link IsBuiltinObjectProfile} errorProfile
* Inline method: {@link IsBuiltinObjectProfileNodeGen#inline}
* Inline field: {@link Node} field1
*/
@Child @UnsafeAccessedField @SuppressWarnings("unused") private Node fallback_errorProfile__field1_;
FallbackData() {
}
@Override
public NodeCost getCost() {
return NodeCost.NONE;
}
private static Lookup lookup_() {
return MethodHandles.lookup();
}
}
@GeneratedBy(ReadFromLocalsNode.class)
@DenyReplace
private static final class Uncached extends ReadFromLocalsNode {
@Override
public Object execute(VirtualFrame frameValue, Node arg0Value, Object arg1Value, TruffleString arg2Value) {
CompilerDirectives.transferToInterpreterAndInvalidate();
if ((arg1Value == null)) {
return ReadFromLocalsNode.noLocals(frameValue, arg1Value, arg2Value);
}
if (arg1Value instanceof PDict) {
PDict arg1Value_ = (PDict) arg1Value;
if ((PGuards.isBuiltinDict(arg1Value_))) {
return ReadFromLocalsNode.readFromLocalsDict(arg0Value, arg1Value_, arg2Value, (HashingStorageGetItemNodeGen.getUncached()));
}
}
return ReadFromLocalsNode.readFromLocals(frameValue, arg0Value, arg1Value, arg2Value, (PyObjectGetItem.getUncached()), (IsBuiltinObjectProfile.getUncached()));
}
@Override
public NodeCost getCost() {
return NodeCost.MEGAMORPHIC;
}
@Override
public boolean isAdoptable() {
return false;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy