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

com.oracle.truffle.sl.nodes.local.SLReadLocalVariableNodeGen Maven / Gradle / Ivy

The newest version!
// CheckStyle: start generated
package com.oracle.truffle.sl.nodes.local;

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.frame.VirtualFrame;
import com.oracle.truffle.api.nodes.UnexpectedResultException;
import com.oracle.truffle.sl.nodes.SLTypesGen;

/**
 * Debug Info: 
 *   Specialization {@link SLReadLocalVariableNode#readLong}
 *     Activation probability: 0.48333
 *     With/without class size: 9/0 bytes
 *   Specialization {@link SLReadLocalVariableNode#readBoolean}
 *     Activation probability: 0.33333
 *     With/without class size: 8/0 bytes
 *   Specialization {@link SLReadLocalVariableNode#readObject}
 *     Activation probability: 0.18333
 *     With/without class size: 6/0 bytes
 * 
*/ @GeneratedBy(SLReadLocalVariableNode.class) @SuppressWarnings("javadoc") public final class SLReadLocalVariableNodeGen extends SLReadLocalVariableNode { private final int slot; /** * State Info:
     *   0: SpecializationActive {@link SLReadLocalVariableNode#readLong}
     *   1: SpecializationActive {@link SLReadLocalVariableNode#readObject}
     *   2: SpecializationActive {@link SLReadLocalVariableNode#readBoolean}
     * 
*/ @CompilationFinal private int state_0_; private SLReadLocalVariableNodeGen(int slot) { this.slot = slot; } @Override protected int getSlot() { return this.slot; } @Override public Object executeGeneric(VirtualFrame frameValue) { int state_0 = this.state_0_; if (state_0 != 0 /* is SpecializationActive[SLReadLocalVariableNode.readLong(VirtualFrame)] || SpecializationActive[SLReadLocalVariableNode.readBoolean(VirtualFrame)] || SpecializationActive[SLReadLocalVariableNode.readObject(VirtualFrame)] */) { if ((state_0 & 0b1) != 0 /* is SpecializationActive[SLReadLocalVariableNode.readLong(VirtualFrame)] */) { if ((frameValue.isLong(getSlot()))) { return readLong(frameValue); } } if ((state_0 & 0b100) != 0 /* is SpecializationActive[SLReadLocalVariableNode.readBoolean(VirtualFrame)] */) { if ((frameValue.isBoolean(getSlot()))) { return readBoolean(frameValue); } } if ((state_0 & 0b10) != 0 /* is SpecializationActive[SLReadLocalVariableNode.readObject(VirtualFrame)] */) { return readObject(frameValue); } } CompilerDirectives.transferToInterpreterAndInvalidate(); return executeAndSpecialize(frameValue); } @Override public boolean executeBoolean(VirtualFrame frameValue) throws UnexpectedResultException { int state_0 = this.state_0_; if ((state_0 & 0b10) != 0 /* is SpecializationActive[SLReadLocalVariableNode.readObject(VirtualFrame)] */) { return SLTypesGen.expectBoolean(executeGeneric(frameValue)); } if ((state_0 & 0b100) != 0 /* is SpecializationActive[SLReadLocalVariableNode.readBoolean(VirtualFrame)] */) { if ((frameValue.isBoolean(getSlot()))) { return readBoolean(frameValue); } } CompilerDirectives.transferToInterpreterAndInvalidate(); return SLTypesGen.expectBoolean(executeAndSpecialize(frameValue)); } @Override public long executeLong(VirtualFrame frameValue) throws UnexpectedResultException { int state_0 = this.state_0_; if ((state_0 & 0b10) != 0 /* is SpecializationActive[SLReadLocalVariableNode.readObject(VirtualFrame)] */) { return SLTypesGen.expectLong(executeGeneric(frameValue)); } if ((state_0 & 0b1) != 0 /* is SpecializationActive[SLReadLocalVariableNode.readLong(VirtualFrame)] */) { if ((frameValue.isLong(getSlot()))) { return readLong(frameValue); } } CompilerDirectives.transferToInterpreterAndInvalidate(); return SLTypesGen.expectLong(executeAndSpecialize(frameValue)); } @Override public void executeVoid(VirtualFrame frameValue) { int state_0 = this.state_0_; try { if ((state_0 & 0b110) == 0 /* only-active SpecializationActive[SLReadLocalVariableNode.readLong(VirtualFrame)] */ && (state_0 != 0 /* is-not SpecializationActive[SLReadLocalVariableNode.readLong(VirtualFrame)] && SpecializationActive[SLReadLocalVariableNode.readBoolean(VirtualFrame)] && SpecializationActive[SLReadLocalVariableNode.readObject(VirtualFrame)] */)) { executeLong(frameValue); return; } else if ((state_0 & 0b11) == 0 /* only-active SpecializationActive[SLReadLocalVariableNode.readBoolean(VirtualFrame)] */ && (state_0 != 0 /* is-not SpecializationActive[SLReadLocalVariableNode.readLong(VirtualFrame)] && SpecializationActive[SLReadLocalVariableNode.readBoolean(VirtualFrame)] && SpecializationActive[SLReadLocalVariableNode.readObject(VirtualFrame)] */)) { executeBoolean(frameValue); return; } executeGeneric(frameValue); return; } catch (UnexpectedResultException ex) { CompilerDirectives.transferToInterpreterAndInvalidate(); return; } } private Object executeAndSpecialize(VirtualFrame frameValue) { int state_0 = this.state_0_; if (((state_0 & 0b10)) == 0 /* is-not SpecializationActive[SLReadLocalVariableNode.readObject(VirtualFrame)] */) { if ((frameValue.isLong(getSlot()))) { state_0 = state_0 | 0b1 /* add SpecializationActive[SLReadLocalVariableNode.readLong(VirtualFrame)] */; this.state_0_ = state_0; return readLong(frameValue); } } if (((state_0 & 0b10)) == 0 /* is-not SpecializationActive[SLReadLocalVariableNode.readObject(VirtualFrame)] */) { if ((frameValue.isBoolean(getSlot()))) { state_0 = state_0 | 0b100 /* add SpecializationActive[SLReadLocalVariableNode.readBoolean(VirtualFrame)] */; this.state_0_ = state_0; return readBoolean(frameValue); } } state_0 = state_0 & 0xfffffffa /* remove SpecializationActive[SLReadLocalVariableNode.readLong(VirtualFrame)], SpecializationActive[SLReadLocalVariableNode.readBoolean(VirtualFrame)] */; state_0 = state_0 | 0b10 /* add SpecializationActive[SLReadLocalVariableNode.readObject(VirtualFrame)] */; this.state_0_ = state_0; return readObject(frameValue); } @NeverDefault public static SLReadLocalVariableNode create(int slot) { return new SLReadLocalVariableNodeGen(slot); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy