com.oracle.graal.python.runtime.interop.PythonMapScopeGen Maven / Gradle / Ivy
// CheckStyle: start generated
package com.oracle.graal.python.runtime.interop;
import com.oracle.truffle.api.CompilerDirectives;
import com.oracle.truffle.api.TruffleLanguage;
import com.oracle.truffle.api.CompilerDirectives.CompilationFinal;
import com.oracle.truffle.api.CompilerDirectives.TruffleBoundary;
import com.oracle.truffle.api.dsl.GeneratedBy;
import com.oracle.truffle.api.dsl.InlineSupport.InlineTarget;
import com.oracle.truffle.api.dsl.InlineSupport.IntField;
import com.oracle.truffle.api.dsl.InlineSupport.StateField;
import com.oracle.truffle.api.dsl.InlineSupport.UnsafeAccessedField;
import com.oracle.truffle.api.interop.InteropLibrary;
import com.oracle.truffle.api.interop.UnknownIdentifierException;
import com.oracle.truffle.api.interop.UnsupportedMessageException;
import com.oracle.truffle.api.interop.UnsupportedTypeException;
import com.oracle.truffle.api.library.DynamicDispatchLibrary;
import com.oracle.truffle.api.library.LibraryExport;
import com.oracle.truffle.api.library.LibraryFactory;
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.profiles.InlinedIntValueProfile;
import java.lang.invoke.MethodHandles;
import java.lang.invoke.VarHandle;
@GeneratedBy(PythonMapScope.class)
@SuppressWarnings("javadoc")
final class PythonMapScopeGen {
private static final LibraryFactory DYNAMIC_DISPATCH_LIBRARY_ = LibraryFactory.resolve(DynamicDispatchLibrary.class);
private static final LibraryFactory INTEROP_LIBRARY_ = LibraryFactory.resolve(InteropLibrary.class);
static {
LibraryExport.register(PythonMapScope.class, new InteropLibraryExports());
}
private PythonMapScopeGen() {
}
@GeneratedBy(PythonMapScope.class)
private static final class InteropLibraryExports extends LibraryExport {
private InteropLibraryExports() {
super(InteropLibrary.class, PythonMapScope.class, false, false, 0);
}
@Override
protected InteropLibrary createUncached(Object receiver) {
assert receiver instanceof PythonMapScope;
InteropLibrary uncached = new Uncached();
return uncached;
}
@Override
protected InteropLibrary createCached(Object receiver) {
assert receiver instanceof PythonMapScope;
return new Cached();
}
@GeneratedBy(PythonMapScope.class)
private static final class Cached extends InteropLibrary {
private static final StateField STATE_0_UPDATER = StateField.create(MethodHandles.lookup(), "state_0_");
/**
* Source Info:
* Specialization: {@link PythonMapScope#getMembers}
* Parameter: {@link InlinedIntValueProfile} lengthProfile
* Inline method: {@link InlinedIntValueProfile#inline}
*/
private static final InlinedIntValueProfile INLINED_LENGHT_PROFILE = InlinedIntValueProfile.inline(InlineTarget.create(InlinedIntValueProfile.class, STATE_0_UPDATER.subUpdater(10, 2), IntField.create(MethodHandles.lookup(), "lenghtProfile_field1_")));
/**
* State Info:
* 0: SpecializationActive {@link PythonMapScope#getMembers(PythonMapScope, boolean, Node, InteropLibrary, InlinedIntValueProfile)}
* 1: SpecializationActive {@link PythonMapScope#isMemberReadable(PythonMapScope, String, Node, InteropLibrary, InlinedIntValueProfile)}
* 2: SpecializationActive {@link PythonMapScope#readMember(PythonMapScope, String, Node, InteropLibrary, InlinedIntValueProfile)}
* 3: SpecializationActive {@link PythonMapScope#isMemberModifiable(PythonMapScope, String, Node, InteropLibrary, InlinedIntValueProfile)}
* 4: SpecializationActive {@link PythonMapScope#isMemberInsertable(PythonMapScope, String, Node, InteropLibrary, InlinedIntValueProfile)}
* 5: SpecializationActive {@link PythonMapScope#hasMemberReadSideEffects(PythonMapScope, String, Node, InteropLibrary, InlinedIntValueProfile)}
* 6: SpecializationActive {@link PythonMapScope#hasMemberWriteSideEffects(PythonMapScope, String, Node, InteropLibrary, InlinedIntValueProfile)}
* 7: SpecializationActive {@link PythonMapScope#writeMember(PythonMapScope, String, Object, Node, InteropLibrary, InlinedIntValueProfile)}
* 8: SpecializationActive {@link PythonMapScope#isMemberRemovable(PythonMapScope, String, Node, InteropLibrary, InlinedIntValueProfile)}
* 9: SpecializationActive {@link PythonMapScope#removeMember(PythonMapScope, String, Node, InteropLibrary, InlinedIntValueProfile)}
* 10-11: InlinedCache
* Specialization: {@link PythonMapScope#getMembers}
* Parameter: {@link InlinedIntValueProfile} lengthProfile
* Inline method: {@link InlinedIntValueProfile#inline}
*
*/
@CompilationFinal @UnsafeAccessedField private int state_0_;
/**
* Source Info:
* Specialization: {@link PythonMapScope#getMembers}
* Parameter: {@link InteropLibrary} interop
*/
@Child private InteropLibrary interop;
/**
* Source Info:
* Specialization: {@link PythonMapScope#getMembers}
* Parameter: {@link InlinedIntValueProfile} lengthProfile
* Inline method: {@link InlinedIntValueProfile#inline}
* Inline field: int field1
*/
@CompilationFinal @UnsafeAccessedField @SuppressWarnings("unused") private int lenghtProfile_field1_;
protected Cached() {
}
@Override
public boolean accepts(Object receiver) {
assert !(receiver instanceof PythonMapScope) || DYNAMIC_DISPATCH_LIBRARY_.getUncached().dispatch(receiver) == null : "Invalid library export. Exported receiver with dynamic dispatch found but not expected.";
return receiver instanceof PythonMapScope;
}
@Override
public boolean hasScopeParent(Object receiver) {
assert this.accepts(receiver) : "Invalid library usage. Library does not accept given receiver.";
assert assertAdopted();
return (((PythonMapScope) receiver)).hasScopeParent();
}
@Override
public Object getScopeParent(Object receiver) throws UnsupportedMessageException {
assert this.accepts(receiver) : "Invalid library usage. Library does not accept given receiver.";
assert assertAdopted();
return (((PythonMapScope) receiver)).getScopeParent();
}
@Override
public boolean hasMembers(Object receiver) {
assert this.accepts(receiver) : "Invalid library usage. Library does not accept given receiver.";
assert assertAdopted();
return (((PythonMapScope) receiver)).hasMembers();
}
/**
* Debug Info:
* Specialization {@link PythonMapScope#getMembers(PythonMapScope, boolean, Node, InteropLibrary, InlinedIntValueProfile)}
* Activation probability: 0.10000
* With/without class size: 5/0 bytes
*
*/
@Override
public Object getMembers(Object arg0Value_, boolean arg1Value) throws UnsupportedMessageException {
assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver.";
assert assertAdopted();
PythonMapScope arg0Value = ((PythonMapScope) arg0Value_);
int state_0 = this.state_0_;
if ((state_0 & 0b1) != 0 /* is SpecializationActive[PythonMapScope.getMembers(PythonMapScope, boolean, Node, InteropLibrary, InlinedIntValueProfile)] */) {
{
InteropLibrary interop_ = this.interop;
if (interop_ != null) {
Node inliningTarget__ = (this);
return arg0Value.getMembers(arg1Value, inliningTarget__, interop_, INLINED_LENGHT_PROFILE);
}
}
}
CompilerDirectives.transferToInterpreterAndInvalidate();
return getMembersNode_AndSpecialize(arg0Value, arg1Value);
}
private Object getMembersNode_AndSpecialize(PythonMapScope arg0Value, boolean arg1Value) throws UnsupportedMessageException {
int state_0 = this.state_0_;
{
Node inliningTarget__ = null;
inliningTarget__ = (this);
InteropLibrary interop_;
InteropLibrary interop__shared = this.interop;
if (interop__shared != null) {
interop_ = interop__shared;
} else {
interop_ = this.insert((INTEROP_LIBRARY_.createDispatched(PythonMapScope.LIMIT)));
if (interop_ == null) {
throw new IllegalStateException("Specialization 'getMembers(PythonMapScope, boolean, Node, InteropLibrary, InlinedIntValueProfile)' contains a shared cache with name 'interop' that returned a default value for the cached initializer. Default values are not supported for shared cached initializers because the default value is reserved for the uninitialized state.");
}
}
if (this.interop == null) {
VarHandle.storeStoreFence();
this.interop = interop_;
}
state_0 = state_0 | 0b1 /* add SpecializationActive[PythonMapScope.getMembers(PythonMapScope, boolean, Node, InteropLibrary, InlinedIntValueProfile)] */;
this.state_0_ = state_0;
return arg0Value.getMembers(arg1Value, inliningTarget__, interop_, INLINED_LENGHT_PROFILE);
}
}
@Override
public NodeCost getCost() {
int state_0 = this.state_0_;
if ((state_0 & 0b1) == 0) {
return NodeCost.UNINITIALIZED;
} else {
return NodeCost.MONOMORPHIC;
}
}
/**
* Debug Info:
* Specialization {@link PythonMapScope#isMemberReadable(PythonMapScope, String, Node, InteropLibrary, InlinedIntValueProfile)}
* Activation probability: 0.10000
* With/without class size: 5/0 bytes
*
*/
@Override
public boolean isMemberReadable(Object arg0Value_, String arg1Value) {
assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver.";
assert assertAdopted();
PythonMapScope arg0Value = ((PythonMapScope) arg0Value_);
int state_0 = this.state_0_;
if ((state_0 & 0b10) != 0 /* is SpecializationActive[PythonMapScope.isMemberReadable(PythonMapScope, String, Node, InteropLibrary, InlinedIntValueProfile)] */) {
{
InteropLibrary interop_ = this.interop;
if (interop_ != null) {
Node inliningTarget__ = (this);
return arg0Value.isMemberReadable(arg1Value, inliningTarget__, interop_, INLINED_LENGHT_PROFILE);
}
}
}
CompilerDirectives.transferToInterpreterAndInvalidate();
return isMemberReadableNode_AndSpecialize(arg0Value, arg1Value);
}
private boolean isMemberReadableNode_AndSpecialize(PythonMapScope arg0Value, String arg1Value) {
int state_0 = this.state_0_;
{
Node inliningTarget__ = null;
inliningTarget__ = (this);
InteropLibrary interop_;
InteropLibrary interop__shared = this.interop;
if (interop__shared != null) {
interop_ = interop__shared;
} else {
interop_ = this.insert((INTEROP_LIBRARY_.createDispatched(PythonMapScope.LIMIT)));
if (interop_ == null) {
throw new IllegalStateException("Specialization 'isMemberReadable(PythonMapScope, String, Node, InteropLibrary, InlinedIntValueProfile)' contains a shared cache with name 'interop' that returned a default value for the cached initializer. Default values are not supported for shared cached initializers because the default value is reserved for the uninitialized state.");
}
}
if (this.interop == null) {
VarHandle.storeStoreFence();
this.interop = interop_;
}
state_0 = state_0 | 0b10 /* add SpecializationActive[PythonMapScope.isMemberReadable(PythonMapScope, String, Node, InteropLibrary, InlinedIntValueProfile)] */;
this.state_0_ = state_0;
return arg0Value.isMemberReadable(arg1Value, inliningTarget__, interop_, INLINED_LENGHT_PROFILE);
}
}
/**
* Debug Info:
* Specialization {@link PythonMapScope#readMember(PythonMapScope, String, Node, InteropLibrary, InlinedIntValueProfile)}
* Activation probability: 0.10000
* With/without class size: 5/0 bytes
*
*/
@Override
public Object readMember(Object arg0Value_, String arg1Value) throws UnsupportedMessageException, UnknownIdentifierException {
assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver.";
assert assertAdopted();
PythonMapScope arg0Value = ((PythonMapScope) arg0Value_);
int state_0 = this.state_0_;
if ((state_0 & 0b100) != 0 /* is SpecializationActive[PythonMapScope.readMember(PythonMapScope, String, Node, InteropLibrary, InlinedIntValueProfile)] */) {
{
InteropLibrary interop_ = this.interop;
if (interop_ != null) {
Node inliningTarget__ = (this);
return arg0Value.readMember(arg1Value, inliningTarget__, interop_, INLINED_LENGHT_PROFILE);
}
}
}
CompilerDirectives.transferToInterpreterAndInvalidate();
return readMemberNode_AndSpecialize(arg0Value, arg1Value);
}
private Object readMemberNode_AndSpecialize(PythonMapScope arg0Value, String arg1Value) throws UnknownIdentifierException, UnsupportedMessageException {
int state_0 = this.state_0_;
{
Node inliningTarget__ = null;
inliningTarget__ = (this);
InteropLibrary interop_;
InteropLibrary interop__shared = this.interop;
if (interop__shared != null) {
interop_ = interop__shared;
} else {
interop_ = this.insert((INTEROP_LIBRARY_.createDispatched(PythonMapScope.LIMIT)));
if (interop_ == null) {
throw new IllegalStateException("Specialization 'readMember(PythonMapScope, String, Node, InteropLibrary, InlinedIntValueProfile)' contains a shared cache with name 'interop' that returned a default value for the cached initializer. Default values are not supported for shared cached initializers because the default value is reserved for the uninitialized state.");
}
}
if (this.interop == null) {
VarHandle.storeStoreFence();
this.interop = interop_;
}
state_0 = state_0 | 0b100 /* add SpecializationActive[PythonMapScope.readMember(PythonMapScope, String, Node, InteropLibrary, InlinedIntValueProfile)] */;
this.state_0_ = state_0;
return arg0Value.readMember(arg1Value, inliningTarget__, interop_, INLINED_LENGHT_PROFILE);
}
}
/**
* Debug Info:
* Specialization {@link PythonMapScope#isMemberModifiable(PythonMapScope, String, Node, InteropLibrary, InlinedIntValueProfile)}
* Activation probability: 0.10000
* With/without class size: 5/0 bytes
*
*/
@Override
public boolean isMemberModifiable(Object arg0Value_, String arg1Value) {
assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver.";
assert assertAdopted();
PythonMapScope arg0Value = ((PythonMapScope) arg0Value_);
int state_0 = this.state_0_;
if ((state_0 & 0b1000) != 0 /* is SpecializationActive[PythonMapScope.isMemberModifiable(PythonMapScope, String, Node, InteropLibrary, InlinedIntValueProfile)] */) {
{
InteropLibrary interop_ = this.interop;
if (interop_ != null) {
Node inliningTarget__ = (this);
return arg0Value.isMemberModifiable(arg1Value, inliningTarget__, interop_, INLINED_LENGHT_PROFILE);
}
}
}
CompilerDirectives.transferToInterpreterAndInvalidate();
return isMemberModifiableNode_AndSpecialize(arg0Value, arg1Value);
}
private boolean isMemberModifiableNode_AndSpecialize(PythonMapScope arg0Value, String arg1Value) {
int state_0 = this.state_0_;
{
Node inliningTarget__ = null;
inliningTarget__ = (this);
InteropLibrary interop_;
InteropLibrary interop__shared = this.interop;
if (interop__shared != null) {
interop_ = interop__shared;
} else {
interop_ = this.insert((INTEROP_LIBRARY_.createDispatched(PythonMapScope.LIMIT)));
if (interop_ == null) {
throw new IllegalStateException("Specialization 'isMemberModifiable(PythonMapScope, String, Node, InteropLibrary, InlinedIntValueProfile)' contains a shared cache with name 'interop' that returned a default value for the cached initializer. Default values are not supported for shared cached initializers because the default value is reserved for the uninitialized state.");
}
}
if (this.interop == null) {
VarHandle.storeStoreFence();
this.interop = interop_;
}
state_0 = state_0 | 0b1000 /* add SpecializationActive[PythonMapScope.isMemberModifiable(PythonMapScope, String, Node, InteropLibrary, InlinedIntValueProfile)] */;
this.state_0_ = state_0;
return arg0Value.isMemberModifiable(arg1Value, inliningTarget__, interop_, INLINED_LENGHT_PROFILE);
}
}
/**
* Debug Info:
* Specialization {@link PythonMapScope#isMemberInsertable(PythonMapScope, String, Node, InteropLibrary, InlinedIntValueProfile)}
* Activation probability: 0.10000
* With/without class size: 5/0 bytes
*
*/
@Override
public boolean isMemberInsertable(Object arg0Value_, String arg1Value) {
assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver.";
assert assertAdopted();
PythonMapScope arg0Value = ((PythonMapScope) arg0Value_);
int state_0 = this.state_0_;
if ((state_0 & 0b10000) != 0 /* is SpecializationActive[PythonMapScope.isMemberInsertable(PythonMapScope, String, Node, InteropLibrary, InlinedIntValueProfile)] */) {
{
InteropLibrary interop_ = this.interop;
if (interop_ != null) {
Node inliningTarget__ = (this);
return arg0Value.isMemberInsertable(arg1Value, inliningTarget__, interop_, INLINED_LENGHT_PROFILE);
}
}
}
CompilerDirectives.transferToInterpreterAndInvalidate();
return isMemberInsertableNode_AndSpecialize(arg0Value, arg1Value);
}
private boolean isMemberInsertableNode_AndSpecialize(PythonMapScope arg0Value, String arg1Value) {
int state_0 = this.state_0_;
{
Node inliningTarget__ = null;
inliningTarget__ = (this);
InteropLibrary interop_;
InteropLibrary interop__shared = this.interop;
if (interop__shared != null) {
interop_ = interop__shared;
} else {
interop_ = this.insert((INTEROP_LIBRARY_.createDispatched(PythonMapScope.LIMIT)));
if (interop_ == null) {
throw new IllegalStateException("Specialization 'isMemberInsertable(PythonMapScope, String, Node, InteropLibrary, InlinedIntValueProfile)' contains a shared cache with name 'interop' that returned a default value for the cached initializer. Default values are not supported for shared cached initializers because the default value is reserved for the uninitialized state.");
}
}
if (this.interop == null) {
VarHandle.storeStoreFence();
this.interop = interop_;
}
state_0 = state_0 | 0b10000 /* add SpecializationActive[PythonMapScope.isMemberInsertable(PythonMapScope, String, Node, InteropLibrary, InlinedIntValueProfile)] */;
this.state_0_ = state_0;
return arg0Value.isMemberInsertable(arg1Value, inliningTarget__, interop_, INLINED_LENGHT_PROFILE);
}
}
/**
* Debug Info:
* Specialization {@link PythonMapScope#hasMemberReadSideEffects(PythonMapScope, String, Node, InteropLibrary, InlinedIntValueProfile)}
* Activation probability: 0.10000
* With/without class size: 5/0 bytes
*
*/
@Override
public boolean hasMemberReadSideEffects(Object arg0Value_, String arg1Value) {
assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver.";
assert assertAdopted();
PythonMapScope arg0Value = ((PythonMapScope) arg0Value_);
int state_0 = this.state_0_;
if ((state_0 & 0b100000) != 0 /* is SpecializationActive[PythonMapScope.hasMemberReadSideEffects(PythonMapScope, String, Node, InteropLibrary, InlinedIntValueProfile)] */) {
{
InteropLibrary interop_ = this.interop;
if (interop_ != null) {
Node inliningTarget__ = (this);
return arg0Value.hasMemberReadSideEffects(arg1Value, inliningTarget__, interop_, INLINED_LENGHT_PROFILE);
}
}
}
CompilerDirectives.transferToInterpreterAndInvalidate();
return hasMemberReadSideEffectsNode_AndSpecialize(arg0Value, arg1Value);
}
private boolean hasMemberReadSideEffectsNode_AndSpecialize(PythonMapScope arg0Value, String arg1Value) {
int state_0 = this.state_0_;
{
Node inliningTarget__ = null;
inliningTarget__ = (this);
InteropLibrary interop_;
InteropLibrary interop__shared = this.interop;
if (interop__shared != null) {
interop_ = interop__shared;
} else {
interop_ = this.insert((INTEROP_LIBRARY_.createDispatched(PythonMapScope.LIMIT)));
if (interop_ == null) {
throw new IllegalStateException("Specialization 'hasMemberReadSideEffects(PythonMapScope, String, Node, InteropLibrary, InlinedIntValueProfile)' contains a shared cache with name 'interop' that returned a default value for the cached initializer. Default values are not supported for shared cached initializers because the default value is reserved for the uninitialized state.");
}
}
if (this.interop == null) {
VarHandle.storeStoreFence();
this.interop = interop_;
}
state_0 = state_0 | 0b100000 /* add SpecializationActive[PythonMapScope.hasMemberReadSideEffects(PythonMapScope, String, Node, InteropLibrary, InlinedIntValueProfile)] */;
this.state_0_ = state_0;
return arg0Value.hasMemberReadSideEffects(arg1Value, inliningTarget__, interop_, INLINED_LENGHT_PROFILE);
}
}
/**
* Debug Info:
* Specialization {@link PythonMapScope#hasMemberWriteSideEffects(PythonMapScope, String, Node, InteropLibrary, InlinedIntValueProfile)}
* Activation probability: 0.10000
* With/without class size: 5/0 bytes
*
*/
@Override
public boolean hasMemberWriteSideEffects(Object arg0Value_, String arg1Value) {
assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver.";
assert assertAdopted();
PythonMapScope arg0Value = ((PythonMapScope) arg0Value_);
int state_0 = this.state_0_;
if ((state_0 & 0b1000000) != 0 /* is SpecializationActive[PythonMapScope.hasMemberWriteSideEffects(PythonMapScope, String, Node, InteropLibrary, InlinedIntValueProfile)] */) {
{
InteropLibrary interop_ = this.interop;
if (interop_ != null) {
Node inliningTarget__ = (this);
return arg0Value.hasMemberWriteSideEffects(arg1Value, inliningTarget__, interop_, INLINED_LENGHT_PROFILE);
}
}
}
CompilerDirectives.transferToInterpreterAndInvalidate();
return hasMemberWriteSideEffectsNode_AndSpecialize(arg0Value, arg1Value);
}
private boolean hasMemberWriteSideEffectsNode_AndSpecialize(PythonMapScope arg0Value, String arg1Value) {
int state_0 = this.state_0_;
{
Node inliningTarget__ = null;
inliningTarget__ = (this);
InteropLibrary interop_;
InteropLibrary interop__shared = this.interop;
if (interop__shared != null) {
interop_ = interop__shared;
} else {
interop_ = this.insert((INTEROP_LIBRARY_.createDispatched(PythonMapScope.LIMIT)));
if (interop_ == null) {
throw new IllegalStateException("Specialization 'hasMemberWriteSideEffects(PythonMapScope, String, Node, InteropLibrary, InlinedIntValueProfile)' contains a shared cache with name 'interop' that returned a default value for the cached initializer. Default values are not supported for shared cached initializers because the default value is reserved for the uninitialized state.");
}
}
if (this.interop == null) {
VarHandle.storeStoreFence();
this.interop = interop_;
}
state_0 = state_0 | 0b1000000 /* add SpecializationActive[PythonMapScope.hasMemberWriteSideEffects(PythonMapScope, String, Node, InteropLibrary, InlinedIntValueProfile)] */;
this.state_0_ = state_0;
return arg0Value.hasMemberWriteSideEffects(arg1Value, inliningTarget__, interop_, INLINED_LENGHT_PROFILE);
}
}
/**
* Debug Info:
* Specialization {@link PythonMapScope#writeMember(PythonMapScope, String, Object, Node, InteropLibrary, InlinedIntValueProfile)}
* Activation probability: 0.10000
* With/without class size: 5/0 bytes
*
*/
@Override
public void writeMember(Object arg0Value_, String arg1Value, Object arg2Value) throws UnsupportedMessageException, UnknownIdentifierException, UnsupportedTypeException {
assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver.";
assert assertAdopted();
PythonMapScope arg0Value = ((PythonMapScope) arg0Value_);
int state_0 = this.state_0_;
if ((state_0 & 0b10000000) != 0 /* is SpecializationActive[PythonMapScope.writeMember(PythonMapScope, String, Object, Node, InteropLibrary, InlinedIntValueProfile)] */) {
{
InteropLibrary interop_ = this.interop;
if (interop_ != null) {
Node inliningTarget__ = (this);
arg0Value.writeMember(arg1Value, arg2Value, inliningTarget__, interop_, INLINED_LENGHT_PROFILE);
return;
}
}
}
CompilerDirectives.transferToInterpreterAndInvalidate();
writeMemberNode_AndSpecialize(arg0Value, arg1Value, arg2Value);
return;
}
private void writeMemberNode_AndSpecialize(PythonMapScope arg0Value, String arg1Value, Object arg2Value) throws UnknownIdentifierException, UnsupportedMessageException, UnsupportedTypeException {
int state_0 = this.state_0_;
{
Node inliningTarget__ = null;
inliningTarget__ = (this);
InteropLibrary interop_;
InteropLibrary interop__shared = this.interop;
if (interop__shared != null) {
interop_ = interop__shared;
} else {
interop_ = this.insert((INTEROP_LIBRARY_.createDispatched(PythonMapScope.LIMIT)));
if (interop_ == null) {
throw new IllegalStateException("Specialization 'writeMember(PythonMapScope, String, Object, Node, InteropLibrary, InlinedIntValueProfile)' contains a shared cache with name 'interop' that returned a default value for the cached initializer. Default values are not supported for shared cached initializers because the default value is reserved for the uninitialized state.");
}
}
if (this.interop == null) {
VarHandle.storeStoreFence();
this.interop = interop_;
}
state_0 = state_0 | 0b10000000 /* add SpecializationActive[PythonMapScope.writeMember(PythonMapScope, String, Object, Node, InteropLibrary, InlinedIntValueProfile)] */;
this.state_0_ = state_0;
arg0Value.writeMember(arg1Value, arg2Value, inliningTarget__, interop_, INLINED_LENGHT_PROFILE);
return;
}
}
/**
* Debug Info:
* Specialization {@link PythonMapScope#isMemberRemovable(PythonMapScope, String, Node, InteropLibrary, InlinedIntValueProfile)}
* Activation probability: 0.10000
* With/without class size: 5/0 bytes
*
*/
@Override
public boolean isMemberRemovable(Object arg0Value_, String arg1Value) {
assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver.";
assert assertAdopted();
PythonMapScope arg0Value = ((PythonMapScope) arg0Value_);
int state_0 = this.state_0_;
if ((state_0 & 0b100000000) != 0 /* is SpecializationActive[PythonMapScope.isMemberRemovable(PythonMapScope, String, Node, InteropLibrary, InlinedIntValueProfile)] */) {
{
InteropLibrary interop_ = this.interop;
if (interop_ != null) {
Node inliningTarget__ = (this);
return arg0Value.isMemberRemovable(arg1Value, inliningTarget__, interop_, INLINED_LENGHT_PROFILE);
}
}
}
CompilerDirectives.transferToInterpreterAndInvalidate();
return isMemberRemovableNode_AndSpecialize(arg0Value, arg1Value);
}
private boolean isMemberRemovableNode_AndSpecialize(PythonMapScope arg0Value, String arg1Value) {
int state_0 = this.state_0_;
{
Node inliningTarget__ = null;
inliningTarget__ = (this);
InteropLibrary interop_;
InteropLibrary interop__shared = this.interop;
if (interop__shared != null) {
interop_ = interop__shared;
} else {
interop_ = this.insert((INTEROP_LIBRARY_.createDispatched(PythonMapScope.LIMIT)));
if (interop_ == null) {
throw new IllegalStateException("Specialization 'isMemberRemovable(PythonMapScope, String, Node, InteropLibrary, InlinedIntValueProfile)' contains a shared cache with name 'interop' that returned a default value for the cached initializer. Default values are not supported for shared cached initializers because the default value is reserved for the uninitialized state.");
}
}
if (this.interop == null) {
VarHandle.storeStoreFence();
this.interop = interop_;
}
state_0 = state_0 | 0b100000000 /* add SpecializationActive[PythonMapScope.isMemberRemovable(PythonMapScope, String, Node, InteropLibrary, InlinedIntValueProfile)] */;
this.state_0_ = state_0;
return arg0Value.isMemberRemovable(arg1Value, inliningTarget__, interop_, INLINED_LENGHT_PROFILE);
}
}
/**
* Debug Info:
* Specialization {@link PythonMapScope#removeMember(PythonMapScope, String, Node, InteropLibrary, InlinedIntValueProfile)}
* Activation probability: 0.10000
* With/without class size: 5/0 bytes
*
*/
@Override
public void removeMember(Object arg0Value_, String arg1Value) throws UnsupportedMessageException, UnknownIdentifierException {
assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver.";
assert assertAdopted();
PythonMapScope arg0Value = ((PythonMapScope) arg0Value_);
int state_0 = this.state_0_;
if ((state_0 & 0b1000000000) != 0 /* is SpecializationActive[PythonMapScope.removeMember(PythonMapScope, String, Node, InteropLibrary, InlinedIntValueProfile)] */) {
{
InteropLibrary interop_ = this.interop;
if (interop_ != null) {
Node inliningTarget__ = (this);
arg0Value.removeMember(arg1Value, inliningTarget__, interop_, INLINED_LENGHT_PROFILE);
return;
}
}
}
CompilerDirectives.transferToInterpreterAndInvalidate();
removeMemberNode_AndSpecialize(arg0Value, arg1Value);
return;
}
private void removeMemberNode_AndSpecialize(PythonMapScope arg0Value, String arg1Value) throws UnsupportedMessageException, UnknownIdentifierException {
int state_0 = this.state_0_;
{
Node inliningTarget__ = null;
inliningTarget__ = (this);
InteropLibrary interop_;
InteropLibrary interop__shared = this.interop;
if (interop__shared != null) {
interop_ = interop__shared;
} else {
interop_ = this.insert((INTEROP_LIBRARY_.createDispatched(PythonMapScope.LIMIT)));
if (interop_ == null) {
throw new IllegalStateException("Specialization 'removeMember(PythonMapScope, String, Node, InteropLibrary, InlinedIntValueProfile)' contains a shared cache with name 'interop' that returned a default value for the cached initializer. Default values are not supported for shared cached initializers because the default value is reserved for the uninitialized state.");
}
}
if (this.interop == null) {
VarHandle.storeStoreFence();
this.interop = interop_;
}
state_0 = state_0 | 0b1000000000 /* add SpecializationActive[PythonMapScope.removeMember(PythonMapScope, String, Node, InteropLibrary, InlinedIntValueProfile)] */;
this.state_0_ = state_0;
arg0Value.removeMember(arg1Value, inliningTarget__, interop_, INLINED_LENGHT_PROFILE);
return;
}
}
@Override
public boolean hasLanguage(Object receiver) {
assert this.accepts(receiver) : "Invalid library usage. Library does not accept given receiver.";
assert assertAdopted();
return (((PythonMapScope) receiver)).hasLanguage();
}
@Override
public Class extends TruffleLanguage>> getLanguage(Object receiver) throws UnsupportedMessageException {
assert this.accepts(receiver) : "Invalid library usage. Library does not accept given receiver.";
assert assertAdopted();
return (((PythonMapScope) receiver)).getLanguage();
}
@Override
public boolean isScope(Object receiver) {
assert this.accepts(receiver) : "Invalid library usage. Library does not accept given receiver.";
assert assertAdopted();
return (((PythonMapScope) receiver)).isScope();
}
@Override
public Object toDisplayString(Object receiver, boolean allowSideEffects) {
assert this.accepts(receiver) : "Invalid library usage. Library does not accept given receiver.";
assert assertAdopted();
return (((PythonMapScope) receiver)).toDisplayString(allowSideEffects);
}
}
@GeneratedBy(PythonMapScope.class)
@DenyReplace
private static final class Uncached extends InteropLibrary {
protected Uncached() {
}
@Override
@TruffleBoundary
public boolean accepts(Object receiver) {
assert !(receiver instanceof PythonMapScope) || DYNAMIC_DISPATCH_LIBRARY_.getUncached().dispatch(receiver) == null : "Invalid library export. Exported receiver with dynamic dispatch found but not expected.";
return receiver instanceof PythonMapScope;
}
@Override
public boolean isAdoptable() {
return false;
}
@Override
public NodeCost getCost() {
return NodeCost.MEGAMORPHIC;
}
@TruffleBoundary
@Override
public boolean hasScopeParent(Object receiver) {
// declared: true
assert this.accepts(receiver) : "Invalid library usage. Library does not accept given receiver.";
return ((PythonMapScope) receiver) .hasScopeParent();
}
@TruffleBoundary
@Override
public Object getScopeParent(Object receiver) throws UnsupportedMessageException {
// declared: true
assert this.accepts(receiver) : "Invalid library usage. Library does not accept given receiver.";
return ((PythonMapScope) receiver) .getScopeParent();
}
@TruffleBoundary
@Override
public boolean hasMembers(Object receiver) {
// declared: true
assert this.accepts(receiver) : "Invalid library usage. Library does not accept given receiver.";
return ((PythonMapScope) receiver) .hasMembers();
}
@TruffleBoundary
@Override
public Object getMembers(Object arg0Value_, boolean arg1Value) throws UnsupportedMessageException {
// declared: true
assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver.";
PythonMapScope arg0Value = ((PythonMapScope) arg0Value_);
return arg0Value.getMembers(arg1Value, (this), (INTEROP_LIBRARY_.getUncached()), (InlinedIntValueProfile.getUncached()));
}
@TruffleBoundary
@Override
public boolean isMemberReadable(Object arg0Value_, String arg1Value) {
// declared: true
assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver.";
PythonMapScope arg0Value = ((PythonMapScope) arg0Value_);
return arg0Value.isMemberReadable(arg1Value, (this), (INTEROP_LIBRARY_.getUncached()), (InlinedIntValueProfile.getUncached()));
}
@TruffleBoundary
@Override
public Object readMember(Object arg0Value_, String arg1Value) throws UnknownIdentifierException, UnsupportedMessageException {
// declared: true
assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver.";
PythonMapScope arg0Value = ((PythonMapScope) arg0Value_);
return arg0Value.readMember(arg1Value, (this), (INTEROP_LIBRARY_.getUncached()), (InlinedIntValueProfile.getUncached()));
}
@TruffleBoundary
@Override
public boolean isMemberModifiable(Object arg0Value_, String arg1Value) {
// declared: true
assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver.";
PythonMapScope arg0Value = ((PythonMapScope) arg0Value_);
return arg0Value.isMemberModifiable(arg1Value, (this), (INTEROP_LIBRARY_.getUncached()), (InlinedIntValueProfile.getUncached()));
}
@TruffleBoundary
@Override
public boolean isMemberInsertable(Object arg0Value_, String arg1Value) {
// declared: true
assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver.";
PythonMapScope arg0Value = ((PythonMapScope) arg0Value_);
return arg0Value.isMemberInsertable(arg1Value, (this), (INTEROP_LIBRARY_.getUncached()), (InlinedIntValueProfile.getUncached()));
}
@TruffleBoundary
@Override
public boolean hasMemberReadSideEffects(Object arg0Value_, String arg1Value) {
// declared: true
assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver.";
PythonMapScope arg0Value = ((PythonMapScope) arg0Value_);
return arg0Value.hasMemberReadSideEffects(arg1Value, (this), (INTEROP_LIBRARY_.getUncached()), (InlinedIntValueProfile.getUncached()));
}
@TruffleBoundary
@Override
public boolean hasMemberWriteSideEffects(Object arg0Value_, String arg1Value) {
// declared: true
assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver.";
PythonMapScope arg0Value = ((PythonMapScope) arg0Value_);
return arg0Value.hasMemberWriteSideEffects(arg1Value, (this), (INTEROP_LIBRARY_.getUncached()), (InlinedIntValueProfile.getUncached()));
}
@TruffleBoundary
@Override
public void writeMember(Object arg0Value_, String arg1Value, Object arg2Value) throws UnknownIdentifierException, UnsupportedMessageException, UnsupportedTypeException {
// declared: true
assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver.";
PythonMapScope arg0Value = ((PythonMapScope) arg0Value_);
arg0Value.writeMember(arg1Value, arg2Value, (this), (INTEROP_LIBRARY_.getUncached()), (InlinedIntValueProfile.getUncached()));
return;
}
@TruffleBoundary
@Override
public boolean isMemberRemovable(Object arg0Value_, String arg1Value) {
// declared: true
assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver.";
PythonMapScope arg0Value = ((PythonMapScope) arg0Value_);
return arg0Value.isMemberRemovable(arg1Value, (this), (INTEROP_LIBRARY_.getUncached()), (InlinedIntValueProfile.getUncached()));
}
@TruffleBoundary
@Override
public void removeMember(Object arg0Value_, String arg1Value) throws UnsupportedMessageException, UnknownIdentifierException {
// declared: true
assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver.";
PythonMapScope arg0Value = ((PythonMapScope) arg0Value_);
arg0Value.removeMember(arg1Value, (this), (INTEROP_LIBRARY_.getUncached()), (InlinedIntValueProfile.getUncached()));
return;
}
@TruffleBoundary
@Override
public boolean hasLanguage(Object receiver) {
// declared: true
assert this.accepts(receiver) : "Invalid library usage. Library does not accept given receiver.";
return ((PythonMapScope) receiver) .hasLanguage();
}
@TruffleBoundary
@Override
public Class extends TruffleLanguage>> getLanguage(Object receiver) throws UnsupportedMessageException {
// declared: true
assert this.accepts(receiver) : "Invalid library usage. Library does not accept given receiver.";
return ((PythonMapScope) receiver) .getLanguage();
}
@TruffleBoundary
@Override
public boolean isScope(Object receiver) {
// declared: true
assert this.accepts(receiver) : "Invalid library usage. Library does not accept given receiver.";
return ((PythonMapScope) receiver) .isScope();
}
@TruffleBoundary
@Override
public Object toDisplayString(Object receiver, boolean allowSideEffects) {
// declared: true
assert this.accepts(receiver) : "Invalid library usage. Library does not accept given receiver.";
return ((PythonMapScope) receiver) .toDisplayString(allowSideEffects);
}
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy