com.oracle.graal.python.lib.PyObjectFormatNodeGen Maven / Gradle / Ivy
// CheckStyle: start generated
package com.oracle.graal.python.lib;
import com.oracle.graal.python.builtins.objects.PNone;
import com.oracle.graal.python.builtins.objects.type.SpecialMethodSlot;
import com.oracle.graal.python.nodes.PGuards;
import com.oracle.graal.python.nodes.PRaiseNode;
import com.oracle.graal.python.nodes.call.special.LookupAndCallBinaryNode;
import com.oracle.truffle.api.CompilerDirectives;
import com.oracle.truffle.api.CompilerDirectives.CompilationFinal;
import com.oracle.truffle.api.dsl.GeneratedBy;
import com.oracle.truffle.api.dsl.NeverDefault;
import com.oracle.truffle.api.dsl.InlineSupport.InlineTarget;
import com.oracle.truffle.api.dsl.InlineSupport.ReferenceField;
import com.oracle.truffle.api.dsl.InlineSupport.RequiredField;
import com.oracle.truffle.api.dsl.InlineSupport.StateField;
import com.oracle.truffle.api.dsl.InlineSupport.UnsafeAccessedField;
import com.oracle.truffle.api.frame.Frame;
import com.oracle.truffle.api.frame.VirtualFrame;
import com.oracle.truffle.api.nodes.DenyReplace;
import com.oracle.truffle.api.nodes.Node;
import com.oracle.truffle.api.nodes.NodeCost;
import java.lang.invoke.MethodHandles;
import java.lang.invoke.VarHandle;
import java.util.Objects;
/**
* Debug Info:
* Specialization {@link PyObjectFormat#doNone}
* Activation probability: 0.65000
* With/without class size: 14/0 bytes
* Specialization {@link PyObjectFormat#doOthers}
* Activation probability: 0.35000
* With/without class size: 9/0 bytes
*
*/
@GeneratedBy(PyObjectFormat.class)
@SuppressWarnings({"javadoc", "unused"})
public final class PyObjectFormatNodeGen extends PyObjectFormat {
private static final StateField STATE_0_UPDATER = StateField.create(MethodHandles.lookup(), "state_0_");
/**
* Source Info:
* Specialization: {@link PyObjectFormat#doNone}
* Parameter: {@link PyObjectFormatStr} formatStr
* Inline method: {@link PyObjectFormatStrNodeGen#inline}
*/
private static final PyObjectFormatStr INLINED_IMPL = PyObjectFormatStrNodeGen.inline(InlineTarget.create(PyObjectFormatStr.class, STATE_0_UPDATER.subUpdater(2, 5), ReferenceField.create(MethodHandles.lookup(), "impl_field1_", Node.class), ReferenceField.create(MethodHandles.lookup(), "impl_field2_", Node.class), ReferenceField.create(MethodHandles.lookup(), "impl_field3_", Node.class)));
private static final Uncached UNCACHED = new Uncached();
/**
* State Info:
* 0: SpecializationActive {@link PyObjectFormat#doNone}
* 1: SpecializationActive {@link PyObjectFormat#doOthers}
* 2-6: InlinedCache
* Specialization: {@link PyObjectFormat#doNone}
* Parameter: {@link PyObjectFormatStr} formatStr
* Inline method: {@link PyObjectFormatStrNodeGen#inline}
*
*/
@CompilationFinal @UnsafeAccessedField private int state_0_;
/**
* Source Info:
* Specialization: {@link PyObjectFormat#doNone}
* Parameter: {@link PyObjectFormatStr} formatStr
* Inline method: {@link PyObjectFormatStrNodeGen#inline}
* Inline field: {@link Node} field1
*/
@Child @UnsafeAccessedField @SuppressWarnings("unused") private Node impl_field1_;
/**
* Source Info:
* Specialization: {@link PyObjectFormat#doNone}
* Parameter: {@link PyObjectFormatStr} formatStr
* Inline method: {@link PyObjectFormatStrNodeGen#inline}
* Inline field: {@link Node} field2
*/
@Child @UnsafeAccessedField @SuppressWarnings("unused") private Node impl_field2_;
/**
* Source Info:
* Specialization: {@link PyObjectFormat#doNone}
* Parameter: {@link PyObjectFormatStr} formatStr
* Inline method: {@link PyObjectFormatStrNodeGen#inline}
* Inline field: {@link Node} field3
*/
@Child @UnsafeAccessedField @SuppressWarnings("unused") private Node impl_field3_;
private PyObjectFormatNodeGen() {
}
@SuppressWarnings("static-method")
private boolean fallbackGuard_(int state_0, Node arg0Value, Object arg1Value, Object arg2Value) {
if (!((state_0 & 0b1) != 0 /* is SpecializationActive[PyObjectFormat.doNone(VirtualFrame, Node, Object, PNone, PyObjectFormatStr)] */) && arg2Value instanceof PNone) {
return false;
}
return true;
}
@Override
public Object execute(VirtualFrame frameValue, Node arg0Value, Object arg1Value, Object arg2Value) {
int state_0 = this.state_0_;
if ((state_0 & 0b11) != 0 /* is SpecializationActive[PyObjectFormat.doNone(VirtualFrame, Node, Object, PNone, PyObjectFormatStr)] || SpecializationActive[PyObjectFormat.doOthers(VirtualFrame, Node, Object, Object, PyObjectFormatStr)] */) {
if ((state_0 & 0b1) != 0 /* is SpecializationActive[PyObjectFormat.doNone(VirtualFrame, Node, Object, PNone, PyObjectFormatStr)] */ && arg2Value instanceof PNone) {
PNone arg2Value_ = (PNone) arg2Value;
return PyObjectFormat.doNone(frameValue, this, arg1Value, arg2Value_, INLINED_IMPL);
}
if ((state_0 & 0b10) != 0 /* is SpecializationActive[PyObjectFormat.doOthers(VirtualFrame, Node, Object, Object, PyObjectFormatStr)] */) {
if (fallbackGuard_(state_0, arg0Value, arg1Value, arg2Value)) {
return PyObjectFormat.doOthers(frameValue, this, arg1Value, arg2Value, INLINED_IMPL);
}
}
}
CompilerDirectives.transferToInterpreterAndInvalidate();
return executeAndSpecialize(frameValue, arg0Value, arg1Value, arg2Value);
}
private Object executeAndSpecialize(VirtualFrame frameValue, Node arg0Value, Object arg1Value, Object arg2Value) {
int state_0 = this.state_0_;
if (arg2Value instanceof PNone) {
PNone arg2Value_ = (PNone) arg2Value;
state_0 = state_0 | 0b1 /* add SpecializationActive[PyObjectFormat.doNone(VirtualFrame, Node, Object, PNone, PyObjectFormatStr)] */;
this.state_0_ = state_0;
return PyObjectFormat.doNone(frameValue, this, arg1Value, arg2Value_, INLINED_IMPL);
}
state_0 = state_0 | 0b10 /* add SpecializationActive[PyObjectFormat.doOthers(VirtualFrame, Node, Object, Object, PyObjectFormatStr)] */;
this.state_0_ = state_0;
return PyObjectFormat.doOthers(frameValue, this, arg1Value, arg2Value, INLINED_IMPL);
}
@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;
}
@NeverDefault
public static PyObjectFormat create() {
return new PyObjectFormatNodeGen();
}
@NeverDefault
public static PyObjectFormat getUncached() {
return PyObjectFormatNodeGen.UNCACHED;
}
/**
* Required Fields:
* - {@link Inlined#state_0_}
*
- {@link Inlined#impl_field1_}
*
- {@link Inlined#impl_field2_}
*
- {@link Inlined#impl_field3_}
*
*/
@NeverDefault
public static PyObjectFormat inline(@RequiredField(bits = 7, value = StateField.class)@RequiredField(type = Node.class, value = ReferenceField.class)@RequiredField(type = Node.class, value = ReferenceField.class)@RequiredField(type = Node.class, value = ReferenceField.class) InlineTarget target) {
return new PyObjectFormatNodeGen.Inlined(target);
}
@GeneratedBy(PyObjectFormat.class)
@DenyReplace
private static final class Inlined extends PyObjectFormat {
/**
* State Info:
* 0: SpecializationActive {@link PyObjectFormat#doNone}
* 1: SpecializationActive {@link PyObjectFormat#doOthers}
* 2-6: InlinedCache
* Specialization: {@link PyObjectFormat#doNone}
* Parameter: {@link PyObjectFormatStr} formatStr
* Inline method: {@link PyObjectFormatStrNodeGen#inline}
*
*/
private final StateField state_0_;
private final ReferenceField impl_field1_;
private final ReferenceField impl_field2_;
private final ReferenceField impl_field3_;
/**
* Source Info:
* Specialization: {@link PyObjectFormat#doNone}
* Parameter: {@link PyObjectFormatStr} formatStr
* Inline method: {@link PyObjectFormatStrNodeGen#inline}
*/
private final PyObjectFormatStr impl;
@SuppressWarnings("unchecked")
private Inlined(InlineTarget target) {
assert target.getTargetClass().isAssignableFrom(PyObjectFormat.class);
this.state_0_ = target.getState(0, 7);
this.impl_field1_ = target.getReference(1, Node.class);
this.impl_field2_ = target.getReference(2, Node.class);
this.impl_field3_ = target.getReference(3, Node.class);
this.impl = PyObjectFormatStrNodeGen.inline(InlineTarget.create(PyObjectFormatStr.class, state_0_.subUpdater(2, 5), impl_field1_, impl_field2_, impl_field3_));
}
@SuppressWarnings("static-method")
private boolean fallbackGuard_(int state_0, Node arg0Value, Object arg1Value, Object arg2Value) {
if (!((state_0 & 0b1) != 0 /* is SpecializationActive[PyObjectFormat.doNone(VirtualFrame, Node, Object, PNone, PyObjectFormatStr)] */) && arg2Value instanceof PNone) {
return false;
}
return true;
}
@Override
public Object execute(VirtualFrame frameValue, Node arg0Value, Object arg1Value, Object arg2Value) {
int state_0 = this.state_0_.get(arg0Value);
if ((state_0 & 0b11) != 0 /* is SpecializationActive[PyObjectFormat.doNone(VirtualFrame, Node, Object, PNone, PyObjectFormatStr)] || SpecializationActive[PyObjectFormat.doOthers(VirtualFrame, Node, Object, Object, PyObjectFormatStr)] */) {
if ((state_0 & 0b1) != 0 /* is SpecializationActive[PyObjectFormat.doNone(VirtualFrame, Node, Object, PNone, PyObjectFormatStr)] */ && arg2Value instanceof PNone) {
PNone arg2Value_ = (PNone) arg2Value;
return PyObjectFormat.doNone(frameValue, arg0Value, arg1Value, arg2Value_, this.impl);
}
if ((state_0 & 0b10) != 0 /* is SpecializationActive[PyObjectFormat.doOthers(VirtualFrame, Node, Object, Object, PyObjectFormatStr)] */) {
if (fallbackGuard_(state_0, arg0Value, arg1Value, arg2Value)) {
return PyObjectFormat.doOthers(frameValue, arg0Value, arg1Value, arg2Value, this.impl);
}
}
}
CompilerDirectives.transferToInterpreterAndInvalidate();
return executeAndSpecialize(frameValue, arg0Value, arg1Value, arg2Value);
}
private Object executeAndSpecialize(VirtualFrame frameValue, Node arg0Value, Object arg1Value, Object arg2Value) {
int state_0 = this.state_0_.get(arg0Value);
if (arg2Value instanceof PNone) {
PNone arg2Value_ = (PNone) arg2Value;
state_0 = state_0 | 0b1 /* add SpecializationActive[PyObjectFormat.doNone(VirtualFrame, Node, Object, PNone, PyObjectFormatStr)] */;
this.state_0_.set(arg0Value, state_0);
return PyObjectFormat.doNone(frameValue, arg0Value, arg1Value, arg2Value_, this.impl);
}
state_0 = state_0 | 0b10 /* add SpecializationActive[PyObjectFormat.doOthers(VirtualFrame, Node, Object, Object, PyObjectFormatStr)] */;
this.state_0_.set(arg0Value, state_0);
return PyObjectFormat.doOthers(frameValue, arg0Value, arg1Value, arg2Value, this.impl);
}
@Override
public boolean isAdoptable() {
return false;
}
}
@GeneratedBy(PyObjectFormat.class)
@DenyReplace
private static final class Uncached extends PyObjectFormat {
@Override
public Object execute(VirtualFrame frameValue, Node arg0Value, Object arg1Value, Object arg2Value) {
CompilerDirectives.transferToInterpreterAndInvalidate();
if (arg2Value instanceof PNone) {
PNone arg2Value_ = (PNone) arg2Value;
return PyObjectFormat.doNone(frameValue, arg0Value, arg1Value, arg2Value_, (PyObjectFormatStrNodeGen.getUncached()));
}
return PyObjectFormat.doOthers(frameValue, arg0Value, arg1Value, arg2Value, (PyObjectFormatStrNodeGen.getUncached()));
}
@Override
public NodeCost getCost() {
return NodeCost.MEGAMORPHIC;
}
@Override
public boolean isAdoptable() {
return false;
}
}
/**
* Debug Info:
* Specialization {@link PyObjectFormatStr#doString}
* Activation probability: 0.32000
* With/without class size: 7/0 bytes
* Specialization {@link PyObjectFormatStr#doLong}
* Activation probability: 0.26000
* With/without class size: 7/0 bytes
* Specialization {@link PyObjectFormatStr#doGeneric}
* Activation probability: 0.20000
* With/without class size: 8/8 bytes
* Specialization {@link PyObjectFormatStr#doGenericUncached}
* Activation probability: 0.14000
* With/without class size: 5/0 bytes
* Specialization {@link PyObjectFormatStr#doNonStringFormat}
* Activation probability: 0.08000
* With/without class size: 5/4 bytes
*
*/
@GeneratedBy(PyObjectFormatStr.class)
@SuppressWarnings("javadoc")
public static final class PyObjectFormatStrNodeGen {
private static final Uncached UNCACHED = new Uncached();
@NeverDefault
public static PyObjectFormatStr getUncached() {
return PyObjectFormatStrNodeGen.UNCACHED;
}
/**
* Required Fields:
* - {@link Inlined#state_0_}
*
- {@link Inlined#generic_callFormat_}
*
- {@link Inlined#generic_raiseNode_}
*
- {@link Inlined#fallback_raiseNode_}
*
*/
@NeverDefault
public static PyObjectFormatStr inline(@RequiredField(bits = 5, value = StateField.class)@RequiredField(type = Node.class, value = ReferenceField.class)@RequiredField(type = Node.class, value = ReferenceField.class)@RequiredField(type = Node.class, value = ReferenceField.class) InlineTarget target) {
return new PyObjectFormatStrNodeGen.Inlined(target);
}
@GeneratedBy(PyObjectFormatStr.class)
@DenyReplace
private static final class Inlined extends PyObjectFormatStr {
/**
* State Info:
* 0: SpecializationActive {@link PyObjectFormatStr#doString}
* 1: SpecializationActive {@link PyObjectFormatStr#doLong}
* 2: SpecializationActive {@link PyObjectFormatStr#doGeneric}
* 3: SpecializationActive {@link PyObjectFormatStr#doGenericUncached}
* 4: SpecializationActive {@link PyObjectFormatStr#doNonStringFormat}
*
*/
private final StateField state_0_;
private final ReferenceField generic_callFormat_;
private final ReferenceField generic_raiseNode_;
private final ReferenceField fallback_raiseNode_;
@SuppressWarnings("unchecked")
private Inlined(InlineTarget target) {
assert target.getTargetClass().isAssignableFrom(PyObjectFormatStr.class);
this.state_0_ = target.getState(0, 5);
this.generic_callFormat_ = target.getReference(1, LookupAndCallBinaryNode.class);
this.generic_raiseNode_ = target.getReference(2, PRaiseNode.class);
this.fallback_raiseNode_ = target.getReference(3, PRaiseNode.class);
}
@SuppressWarnings("static-method")
private boolean fallbackGuard_(int state_0, Node arg0Value, Object arg1Value, Object arg2Value) {
if (!((state_0 & 0b1) != 0 /* is SpecializationActive[PyObjectFormat.PyObjectFormatStr.doString(Object, Object)] */) && (PGuards.isString(arg1Value)) && (PyObjectFormatStr.isEmptyString(arg2Value))) {
return false;
}
if (!((state_0 & 0b10) != 0 /* is SpecializationActive[PyObjectFormat.PyObjectFormatStr.doLong(long, Object)] */) && arg1Value instanceof Long && (PyObjectFormatStr.isEmptyString(arg2Value))) {
return false;
}
if (!((state_0 & 0b1000) != 0 /* is SpecializationActive[PyObjectFormat.PyObjectFormatStr.doGenericUncached(VirtualFrame, Object, Object)] */) && (PGuards.isString(arg2Value))) {
return false;
}
return true;
}
@Override
public Object execute(Frame frameValue, Node arg0Value, Object arg1Value, Object arg2Value) {
int state_0 = this.state_0_.get(arg0Value);
if (state_0 != 0 /* is SpecializationActive[PyObjectFormat.PyObjectFormatStr.doString(Object, Object)] || SpecializationActive[PyObjectFormat.PyObjectFormatStr.doLong(long, Object)] || SpecializationActive[PyObjectFormat.PyObjectFormatStr.doGeneric(VirtualFrame, Object, Object, LookupAndCallBinaryNode, PRaiseNode)] || SpecializationActive[PyObjectFormat.PyObjectFormatStr.doGenericUncached(VirtualFrame, Object, Object)] || SpecializationActive[PyObjectFormat.PyObjectFormatStr.doNonStringFormat(Object, Object, PRaiseNode)] */) {
if ((state_0 & 0b1) != 0 /* is SpecializationActive[PyObjectFormat.PyObjectFormatStr.doString(Object, Object)] */) {
if ((PGuards.isString(arg1Value)) && (PyObjectFormatStr.isEmptyString(arg2Value))) {
return PyObjectFormatStr.doString(arg1Value, arg2Value);
}
}
if ((state_0 & 0b10) != 0 /* is SpecializationActive[PyObjectFormat.PyObjectFormatStr.doLong(long, Object)] */ && arg1Value instanceof Long) {
long arg1Value_ = (long) arg1Value;
if ((PyObjectFormatStr.isEmptyString(arg2Value))) {
return PyObjectFormatStr.doLong(arg1Value_, arg2Value);
}
}
if ((state_0 & 0b11100) != 0 /* is SpecializationActive[PyObjectFormat.PyObjectFormatStr.doGeneric(VirtualFrame, Object, Object, LookupAndCallBinaryNode, PRaiseNode)] || SpecializationActive[PyObjectFormat.PyObjectFormatStr.doGenericUncached(VirtualFrame, Object, Object)] || SpecializationActive[PyObjectFormat.PyObjectFormatStr.doNonStringFormat(Object, Object, PRaiseNode)] */) {
if ((state_0 & 0b100) != 0 /* is SpecializationActive[PyObjectFormat.PyObjectFormatStr.doGeneric(VirtualFrame, Object, Object, LookupAndCallBinaryNode, PRaiseNode)] */) {
{
LookupAndCallBinaryNode callFormat__ = this.generic_callFormat_.get(arg0Value);
if (callFormat__ != null) {
PRaiseNode raiseNode__ = this.generic_raiseNode_.get(arg0Value);
if (raiseNode__ != null) {
if ((PGuards.isString(arg2Value))) {
return PyObjectFormatStr.doGeneric((VirtualFrame) frameValue, arg1Value, arg2Value, callFormat__, raiseNode__);
}
}
}
}
}
if ((state_0 & 0b1000) != 0 /* is SpecializationActive[PyObjectFormat.PyObjectFormatStr.doGenericUncached(VirtualFrame, Object, Object)] */) {
if ((PGuards.isString(arg2Value))) {
return PyObjectFormatStr.doGenericUncached((VirtualFrame) frameValue, arg1Value, arg2Value);
}
}
if ((state_0 & 0b10000) != 0 /* is SpecializationActive[PyObjectFormat.PyObjectFormatStr.doNonStringFormat(Object, Object, PRaiseNode)] */) {
{
PRaiseNode raiseNode__1 = this.fallback_raiseNode_.get(arg0Value);
if (raiseNode__1 != null) {
if (fallbackGuard_(state_0, arg0Value, arg1Value, arg2Value)) {
return PyObjectFormatStr.doNonStringFormat(arg1Value, arg2Value, raiseNode__1);
}
}
}
}
}
}
CompilerDirectives.transferToInterpreterAndInvalidate();
return executeAndSpecialize(frameValue, arg0Value, arg1Value, arg2Value);
}
private Object executeAndSpecialize(Frame frameValue, Node arg0Value, Object arg1Value, Object arg2Value) {
int state_0 = this.state_0_.get(arg0Value);
if ((PGuards.isString(arg1Value)) && (PyObjectFormatStr.isEmptyString(arg2Value))) {
state_0 = state_0 | 0b1 /* add SpecializationActive[PyObjectFormat.PyObjectFormatStr.doString(Object, Object)] */;
this.state_0_.set(arg0Value, state_0);
return PyObjectFormatStr.doString(arg1Value, arg2Value);
}
if (arg1Value instanceof Long) {
long arg1Value_ = (long) arg1Value;
if ((PyObjectFormatStr.isEmptyString(arg2Value))) {
state_0 = state_0 | 0b10 /* add SpecializationActive[PyObjectFormat.PyObjectFormatStr.doLong(long, Object)] */;
this.state_0_.set(arg0Value, state_0);
return PyObjectFormatStr.doLong(arg1Value_, arg2Value);
}
}
if (((state_0 & 0b1000)) == 0 /* is-not SpecializationActive[PyObjectFormat.PyObjectFormatStr.doGenericUncached(VirtualFrame, Object, Object)] */) {
if ((PGuards.isString(arg2Value))) {
LookupAndCallBinaryNode callFormat__ = arg0Value.insert((LookupAndCallBinaryNode.create(SpecialMethodSlot.Format)));
Objects.requireNonNull(callFormat__, "Specialization 'doGeneric(VirtualFrame, Object, Object, LookupAndCallBinaryNode, PRaiseNode)' cache 'callFormat' returned a 'null' default value. The cache initializer must never return a default value for this cache. Use @Cached(neverDefault=false) to allow default values for this cached value or make sure the cache initializer never returns 'null'.");
VarHandle.storeStoreFence();
this.generic_callFormat_.set(arg0Value, callFormat__);
PRaiseNode raiseNode__ = arg0Value.insert((PRaiseNode.create()));
Objects.requireNonNull(raiseNode__, "Specialization 'doGeneric(VirtualFrame, Object, Object, LookupAndCallBinaryNode, PRaiseNode)' cache 'raiseNode' returned a 'null' default value. The cache initializer must never return a default value for this cache. Use @Cached(neverDefault=false) to allow default values for this cached value or make sure the cache initializer never returns 'null'.");
VarHandle.storeStoreFence();
this.generic_raiseNode_.set(arg0Value, raiseNode__);
state_0 = state_0 | 0b100 /* add SpecializationActive[PyObjectFormat.PyObjectFormatStr.doGeneric(VirtualFrame, Object, Object, LookupAndCallBinaryNode, PRaiseNode)] */;
this.state_0_.set(arg0Value, state_0);
return PyObjectFormatStr.doGeneric((VirtualFrame) frameValue, arg1Value, arg2Value, callFormat__, raiseNode__);
}
}
if ((PGuards.isString(arg2Value))) {
this.generic_callFormat_.set(arg0Value, null);
this.generic_raiseNode_.set(arg0Value, null);
state_0 = state_0 & 0xfffffffb /* remove SpecializationActive[PyObjectFormat.PyObjectFormatStr.doGeneric(VirtualFrame, Object, Object, LookupAndCallBinaryNode, PRaiseNode)] */;
state_0 = state_0 | 0b1000 /* add SpecializationActive[PyObjectFormat.PyObjectFormatStr.doGenericUncached(VirtualFrame, Object, Object)] */;
this.state_0_.set(arg0Value, state_0);
return PyObjectFormatStr.doGenericUncached((VirtualFrame) frameValue, arg1Value, arg2Value);
}
PRaiseNode raiseNode__1 = arg0Value.insert((PRaiseNode.create()));
Objects.requireNonNull(raiseNode__1, "Specialization 'doNonStringFormat(Object, Object, PRaiseNode)' cache 'raiseNode' returned a 'null' default value. The cache initializer must never return a default value for this cache. Use @Cached(neverDefault=false) to allow default values for this cached value or make sure the cache initializer never returns 'null'.");
VarHandle.storeStoreFence();
this.fallback_raiseNode_.set(arg0Value, raiseNode__1);
state_0 = state_0 | 0b10000 /* add SpecializationActive[PyObjectFormat.PyObjectFormatStr.doNonStringFormat(Object, Object, PRaiseNode)] */;
this.state_0_.set(arg0Value, state_0);
return PyObjectFormatStr.doNonStringFormat(arg1Value, arg2Value, raiseNode__1);
}
@Override
public boolean isAdoptable() {
return false;
}
}
@GeneratedBy(PyObjectFormatStr.class)
@DenyReplace
private static final class Uncached extends PyObjectFormatStr {
@Override
public Object execute(Frame frameValue, Node arg0Value, Object arg1Value, Object arg2Value) {
CompilerDirectives.transferToInterpreterAndInvalidate();
if ((PGuards.isString(arg1Value)) && (PyObjectFormatStr.isEmptyString(arg2Value))) {
return PyObjectFormatStr.doString(arg1Value, arg2Value);
}
if (arg1Value instanceof Long) {
long arg1Value_ = (long) arg1Value;
if ((PyObjectFormatStr.isEmptyString(arg2Value))) {
return PyObjectFormatStr.doLong(arg1Value_, arg2Value);
}
}
if ((PGuards.isString(arg2Value))) {
return PyObjectFormatStr.doGenericUncached((VirtualFrame) frameValue, arg1Value, arg2Value);
}
return PyObjectFormatStr.doNonStringFormat(arg1Value, arg2Value, (PRaiseNode.getUncached()));
}
@Override
public NodeCost getCost() {
return NodeCost.MEGAMORPHIC;
}
@Override
public boolean isAdoptable() {
return false;
}
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy