org.pkl.thirdparty.truffle.host.HostProxyGen Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pkl-tools Show documentation
Show all versions of pkl-tools Show documentation
Fat Jar containing pkl-cli, pkl-codegen-java, pkl-codegen-kotlin, pkl-config-java, pkl-core, pkl-doc, and their shaded third-party dependencies.
// CheckStyle: start generated
package org.pkl.thirdparty.truffle.host;
import org.pkl.thirdparty.truffle.api.CompilerDirectives;
import org.pkl.thirdparty.truffle.api.TruffleLanguage;
import org.pkl.thirdparty.truffle.api.CompilerDirectives.CompilationFinal;
import org.pkl.thirdparty.truffle.api.CompilerDirectives.TruffleBoundary;
import org.pkl.thirdparty.truffle.api.dsl.GeneratedBy;
import org.pkl.thirdparty.truffle.api.interop.ArityException;
import org.pkl.thirdparty.truffle.api.interop.InteropLibrary;
import org.pkl.thirdparty.truffle.api.interop.InvalidArrayIndexException;
import org.pkl.thirdparty.truffle.api.interop.StopIterationException;
import org.pkl.thirdparty.truffle.api.interop.UnknownIdentifierException;
import org.pkl.thirdparty.truffle.api.interop.UnknownKeyException;
import org.pkl.thirdparty.truffle.api.interop.UnsupportedMessageException;
import org.pkl.thirdparty.truffle.api.interop.UnsupportedTypeException;
import org.pkl.thirdparty.truffle.api.library.DynamicDispatchLibrary;
import org.pkl.thirdparty.truffle.api.library.LibraryExport;
import org.pkl.thirdparty.truffle.api.library.LibraryFactory;
import org.pkl.thirdparty.truffle.api.nodes.DenyReplace;
import org.pkl.thirdparty.truffle.api.nodes.NodeCost;
import org.pkl.thirdparty.truffle.api.utilities.TriState;
import org.pkl.thirdparty.truffle.host.HostProxy.IsIdenticalOrUndefined;
import java.lang.invoke.VarHandle;
import java.time.Duration;
import java.time.Instant;
import java.time.LocalDate;
import java.time.LocalTime;
import java.time.ZoneId;
@GeneratedBy(HostProxy.class)
@SuppressWarnings({"javadoc", "unused"})
final class HostProxyGen {
private static final LibraryFactory DYNAMIC_DISPATCH_LIBRARY_ = LibraryFactory.resolve(DynamicDispatchLibrary.class);
private static final LibraryFactory INTEROP_LIBRARY_ = LibraryFactory.resolve(InteropLibrary.class);
static {
LibraryExport.register(HostProxy.class, new InteropLibraryExports());
}
private HostProxyGen() {
}
@GeneratedBy(HostProxy.class)
private static final class InteropLibraryExports extends LibraryExport {
private InteropLibraryExports() {
super(InteropLibrary.class, HostProxy.class, false, false, 0);
}
@Override
protected InteropLibrary createUncached(Object receiver) {
assert receiver instanceof HostProxy;
InteropLibrary uncached = new Uncached();
return uncached;
}
@Override
protected InteropLibrary createCached(Object receiver) {
assert receiver instanceof HostProxy;
return new Cached();
}
@GeneratedBy(HostProxy.class)
private static final class Cached extends InteropLibrary {
/**
* State Info:
* 0: SpecializationActive {@link IsIdenticalOrUndefined#doHostObject}
* 1: SpecializationActive {@link IsIdenticalOrUndefined#doOther}
* 2: SpecializationActive {@link HostProxy#instantiate(HostProxy, Object[], InteropLibrary, GuestToHostCodeCache)}
* 3: SpecializationActive {@link HostProxy#execute(HostProxy, Object[], InteropLibrary, GuestToHostCodeCache)}
* 4: SpecializationActive {@link HostProxy#asPointer(HostProxy, InteropLibrary, GuestToHostCodeCache)}
* 5: SpecializationActive {@link HostProxy#readArrayElement(HostProxy, long, InteropLibrary, GuestToHostCodeCache)}
* 6: SpecializationActive {@link HostProxy#writeArrayElement(HostProxy, long, Object, InteropLibrary, GuestToHostCodeCache)}
* 7: SpecializationActive {@link HostProxy#removeArrayElement(HostProxy, long, InteropLibrary, GuestToHostCodeCache)}
* 8: SpecializationActive {@link HostProxy#getArraySize(HostProxy, InteropLibrary, GuestToHostCodeCache)}
* 9: SpecializationActive {@link HostProxy#isArrayElementExisting(HostProxy, long, InteropLibrary, GuestToHostCodeCache)}
* 10: SpecializationActive {@link HostProxy#isArrayElementInsertable(HostProxy, long, InteropLibrary, GuestToHostCodeCache)}
* 11: SpecializationActive {@link HostProxy#getMembers(HostProxy, boolean, InteropLibrary, GuestToHostCodeCache)}
* 12: SpecializationActive {@link HostProxy#readMember(HostProxy, String, InteropLibrary, GuestToHostCodeCache)}
* 13: SpecializationActive {@link HostProxy#writeMember(HostProxy, String, Object, InteropLibrary, GuestToHostCodeCache)}
* 14: SpecializationActive {@link HostProxy#invokeMember(HostProxy, String, Object[], InteropLibrary, InteropLibrary, GuestToHostCodeCache)}
* 15: SpecializationActive {@link HostProxy#isMemberInvocable(HostProxy, String, InteropLibrary, InteropLibrary, GuestToHostCodeCache)}
* 16: SpecializationActive {@link HostProxy#removeMember(HostProxy, String, InteropLibrary, GuestToHostCodeCache)}
* 17: SpecializationActive {@link HostProxy#isMemberExisting(HostProxy, String, InteropLibrary, GuestToHostCodeCache)}
* 18: SpecializationActive {@link HostProxy#isMemberInsertable(HostProxy, String, InteropLibrary, GuestToHostCodeCache)}
* 19: SpecializationActive {@link HostProxy#asTimeZone(HostProxy, InteropLibrary, GuestToHostCodeCache)}
* 20: SpecializationActive {@link HostProxy#asDate(HostProxy, InteropLibrary, GuestToHostCodeCache)}
* 21: SpecializationActive {@link HostProxy#asTime(HostProxy, InteropLibrary, GuestToHostCodeCache)}
* 22: SpecializationActive {@link HostProxy#asInstant(HostProxy, InteropLibrary, GuestToHostCodeCache)}
* 23: SpecializationActive {@link HostProxy#asDuration(HostProxy, InteropLibrary, GuestToHostCodeCache)}
* 24: SpecializationActive {@link HostProxy#getIterator(HostProxy, InteropLibrary, GuestToHostCodeCache)}
* 25: SpecializationActive {@link HostProxy#hasIteratorNextElement(HostProxy, InteropLibrary, GuestToHostCodeCache)}
* 26: SpecializationActive {@link HostProxy#getIteratorNextElement(HostProxy, InteropLibrary, GuestToHostCodeCache)}
* 27: SpecializationActive {@link HostProxy#getHashSize(HostProxy, InteropLibrary, GuestToHostCodeCache)}
* 28: SpecializationActive {@link HostProxy#isHashValueExisting(HostProxy, Object, InteropLibrary, GuestToHostCodeCache)}
* 29: SpecializationActive {@link HostProxy#readHashValue(HostProxy, Object, InteropLibrary, GuestToHostCodeCache)}
* 30: SpecializationActive {@link HostProxy#isHashEntryInsertable(HostProxy, Object, InteropLibrary, GuestToHostCodeCache)}
* 31: SpecializationActive {@link HostProxy#writeHashEntry(HostProxy, Object, Object, InteropLibrary, GuestToHostCodeCache)}
*
*/
@CompilationFinal private int state_0_;
/**
* State Info:
* 0: SpecializationActive {@link HostProxy#removeHashEntry(HostProxy, Object, InteropLibrary, GuestToHostCodeCache)}
* 1: SpecializationActive {@link HostProxy#getHashEntriesIterator(HostProxy, InteropLibrary, GuestToHostCodeCache)}
*
*/
@CompilationFinal private int state_1_;
/**
* Source Info:
* Specialization: {@link HostProxy#instantiate}
* Parameter: {@link GuestToHostCodeCache} cache
*/
@CompilationFinal private GuestToHostCodeCache cache;
/**
* Source Info:
* Specialization: {@link HostProxy#invokeMember}
* Parameter: {@link InteropLibrary} executables
*/
@Child private InteropLibrary executables;
protected Cached() {
}
@Override
public boolean accepts(Object receiver) {
assert !(receiver instanceof HostProxy) || DYNAMIC_DISPATCH_LIBRARY_.getUncached().dispatch(receiver) == null : "Invalid library export. Exported receiver with dynamic dispatch found but not expected.";
return receiver instanceof HostProxy;
}
@SuppressWarnings("static-method")
private boolean isIdenticalOrUndefinedFallbackGuard_(int state_0, HostProxy arg0Value, Object arg1Value) {
if (!((state_0 & 0b1) != 0 /* is SpecializationActive[HostProxy.IsIdenticalOrUndefined.doHostObject(HostProxy, HostProxy)] */) && arg1Value instanceof HostProxy) {
return false;
}
return true;
}
/**
* Debug Info:
* Specialization {@link IsIdenticalOrUndefined#doHostObject}
* Activation probability: 0.01667
* With/without class size: 4/0 bytes
* Specialization {@link IsIdenticalOrUndefined#doOther}
* Activation probability: 0.00897
* With/without class size: 4/0 bytes
*
*/
@Override
protected TriState isIdenticalOrUndefined(Object arg0Value_, Object arg1Value) {
assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver.";
assert assertAdopted();
HostProxy arg0Value = ((HostProxy) arg0Value_);
int state_0 = this.state_0_;
if ((state_0 & 0b11) != 0 /* is SpecializationActive[HostProxy.IsIdenticalOrUndefined.doHostObject(HostProxy, HostProxy)] || SpecializationActive[HostProxy.IsIdenticalOrUndefined.doOther(HostProxy, Object)] */) {
if ((state_0 & 0b1) != 0 /* is SpecializationActive[HostProxy.IsIdenticalOrUndefined.doHostObject(HostProxy, HostProxy)] */ && arg1Value instanceof HostProxy) {
HostProxy arg1Value_ = (HostProxy) arg1Value;
return IsIdenticalOrUndefined.doHostObject(arg0Value, arg1Value_);
}
if ((state_0 & 0b10) != 0 /* is SpecializationActive[HostProxy.IsIdenticalOrUndefined.doOther(HostProxy, Object)] */) {
if (isIdenticalOrUndefinedFallbackGuard_(state_0, arg0Value, arg1Value)) {
return IsIdenticalOrUndefined.doOther(arg0Value, arg1Value);
}
}
}
CompilerDirectives.transferToInterpreterAndInvalidate();
return isIdenticalOrUndefinedAndSpecialize(arg0Value, arg1Value);
}
private TriState isIdenticalOrUndefinedAndSpecialize(HostProxy arg0Value, Object arg1Value) {
int state_0 = this.state_0_;
if (arg1Value instanceof HostProxy) {
HostProxy arg1Value_ = (HostProxy) arg1Value;
state_0 = state_0 | 0b1 /* add SpecializationActive[HostProxy.IsIdenticalOrUndefined.doHostObject(HostProxy, HostProxy)] */;
this.state_0_ = state_0;
return IsIdenticalOrUndefined.doHostObject(arg0Value, arg1Value_);
}
state_0 = state_0 | 0b10 /* add SpecializationActive[HostProxy.IsIdenticalOrUndefined.doOther(HostProxy, Object)] */;
this.state_0_ = state_0;
return IsIdenticalOrUndefined.doOther(arg0Value, arg1Value);
}
@Override
public NodeCost getCost() {
int state_0 = this.state_0_;
if ((state_0 & 0b11) == 0) {
return NodeCost.UNINITIALIZED;
} else {
if (((state_0 & 0b11) & ((state_0 & 0b11) - 1)) == 0 /* is-single */) {
return NodeCost.MONOMORPHIC;
}
}
return NodeCost.POLYMORPHIC;
}
@Override
public boolean isInstantiable(Object receiver) {
assert this.accepts(receiver) : "Invalid library usage. Library does not accept given receiver.";
assert assertAdopted();
return (((HostProxy) receiver)).isInstantiable();
}
/**
* Debug Info:
* Specialization {@link HostProxy#instantiate(HostProxy, Object[], InteropLibrary, GuestToHostCodeCache)}
* Activation probability: 0.02564
* With/without class size: 4/0 bytes
*
*/
@Override
public Object instantiate(Object arg0Value_, Object... arg1Value) throws UnsupportedTypeException, ArityException, UnsupportedMessageException {
assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver.";
assert assertAdopted();
HostProxy arg0Value = ((HostProxy) arg0Value_);
int state_0 = this.state_0_;
if ((state_0 & 0b100) != 0 /* is SpecializationActive[HostProxy.instantiate(HostProxy, Object[], InteropLibrary, GuestToHostCodeCache)] */) {
{
GuestToHostCodeCache cache_ = this.cache;
if (cache_ != null) {
InteropLibrary library__ = (this);
return arg0Value.instantiate(arg1Value, library__, cache_);
}
}
}
CompilerDirectives.transferToInterpreterAndInvalidate();
return instantiateNode_AndSpecialize(arg0Value, arg1Value);
}
private Object instantiateNode_AndSpecialize(HostProxy arg0Value, Object[] arg1Value) throws UnsupportedMessageException {
int state_0 = this.state_0_;
{
InteropLibrary library__ = null;
library__ = (this);
GuestToHostCodeCache cache_;
GuestToHostCodeCache cache__shared = this.cache;
if (cache__shared != null) {
cache_ = cache__shared;
} else {
cache_ = (arg0Value.context.getGuestToHostCache());
if (cache_ == null) {
throw new IllegalStateException("Specialization 'instantiate(HostProxy, Object[], InteropLibrary, GuestToHostCodeCache)' contains a shared cache with name 'cache' 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.cache == null) {
VarHandle.storeStoreFence();
this.cache = cache_;
}
state_0 = state_0 | 0b100 /* add SpecializationActive[HostProxy.instantiate(HostProxy, Object[], InteropLibrary, GuestToHostCodeCache)] */;
this.state_0_ = state_0;
return arg0Value.instantiate(arg1Value, library__, cache_);
}
}
@Override
public boolean isExecutable(Object receiver) {
assert this.accepts(receiver) : "Invalid library usage. Library does not accept given receiver.";
assert assertAdopted();
return (((HostProxy) receiver)).isExecutable();
}
/**
* Debug Info:
* Specialization {@link HostProxy#execute(HostProxy, Object[], InteropLibrary, GuestToHostCodeCache)}
* Activation probability: 0.02564
* With/without class size: 4/0 bytes
*
*/
@Override
public Object execute(Object arg0Value_, Object... arg1Value) throws UnsupportedTypeException, ArityException, UnsupportedMessageException {
assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver.";
assert assertAdopted();
HostProxy arg0Value = ((HostProxy) arg0Value_);
int state_0 = this.state_0_;
if ((state_0 & 0b1000) != 0 /* is SpecializationActive[HostProxy.execute(HostProxy, Object[], InteropLibrary, GuestToHostCodeCache)] */) {
{
GuestToHostCodeCache cache_ = this.cache;
if (cache_ != null) {
InteropLibrary library__ = (this);
return arg0Value.execute(arg1Value, library__, cache_);
}
}
}
CompilerDirectives.transferToInterpreterAndInvalidate();
return executeNode_AndSpecialize(arg0Value, arg1Value);
}
private Object executeNode_AndSpecialize(HostProxy arg0Value, Object[] arg1Value) throws UnsupportedMessageException {
int state_0 = this.state_0_;
{
InteropLibrary library__ = null;
library__ = (this);
GuestToHostCodeCache cache_;
GuestToHostCodeCache cache__shared = this.cache;
if (cache__shared != null) {
cache_ = cache__shared;
} else {
cache_ = (arg0Value.context.getGuestToHostCache());
if (cache_ == null) {
throw new IllegalStateException("Specialization 'execute(HostProxy, Object[], InteropLibrary, GuestToHostCodeCache)' contains a shared cache with name 'cache' 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.cache == null) {
VarHandle.storeStoreFence();
this.cache = cache_;
}
state_0 = state_0 | 0b1000 /* add SpecializationActive[HostProxy.execute(HostProxy, Object[], InteropLibrary, GuestToHostCodeCache)] */;
this.state_0_ = state_0;
return arg0Value.execute(arg1Value, library__, cache_);
}
}
@Override
public boolean isPointer(Object receiver) {
assert this.accepts(receiver) : "Invalid library usage. Library does not accept given receiver.";
assert assertAdopted();
return (((HostProxy) receiver)).isPointer();
}
/**
* Debug Info:
* Specialization {@link HostProxy#asPointer(HostProxy, InteropLibrary, GuestToHostCodeCache)}
* Activation probability: 0.02564
* With/without class size: 4/0 bytes
*
*/
@Override
public long asPointer(Object arg0Value_) throws UnsupportedMessageException {
assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver.";
assert assertAdopted();
HostProxy arg0Value = ((HostProxy) arg0Value_);
int state_0 = this.state_0_;
if ((state_0 & 0b10000) != 0 /* is SpecializationActive[HostProxy.asPointer(HostProxy, InteropLibrary, GuestToHostCodeCache)] */) {
{
GuestToHostCodeCache cache_ = this.cache;
if (cache_ != null) {
InteropLibrary library__ = (this);
return arg0Value.asPointer(library__, cache_);
}
}
}
CompilerDirectives.transferToInterpreterAndInvalidate();
return asPointerNode_AndSpecialize(arg0Value);
}
private long asPointerNode_AndSpecialize(HostProxy arg0Value) throws UnsupportedMessageException {
int state_0 = this.state_0_;
{
InteropLibrary library__ = null;
library__ = (this);
GuestToHostCodeCache cache_;
GuestToHostCodeCache cache__shared = this.cache;
if (cache__shared != null) {
cache_ = cache__shared;
} else {
cache_ = (arg0Value.context.getGuestToHostCache());
if (cache_ == null) {
throw new IllegalStateException("Specialization 'asPointer(HostProxy, InteropLibrary, GuestToHostCodeCache)' contains a shared cache with name 'cache' 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.cache == null) {
VarHandle.storeStoreFence();
this.cache = cache_;
}
state_0 = state_0 | 0b10000 /* add SpecializationActive[HostProxy.asPointer(HostProxy, InteropLibrary, GuestToHostCodeCache)] */;
this.state_0_ = state_0;
return arg0Value.asPointer(library__, cache_);
}
}
@Override
public boolean hasArrayElements(Object receiver) {
assert this.accepts(receiver) : "Invalid library usage. Library does not accept given receiver.";
assert assertAdopted();
return (((HostProxy) receiver)).hasArrayElements();
}
/**
* Debug Info:
* Specialization {@link HostProxy#readArrayElement(HostProxy, long, InteropLibrary, GuestToHostCodeCache)}
* Activation probability: 0.02564
* With/without class size: 4/0 bytes
*
*/
@Override
public Object readArrayElement(Object arg0Value_, long arg1Value) throws UnsupportedMessageException, InvalidArrayIndexException {
assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver.";
assert assertAdopted();
HostProxy arg0Value = ((HostProxy) arg0Value_);
int state_0 = this.state_0_;
if ((state_0 & 0b100000) != 0 /* is SpecializationActive[HostProxy.readArrayElement(HostProxy, long, InteropLibrary, GuestToHostCodeCache)] */) {
{
GuestToHostCodeCache cache_ = this.cache;
if (cache_ != null) {
InteropLibrary library__ = (this);
return arg0Value.readArrayElement(arg1Value, library__, cache_);
}
}
}
CompilerDirectives.transferToInterpreterAndInvalidate();
return readArrayElementNode_AndSpecialize(arg0Value, arg1Value);
}
private Object readArrayElementNode_AndSpecialize(HostProxy arg0Value, long arg1Value) throws UnsupportedMessageException {
int state_0 = this.state_0_;
{
InteropLibrary library__ = null;
library__ = (this);
GuestToHostCodeCache cache_;
GuestToHostCodeCache cache__shared = this.cache;
if (cache__shared != null) {
cache_ = cache__shared;
} else {
cache_ = (arg0Value.context.getGuestToHostCache());
if (cache_ == null) {
throw new IllegalStateException("Specialization 'readArrayElement(HostProxy, long, InteropLibrary, GuestToHostCodeCache)' contains a shared cache with name 'cache' 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.cache == null) {
VarHandle.storeStoreFence();
this.cache = cache_;
}
state_0 = state_0 | 0b100000 /* add SpecializationActive[HostProxy.readArrayElement(HostProxy, long, InteropLibrary, GuestToHostCodeCache)] */;
this.state_0_ = state_0;
return arg0Value.readArrayElement(arg1Value, library__, cache_);
}
}
/**
* Debug Info:
* Specialization {@link HostProxy#writeArrayElement(HostProxy, long, Object, InteropLibrary, GuestToHostCodeCache)}
* Activation probability: 0.02564
* With/without class size: 4/0 bytes
*
*/
@Override
public void writeArrayElement(Object arg0Value_, long arg1Value, Object arg2Value) throws UnsupportedMessageException, UnsupportedTypeException, InvalidArrayIndexException {
assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver.";
assert assertAdopted();
HostProxy arg0Value = ((HostProxy) arg0Value_);
int state_0 = this.state_0_;
if ((state_0 & 0b1000000) != 0 /* is SpecializationActive[HostProxy.writeArrayElement(HostProxy, long, Object, InteropLibrary, GuestToHostCodeCache)] */) {
{
GuestToHostCodeCache cache_ = this.cache;
if (cache_ != null) {
InteropLibrary library__ = (this);
arg0Value.writeArrayElement(arg1Value, arg2Value, library__, cache_);
return;
}
}
}
CompilerDirectives.transferToInterpreterAndInvalidate();
writeArrayElementNode_AndSpecialize(arg0Value, arg1Value, arg2Value);
return;
}
private void writeArrayElementNode_AndSpecialize(HostProxy arg0Value, long arg1Value, Object arg2Value) throws UnsupportedMessageException {
int state_0 = this.state_0_;
{
InteropLibrary library__ = null;
library__ = (this);
GuestToHostCodeCache cache_;
GuestToHostCodeCache cache__shared = this.cache;
if (cache__shared != null) {
cache_ = cache__shared;
} else {
cache_ = (arg0Value.context.getGuestToHostCache());
if (cache_ == null) {
throw new IllegalStateException("Specialization 'writeArrayElement(HostProxy, long, Object, InteropLibrary, GuestToHostCodeCache)' contains a shared cache with name 'cache' 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.cache == null) {
VarHandle.storeStoreFence();
this.cache = cache_;
}
state_0 = state_0 | 0b1000000 /* add SpecializationActive[HostProxy.writeArrayElement(HostProxy, long, Object, InteropLibrary, GuestToHostCodeCache)] */;
this.state_0_ = state_0;
arg0Value.writeArrayElement(arg1Value, arg2Value, library__, cache_);
return;
}
}
/**
* Debug Info:
* Specialization {@link HostProxy#removeArrayElement(HostProxy, long, InteropLibrary, GuestToHostCodeCache)}
* Activation probability: 0.02564
* With/without class size: 4/0 bytes
*
*/
@Override
public void removeArrayElement(Object arg0Value_, long arg1Value) throws UnsupportedMessageException, InvalidArrayIndexException {
assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver.";
assert assertAdopted();
HostProxy arg0Value = ((HostProxy) arg0Value_);
int state_0 = this.state_0_;
if ((state_0 & 0b10000000) != 0 /* is SpecializationActive[HostProxy.removeArrayElement(HostProxy, long, InteropLibrary, GuestToHostCodeCache)] */) {
{
GuestToHostCodeCache cache_ = this.cache;
if (cache_ != null) {
InteropLibrary library__ = (this);
arg0Value.removeArrayElement(arg1Value, library__, cache_);
return;
}
}
}
CompilerDirectives.transferToInterpreterAndInvalidate();
removeArrayElementNode_AndSpecialize(arg0Value, arg1Value);
return;
}
private void removeArrayElementNode_AndSpecialize(HostProxy arg0Value, long arg1Value) throws UnsupportedMessageException, InvalidArrayIndexException {
int state_0 = this.state_0_;
{
InteropLibrary library__ = null;
library__ = (this);
GuestToHostCodeCache cache_;
GuestToHostCodeCache cache__shared = this.cache;
if (cache__shared != null) {
cache_ = cache__shared;
} else {
cache_ = (arg0Value.context.getGuestToHostCache());
if (cache_ == null) {
throw new IllegalStateException("Specialization 'removeArrayElement(HostProxy, long, InteropLibrary, GuestToHostCodeCache)' contains a shared cache with name 'cache' 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.cache == null) {
VarHandle.storeStoreFence();
this.cache = cache_;
}
state_0 = state_0 | 0b10000000 /* add SpecializationActive[HostProxy.removeArrayElement(HostProxy, long, InteropLibrary, GuestToHostCodeCache)] */;
this.state_0_ = state_0;
arg0Value.removeArrayElement(arg1Value, library__, cache_);
return;
}
}
/**
* Debug Info:
* Specialization {@link HostProxy#getArraySize(HostProxy, InteropLibrary, GuestToHostCodeCache)}
* Activation probability: 0.02564
* With/without class size: 4/0 bytes
*
*/
@Override
public long getArraySize(Object arg0Value_) throws UnsupportedMessageException {
assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver.";
assert assertAdopted();
HostProxy arg0Value = ((HostProxy) arg0Value_);
int state_0 = this.state_0_;
if ((state_0 & 0b100000000) != 0 /* is SpecializationActive[HostProxy.getArraySize(HostProxy, InteropLibrary, GuestToHostCodeCache)] */) {
{
GuestToHostCodeCache cache_ = this.cache;
if (cache_ != null) {
InteropLibrary library__ = (this);
return arg0Value.getArraySize(library__, cache_);
}
}
}
CompilerDirectives.transferToInterpreterAndInvalidate();
return getArraySizeNode_AndSpecialize(arg0Value);
}
private long getArraySizeNode_AndSpecialize(HostProxy arg0Value) throws UnsupportedMessageException {
int state_0 = this.state_0_;
{
InteropLibrary library__ = null;
library__ = (this);
GuestToHostCodeCache cache_;
GuestToHostCodeCache cache__shared = this.cache;
if (cache__shared != null) {
cache_ = cache__shared;
} else {
cache_ = (arg0Value.context.getGuestToHostCache());
if (cache_ == null) {
throw new IllegalStateException("Specialization 'getArraySize(HostProxy, InteropLibrary, GuestToHostCodeCache)' contains a shared cache with name 'cache' 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.cache == null) {
VarHandle.storeStoreFence();
this.cache = cache_;
}
state_0 = state_0 | 0b100000000 /* add SpecializationActive[HostProxy.getArraySize(HostProxy, InteropLibrary, GuestToHostCodeCache)] */;
this.state_0_ = state_0;
return arg0Value.getArraySize(library__, cache_);
}
}
/**
* Debug Info:
* Specialization {@link HostProxy#isArrayElementExisting(HostProxy, long, InteropLibrary, GuestToHostCodeCache)}
* Activation probability: 0.02564
* With/without class size: 4/0 bytes
*
*/
@Override
public boolean isArrayElementReadable(Object arg0Value_, long arg1Value) {
assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver.";
assert assertAdopted();
HostProxy arg0Value = ((HostProxy) arg0Value_);
int state_0 = this.state_0_;
if ((state_0 & 0b1000000000) != 0 /* is SpecializationActive[HostProxy.isArrayElementExisting(HostProxy, long, InteropLibrary, GuestToHostCodeCache)] */) {
{
GuestToHostCodeCache cache_ = this.cache;
if (cache_ != null) {
InteropLibrary library__ = (this);
return arg0Value.isArrayElementExisting(arg1Value, library__, cache_);
}
}
}
CompilerDirectives.transferToInterpreterAndInvalidate();
return isArrayElementExistingNode_AndSpecialize(arg0Value, arg1Value);
}
private boolean isArrayElementExistingNode_AndSpecialize(HostProxy arg0Value, long arg1Value) {
int state_0 = this.state_0_;
{
InteropLibrary library__ = null;
library__ = (this);
GuestToHostCodeCache cache_;
GuestToHostCodeCache cache__shared = this.cache;
if (cache__shared != null) {
cache_ = cache__shared;
} else {
cache_ = (arg0Value.context.getGuestToHostCache());
if (cache_ == null) {
throw new IllegalStateException("Specialization 'isArrayElementExisting(HostProxy, long, InteropLibrary, GuestToHostCodeCache)' contains a shared cache with name 'cache' 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.cache == null) {
VarHandle.storeStoreFence();
this.cache = cache_;
}
state_0 = state_0 | 0b1000000000 /* add SpecializationActive[HostProxy.isArrayElementExisting(HostProxy, long, InteropLibrary, GuestToHostCodeCache)] */;
this.state_0_ = state_0;
return arg0Value.isArrayElementExisting(arg1Value, library__, cache_);
}
}
/**
* Debug Info:
* Specialization {@link HostProxy#isArrayElementExisting(HostProxy, long, InteropLibrary, GuestToHostCodeCache)}
* Activation probability: 0.02564
* With/without class size: 4/0 bytes
*
*/
@Override
public boolean isArrayElementModifiable(Object arg0Value_, long arg1Value) {
assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver.";
assert assertAdopted();
HostProxy arg0Value = ((HostProxy) arg0Value_);
int state_0 = this.state_0_;
if ((state_0 & 0b1000000000) != 0 /* is SpecializationActive[HostProxy.isArrayElementExisting(HostProxy, long, InteropLibrary, GuestToHostCodeCache)] */) {
{
GuestToHostCodeCache cache_ = this.cache;
if (cache_ != null) {
InteropLibrary library__ = (this);
return arg0Value.isArrayElementExisting(arg1Value, library__, cache_);
}
}
}
CompilerDirectives.transferToInterpreterAndInvalidate();
return isArrayElementExistingNode_AndSpecialize(arg0Value, arg1Value);
}
/**
* Debug Info:
* Specialization {@link HostProxy#isArrayElementExisting(HostProxy, long, InteropLibrary, GuestToHostCodeCache)}
* Activation probability: 0.02564
* With/without class size: 4/0 bytes
*
*/
@Override
public boolean isArrayElementRemovable(Object arg0Value_, long arg1Value) {
assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver.";
assert assertAdopted();
HostProxy arg0Value = ((HostProxy) arg0Value_);
int state_0 = this.state_0_;
if ((state_0 & 0b1000000000) != 0 /* is SpecializationActive[HostProxy.isArrayElementExisting(HostProxy, long, InteropLibrary, GuestToHostCodeCache)] */) {
{
GuestToHostCodeCache cache_ = this.cache;
if (cache_ != null) {
InteropLibrary library__ = (this);
return arg0Value.isArrayElementExisting(arg1Value, library__, cache_);
}
}
}
CompilerDirectives.transferToInterpreterAndInvalidate();
return isArrayElementExistingNode_AndSpecialize(arg0Value, arg1Value);
}
/**
* Debug Info:
* Specialization {@link HostProxy#isArrayElementInsertable(HostProxy, long, InteropLibrary, GuestToHostCodeCache)}
* Activation probability: 0.02564
* With/without class size: 4/0 bytes
*
*/
@Override
public boolean isArrayElementInsertable(Object arg0Value_, long arg1Value) {
assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver.";
assert assertAdopted();
HostProxy arg0Value = ((HostProxy) arg0Value_);
int state_0 = this.state_0_;
if ((state_0 & 0b10000000000) != 0 /* is SpecializationActive[HostProxy.isArrayElementInsertable(HostProxy, long, InteropLibrary, GuestToHostCodeCache)] */) {
{
GuestToHostCodeCache cache_ = this.cache;
if (cache_ != null) {
InteropLibrary library__ = (this);
return arg0Value.isArrayElementInsertable(arg1Value, library__, cache_);
}
}
}
CompilerDirectives.transferToInterpreterAndInvalidate();
return isArrayElementInsertableNode_AndSpecialize(arg0Value, arg1Value);
}
private boolean isArrayElementInsertableNode_AndSpecialize(HostProxy arg0Value, long arg1Value) {
int state_0 = this.state_0_;
{
InteropLibrary library__ = null;
library__ = (this);
GuestToHostCodeCache cache_;
GuestToHostCodeCache cache__shared = this.cache;
if (cache__shared != null) {
cache_ = cache__shared;
} else {
cache_ = (arg0Value.context.getGuestToHostCache());
if (cache_ == null) {
throw new IllegalStateException("Specialization 'isArrayElementInsertable(HostProxy, long, InteropLibrary, GuestToHostCodeCache)' contains a shared cache with name 'cache' 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.cache == null) {
VarHandle.storeStoreFence();
this.cache = cache_;
}
state_0 = state_0 | 0b10000000000 /* add SpecializationActive[HostProxy.isArrayElementInsertable(HostProxy, long, InteropLibrary, GuestToHostCodeCache)] */;
this.state_0_ = state_0;
return arg0Value.isArrayElementInsertable(arg1Value, library__, cache_);
}
}
@Override
public boolean hasMembers(Object receiver) {
assert this.accepts(receiver) : "Invalid library usage. Library does not accept given receiver.";
assert assertAdopted();
return (((HostProxy) receiver)).hasMembers();
}
/**
* Debug Info:
* Specialization {@link HostProxy#getMembers(HostProxy, boolean, InteropLibrary, GuestToHostCodeCache)}
* Activation probability: 0.02564
* With/without class size: 4/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();
HostProxy arg0Value = ((HostProxy) arg0Value_);
int state_0 = this.state_0_;
if ((state_0 & 0b100000000000) != 0 /* is SpecializationActive[HostProxy.getMembers(HostProxy, boolean, InteropLibrary, GuestToHostCodeCache)] */) {
{
GuestToHostCodeCache cache_ = this.cache;
if (cache_ != null) {
InteropLibrary library__ = (this);
return arg0Value.getMembers(arg1Value, library__, cache_);
}
}
}
CompilerDirectives.transferToInterpreterAndInvalidate();
return getMembersNode_AndSpecialize(arg0Value, arg1Value);
}
private Object getMembersNode_AndSpecialize(HostProxy arg0Value, boolean arg1Value) throws UnsupportedMessageException {
int state_0 = this.state_0_;
{
InteropLibrary library__ = null;
library__ = (this);
GuestToHostCodeCache cache_;
GuestToHostCodeCache cache__shared = this.cache;
if (cache__shared != null) {
cache_ = cache__shared;
} else {
cache_ = (arg0Value.context.getGuestToHostCache());
if (cache_ == null) {
throw new IllegalStateException("Specialization 'getMembers(HostProxy, boolean, InteropLibrary, GuestToHostCodeCache)' contains a shared cache with name 'cache' 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.cache == null) {
VarHandle.storeStoreFence();
this.cache = cache_;
}
state_0 = state_0 | 0b100000000000 /* add SpecializationActive[HostProxy.getMembers(HostProxy, boolean, InteropLibrary, GuestToHostCodeCache)] */;
this.state_0_ = state_0;
return arg0Value.getMembers(arg1Value, library__, cache_);
}
}
/**
* Debug Info:
* Specialization {@link HostProxy#readMember(HostProxy, String, InteropLibrary, GuestToHostCodeCache)}
* Activation probability: 0.02564
* With/without class size: 4/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();
HostProxy arg0Value = ((HostProxy) arg0Value_);
int state_0 = this.state_0_;
if ((state_0 & 0b1000000000000) != 0 /* is SpecializationActive[HostProxy.readMember(HostProxy, String, InteropLibrary, GuestToHostCodeCache)] */) {
{
GuestToHostCodeCache cache_ = this.cache;
if (cache_ != null) {
InteropLibrary library__ = (this);
return arg0Value.readMember(arg1Value, library__, cache_);
}
}
}
CompilerDirectives.transferToInterpreterAndInvalidate();
return readMemberNode_AndSpecialize(arg0Value, arg1Value);
}
private Object readMemberNode_AndSpecialize(HostProxy arg0Value, String arg1Value) throws UnsupportedMessageException, UnknownIdentifierException {
int state_0 = this.state_0_;
{
InteropLibrary library__ = null;
library__ = (this);
GuestToHostCodeCache cache_;
GuestToHostCodeCache cache__shared = this.cache;
if (cache__shared != null) {
cache_ = cache__shared;
} else {
cache_ = (arg0Value.context.getGuestToHostCache());
if (cache_ == null) {
throw new IllegalStateException("Specialization 'readMember(HostProxy, String, InteropLibrary, GuestToHostCodeCache)' contains a shared cache with name 'cache' 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.cache == null) {
VarHandle.storeStoreFence();
this.cache = cache_;
}
state_0 = state_0 | 0b1000000000000 /* add SpecializationActive[HostProxy.readMember(HostProxy, String, InteropLibrary, GuestToHostCodeCache)] */;
this.state_0_ = state_0;
return arg0Value.readMember(arg1Value, library__, cache_);
}
}
/**
* Debug Info:
* Specialization {@link HostProxy#writeMember(HostProxy, String, Object, InteropLibrary, GuestToHostCodeCache)}
* Activation probability: 0.02564
* With/without class size: 4/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();
HostProxy arg0Value = ((HostProxy) arg0Value_);
int state_0 = this.state_0_;
if ((state_0 & 0b10000000000000) != 0 /* is SpecializationActive[HostProxy.writeMember(HostProxy, String, Object, InteropLibrary, GuestToHostCodeCache)] */) {
{
GuestToHostCodeCache cache_ = this.cache;
if (cache_ != null) {
InteropLibrary library__ = (this);
arg0Value.writeMember(arg1Value, arg2Value, library__, cache_);
return;
}
}
}
CompilerDirectives.transferToInterpreterAndInvalidate();
writeMemberNode_AndSpecialize(arg0Value, arg1Value, arg2Value);
return;
}
private void writeMemberNode_AndSpecialize(HostProxy arg0Value, String arg1Value, Object arg2Value) throws UnsupportedMessageException {
int state_0 = this.state_0_;
{
InteropLibrary library__ = null;
library__ = (this);
GuestToHostCodeCache cache_;
GuestToHostCodeCache cache__shared = this.cache;
if (cache__shared != null) {
cache_ = cache__shared;
} else {
cache_ = (arg0Value.context.getGuestToHostCache());
if (cache_ == null) {
throw new IllegalStateException("Specialization 'writeMember(HostProxy, String, Object, InteropLibrary, GuestToHostCodeCache)' contains a shared cache with name 'cache' 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.cache == null) {
VarHandle.storeStoreFence();
this.cache = cache_;
}
state_0 = state_0 | 0b10000000000000 /* add SpecializationActive[HostProxy.writeMember(HostProxy, String, Object, InteropLibrary, GuestToHostCodeCache)] */;
this.state_0_ = state_0;
arg0Value.writeMember(arg1Value, arg2Value, library__, cache_);
return;
}
}
/**
* Debug Info:
* Specialization {@link HostProxy#invokeMember(HostProxy, String, Object[], InteropLibrary, InteropLibrary, GuestToHostCodeCache)}
* Activation probability: 0.02564
* With/without class size: 4/0 bytes
*
*/
@Override
public Object invokeMember(Object arg0Value_, String arg1Value, Object... arg2Value) throws UnsupportedMessageException, ArityException, UnknownIdentifierException, UnsupportedTypeException {
assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver.";
assert assertAdopted();
HostProxy arg0Value = ((HostProxy) arg0Value_);
int state_0 = this.state_0_;
if ((state_0 & 0b100000000000000) != 0 /* is SpecializationActive[HostProxy.invokeMember(HostProxy, String, Object[], InteropLibrary, InteropLibrary, GuestToHostCodeCache)] */) {
{
InteropLibrary executables_ = this.executables;
if (executables_ != null) {
GuestToHostCodeCache cache_ = this.cache;
if (cache_ != null) {
InteropLibrary library__ = (this);
return arg0Value.invokeMember(arg1Value, arg2Value, library__, executables_, cache_);
}
}
}
}
CompilerDirectives.transferToInterpreterAndInvalidate();
return invokeMemberNode_AndSpecialize(arg0Value, arg1Value, arg2Value);
}
private Object invokeMemberNode_AndSpecialize(HostProxy arg0Value, String arg1Value, Object[] arg2Value) throws UnsupportedMessageException, UnsupportedTypeException, ArityException, UnknownIdentifierException {
int state_0 = this.state_0_;
{
InteropLibrary library__ = null;
library__ = (this);
InteropLibrary executables_;
InteropLibrary executables__shared = this.executables;
if (executables__shared != null) {
executables_ = executables__shared;
} else {
executables_ = this.insert((INTEROP_LIBRARY_.createDispatched(HostProxy.LIMIT)));
if (executables_ == null) {
throw new IllegalStateException("Specialization 'invokeMember(HostProxy, String, Object[], InteropLibrary, InteropLibrary, GuestToHostCodeCache)' contains a shared cache with name 'executables' 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.executables == null) {
VarHandle.storeStoreFence();
this.executables = executables_;
}
GuestToHostCodeCache cache_;
GuestToHostCodeCache cache__shared = this.cache;
if (cache__shared != null) {
cache_ = cache__shared;
} else {
cache_ = (arg0Value.context.getGuestToHostCache());
if (cache_ == null) {
throw new IllegalStateException("Specialization 'invokeMember(HostProxy, String, Object[], InteropLibrary, InteropLibrary, GuestToHostCodeCache)' contains a shared cache with name 'cache' 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.cache == null) {
VarHandle.storeStoreFence();
this.cache = cache_;
}
state_0 = state_0 | 0b100000000000000 /* add SpecializationActive[HostProxy.invokeMember(HostProxy, String, Object[], InteropLibrary, InteropLibrary, GuestToHostCodeCache)] */;
this.state_0_ = state_0;
return arg0Value.invokeMember(arg1Value, arg2Value, library__, executables_, cache_);
}
}
/**
* Debug Info:
* Specialization {@link HostProxy#isMemberInvocable(HostProxy, String, InteropLibrary, InteropLibrary, GuestToHostCodeCache)}
* Activation probability: 0.02564
* With/without class size: 4/0 bytes
*
*/
@Override
public boolean isMemberInvocable(Object arg0Value_, String arg1Value) {
assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver.";
assert assertAdopted();
HostProxy arg0Value = ((HostProxy) arg0Value_);
int state_0 = this.state_0_;
if ((state_0 & 0b1000000000000000) != 0 /* is SpecializationActive[HostProxy.isMemberInvocable(HostProxy, String, InteropLibrary, InteropLibrary, GuestToHostCodeCache)] */) {
{
InteropLibrary executables_ = this.executables;
if (executables_ != null) {
GuestToHostCodeCache cache_ = this.cache;
if (cache_ != null) {
InteropLibrary library__ = (this);
return arg0Value.isMemberInvocable(arg1Value, library__, executables_, cache_);
}
}
}
}
CompilerDirectives.transferToInterpreterAndInvalidate();
return isMemberInvocableNode_AndSpecialize(arg0Value, arg1Value);
}
private boolean isMemberInvocableNode_AndSpecialize(HostProxy arg0Value, String arg1Value) {
int state_0 = this.state_0_;
{
InteropLibrary library__ = null;
library__ = (this);
InteropLibrary executables_;
InteropLibrary executables__shared = this.executables;
if (executables__shared != null) {
executables_ = executables__shared;
} else {
executables_ = this.insert((INTEROP_LIBRARY_.createDispatched(HostProxy.LIMIT)));
if (executables_ == null) {
throw new IllegalStateException("Specialization 'isMemberInvocable(HostProxy, String, InteropLibrary, InteropLibrary, GuestToHostCodeCache)' contains a shared cache with name 'executables' 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.executables == null) {
VarHandle.storeStoreFence();
this.executables = executables_;
}
GuestToHostCodeCache cache_;
GuestToHostCodeCache cache__shared = this.cache;
if (cache__shared != null) {
cache_ = cache__shared;
} else {
cache_ = (arg0Value.context.getGuestToHostCache());
if (cache_ == null) {
throw new IllegalStateException("Specialization 'isMemberInvocable(HostProxy, String, InteropLibrary, InteropLibrary, GuestToHostCodeCache)' contains a shared cache with name 'cache' 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.cache == null) {
VarHandle.storeStoreFence();
this.cache = cache_;
}
state_0 = state_0 | 0b1000000000000000 /* add SpecializationActive[HostProxy.isMemberInvocable(HostProxy, String, InteropLibrary, InteropLibrary, GuestToHostCodeCache)] */;
this.state_0_ = state_0;
return arg0Value.isMemberInvocable(arg1Value, library__, executables_, cache_);
}
}
/**
* Debug Info:
* Specialization {@link HostProxy#removeMember(HostProxy, String, InteropLibrary, GuestToHostCodeCache)}
* Activation probability: 0.02564
* With/without class size: 4/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();
HostProxy arg0Value = ((HostProxy) arg0Value_);
int state_0 = this.state_0_;
if ((state_0 & 0x10000) != 0 /* is SpecializationActive[HostProxy.removeMember(HostProxy, String, InteropLibrary, GuestToHostCodeCache)] */) {
{
GuestToHostCodeCache cache_ = this.cache;
if (cache_ != null) {
InteropLibrary library__ = (this);
arg0Value.removeMember(arg1Value, library__, cache_);
return;
}
}
}
CompilerDirectives.transferToInterpreterAndInvalidate();
removeMemberNode_AndSpecialize(arg0Value, arg1Value);
return;
}
private void removeMemberNode_AndSpecialize(HostProxy arg0Value, String arg1Value) throws UnsupportedMessageException, UnknownIdentifierException {
int state_0 = this.state_0_;
{
InteropLibrary library__ = null;
library__ = (this);
GuestToHostCodeCache cache_;
GuestToHostCodeCache cache__shared = this.cache;
if (cache__shared != null) {
cache_ = cache__shared;
} else {
cache_ = (arg0Value.context.getGuestToHostCache());
if (cache_ == null) {
throw new IllegalStateException("Specialization 'removeMember(HostProxy, String, InteropLibrary, GuestToHostCodeCache)' contains a shared cache with name 'cache' 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.cache == null) {
VarHandle.storeStoreFence();
this.cache = cache_;
}
state_0 = state_0 | 0x10000 /* add SpecializationActive[HostProxy.removeMember(HostProxy, String, InteropLibrary, GuestToHostCodeCache)] */;
this.state_0_ = state_0;
arg0Value.removeMember(arg1Value, library__, cache_);
return;
}
}
/**
* Debug Info:
* Specialization {@link HostProxy#isMemberExisting(HostProxy, String, InteropLibrary, GuestToHostCodeCache)}
* Activation probability: 0.02564
* With/without class size: 4/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();
HostProxy arg0Value = ((HostProxy) arg0Value_);
int state_0 = this.state_0_;
if ((state_0 & 0x20000) != 0 /* is SpecializationActive[HostProxy.isMemberExisting(HostProxy, String, InteropLibrary, GuestToHostCodeCache)] */) {
{
GuestToHostCodeCache cache_ = this.cache;
if (cache_ != null) {
InteropLibrary library__ = (this);
return arg0Value.isMemberExisting(arg1Value, library__, cache_);
}
}
}
CompilerDirectives.transferToInterpreterAndInvalidate();
return isMemberExistingNode_AndSpecialize(arg0Value, arg1Value);
}
private boolean isMemberExistingNode_AndSpecialize(HostProxy arg0Value, String arg1Value) {
int state_0 = this.state_0_;
{
InteropLibrary library__ = null;
library__ = (this);
GuestToHostCodeCache cache_;
GuestToHostCodeCache cache__shared = this.cache;
if (cache__shared != null) {
cache_ = cache__shared;
} else {
cache_ = (arg0Value.context.getGuestToHostCache());
if (cache_ == null) {
throw new IllegalStateException("Specialization 'isMemberExisting(HostProxy, String, InteropLibrary, GuestToHostCodeCache)' contains a shared cache with name 'cache' 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.cache == null) {
VarHandle.storeStoreFence();
this.cache = cache_;
}
state_0 = state_0 | 0x20000 /* add SpecializationActive[HostProxy.isMemberExisting(HostProxy, String, InteropLibrary, GuestToHostCodeCache)] */;
this.state_0_ = state_0;
return arg0Value.isMemberExisting(arg1Value, library__, cache_);
}
}
/**
* Debug Info:
* Specialization {@link HostProxy#isMemberExisting(HostProxy, String, InteropLibrary, GuestToHostCodeCache)}
* Activation probability: 0.02564
* With/without class size: 4/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();
HostProxy arg0Value = ((HostProxy) arg0Value_);
int state_0 = this.state_0_;
if ((state_0 & 0x20000) != 0 /* is SpecializationActive[HostProxy.isMemberExisting(HostProxy, String, InteropLibrary, GuestToHostCodeCache)] */) {
{
GuestToHostCodeCache cache_ = this.cache;
if (cache_ != null) {
InteropLibrary library__ = (this);
return arg0Value.isMemberExisting(arg1Value, library__, cache_);
}
}
}
CompilerDirectives.transferToInterpreterAndInvalidate();
return isMemberExistingNode_AndSpecialize(arg0Value, arg1Value);
}
/**
* Debug Info:
* Specialization {@link HostProxy#isMemberExisting(HostProxy, String, InteropLibrary, GuestToHostCodeCache)}
* Activation probability: 0.02564
* With/without class size: 4/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();
HostProxy arg0Value = ((HostProxy) arg0Value_);
int state_0 = this.state_0_;
if ((state_0 & 0x20000) != 0 /* is SpecializationActive[HostProxy.isMemberExisting(HostProxy, String, InteropLibrary, GuestToHostCodeCache)] */) {
{
GuestToHostCodeCache cache_ = this.cache;
if (cache_ != null) {
InteropLibrary library__ = (this);
return arg0Value.isMemberExisting(arg1Value, library__, cache_);
}
}
}
CompilerDirectives.transferToInterpreterAndInvalidate();
return isMemberExistingNode_AndSpecialize(arg0Value, arg1Value);
}
/**
* Debug Info:
* Specialization {@link HostProxy#isMemberInsertable(HostProxy, String, InteropLibrary, GuestToHostCodeCache)}
* Activation probability: 0.02564
* With/without class size: 4/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();
HostProxy arg0Value = ((HostProxy) arg0Value_);
int state_0 = this.state_0_;
if ((state_0 & 0x40000) != 0 /* is SpecializationActive[HostProxy.isMemberInsertable(HostProxy, String, InteropLibrary, GuestToHostCodeCache)] */) {
{
GuestToHostCodeCache cache_ = this.cache;
if (cache_ != null) {
InteropLibrary library__ = (this);
return arg0Value.isMemberInsertable(arg1Value, library__, cache_);
}
}
}
CompilerDirectives.transferToInterpreterAndInvalidate();
return isMemberInsertableNode_AndSpecialize(arg0Value, arg1Value);
}
private boolean isMemberInsertableNode_AndSpecialize(HostProxy arg0Value, String arg1Value) {
int state_0 = this.state_0_;
{
InteropLibrary library__ = null;
library__ = (this);
GuestToHostCodeCache cache_;
GuestToHostCodeCache cache__shared = this.cache;
if (cache__shared != null) {
cache_ = cache__shared;
} else {
cache_ = (arg0Value.context.getGuestToHostCache());
if (cache_ == null) {
throw new IllegalStateException("Specialization 'isMemberInsertable(HostProxy, String, InteropLibrary, GuestToHostCodeCache)' contains a shared cache with name 'cache' 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.cache == null) {
VarHandle.storeStoreFence();
this.cache = cache_;
}
state_0 = state_0 | 0x40000 /* add SpecializationActive[HostProxy.isMemberInsertable(HostProxy, String, InteropLibrary, GuestToHostCodeCache)] */;
this.state_0_ = state_0;
return arg0Value.isMemberInsertable(arg1Value, library__, cache_);
}
}
@Override
public boolean isDate(Object receiver) {
assert this.accepts(receiver) : "Invalid library usage. Library does not accept given receiver.";
assert assertAdopted();
return (((HostProxy) receiver)).isDate();
}
@Override
public boolean isTime(Object receiver) {
assert this.accepts(receiver) : "Invalid library usage. Library does not accept given receiver.";
assert assertAdopted();
return (((HostProxy) receiver)).isTime();
}
@Override
public boolean isTimeZone(Object receiver) {
assert this.accepts(receiver) : "Invalid library usage. Library does not accept given receiver.";
assert assertAdopted();
return (((HostProxy) receiver)).isTimeZone();
}
/**
* Debug Info:
* Specialization {@link HostProxy#asTimeZone(HostProxy, InteropLibrary, GuestToHostCodeCache)}
* Activation probability: 0.02564
* With/without class size: 4/0 bytes
*
*/
@Override
public ZoneId asTimeZone(Object arg0Value_) throws UnsupportedMessageException {
assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver.";
assert assertAdopted();
HostProxy arg0Value = ((HostProxy) arg0Value_);
int state_0 = this.state_0_;
if ((state_0 & 0x80000) != 0 /* is SpecializationActive[HostProxy.asTimeZone(HostProxy, InteropLibrary, GuestToHostCodeCache)] */) {
{
GuestToHostCodeCache cache_ = this.cache;
if (cache_ != null) {
InteropLibrary library__ = (this);
return arg0Value.asTimeZone(library__, cache_);
}
}
}
CompilerDirectives.transferToInterpreterAndInvalidate();
return asTimeZoneNode_AndSpecialize(arg0Value);
}
private ZoneId asTimeZoneNode_AndSpecialize(HostProxy arg0Value) throws UnsupportedMessageException {
int state_0 = this.state_0_;
{
InteropLibrary library__ = null;
library__ = (this);
GuestToHostCodeCache cache_;
GuestToHostCodeCache cache__shared = this.cache;
if (cache__shared != null) {
cache_ = cache__shared;
} else {
cache_ = (arg0Value.context.getGuestToHostCache());
if (cache_ == null) {
throw new IllegalStateException("Specialization 'asTimeZone(HostProxy, InteropLibrary, GuestToHostCodeCache)' contains a shared cache with name 'cache' 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.cache == null) {
VarHandle.storeStoreFence();
this.cache = cache_;
}
state_0 = state_0 | 0x80000 /* add SpecializationActive[HostProxy.asTimeZone(HostProxy, InteropLibrary, GuestToHostCodeCache)] */;
this.state_0_ = state_0;
return arg0Value.asTimeZone(library__, cache_);
}
}
/**
* Debug Info:
* Specialization {@link HostProxy#asDate(HostProxy, InteropLibrary, GuestToHostCodeCache)}
* Activation probability: 0.02564
* With/without class size: 4/0 bytes
*
*/
@Override
public LocalDate asDate(Object arg0Value_) throws UnsupportedMessageException {
assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver.";
assert assertAdopted();
HostProxy arg0Value = ((HostProxy) arg0Value_);
int state_0 = this.state_0_;
if ((state_0 & 0x100000) != 0 /* is SpecializationActive[HostProxy.asDate(HostProxy, InteropLibrary, GuestToHostCodeCache)] */) {
{
GuestToHostCodeCache cache_ = this.cache;
if (cache_ != null) {
InteropLibrary library__ = (this);
return arg0Value.asDate(library__, cache_);
}
}
}
CompilerDirectives.transferToInterpreterAndInvalidate();
return asDateNode_AndSpecialize(arg0Value);
}
private LocalDate asDateNode_AndSpecialize(HostProxy arg0Value) throws UnsupportedMessageException {
int state_0 = this.state_0_;
{
InteropLibrary library__ = null;
library__ = (this);
GuestToHostCodeCache cache_;
GuestToHostCodeCache cache__shared = this.cache;
if (cache__shared != null) {
cache_ = cache__shared;
} else {
cache_ = (arg0Value.context.getGuestToHostCache());
if (cache_ == null) {
throw new IllegalStateException("Specialization 'asDate(HostProxy, InteropLibrary, GuestToHostCodeCache)' contains a shared cache with name 'cache' 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.cache == null) {
VarHandle.storeStoreFence();
this.cache = cache_;
}
state_0 = state_0 | 0x100000 /* add SpecializationActive[HostProxy.asDate(HostProxy, InteropLibrary, GuestToHostCodeCache)] */;
this.state_0_ = state_0;
return arg0Value.asDate(library__, cache_);
}
}
/**
* Debug Info:
* Specialization {@link HostProxy#asTime(HostProxy, InteropLibrary, GuestToHostCodeCache)}
* Activation probability: 0.02564
* With/without class size: 4/0 bytes
*
*/
@Override
public LocalTime asTime(Object arg0Value_) throws UnsupportedMessageException {
assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver.";
assert assertAdopted();
HostProxy arg0Value = ((HostProxy) arg0Value_);
int state_0 = this.state_0_;
if ((state_0 & 0x200000) != 0 /* is SpecializationActive[HostProxy.asTime(HostProxy, InteropLibrary, GuestToHostCodeCache)] */) {
{
GuestToHostCodeCache cache_ = this.cache;
if (cache_ != null) {
InteropLibrary library__ = (this);
return arg0Value.asTime(library__, cache_);
}
}
}
CompilerDirectives.transferToInterpreterAndInvalidate();
return asTimeNode_AndSpecialize(arg0Value);
}
private LocalTime asTimeNode_AndSpecialize(HostProxy arg0Value) throws UnsupportedMessageException {
int state_0 = this.state_0_;
{
InteropLibrary library__ = null;
library__ = (this);
GuestToHostCodeCache cache_;
GuestToHostCodeCache cache__shared = this.cache;
if (cache__shared != null) {
cache_ = cache__shared;
} else {
cache_ = (arg0Value.context.getGuestToHostCache());
if (cache_ == null) {
throw new IllegalStateException("Specialization 'asTime(HostProxy, InteropLibrary, GuestToHostCodeCache)' contains a shared cache with name 'cache' 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.cache == null) {
VarHandle.storeStoreFence();
this.cache = cache_;
}
state_0 = state_0 | 0x200000 /* add SpecializationActive[HostProxy.asTime(HostProxy, InteropLibrary, GuestToHostCodeCache)] */;
this.state_0_ = state_0;
return arg0Value.asTime(library__, cache_);
}
}
/**
* Debug Info:
* Specialization {@link HostProxy#asInstant(HostProxy, InteropLibrary, GuestToHostCodeCache)}
* Activation probability: 0.02564
* With/without class size: 4/0 bytes
*
*/
@Override
public Instant asInstant(Object arg0Value_) throws UnsupportedMessageException {
assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver.";
assert assertAdopted();
HostProxy arg0Value = ((HostProxy) arg0Value_);
int state_0 = this.state_0_;
if ((state_0 & 0x400000) != 0 /* is SpecializationActive[HostProxy.asInstant(HostProxy, InteropLibrary, GuestToHostCodeCache)] */) {
{
GuestToHostCodeCache cache_ = this.cache;
if (cache_ != null) {
InteropLibrary library__ = (this);
return arg0Value.asInstant(library__, cache_);
}
}
}
CompilerDirectives.transferToInterpreterAndInvalidate();
return asInstantNode_AndSpecialize(arg0Value);
}
private Instant asInstantNode_AndSpecialize(HostProxy arg0Value) throws UnsupportedMessageException {
int state_0 = this.state_0_;
{
InteropLibrary library__ = null;
library__ = (this);
GuestToHostCodeCache cache_;
GuestToHostCodeCache cache__shared = this.cache;
if (cache__shared != null) {
cache_ = cache__shared;
} else {
cache_ = (arg0Value.context.getGuestToHostCache());
if (cache_ == null) {
throw new IllegalStateException("Specialization 'asInstant(HostProxy, InteropLibrary, GuestToHostCodeCache)' contains a shared cache with name 'cache' 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.cache == null) {
VarHandle.storeStoreFence();
this.cache = cache_;
}
state_0 = state_0 | 0x400000 /* add SpecializationActive[HostProxy.asInstant(HostProxy, InteropLibrary, GuestToHostCodeCache)] */;
this.state_0_ = state_0;
return arg0Value.asInstant(library__, cache_);
}
}
@Override
public boolean isDuration(Object receiver) {
assert this.accepts(receiver) : "Invalid library usage. Library does not accept given receiver.";
assert assertAdopted();
return (((HostProxy) receiver)).isDuration();
}
/**
* Debug Info:
* Specialization {@link HostProxy#asDuration(HostProxy, InteropLibrary, GuestToHostCodeCache)}
* Activation probability: 0.02564
* With/without class size: 4/0 bytes
*
*/
@Override
public Duration asDuration(Object arg0Value_) throws UnsupportedMessageException {
assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver.";
assert assertAdopted();
HostProxy arg0Value = ((HostProxy) arg0Value_);
int state_0 = this.state_0_;
if ((state_0 & 0x800000) != 0 /* is SpecializationActive[HostProxy.asDuration(HostProxy, InteropLibrary, GuestToHostCodeCache)] */) {
{
GuestToHostCodeCache cache_ = this.cache;
if (cache_ != null) {
InteropLibrary library__ = (this);
return arg0Value.asDuration(library__, cache_);
}
}
}
CompilerDirectives.transferToInterpreterAndInvalidate();
return asDurationNode_AndSpecialize(arg0Value);
}
private Duration asDurationNode_AndSpecialize(HostProxy arg0Value) throws UnsupportedMessageException {
int state_0 = this.state_0_;
{
InteropLibrary library__ = null;
library__ = (this);
GuestToHostCodeCache cache_;
GuestToHostCodeCache cache__shared = this.cache;
if (cache__shared != null) {
cache_ = cache__shared;
} else {
cache_ = (arg0Value.context.getGuestToHostCache());
if (cache_ == null) {
throw new IllegalStateException("Specialization 'asDuration(HostProxy, InteropLibrary, GuestToHostCodeCache)' contains a shared cache with name 'cache' 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.cache == null) {
VarHandle.storeStoreFence();
this.cache = cache_;
}
state_0 = state_0 | 0x800000 /* add SpecializationActive[HostProxy.asDuration(HostProxy, InteropLibrary, GuestToHostCodeCache)] */;
this.state_0_ = state_0;
return arg0Value.asDuration(library__, cache_);
}
}
@Override
public boolean hasLanguage(Object receiver) {
assert this.accepts(receiver) : "Invalid library usage. Library does not accept given receiver.";
assert assertAdopted();
return (((HostProxy) 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 (((HostProxy) receiver)).getLanguage();
}
@Override
public Object toDisplayString(Object receiver, boolean allowSideEffects) {
assert this.accepts(receiver) : "Invalid library usage. Library does not accept given receiver.";
assert assertAdopted();
return (((HostProxy) receiver)).toDisplayString(allowSideEffects);
}
@Override
public boolean hasMetaObject(Object receiver) {
assert this.accepts(receiver) : "Invalid library usage. Library does not accept given receiver.";
assert assertAdopted();
return (((HostProxy) receiver)).hasMetaObject();
}
@Override
public Object getMetaObject(Object receiver) throws UnsupportedMessageException {
assert this.accepts(receiver) : "Invalid library usage. Library does not accept given receiver.";
assert assertAdopted();
return (((HostProxy) receiver)).getMetaObject();
}
@Override
public boolean hasIterator(Object receiver) {
assert this.accepts(receiver) : "Invalid library usage. Library does not accept given receiver.";
assert assertAdopted();
return (((HostProxy) receiver)).hasIterator();
}
/**
* Debug Info:
* Specialization {@link HostProxy#getIterator(HostProxy, InteropLibrary, GuestToHostCodeCache)}
* Activation probability: 0.02564
* With/without class size: 4/0 bytes
*
*/
@Override
public Object getIterator(Object arg0Value_) throws UnsupportedMessageException {
assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver.";
assert assertAdopted();
HostProxy arg0Value = ((HostProxy) arg0Value_);
int state_0 = this.state_0_;
if ((state_0 & 0x1000000) != 0 /* is SpecializationActive[HostProxy.getIterator(HostProxy, InteropLibrary, GuestToHostCodeCache)] */) {
{
GuestToHostCodeCache cache_ = this.cache;
if (cache_ != null) {
InteropLibrary library__ = (this);
return arg0Value.getIterator(library__, cache_);
}
}
}
CompilerDirectives.transferToInterpreterAndInvalidate();
return getIteratorNode_AndSpecialize(arg0Value);
}
private Object getIteratorNode_AndSpecialize(HostProxy arg0Value) throws UnsupportedMessageException {
int state_0 = this.state_0_;
{
InteropLibrary library__ = null;
library__ = (this);
GuestToHostCodeCache cache_;
GuestToHostCodeCache cache__shared = this.cache;
if (cache__shared != null) {
cache_ = cache__shared;
} else {
cache_ = (arg0Value.context.getGuestToHostCache());
if (cache_ == null) {
throw new IllegalStateException("Specialization 'getIterator(HostProxy, InteropLibrary, GuestToHostCodeCache)' contains a shared cache with name 'cache' 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.cache == null) {
VarHandle.storeStoreFence();
this.cache = cache_;
}
state_0 = state_0 | 0x1000000 /* add SpecializationActive[HostProxy.getIterator(HostProxy, InteropLibrary, GuestToHostCodeCache)] */;
this.state_0_ = state_0;
return arg0Value.getIterator(library__, cache_);
}
}
@Override
public boolean isIterator(Object receiver) {
assert this.accepts(receiver) : "Invalid library usage. Library does not accept given receiver.";
assert assertAdopted();
return (((HostProxy) receiver)).isIterator();
}
/**
* Debug Info:
* Specialization {@link HostProxy#hasIteratorNextElement(HostProxy, InteropLibrary, GuestToHostCodeCache)}
* Activation probability: 0.02564
* With/without class size: 4/0 bytes
*
*/
@Override
public boolean hasIteratorNextElement(Object arg0Value_) throws UnsupportedMessageException {
assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver.";
assert assertAdopted();
HostProxy arg0Value = ((HostProxy) arg0Value_);
int state_0 = this.state_0_;
if ((state_0 & 0x2000000) != 0 /* is SpecializationActive[HostProxy.hasIteratorNextElement(HostProxy, InteropLibrary, GuestToHostCodeCache)] */) {
{
GuestToHostCodeCache cache_ = this.cache;
if (cache_ != null) {
InteropLibrary library__ = (this);
return arg0Value.hasIteratorNextElement(library__, cache_);
}
}
}
CompilerDirectives.transferToInterpreterAndInvalidate();
return hasIteratorNextElementNode_AndSpecialize(arg0Value);
}
private boolean hasIteratorNextElementNode_AndSpecialize(HostProxy arg0Value) throws UnsupportedMessageException {
int state_0 = this.state_0_;
{
InteropLibrary library__ = null;
library__ = (this);
GuestToHostCodeCache cache_;
GuestToHostCodeCache cache__shared = this.cache;
if (cache__shared != null) {
cache_ = cache__shared;
} else {
cache_ = (arg0Value.context.getGuestToHostCache());
if (cache_ == null) {
throw new IllegalStateException("Specialization 'hasIteratorNextElement(HostProxy, InteropLibrary, GuestToHostCodeCache)' contains a shared cache with name 'cache' 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.cache == null) {
VarHandle.storeStoreFence();
this.cache = cache_;
}
state_0 = state_0 | 0x2000000 /* add SpecializationActive[HostProxy.hasIteratorNextElement(HostProxy, InteropLibrary, GuestToHostCodeCache)] */;
this.state_0_ = state_0;
return arg0Value.hasIteratorNextElement(library__, cache_);
}
}
/**
* Debug Info:
* Specialization {@link HostProxy#getIteratorNextElement(HostProxy, InteropLibrary, GuestToHostCodeCache)}
* Activation probability: 0.02564
* With/without class size: 4/0 bytes
*
*/
@Override
public Object getIteratorNextElement(Object arg0Value_) throws UnsupportedMessageException, StopIterationException {
assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver.";
assert assertAdopted();
HostProxy arg0Value = ((HostProxy) arg0Value_);
int state_0 = this.state_0_;
if ((state_0 & 0x4000000) != 0 /* is SpecializationActive[HostProxy.getIteratorNextElement(HostProxy, InteropLibrary, GuestToHostCodeCache)] */) {
{
GuestToHostCodeCache cache_ = this.cache;
if (cache_ != null) {
InteropLibrary library__ = (this);
return arg0Value.getIteratorNextElement(library__, cache_);
}
}
}
CompilerDirectives.transferToInterpreterAndInvalidate();
return getIteratorNextElementNode_AndSpecialize(arg0Value);
}
private Object getIteratorNextElementNode_AndSpecialize(HostProxy arg0Value) throws UnsupportedMessageException {
int state_0 = this.state_0_;
{
InteropLibrary library__ = null;
library__ = (this);
GuestToHostCodeCache cache_;
GuestToHostCodeCache cache__shared = this.cache;
if (cache__shared != null) {
cache_ = cache__shared;
} else {
cache_ = (arg0Value.context.getGuestToHostCache());
if (cache_ == null) {
throw new IllegalStateException("Specialization 'getIteratorNextElement(HostProxy, InteropLibrary, GuestToHostCodeCache)' contains a shared cache with name 'cache' 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.cache == null) {
VarHandle.storeStoreFence();
this.cache = cache_;
}
state_0 = state_0 | 0x4000000 /* add SpecializationActive[HostProxy.getIteratorNextElement(HostProxy, InteropLibrary, GuestToHostCodeCache)] */;
this.state_0_ = state_0;
return arg0Value.getIteratorNextElement(library__, cache_);
}
}
@Override
public boolean hasHashEntries(Object receiver) {
assert this.accepts(receiver) : "Invalid library usage. Library does not accept given receiver.";
assert assertAdopted();
return (((HostProxy) receiver)).hasHashEntries();
}
/**
* Debug Info:
* Specialization {@link HostProxy#getHashSize(HostProxy, InteropLibrary, GuestToHostCodeCache)}
* Activation probability: 0.02564
* With/without class size: 4/0 bytes
*
*/
@Override
public long getHashSize(Object arg0Value_) throws UnsupportedMessageException {
assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver.";
assert assertAdopted();
HostProxy arg0Value = ((HostProxy) arg0Value_);
int state_0 = this.state_0_;
if ((state_0 & 0x8000000) != 0 /* is SpecializationActive[HostProxy.getHashSize(HostProxy, InteropLibrary, GuestToHostCodeCache)] */) {
{
GuestToHostCodeCache cache_ = this.cache;
if (cache_ != null) {
InteropLibrary library__ = (this);
return arg0Value.getHashSize(library__, cache_);
}
}
}
CompilerDirectives.transferToInterpreterAndInvalidate();
return getHashSizeNode_AndSpecialize(arg0Value);
}
private long getHashSizeNode_AndSpecialize(HostProxy arg0Value) throws UnsupportedMessageException {
int state_0 = this.state_0_;
{
InteropLibrary library__ = null;
library__ = (this);
GuestToHostCodeCache cache_;
GuestToHostCodeCache cache__shared = this.cache;
if (cache__shared != null) {
cache_ = cache__shared;
} else {
cache_ = (arg0Value.context.getGuestToHostCache());
if (cache_ == null) {
throw new IllegalStateException("Specialization 'getHashSize(HostProxy, InteropLibrary, GuestToHostCodeCache)' contains a shared cache with name 'cache' 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.cache == null) {
VarHandle.storeStoreFence();
this.cache = cache_;
}
state_0 = state_0 | 0x8000000 /* add SpecializationActive[HostProxy.getHashSize(HostProxy, InteropLibrary, GuestToHostCodeCache)] */;
this.state_0_ = state_0;
return arg0Value.getHashSize(library__, cache_);
}
}
/**
* Debug Info:
* Specialization {@link HostProxy#isHashValueExisting(HostProxy, Object, InteropLibrary, GuestToHostCodeCache)}
* Activation probability: 0.02564
* With/without class size: 4/0 bytes
*
*/
@Override
public boolean isHashEntryReadable(Object arg0Value_, Object arg1Value) {
assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver.";
assert assertAdopted();
HostProxy arg0Value = ((HostProxy) arg0Value_);
int state_0 = this.state_0_;
if ((state_0 & 0x10000000) != 0 /* is SpecializationActive[HostProxy.isHashValueExisting(HostProxy, Object, InteropLibrary, GuestToHostCodeCache)] */) {
{
GuestToHostCodeCache cache_ = this.cache;
if (cache_ != null) {
InteropLibrary library__ = (this);
return arg0Value.isHashValueExisting(arg1Value, library__, cache_);
}
}
}
CompilerDirectives.transferToInterpreterAndInvalidate();
return isHashValueExistingNode_AndSpecialize(arg0Value, arg1Value);
}
private boolean isHashValueExistingNode_AndSpecialize(HostProxy arg0Value, Object arg1Value) {
int state_0 = this.state_0_;
{
InteropLibrary library__ = null;
library__ = (this);
GuestToHostCodeCache cache_;
GuestToHostCodeCache cache__shared = this.cache;
if (cache__shared != null) {
cache_ = cache__shared;
} else {
cache_ = (arg0Value.context.getGuestToHostCache());
if (cache_ == null) {
throw new IllegalStateException("Specialization 'isHashValueExisting(HostProxy, Object, InteropLibrary, GuestToHostCodeCache)' contains a shared cache with name 'cache' 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.cache == null) {
VarHandle.storeStoreFence();
this.cache = cache_;
}
state_0 = state_0 | 0x10000000 /* add SpecializationActive[HostProxy.isHashValueExisting(HostProxy, Object, InteropLibrary, GuestToHostCodeCache)] */;
this.state_0_ = state_0;
return arg0Value.isHashValueExisting(arg1Value, library__, cache_);
}
}
/**
* Debug Info:
* Specialization {@link HostProxy#isHashValueExisting(HostProxy, Object, InteropLibrary, GuestToHostCodeCache)}
* Activation probability: 0.02564
* With/without class size: 4/0 bytes
*
*/
@Override
public boolean isHashEntryModifiable(Object arg0Value_, Object arg1Value) {
assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver.";
assert assertAdopted();
HostProxy arg0Value = ((HostProxy) arg0Value_);
int state_0 = this.state_0_;
if ((state_0 & 0x10000000) != 0 /* is SpecializationActive[HostProxy.isHashValueExisting(HostProxy, Object, InteropLibrary, GuestToHostCodeCache)] */) {
{
GuestToHostCodeCache cache_ = this.cache;
if (cache_ != null) {
InteropLibrary library__ = (this);
return arg0Value.isHashValueExisting(arg1Value, library__, cache_);
}
}
}
CompilerDirectives.transferToInterpreterAndInvalidate();
return isHashValueExistingNode_AndSpecialize(arg0Value, arg1Value);
}
/**
* Debug Info:
* Specialization {@link HostProxy#isHashValueExisting(HostProxy, Object, InteropLibrary, GuestToHostCodeCache)}
* Activation probability: 0.02564
* With/without class size: 4/0 bytes
*
*/
@Override
public boolean isHashEntryRemovable(Object arg0Value_, Object arg1Value) {
assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver.";
assert assertAdopted();
HostProxy arg0Value = ((HostProxy) arg0Value_);
int state_0 = this.state_0_;
if ((state_0 & 0x10000000) != 0 /* is SpecializationActive[HostProxy.isHashValueExisting(HostProxy, Object, InteropLibrary, GuestToHostCodeCache)] */) {
{
GuestToHostCodeCache cache_ = this.cache;
if (cache_ != null) {
InteropLibrary library__ = (this);
return arg0Value.isHashValueExisting(arg1Value, library__, cache_);
}
}
}
CompilerDirectives.transferToInterpreterAndInvalidate();
return isHashValueExistingNode_AndSpecialize(arg0Value, arg1Value);
}
/**
* Debug Info:
* Specialization {@link HostProxy#readHashValue(HostProxy, Object, InteropLibrary, GuestToHostCodeCache)}
* Activation probability: 0.02564
* With/without class size: 4/0 bytes
*
*/
@Override
public Object readHashValue(Object arg0Value_, Object arg1Value) throws UnsupportedMessageException, UnknownKeyException {
assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver.";
assert assertAdopted();
HostProxy arg0Value = ((HostProxy) arg0Value_);
int state_0 = this.state_0_;
if ((state_0 & 0x20000000) != 0 /* is SpecializationActive[HostProxy.readHashValue(HostProxy, Object, InteropLibrary, GuestToHostCodeCache)] */) {
{
GuestToHostCodeCache cache_ = this.cache;
if (cache_ != null) {
InteropLibrary library__ = (this);
return arg0Value.readHashValue(arg1Value, library__, cache_);
}
}
}
CompilerDirectives.transferToInterpreterAndInvalidate();
return readHashValueNode_AndSpecialize(arg0Value, arg1Value);
}
private Object readHashValueNode_AndSpecialize(HostProxy arg0Value, Object arg1Value) throws UnsupportedMessageException, UnknownKeyException {
int state_0 = this.state_0_;
{
InteropLibrary library__ = null;
library__ = (this);
GuestToHostCodeCache cache_;
GuestToHostCodeCache cache__shared = this.cache;
if (cache__shared != null) {
cache_ = cache__shared;
} else {
cache_ = (arg0Value.context.getGuestToHostCache());
if (cache_ == null) {
throw new IllegalStateException("Specialization 'readHashValue(HostProxy, Object, InteropLibrary, GuestToHostCodeCache)' contains a shared cache with name 'cache' 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.cache == null) {
VarHandle.storeStoreFence();
this.cache = cache_;
}
state_0 = state_0 | 0x20000000 /* add SpecializationActive[HostProxy.readHashValue(HostProxy, Object, InteropLibrary, GuestToHostCodeCache)] */;
this.state_0_ = state_0;
return arg0Value.readHashValue(arg1Value, library__, cache_);
}
}
/**
* Debug Info:
* Specialization {@link HostProxy#isHashEntryInsertable(HostProxy, Object, InteropLibrary, GuestToHostCodeCache)}
* Activation probability: 0.02564
* With/without class size: 4/0 bytes
*
*/
@Override
public boolean isHashEntryInsertable(Object arg0Value_, Object arg1Value) {
assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver.";
assert assertAdopted();
HostProxy arg0Value = ((HostProxy) arg0Value_);
int state_0 = this.state_0_;
if ((state_0 & 0x40000000) != 0 /* is SpecializationActive[HostProxy.isHashEntryInsertable(HostProxy, Object, InteropLibrary, GuestToHostCodeCache)] */) {
{
GuestToHostCodeCache cache_ = this.cache;
if (cache_ != null) {
InteropLibrary library__ = (this);
return arg0Value.isHashEntryInsertable(arg1Value, library__, cache_);
}
}
}
CompilerDirectives.transferToInterpreterAndInvalidate();
return isHashEntryInsertableNode_AndSpecialize(arg0Value, arg1Value);
}
private boolean isHashEntryInsertableNode_AndSpecialize(HostProxy arg0Value, Object arg1Value) {
int state_0 = this.state_0_;
{
InteropLibrary library__ = null;
library__ = (this);
GuestToHostCodeCache cache_;
GuestToHostCodeCache cache__shared = this.cache;
if (cache__shared != null) {
cache_ = cache__shared;
} else {
cache_ = (arg0Value.context.getGuestToHostCache());
if (cache_ == null) {
throw new IllegalStateException("Specialization 'isHashEntryInsertable(HostProxy, Object, InteropLibrary, GuestToHostCodeCache)' contains a shared cache with name 'cache' 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.cache == null) {
VarHandle.storeStoreFence();
this.cache = cache_;
}
state_0 = state_0 | 0x40000000 /* add SpecializationActive[HostProxy.isHashEntryInsertable(HostProxy, Object, InteropLibrary, GuestToHostCodeCache)] */;
this.state_0_ = state_0;
return arg0Value.isHashEntryInsertable(arg1Value, library__, cache_);
}
}
/**
* Debug Info:
* Specialization {@link HostProxy#writeHashEntry(HostProxy, Object, Object, InteropLibrary, GuestToHostCodeCache)}
* Activation probability: 0.02564
* With/without class size: 4/0 bytes
*
*/
@Override
public void writeHashEntry(Object arg0Value_, Object arg1Value, Object arg2Value) throws UnsupportedMessageException, UnknownKeyException, UnsupportedTypeException {
assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver.";
assert assertAdopted();
HostProxy arg0Value = ((HostProxy) arg0Value_);
int state_0 = this.state_0_;
if ((state_0 & 0x80000000) != 0 /* is SpecializationActive[HostProxy.writeHashEntry(HostProxy, Object, Object, InteropLibrary, GuestToHostCodeCache)] */) {
{
GuestToHostCodeCache cache_ = this.cache;
if (cache_ != null) {
InteropLibrary library__ = (this);
arg0Value.writeHashEntry(arg1Value, arg2Value, library__, cache_);
return;
}
}
}
CompilerDirectives.transferToInterpreterAndInvalidate();
writeHashEntryNode_AndSpecialize(arg0Value, arg1Value, arg2Value);
return;
}
private void writeHashEntryNode_AndSpecialize(HostProxy arg0Value, Object arg1Value, Object arg2Value) throws UnsupportedMessageException {
int state_0 = this.state_0_;
{
InteropLibrary library__ = null;
library__ = (this);
GuestToHostCodeCache cache_;
GuestToHostCodeCache cache__shared = this.cache;
if (cache__shared != null) {
cache_ = cache__shared;
} else {
cache_ = (arg0Value.context.getGuestToHostCache());
if (cache_ == null) {
throw new IllegalStateException("Specialization 'writeHashEntry(HostProxy, Object, Object, InteropLibrary, GuestToHostCodeCache)' contains a shared cache with name 'cache' 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.cache == null) {
VarHandle.storeStoreFence();
this.cache = cache_;
}
state_0 = state_0 | 0x80000000 /* add SpecializationActive[HostProxy.writeHashEntry(HostProxy, Object, Object, InteropLibrary, GuestToHostCodeCache)] */;
this.state_0_ = state_0;
arg0Value.writeHashEntry(arg1Value, arg2Value, library__, cache_);
return;
}
}
/**
* Debug Info:
* Specialization {@link HostProxy#removeHashEntry(HostProxy, Object, InteropLibrary, GuestToHostCodeCache)}
* Activation probability: 0.02564
* With/without class size: 4/0 bytes
*
*/
@Override
public void removeHashEntry(Object arg0Value_, Object arg1Value) throws UnsupportedMessageException, UnknownKeyException {
assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver.";
assert assertAdopted();
HostProxy arg0Value = ((HostProxy) arg0Value_);
int state_1 = this.state_1_;
if ((state_1 & 0b1) != 0 /* is SpecializationActive[HostProxy.removeHashEntry(HostProxy, Object, InteropLibrary, GuestToHostCodeCache)] */) {
{
GuestToHostCodeCache cache_ = this.cache;
if (cache_ != null) {
InteropLibrary library__ = (this);
arg0Value.removeHashEntry(arg1Value, library__, cache_);
return;
}
}
}
CompilerDirectives.transferToInterpreterAndInvalidate();
removeHashEntryNode_AndSpecialize(arg0Value, arg1Value);
return;
}
private void removeHashEntryNode_AndSpecialize(HostProxy arg0Value, Object arg1Value) throws UnsupportedMessageException, UnknownKeyException {
int state_1 = this.state_1_;
{
InteropLibrary library__ = null;
library__ = (this);
GuestToHostCodeCache cache_;
GuestToHostCodeCache cache__shared = this.cache;
if (cache__shared != null) {
cache_ = cache__shared;
} else {
cache_ = (arg0Value.context.getGuestToHostCache());
if (cache_ == null) {
throw new IllegalStateException("Specialization 'removeHashEntry(HostProxy, Object, InteropLibrary, GuestToHostCodeCache)' contains a shared cache with name 'cache' 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.cache == null) {
VarHandle.storeStoreFence();
this.cache = cache_;
}
state_1 = state_1 | 0b1 /* add SpecializationActive[HostProxy.removeHashEntry(HostProxy, Object, InteropLibrary, GuestToHostCodeCache)] */;
this.state_1_ = state_1;
arg0Value.removeHashEntry(arg1Value, library__, cache_);
return;
}
}
/**
* Debug Info:
* Specialization {@link HostProxy#getHashEntriesIterator(HostProxy, InteropLibrary, GuestToHostCodeCache)}
* Activation probability: 0.02564
* With/without class size: 4/0 bytes
*
*/
@Override
public Object getHashEntriesIterator(Object arg0Value_) throws UnsupportedMessageException {
assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver.";
assert assertAdopted();
HostProxy arg0Value = ((HostProxy) arg0Value_);
int state_1 = this.state_1_;
if ((state_1 & 0b10) != 0 /* is SpecializationActive[HostProxy.getHashEntriesIterator(HostProxy, InteropLibrary, GuestToHostCodeCache)] */) {
{
GuestToHostCodeCache cache_ = this.cache;
if (cache_ != null) {
InteropLibrary library__ = (this);
return arg0Value.getHashEntriesIterator(library__, cache_);
}
}
}
CompilerDirectives.transferToInterpreterAndInvalidate();
return getHashEntriesIteratorNode_AndSpecialize(arg0Value);
}
private Object getHashEntriesIteratorNode_AndSpecialize(HostProxy arg0Value) throws UnsupportedMessageException {
int state_1 = this.state_1_;
{
InteropLibrary library__ = null;
library__ = (this);
GuestToHostCodeCache cache_;
GuestToHostCodeCache cache__shared = this.cache;
if (cache__shared != null) {
cache_ = cache__shared;
} else {
cache_ = (arg0Value.context.getGuestToHostCache());
if (cache_ == null) {
throw new IllegalStateException("Specialization 'getHashEntriesIterator(HostProxy, InteropLibrary, GuestToHostCodeCache)' contains a shared cache with name 'cache' 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.cache == null) {
VarHandle.storeStoreFence();
this.cache = cache_;
}
state_1 = state_1 | 0b10 /* add SpecializationActive[HostProxy.getHashEntriesIterator(HostProxy, InteropLibrary, GuestToHostCodeCache)] */;
this.state_1_ = state_1;
return arg0Value.getHashEntriesIterator(library__, cache_);
}
}
@Override
public int identityHashCode(Object receiver) throws UnsupportedMessageException {
assert this.accepts(receiver) : "Invalid library usage. Library does not accept given receiver.";
assert assertAdopted();
return HostProxy.identityHashCode((((HostProxy) receiver)));
}
}
@GeneratedBy(HostProxy.class)
@DenyReplace
private static final class Uncached extends InteropLibrary {
protected Uncached() {
}
@Override
@TruffleBoundary
public boolean accepts(Object receiver) {
assert !(receiver instanceof HostProxy) || DYNAMIC_DISPATCH_LIBRARY_.getUncached().dispatch(receiver) == null : "Invalid library export. Exported receiver with dynamic dispatch found but not expected.";
return receiver instanceof HostProxy;
}
@Override
public boolean isAdoptable() {
return false;
}
@Override
public NodeCost getCost() {
return NodeCost.MEGAMORPHIC;
}
@TruffleBoundary
@Override
public TriState isIdenticalOrUndefined(Object arg0Value_, Object arg1Value) {
// declared: true
assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver.";
HostProxy arg0Value = ((HostProxy) arg0Value_);
if (arg1Value instanceof HostProxy) {
HostProxy arg1Value_ = (HostProxy) arg1Value;
return IsIdenticalOrUndefined.doHostObject(arg0Value, arg1Value_);
}
return IsIdenticalOrUndefined.doOther(arg0Value, arg1Value);
}
@TruffleBoundary
@Override
public boolean isInstantiable(Object receiver) {
// declared: true
assert this.accepts(receiver) : "Invalid library usage. Library does not accept given receiver.";
return ((HostProxy) receiver) .isInstantiable();
}
@TruffleBoundary
@Override
public Object instantiate(Object arg0Value_, Object... arg1Value) throws UnsupportedMessageException {
// declared: true
assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver.";
HostProxy arg0Value = ((HostProxy) arg0Value_);
return arg0Value.instantiate(arg1Value, (this), (arg0Value.context.getGuestToHostCache()));
}
@TruffleBoundary
@Override
public boolean isExecutable(Object receiver) {
// declared: true
assert this.accepts(receiver) : "Invalid library usage. Library does not accept given receiver.";
return ((HostProxy) receiver) .isExecutable();
}
@TruffleBoundary
@Override
public Object execute(Object arg0Value_, Object... arg1Value) throws UnsupportedMessageException {
// declared: true
assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver.";
HostProxy arg0Value = ((HostProxy) arg0Value_);
return arg0Value.execute(arg1Value, (this), (arg0Value.context.getGuestToHostCache()));
}
@TruffleBoundary
@Override
public boolean isPointer(Object receiver) {
// declared: true
assert this.accepts(receiver) : "Invalid library usage. Library does not accept given receiver.";
return ((HostProxy) receiver) .isPointer();
}
@TruffleBoundary
@Override
public long asPointer(Object arg0Value_) throws UnsupportedMessageException {
// declared: true
assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver.";
HostProxy arg0Value = ((HostProxy) arg0Value_);
return arg0Value.asPointer((this), (arg0Value.context.getGuestToHostCache()));
}
@TruffleBoundary
@Override
public boolean hasArrayElements(Object receiver) {
// declared: true
assert this.accepts(receiver) : "Invalid library usage. Library does not accept given receiver.";
return ((HostProxy) receiver) .hasArrayElements();
}
@TruffleBoundary
@Override
public Object readArrayElement(Object arg0Value_, long arg1Value) throws UnsupportedMessageException {
// declared: true
assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver.";
HostProxy arg0Value = ((HostProxy) arg0Value_);
return arg0Value.readArrayElement(arg1Value, (this), (arg0Value.context.getGuestToHostCache()));
}
@TruffleBoundary
@Override
public void writeArrayElement(Object arg0Value_, long arg1Value, Object arg2Value) throws UnsupportedMessageException {
// declared: true
assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver.";
HostProxy arg0Value = ((HostProxy) arg0Value_);
arg0Value.writeArrayElement(arg1Value, arg2Value, (this), (arg0Value.context.getGuestToHostCache()));
return;
}
@TruffleBoundary
@Override
public void removeArrayElement(Object arg0Value_, long arg1Value) throws UnsupportedMessageException, InvalidArrayIndexException {
// declared: true
assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver.";
HostProxy arg0Value = ((HostProxy) arg0Value_);
arg0Value.removeArrayElement(arg1Value, (this), (arg0Value.context.getGuestToHostCache()));
return;
}
@TruffleBoundary
@Override
public long getArraySize(Object arg0Value_) throws UnsupportedMessageException {
// declared: true
assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver.";
HostProxy arg0Value = ((HostProxy) arg0Value_);
return arg0Value.getArraySize((this), (arg0Value.context.getGuestToHostCache()));
}
@TruffleBoundary
@Override
public boolean isArrayElementReadable(Object arg0Value_, long arg1Value) {
// declared: true
assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver.";
HostProxy arg0Value = ((HostProxy) arg0Value_);
return arg0Value.isArrayElementExisting(arg1Value, (this), (arg0Value.context.getGuestToHostCache()));
}
@TruffleBoundary
@Override
public boolean isArrayElementModifiable(Object arg0Value_, long arg1Value) {
// declared: true
assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver.";
HostProxy arg0Value = ((HostProxy) arg0Value_);
return arg0Value.isArrayElementExisting(arg1Value, (this), (arg0Value.context.getGuestToHostCache()));
}
@TruffleBoundary
@Override
public boolean isArrayElementRemovable(Object arg0Value_, long arg1Value) {
// declared: true
assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver.";
HostProxy arg0Value = ((HostProxy) arg0Value_);
return arg0Value.isArrayElementExisting(arg1Value, (this), (arg0Value.context.getGuestToHostCache()));
}
@TruffleBoundary
@Override
public boolean isArrayElementInsertable(Object arg0Value_, long arg1Value) {
// declared: true
assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver.";
HostProxy arg0Value = ((HostProxy) arg0Value_);
return arg0Value.isArrayElementInsertable(arg1Value, (this), (arg0Value.context.getGuestToHostCache()));
}
@TruffleBoundary
@Override
public boolean hasMembers(Object receiver) {
// declared: true
assert this.accepts(receiver) : "Invalid library usage. Library does not accept given receiver.";
return ((HostProxy) 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.";
HostProxy arg0Value = ((HostProxy) arg0Value_);
return arg0Value.getMembers(arg1Value, (this), (arg0Value.context.getGuestToHostCache()));
}
@TruffleBoundary
@Override
public Object readMember(Object arg0Value_, String arg1Value) throws UnsupportedMessageException, UnknownIdentifierException {
// declared: true
assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver.";
HostProxy arg0Value = ((HostProxy) arg0Value_);
return arg0Value.readMember(arg1Value, (this), (arg0Value.context.getGuestToHostCache()));
}
@TruffleBoundary
@Override
public void writeMember(Object arg0Value_, String arg1Value, Object arg2Value) throws UnsupportedMessageException {
// declared: true
assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver.";
HostProxy arg0Value = ((HostProxy) arg0Value_);
arg0Value.writeMember(arg1Value, arg2Value, (this), (arg0Value.context.getGuestToHostCache()));
return;
}
@TruffleBoundary
@Override
public Object invokeMember(Object arg0Value_, String arg1Value, Object... arg2Value) throws UnsupportedMessageException, UnsupportedTypeException, ArityException, UnknownIdentifierException {
// declared: true
assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver.";
HostProxy arg0Value = ((HostProxy) arg0Value_);
return arg0Value.invokeMember(arg1Value, arg2Value, (this), (INTEROP_LIBRARY_.getUncached()), (arg0Value.context.getGuestToHostCache()));
}
@TruffleBoundary
@Override
public boolean isMemberInvocable(Object arg0Value_, String arg1Value) {
// declared: true
assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver.";
HostProxy arg0Value = ((HostProxy) arg0Value_);
return arg0Value.isMemberInvocable(arg1Value, (this), (INTEROP_LIBRARY_.getUncached()), (arg0Value.context.getGuestToHostCache()));
}
@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.";
HostProxy arg0Value = ((HostProxy) arg0Value_);
arg0Value.removeMember(arg1Value, (this), (arg0Value.context.getGuestToHostCache()));
return;
}
@TruffleBoundary
@Override
public boolean isMemberReadable(Object arg0Value_, String arg1Value) {
// declared: true
assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver.";
HostProxy arg0Value = ((HostProxy) arg0Value_);
return arg0Value.isMemberExisting(arg1Value, (this), (arg0Value.context.getGuestToHostCache()));
}
@TruffleBoundary
@Override
public boolean isMemberModifiable(Object arg0Value_, String arg1Value) {
// declared: true
assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver.";
HostProxy arg0Value = ((HostProxy) arg0Value_);
return arg0Value.isMemberExisting(arg1Value, (this), (arg0Value.context.getGuestToHostCache()));
}
@TruffleBoundary
@Override
public boolean isMemberRemovable(Object arg0Value_, String arg1Value) {
// declared: true
assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver.";
HostProxy arg0Value = ((HostProxy) arg0Value_);
return arg0Value.isMemberExisting(arg1Value, (this), (arg0Value.context.getGuestToHostCache()));
}
@TruffleBoundary
@Override
public boolean isMemberInsertable(Object arg0Value_, String arg1Value) {
// declared: true
assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver.";
HostProxy arg0Value = ((HostProxy) arg0Value_);
return arg0Value.isMemberInsertable(arg1Value, (this), (arg0Value.context.getGuestToHostCache()));
}
@TruffleBoundary
@Override
public boolean isDate(Object receiver) {
// declared: true
assert this.accepts(receiver) : "Invalid library usage. Library does not accept given receiver.";
return ((HostProxy) receiver) .isDate();
}
@TruffleBoundary
@Override
public boolean isTime(Object receiver) {
// declared: true
assert this.accepts(receiver) : "Invalid library usage. Library does not accept given receiver.";
return ((HostProxy) receiver) .isTime();
}
@TruffleBoundary
@Override
public boolean isTimeZone(Object receiver) {
// declared: true
assert this.accepts(receiver) : "Invalid library usage. Library does not accept given receiver.";
return ((HostProxy) receiver) .isTimeZone();
}
@TruffleBoundary
@Override
public ZoneId asTimeZone(Object arg0Value_) throws UnsupportedMessageException {
// declared: true
assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver.";
HostProxy arg0Value = ((HostProxy) arg0Value_);
return arg0Value.asTimeZone((this), (arg0Value.context.getGuestToHostCache()));
}
@TruffleBoundary
@Override
public LocalDate asDate(Object arg0Value_) throws UnsupportedMessageException {
// declared: true
assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver.";
HostProxy arg0Value = ((HostProxy) arg0Value_);
return arg0Value.asDate((this), (arg0Value.context.getGuestToHostCache()));
}
@TruffleBoundary
@Override
public LocalTime asTime(Object arg0Value_) throws UnsupportedMessageException {
// declared: true
assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver.";
HostProxy arg0Value = ((HostProxy) arg0Value_);
return arg0Value.asTime((this), (arg0Value.context.getGuestToHostCache()));
}
@TruffleBoundary
@Override
public Instant asInstant(Object arg0Value_) throws UnsupportedMessageException {
// declared: true
assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver.";
HostProxy arg0Value = ((HostProxy) arg0Value_);
return arg0Value.asInstant((this), (arg0Value.context.getGuestToHostCache()));
}
@TruffleBoundary
@Override
public boolean isDuration(Object receiver) {
// declared: true
assert this.accepts(receiver) : "Invalid library usage. Library does not accept given receiver.";
return ((HostProxy) receiver) .isDuration();
}
@TruffleBoundary
@Override
public Duration asDuration(Object arg0Value_) throws UnsupportedMessageException {
// declared: true
assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver.";
HostProxy arg0Value = ((HostProxy) arg0Value_);
return arg0Value.asDuration((this), (arg0Value.context.getGuestToHostCache()));
}
@TruffleBoundary
@Override
public boolean hasLanguage(Object receiver) {
// declared: true
assert this.accepts(receiver) : "Invalid library usage. Library does not accept given receiver.";
return ((HostProxy) 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 ((HostProxy) receiver) .getLanguage();
}
@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 ((HostProxy) receiver) .toDisplayString(allowSideEffects);
}
@TruffleBoundary
@Override
public boolean hasMetaObject(Object receiver) {
// declared: true
assert this.accepts(receiver) : "Invalid library usage. Library does not accept given receiver.";
return ((HostProxy) receiver) .hasMetaObject();
}
@TruffleBoundary
@Override
public Object getMetaObject(Object receiver) throws UnsupportedMessageException {
// declared: true
assert this.accepts(receiver) : "Invalid library usage. Library does not accept given receiver.";
return ((HostProxy) receiver) .getMetaObject();
}
@TruffleBoundary
@Override
public boolean hasIterator(Object receiver) {
// declared: true
assert this.accepts(receiver) : "Invalid library usage. Library does not accept given receiver.";
return ((HostProxy) receiver) .hasIterator();
}
@TruffleBoundary
@Override
public Object getIterator(Object arg0Value_) throws UnsupportedMessageException {
// declared: true
assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver.";
HostProxy arg0Value = ((HostProxy) arg0Value_);
return arg0Value.getIterator((this), (arg0Value.context.getGuestToHostCache()));
}
@TruffleBoundary
@Override
public boolean isIterator(Object receiver) {
// declared: true
assert this.accepts(receiver) : "Invalid library usage. Library does not accept given receiver.";
return ((HostProxy) receiver) .isIterator();
}
@TruffleBoundary
@Override
public boolean hasIteratorNextElement(Object arg0Value_) throws UnsupportedMessageException {
// declared: true
assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver.";
HostProxy arg0Value = ((HostProxy) arg0Value_);
return arg0Value.hasIteratorNextElement((this), (arg0Value.context.getGuestToHostCache()));
}
@TruffleBoundary
@Override
public Object getIteratorNextElement(Object arg0Value_) throws UnsupportedMessageException {
// declared: true
assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver.";
HostProxy arg0Value = ((HostProxy) arg0Value_);
return arg0Value.getIteratorNextElement((this), (arg0Value.context.getGuestToHostCache()));
}
@TruffleBoundary
@Override
public boolean hasHashEntries(Object receiver) {
// declared: true
assert this.accepts(receiver) : "Invalid library usage. Library does not accept given receiver.";
return ((HostProxy) receiver) .hasHashEntries();
}
@TruffleBoundary
@Override
public long getHashSize(Object arg0Value_) throws UnsupportedMessageException {
// declared: true
assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver.";
HostProxy arg0Value = ((HostProxy) arg0Value_);
return arg0Value.getHashSize((this), (arg0Value.context.getGuestToHostCache()));
}
@TruffleBoundary
@Override
public boolean isHashEntryReadable(Object arg0Value_, Object arg1Value) {
// declared: true
assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver.";
HostProxy arg0Value = ((HostProxy) arg0Value_);
return arg0Value.isHashValueExisting(arg1Value, (this), (arg0Value.context.getGuestToHostCache()));
}
@TruffleBoundary
@Override
public boolean isHashEntryModifiable(Object arg0Value_, Object arg1Value) {
// declared: true
assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver.";
HostProxy arg0Value = ((HostProxy) arg0Value_);
return arg0Value.isHashValueExisting(arg1Value, (this), (arg0Value.context.getGuestToHostCache()));
}
@TruffleBoundary
@Override
public boolean isHashEntryRemovable(Object arg0Value_, Object arg1Value) {
// declared: true
assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver.";
HostProxy arg0Value = ((HostProxy) arg0Value_);
return arg0Value.isHashValueExisting(arg1Value, (this), (arg0Value.context.getGuestToHostCache()));
}
@TruffleBoundary
@Override
public Object readHashValue(Object arg0Value_, Object arg1Value) throws UnsupportedMessageException, UnknownKeyException {
// declared: true
assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver.";
HostProxy arg0Value = ((HostProxy) arg0Value_);
return arg0Value.readHashValue(arg1Value, (this), (arg0Value.context.getGuestToHostCache()));
}
@TruffleBoundary
@Override
public boolean isHashEntryInsertable(Object arg0Value_, Object arg1Value) {
// declared: true
assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver.";
HostProxy arg0Value = ((HostProxy) arg0Value_);
return arg0Value.isHashEntryInsertable(arg1Value, (this), (arg0Value.context.getGuestToHostCache()));
}
@TruffleBoundary
@Override
public void writeHashEntry(Object arg0Value_, Object arg1Value, Object arg2Value) throws UnsupportedMessageException {
// declared: true
assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver.";
HostProxy arg0Value = ((HostProxy) arg0Value_);
arg0Value.writeHashEntry(arg1Value, arg2Value, (this), (arg0Value.context.getGuestToHostCache()));
return;
}
@TruffleBoundary
@Override
public void removeHashEntry(Object arg0Value_, Object arg1Value) throws UnsupportedMessageException, UnknownKeyException {
// declared: true
assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver.";
HostProxy arg0Value = ((HostProxy) arg0Value_);
arg0Value.removeHashEntry(arg1Value, (this), (arg0Value.context.getGuestToHostCache()));
return;
}
@TruffleBoundary
@Override
public Object getHashEntriesIterator(Object arg0Value_) throws UnsupportedMessageException {
// declared: true
assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver.";
HostProxy arg0Value = ((HostProxy) arg0Value_);
return arg0Value.getHashEntriesIterator((this), (arg0Value.context.getGuestToHostCache()));
}
@TruffleBoundary
@Override
public int identityHashCode(Object receiver) throws UnsupportedMessageException {
// declared: true
assert this.accepts(receiver) : "Invalid library usage. Library does not accept given receiver.";
return HostProxy.identityHashCode(((HostProxy) receiver) );
}
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy