bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
public synchronized void close() throws IOException { if (impl != null) impl.close(); if (ch != null) ch.close(); closed = true; } | public synchronized void close() throws IOException { if (impl != null) impl.close(); if (ch != null) ch.close(); closed = true; } | 25,997 |
protected int getPort() { return port; } | protected int getPort() { return port; } | 25,998 |
public X86BytecodeVisitor(NativeStream outputStream, CompiledMethod cm, boolean isBootstrap, X86CompilerContext context) { this.os = (AbstractX86Stream) outputStream; this.context = context; this.vstack = new VirtualStack(os); this.helper = new X86CompilerHelper(os, vstack.cre... | public X86BytecodeVisitor(NativeStream outputStream, CompiledMethod cm, boolean isBootstrap, X86CompilerContext context) { this.os = (AbstractX86Stream) outputStream; this.context = context; this.vstack = new VirtualStack(os); this.helper = new X86CompilerHelper(os, vstack.cre... | 26,000 |
private final void assertCondition(boolean cond, String message) { if (!cond) throw new Error("assert failed at addresss " + curAddress + ": " + message); } | private final void assertCondition(boolean cond, String message) { if (!cond) throw new Error("assert failed at addresss " + curAddress + ": " + message); } | 26,001 |
private final void checkBounds(RefItem ref, IntItem index) { final Label ok = new Label(curInstrLabel + "$$cbok"); // CMP length, index assertCondition(ref.isRegister(), "ref must be in a register"); final Register r = ref.getRegister(); if (index.isConstant()) { //TODO... | private final void checkBounds(RefItem ref, IntItem index) { final Label ok = new Label(curInstrLabel + "$$cbok"); // CMP length, index assertCondition(ref.isRegister(), "ref must be in a register"); final Register r = ref.getRegister(); if (index.isConstant()) { //TODO... | 26,002 |
private final void dropParameters(VmMethod method, boolean hasSelf) { //TODO: check parameter types final int count = method.getNoArguments() + ((hasSelf) ? 1 : 0); for (int i = 0; (!vstack.isEmpty() && (i < count)); i++) { Item v = vstack.pop(); v.release1(eContext); ... | private final void dropParameters(VmMethod method, boolean hasSelf) { //TODO: check parameter types final int count = method.getNoArguments() + ((hasSelf) ? 1 : 0); for (int i = 0; (!vstack.isEmpty() && (i < count)); i++) { Item v = vstack.pop(); v.release1(eContext); ... | 26,003 |
public void endBasicBlock() { // flush vstack: at end/begin of basic block are all items on the stack vstack.push(eContext); } | public void endBasicBlock() { // flush vstack: at end/begin of basic block are all items on the stack vstack.push(eContext); } | 26,004 |
public void endInlinedMethod(VmMethod previousMethod) { helper.setMethod(previousMethod); os.setObjectRef(endOfInlineLabel); this.currentMethod = previousMethod; this.outerMethodStack = null; if (debug) { BootLog.debug("endInlinedMethod"); } } | public void endInlinedMethod(VmMethod previousMethod) { helper.setMethod(previousMethod); os.setObjectRef(endOfInlineLabel); this.currentMethod = previousMethod; this.outerMethodStack = null; if (debug) { BootLog.debug("endInlinedMethod"); } } | 26,005 |
public void endInstruction() { // Verify the register usage // No registers can be in use, unless they are on the virtual stack. final X86RegisterPool pool = eContext.getPool(); pool.visitUsedRegisters(new RegisterVisitor() { public void visit(Register reg) { if... | public void endInstruction() { // Verify the register usage // No registers can be in use, unless they are on the virtual stack. final X86RegisterPool pool = eContext.getPool(); pool.visitUsedRegisters(new RegisterVisitor() { public void visit(Register reg) { if... | 26,006 |
public void endInstruction() { // Verify the register usage // No registers can be in use, unless they are on the virtual stack. final X86RegisterPool pool = eContext.getPool(); pool.visitUsedRegisters(new RegisterVisitor() { public void visit(Register reg) { if... | public void endInstruction() { // Verify the register usage // No registers can be in use, unless they are on the virtual stack. final X86RegisterPool pool = eContext.getPool(); pool.visitUsedRegisters(new RegisterVisitor() { public void visit(Register reg) { if... | 26,007 |
public void visit(Register reg) { if (!vstack.uses(reg)) { throw new InternalError( "Register " + reg + " is in use outsite of the vstack at bytecode address " + curAddress); } ... | public void visit(Register reg) { if (!vstack.uses(reg)) { throw new InternalError( "Register " + reg + " is in use outsite of the vstack at bytecode address " + curAddress); } ... | 26,008 |
public void endMethod() { stackFrame.emitTrailer(maxLocals); } | public void endMethod() { stackFrame.emitTrailer(maxLocals); } | 26,009 |
public void endTryBlock() { setCurInstrLabel = true; } | public void endTryBlock() { setCurInstrLabel = true; } | 26,010 |
private final void generic_pop(int size) { final Item v = vstack.pop(); assertCondition(v.getCategory() == (size >> 2), "category mismatch"); if (v.getKind() == Item.Kind.STACK) { // sanity check if (VirtualStack.checkOperandStack) { vstack.operandStack.pop(... | private final void generic_pop(int size) { final Item v = vstack.pop(); assertCondition(v.getCategory() == (size >> 2), "category mismatch"); if (v.getKind() == Item.Kind.STACK) { // sanity check if (VirtualStack.checkOperandStack) { vstack.operandStack.pop(... | 26,011 |
private final void instanceOf(Register objectr, Label trueLabel) { //TODO: port to orp-style final Label loopLabel = new Label(this.curInstrLabel + "loop"); final Label notInstanceOfLabel = new Label(this.curInstrLabel + "notInstanceOf"); /* Is objectref null? */ os... | private final void instanceOf(Register objectr, Label trueLabel) { //TODO: port to orp-style final Label loopLabel = new Label(this.curInstrLabel + "loop"); final Label notInstanceOfLabel = new Label(this.curInstrLabel + "notInstanceOf"); /* Is objectref null? */ os... | 26,012 |
private final void instanceOf(Register objectr, Label trueLabel) { //TODO: port to orp-style final Label loopLabel = new Label(this.curInstrLabel + "loop"); final Label notInstanceOfLabel = new Label(this.curInstrLabel + "notInstanceOf"); /* Is objectref null? */ os... | private final void instanceOf(Register objectr, Label trueLabel) { //TODO: port to orp-style final Label loopLabel = new Label(this.curInstrLabel + "loop"); final Label notInstanceOfLabel = new Label(this.curInstrLabel + "notInstanceOf"); /* Is objectref null? */ os... | 26,013 |
private final void instanceOf(Register objectr, Label trueLabel) { //TODO: port to orp-style final Label loopLabel = new Label(this.curInstrLabel + "loop"); final Label notInstanceOfLabel = new Label(this.curInstrLabel + "notInstanceOf"); /* Is objectref null? */ os... | private final void instanceOf(Register objectr, Label trueLabel) { //TODO: port to orp-style final Label loopLabel = new Label(this.curInstrLabel + "loop"); final Label notInstanceOfLabel = new Label(this.curInstrLabel + "notInstanceOf"); /* Is objectref null? */ os... | 26,014 |
private final void prepareForOperation(Item destAndSource, Item source) { // WARNING: source was on top of the virtual stack (thus higher than // destAndSource) // x86 can only deal with one complex argument // destAndSource must be a register source.loadIf(eContext, (Item.Kind.ST... | private final void prepareForOperation(Item destAndSource, Item source) { // WARNING: source was on top of the virtual stack (thus higher than // destAndSource) // x86 can only deal with one complex argument // destAndSource must be a register source.loadIf(eContext, (Item.Kind.ST... | 26,015 |
private final void releaseRegister(Register reg) { final X86RegisterPool pool = eContext.getPool(); pool.release(reg); } | private final void releaseRegister(Register reg) { final X86RegisterPool pool = eContext.getPool(); pool.release(reg); } | 26,016 |
private final DoubleWordItem requestDoubleWordRegisters(int jvmType) { final X86RegisterPool pool = eContext.getPool(); final Register lsb = requestRegister(JvmType.INT); final Register msb = requestRegister(JvmType.INT); final DoubleWordItem result = DoubleWordItem.createReg(jvmType, ls... | private final DoubleWordItem requestDoubleWordRegisters(int jvmType) { final X86RegisterPool pool = eContext.getPool(); final Register lsb = requestRegister(JvmType.INT); final Register msb = requestRegister(JvmType.INT); final DoubleWordItem result = DoubleWordItem.createReg(jvmType, ls... | 26,017 |
private final Register requestRegister(int type) { final X86RegisterPool pool = eContext.getPool(); Register r = pool.request(type); if (r == null) { vstack.push(eContext); r = pool.request(type); } assertCondition(r != null, "failed to request register"); ... | private final Register requestRegister(int type) { final X86RegisterPool pool = eContext.getPool(); Register r = pool.request(type); if (r == null) { vstack.push(eContext); r = pool.request(type); } assertCondition(r != null, "failed to request register"); ... | 26,018 |
private final WordItem requestWordRegister(int jvmType) { final X86RegisterPool pool = eContext.getPool(); final Register reg = requestRegister(JvmType.INT); final WordItem result = WordItem.createReg(jvmType, reg); pool.transferOwnerTo(reg, result); return result; } | private final WordItem requestWordRegister(int jvmType) { final X86RegisterPool pool = eContext.getPool(); final Register reg = requestRegister(JvmType.INT); final WordItem result = WordItem.createReg(jvmType, reg); pool.transferOwnerTo(reg, result); return result; } | 26,019 |
public void setParser(BytecodeParser parser) { // Nothing to do here } | public void setParser(BytecodeParser parser) { // Nothing to do here } | 26,020 |
public void startBasicBlock(BasicBlock bb) { if (log) { os.log("Start of basic block " + bb); } if (debug) { BootLog.debug("-- Start of BB"); } startOfBB = true; this.vstack.reset(); eContext.getPool().reset(os); // Push the result from t... | public void startBasicBlock(BasicBlock bb) { if (log) { os.log("Start of basic block " + bb); } if (debug) { BootLog.debug("-- Start of BB"); } startOfBB = true; this.vstack.reset(); eContext.getPool().reset(os); // Push the result from t... | 26,021 |
public void startInlinedMethodCode(VmMethod inlinedMethod, int newMaxLocals) { if (debug) { BootLog.debug("startInlinedMethodCode(" + inlinedMethod + ")"); } //TODO: check whether this is really needed // For now yes, because a new basic block resets the registerpool //... | public void startInlinedMethodCode(VmMethod inlinedMethod, int newMaxLocals) { if (debug) { BootLog.debug("startInlinedMethodCode(" + inlinedMethod + ")"); } //TODO: check whether this is really needed // For now yes, because a new basic block resets the registerpool //... | 26,022 |
public void startInlinedMethodHeader(VmMethod inlinedMethod, int newMaxLocals) { if (debug) { BootLog.debug("startInlinedMethodHeader(" + inlinedMethod + ")"); } maxLocals = newMaxLocals; endOfInlineLabel = new Label(curInstrLabel + "_end_of_inline"); helper.... | public void startInlinedMethodHeader(VmMethod inlinedMethod, int newMaxLocals) { if (debug) { BootLog.debug("startInlinedMethodHeader(" + inlinedMethod + ")"); } maxLocals = newMaxLocals; endOfInlineLabel = new Label(curInstrLabel + "_end_of_inline"); helper.... | 26,023 |
public void startInstruction(int address) { if (debug) { BootLog.debug("#" + address + "\t" + vstack); } this.curAddress = address; this.curInstrLabel = helper.getInstrLabel(address); if (startOfBB || setCurInstrLabel) { os.setObjectRef(curInstrLabel); ... | public void startInstruction(int address) { if (debug) { BootLog.debug("#" + address + "\t" + vstack); } this.curAddress = address; this.curInstrLabel = helper.getInstrLabel(address); if (startOfBB || setCurInstrLabel) { os.setObjectRef(curInstrLabel); ... | 26,024 |
public void startMethod(VmMethod method) { if (debug) { BootLog.debug("setMethod(" + method + ")"); } this.currentMethod = method; this.maxLocals = method.getBytecode().getNoLocals(); this.loader = method.getDeclaringClass().getLoader(); helper.setMethod(method);... | public void startMethod(VmMethod method) { if (debug) { BootLog.debug("setMethod(" + method + ")"); } this.currentMethod = method; this.maxLocals = method.getBytecode().getNoLocals(); this.loader = method.getDeclaringClass().getLoader(); helper.setMethod(method);... | 26,025 |
public void startTryBlock() { setCurInstrLabel = true; } | public void startTryBlock() { setCurInstrLabel = true; } | 26,026 |
public final void visit_aaload() { IntItem idx = vstack.popInt(); RefItem ref = vstack.popRef(); idx.loadIf(eContext, ~Item.Kind.CONSTANT); ref.load(eContext); Register refReg = ref.getRegister(); checkBounds(ref, idx); if (idx.getKind() == Item.Kind.CONSTANT) { ... | public final void visit_aaload() { IntItem idx = vstack.popInt(); RefItem ref = vstack.popRef(); idx.loadIf(eContext, ~Item.Kind.CONSTANT); ref.load(eContext); Register refReg = ref.getRegister(); checkBounds(ref, idx); if (idx.getKind() == Item.Kind.CONSTANT) { ... | 26,027 |
public final void visit_aastore() { final boolean useBarrier = (context.getWriteBarrier() != null); RefItem val = vstack.popRef(); IntItem idx = vstack.popInt(); RefItem ref = vstack.popRef(); //IMPROVE: optimize case with const value val.load(eContext); // if barrie... | public final void visit_aastore() { final boolean useBarrier = (context.getWriteBarrier() != null); RefItem val = vstack.popRef(); IntItem idx = vstack.popInt(); RefItem ref = vstack.popRef(); //IMPROVE: optimize case with const value val.load(eContext); // if barrie... | 26,028 |
public final void visit_aastore() { final boolean useBarrier = (context.getWriteBarrier() != null); RefItem val = vstack.popRef(); IntItem idx = vstack.popInt(); RefItem ref = vstack.popRef(); //IMPROVE: optimize case with const value val.load(eContext); // if barrie... | public final void visit_aastore() { final boolean useBarrier = (context.getWriteBarrier() != null); RefItem val = vstack.popRef(); IntItem idx = vstack.popInt(); RefItem ref = vstack.popRef(); //IMPROVE: optimize case with const value val.load(eContext); // if barrie... | 26,029 |
public final void visit_aastore() { final boolean useBarrier = (context.getWriteBarrier() != null); RefItem val = vstack.popRef(); IntItem idx = vstack.popInt(); RefItem ref = vstack.popRef(); //IMPROVE: optimize case with const value val.load(eContext); // if barrie... | public final void visit_aastore() { final boolean useBarrier = (context.getWriteBarrier() != null); RefItem val = vstack.popRef(); IntItem idx = vstack.popInt(); RefItem ref = vstack.popRef(); //IMPROVE: optimize case with const value val.load(eContext); // if barrie... | 26,030 |
public final void visit_aastore() { final boolean useBarrier = (context.getWriteBarrier() != null); RefItem val = vstack.popRef(); IntItem idx = vstack.popInt(); RefItem ref = vstack.popRef(); //IMPROVE: optimize case with const value val.load(eContext); // if barrie... | public final void visit_aastore() { final boolean useBarrier = (context.getWriteBarrier() != null); RefItem val = vstack.popRef(); IntItem idx = vstack.popInt(); RefItem ref = vstack.popRef(); //IMPROVE: optimize case with const value val.load(eContext); // if barrie... | 26,031 |
public final void visit_aconst_null() { vstack.push(RefItem.createConst(null)); } | public final void visit_aconst_null() { vstack.push(RefItem.createConst(null)); } | 26,032 |
public final void visit_aload(int index) { vstack.push(RefItem.createLocal(stackFrame.getEbpOffset(index))); } | public final void visit_aload(int index) { vstack.push(RefItem.createLocal(stackFrame.getEbpOffset(index))); } | 26,033 |
public final void visit_anewarray(VmConstClass classRef) { final IntItem cnt = vstack.popInt(); // Load the count value cnt.load(eContext); final Register cntr = cnt.getRegister(); // Request tmp register final Register classr = requestRegister(JvmType.INT); writeRes... | public final void visit_anewarray(VmConstClass classRef) { requestRegister(EAX); // Load the count value cnt.load(eContext); final Register cntr = cnt.getRegister(); // Request tmp register final Register classr = requestRegister(JvmType.INT); writeResolveAndLoadCla... | 26,034 |
public final void visit_anewarray(VmConstClass classRef) { final IntItem cnt = vstack.popInt(); // Load the count value cnt.load(eContext); final Register cntr = cnt.getRegister(); // Request tmp register final Register classr = requestRegister(JvmType.INT); writeRes... | public final void visit_anewarray(VmConstClass classRef) { final IntItem cnt = vstack.popInt(); // Load the count value cnt.load(eContext); final Register cntr = cnt.getRegister(); // Request tmp register final Register classr = requestRegister(JvmType.INT); writeRes... | 26,035 |
public final void visit_anewarray(VmConstClass classRef) { final IntItem cnt = vstack.popInt(); // Load the count value cnt.load(eContext); final Register cntr = cnt.getRegister(); // Request tmp register final Register classr = requestRegister(JvmType.INT); writeRes... | public final void visit_anewarray(VmConstClass classRef) { final IntItem cnt = vstack.popInt(); // Load the count value cnt.load(eContext); final Register cntr = cnt.getRegister(); // Request tmp register final Register classr = requestRegister(JvmType.INT); cnt.loa... | 26,036 |
public final void visit_anewarray(VmConstClass classRef) { final IntItem cnt = vstack.popInt(); // Load the count value cnt.load(eContext); final Register cntr = cnt.getRegister(); // Request tmp register final Register classr = requestRegister(JvmType.INT); writeRes... | public final void visit_anewarray(VmConstClass classRef) { final IntItem cnt = vstack.popInt(); // Load the count value cnt.load(eContext); final Register cntr = cnt.getRegister(); // Request tmp register final Register classr = requestRegister(JvmType.INT); writeRes... | 26,037 |
public final void visit_anewarray(VmConstClass classRef) { final IntItem cnt = vstack.popInt(); // Load the count value cnt.load(eContext); final Register cntr = cnt.getRegister(); // Request tmp register final Register classr = requestRegister(JvmType.INT); writeRes... | public final void visit_anewarray(VmConstClass classRef) { final IntItem cnt = vstack.popInt(); // Load the count value cnt.load(eContext); final Register cntr = cnt.getRegister(); // Request tmp register final Register classr = requestRegister(JvmType.INT); writeRes... | 26,038 |
public final void visit_areturn() { final RefItem val = vstack.popRef(); if (!val.uses(EAX)) { requestRegister(EAX, val); val.loadTo(eContext, EAX); } val.release(eContext); visit_return(); } | public final void visit_areturn() { final RefItem val = vstack.popRef(); if (!val.uses(EAX)) { requestRegister(EAX, val); val.loadTo(eContext, EAX); } val.release(eContext); visit_return(); } | 26,039 |
public final void visit_areturn() { final RefItem val = vstack.popRef(); if (!val.uses(EAX)) { requestRegister(EAX, val); val.loadTo(eContext, EAX); } val.release(eContext); visit_return(); } | public final void visit_areturn() { final RefItem val = vstack.popRef(); if (!val.uses(EAX)) { requestRegister(EAX, val); val.loadTo(eContext, EAX); } val.release(eContext); visit_return(); } | 26,040 |
public final void visit_arraylength() { final RefItem ref = vstack.popRef(); ref.load(eContext); final Register r = ref.getRegister(); os.writeMOV(INTSIZE, r, r, VmArray.LENGTH_OFFSET * slotSize); final IntItem i = IntItem.createReg(r); eContext.getPool().transferOwnerTo(r,... | public final void visit_arraylength() { final RefItem ref = vstack.popRef(); ref.load(eContext); final Register r = ref.getRegister(); os.writeMOV(INTSIZE, r, r, VmArray.LENGTH_OFFSET * slotSize); final IntItem i = IntItem.createReg(r); eContext.getPool().transferOwnerTo(r,... | 26,041 |
public final void visit_arraylength() { final RefItem ref = vstack.popRef(); ref.load(eContext); final Register r = ref.getRegister(); os.writeMOV(INTSIZE, r, r, VmArray.LENGTH_OFFSET * slotSize); final IntItem i = IntItem.createReg(r); eContext.getPool().transferOwnerTo(r,... | public final void visit_arraylength() { final RefItem ref = vstack.popRef(); ref.load(eContext); final Register r = ref.getRegister(); os.writeMOV(INTSIZE, r, r, arrayLengthOffset); final IntItem i = IntItem.createReg(r); eContext.getPool().transferOwnerTo(r, i); vst... | 26,042 |
public final void visit_arraylength() { final RefItem ref = vstack.popRef(); ref.load(eContext); final Register r = ref.getRegister(); os.writeMOV(INTSIZE, r, r, VmArray.LENGTH_OFFSET * slotSize); final IntItem i = IntItem.createReg(r); eContext.getPool().transferOwnerTo(r,... | public final void visit_arraylength() { final RefItem ref = vstack.popRef(); ref.load(eContext); final Register r = ref.getRegister(); os.writeMOV(INTSIZE, r, r, VmArray.LENGTH_OFFSET * slotSize); final IntItem i = IntItem.createReg(r); eContext.getPool().transferOwnerTo(r,... | 26,043 |
public final void visit_astore(int index) { if (debug) { BootLog.debug("astore_" + index + "\t" + vstack); } int disp = stackFrame.getEbpOffset(index); // Pin down (load) other references to this local vstack.loadLocal(eContext, disp); RefItem i = vstack.popRef()... | public final void visit_astore(int index) { if (debug) { BootLog.debug("astore_" + index + "\t" + vstack); } int disp = stackFrame.getEbpOffset(index); // Pin down (load) other references to this local vstack.loadLocal(eContext, disp); RefItem i = vstack.popRef()... | 26,044 |
public final void visit_astore(int index) { if (debug) { BootLog.debug("astore_" + index + "\t" + vstack); } int disp = stackFrame.getEbpOffset(index); // Pin down (load) other references to this local vstack.loadLocal(eContext, disp); RefItem i = vstack.popRef()... | public final void visit_astore(int index) { if (debug) { BootLog.debug("astore_" + index + "\t" + vstack); } int disp = stackFrame.getEbpOffset(index); // Pin down (load) other references to this local vstack.loadLocal(eContext, disp); RefItem i = vstack.popRef()... | 26,045 |
public final void visit_astore(int index) { if (debug) { BootLog.debug("astore_" + index + "\t" + vstack); } int disp = stackFrame.getEbpOffset(index); // Pin down (load) other references to this local vstack.loadLocal(eContext, disp); RefItem i = vstack.popRef()... | public final void visit_astore(int index) { if (debug) { BootLog.debug("astore_" + index + "\t" + vstack); } int disp = stackFrame.getEbpOffset(index); // Pin down (load) other references to this local vstack.loadLocal(eContext, disp); RefItem i = vstack.popRef()... | 26,046 |
public final void visit_athrow() { final RefItem ref = vstack.popRef(); // Exception must be in EAX if (!ref.uses(EAX)) { requestRegister(EAX, ref); ref.loadTo(eContext, EAX); } helper.writeJumpTableCALL(X86JumpTable.VM_ATHROW_OFS); ref.release(eContex... | public final void visit_athrow() { final RefItem ref = vstack.popRef(); // Exception must be in EAX if (!ref.uses(EAX)) { requestRegister(EAX, ref); ref.loadTo(eContext, EAX); } helper.writeJumpTableCALL(X86JumpTable.VM_ATHROW_OFS); ref.release(eContex... | 26,047 |
public final void visit_athrow() { final RefItem ref = vstack.popRef(); // Exception must be in EAX if (!ref.uses(EAX)) { requestRegister(EAX, ref); ref.loadTo(eContext, EAX); } helper.writeJumpTableCALL(X86JumpTable.VM_ATHROW_OFS); ref.release(eContex... | public final void visit_athrow() { final RefItem ref = vstack.popRef(); // Exception must be in EAX if (!ref.uses(EAX)) { requestRegister(EAX, ref); ref.loadTo(eContext, EAX); } helper.writeJumpTableCALL(X86JumpTable.VM_ATHROW_OFS); ref.release(eContex... | 26,048 |
public final void visit_athrow() { final RefItem ref = vstack.popRef(); // Exception must be in EAX if (!ref.uses(EAX)) { requestRegister(EAX, ref); ref.loadTo(eContext, EAX); } helper.writeJumpTableCALL(X86JumpTable.VM_ATHROW_OFS); ref.release(eContex... | public final void visit_athrow() { final RefItem ref = vstack.popRef(); // Exception must be in EAX if (!ref.uses(EAX)) { requestRegister(EAX, ref); ref.loadTo(eContext, EAX); } helper.writeJumpTableCALL(X86JumpTable.VM_ATHROW_OFS); ref.release(eContex... | 26,049 |
public final void visit_baload() { IntItem idx = vstack.popInt(); RefItem ref = vstack.popRef(); idx.loadIf(eContext, ~Item.Kind.CONSTANT); ref.load(eContext); final Register r = ref.getRegister(); checkBounds(ref, idx); if (idx.getKind() == Item.Kind.CONSTANT) { ... | public final void visit_baload() { IntItem idx = vstack.popInt(); RefItem ref = vstack.popRef(); idx.loadIf(eContext, ~Item.Kind.CONSTANT); ref.load(eContext); final Register r = ref.getRegister(); checkBounds(ref, idx); if (idx.getKind() == Item.Kind.CONSTANT) { ... | 26,050 |
public final void visit_baload() { IntItem idx = vstack.popInt(); RefItem ref = vstack.popRef(); idx.loadIf(eContext, ~Item.Kind.CONSTANT); ref.load(eContext); final Register r = ref.getRegister(); checkBounds(ref, idx); if (idx.getKind() == Item.Kind.CONSTANT) { ... | public final void visit_baload() { IntItem idx = vstack.popInt(); RefItem ref = vstack.popRef(); idx.loadIf(eContext, ~Item.Kind.CONSTANT); ref.load(eContext); final Register r = ref.getRegister(); checkBounds(ref, idx); if (idx.getKind() == Item.Kind.CONSTANT) { ... | 26,051 |
public final void visit_baload() { IntItem idx = vstack.popInt(); RefItem ref = vstack.popRef(); idx.loadIf(eContext, ~Item.Kind.CONSTANT); ref.load(eContext); final Register r = ref.getRegister(); checkBounds(ref, idx); if (idx.getKind() == Item.Kind.CONSTANT) { ... | public final void visit_baload() { IntItem idx = vstack.popInt(); RefItem ref = vstack.popRef(); idx.loadIf(eContext, ~Item.Kind.CONSTANT); ref.load(eContext); final Register r = ref.getRegister(); checkBounds(ref, idx); if (idx.getKind() == Item.Kind.CONSTANT) { ... | 26,052 |
public final void visit_bastore() { IntItem val = vstack.popInt(); IntItem idx = vstack.popInt(); RefItem ref = vstack.popRef(); //IMPROVE: optimize case with const value val.load(eContext); idx.loadIf(eContext, ~Item.Kind.CONSTANT); ref.load(eContext); final ... | public final void visit_bastore() { IntItem val = vstack.popInt(); IntItem idx = vstack.popInt(); RefItem ref = vstack.popRef(); //IMPROVE: optimize case with const value val.load(eContext); idx.loadIf(eContext, ~Item.Kind.CONSTANT); ref.load(eContext); final ... | 26,053 |
public final void visit_bastore() { IntItem val = vstack.popInt(); IntItem idx = vstack.popInt(); RefItem ref = vstack.popRef(); //IMPROVE: optimize case with const value val.load(eContext); idx.loadIf(eContext, ~Item.Kind.CONSTANT); ref.load(eContext); final ... | public final void visit_bastore() { IntItem val = vstack.popInt(); IntItem idx = vstack.popInt(); RefItem ref = vstack.popRef(); //IMPROVE: optimize case with const value val.load(eContext); idx.loadIf(eContext, ~Item.Kind.CONSTANT); ref.load(eContext); final ... | 26,054 |
public final void visit_bastore() { IntItem val = vstack.popInt(); IntItem idx = vstack.popInt(); RefItem ref = vstack.popRef(); //IMPROVE: optimize case with const value val.load(eContext); idx.loadIf(eContext, ~Item.Kind.CONSTANT); ref.load(eContext); final ... | public final void visit_bastore() { IntItem val = vstack.popInt(); IntItem idx = vstack.popInt(); RefItem ref = vstack.popRef(); //IMPROVE: optimize case with const value val.load(eContext); idx.loadIf(eContext, ~Item.Kind.CONSTANT); ref.load(eContext); final ... | 26,055 |
public final void visit_caload() { IntItem idx = vstack.popInt(); RefItem ref = vstack.popRef(); idx.loadIf(eContext, ~Item.Kind.CONSTANT); ref.load(eContext); final Register r = ref.getRegister(); checkBounds(ref, idx); if (idx.getKind() == Item.Kind.CONSTANT) { ... | public final void visit_caload() { IntItem idx = vstack.popInt(); RefItem ref = vstack.popRef(); idx.loadIf(eContext, ~Item.Kind.CONSTANT); ref.load(eContext); final Register r = ref.getRegister(); checkBounds(ref, idx); if (idx.getKind() == Item.Kind.CONSTANT) { ... | 26,056 |
public final void visit_caload() { IntItem idx = vstack.popInt(); RefItem ref = vstack.popRef(); idx.loadIf(eContext, ~Item.Kind.CONSTANT); ref.load(eContext); final Register r = ref.getRegister(); checkBounds(ref, idx); if (idx.getKind() == Item.Kind.CONSTANT) { ... | public final void visit_caload() { IntItem idx = vstack.popInt(); RefItem ref = vstack.popRef(); idx.loadIf(eContext, ~Item.Kind.CONSTANT); ref.load(eContext); final Register r = ref.getRegister(); checkBounds(ref, idx); if (idx.getKind() == Item.Kind.CONSTANT) { ... | 26,057 |
public final void visit_caload() { IntItem idx = vstack.popInt(); RefItem ref = vstack.popRef(); idx.loadIf(eContext, ~Item.Kind.CONSTANT); ref.load(eContext); final Register r = ref.getRegister(); checkBounds(ref, idx); if (idx.getKind() == Item.Kind.CONSTANT) { ... | public final void visit_caload() { IntItem idx = vstack.popInt(); RefItem ref = vstack.popRef(); idx.loadIf(eContext, ~Item.Kind.CONSTANT); ref.load(eContext); final Register r = ref.getRegister(); checkBounds(ref, idx); if (idx.getKind() == Item.Kind.CONSTANT) { ... | 26,058 |
public final void visit_castore() { IntItem val = vstack.popInt(); IntItem idx = vstack.popInt(); RefItem ref = vstack.popRef(); //IMPROVE: optimize case with const value val.load(eContext); idx.loadIf(eContext, ~Item.Kind.CONSTANT); ref.load(eContext); final ... | public final void visit_castore() { IntItem val = vstack.popInt(); IntItem idx = vstack.popInt(); RefItem ref = vstack.popRef(); //IMPROVE: optimize case with const value val.load(eContext); idx.loadIf(eContext, ~Item.Kind.CONSTANT); ref.load(eContext); final ... | 26,059 |
public final void visit_castore() { IntItem val = vstack.popInt(); IntItem idx = vstack.popInt(); RefItem ref = vstack.popRef(); //IMPROVE: optimize case with const value val.load(eContext); idx.loadIf(eContext, ~Item.Kind.CONSTANT); ref.load(eContext); final ... | public final void visit_castore() { IntItem val = vstack.popInt(); IntItem idx = vstack.popInt(); RefItem ref = vstack.popRef(); //IMPROVE: optimize case with const value val.load(eContext); idx.loadIf(eContext, ~Item.Kind.CONSTANT); ref.load(eContext); final ... | 26,060 |
public final void visit_castore() { IntItem val = vstack.popInt(); IntItem idx = vstack.popInt(); RefItem ref = vstack.popRef(); //IMPROVE: optimize case with const value val.load(eContext); idx.loadIf(eContext, ~Item.Kind.CONSTANT); ref.load(eContext); final ... | public final void visit_castore() { IntItem val = vstack.popInt(); IntItem idx = vstack.popInt(); RefItem ref = vstack.popRef(); //IMPROVE: optimize case with const value val.load(eContext); idx.loadIf(eContext, ~Item.Kind.CONSTANT); ref.load(eContext); final ... | 26,061 |
public final void visit_checkcast(VmConstClass classRef) { // check that top item is a reference final RefItem ref = vstack.popRef(); // Load the ref ref.load(eContext); final Register refr = ref.getRegister(); final Register classr = requestRegister(JvmType.INT); //... | public final void visit_checkcast(VmConstClass classRef) { // check that top item is a reference requestRegister(EAX); // Load the ref ref.load(eContext); final Register refr = ref.getRegister(); final Register classr = requestRegister(JvmType.INT); // Resolve the cl... | 26,062 |
public final void visit_checkcast(VmConstClass classRef) { // check that top item is a reference final RefItem ref = vstack.popRef(); // Load the ref ref.load(eContext); final Register refr = ref.getRegister(); final Register classr = requestRegister(JvmType.INT); //... | public final void visit_checkcast(VmConstClass classRef) { // check that top item is a reference final RefItem ref = vstack.popRef(); // Load the ref ref.load(eContext); final Register refr = ref.getRegister(); final Register classr = requestRegister(JvmType.INT); //... | 26,063 |
public final void visit_checkcast(VmConstClass classRef) { // check that top item is a reference final RefItem ref = vstack.popRef(); // Load the ref ref.load(eContext); final Register refr = ref.getRegister(); final Register classr = requestRegister(JvmType.INT); //... | public final void visit_checkcast(VmConstClass classRef) { // check that top item is a reference final RefItem ref = vstack.popRef(); // Load the ref ref.load(eContext); final Register refr = ref.getRegister(); final Register classr = requestRegister(JvmType.INT); //... | 26,064 |
public final void visit_checkcast(VmConstClass classRef) { // check that top item is a reference final RefItem ref = vstack.popRef(); // Load the ref ref.load(eContext); final Register refr = ref.getRegister(); final Register classr = requestRegister(JvmType.INT); //... | public final void visit_checkcast(VmConstClass classRef) { // check that top item is a reference final RefItem ref = vstack.popRef(); // Load the ref ref.load(eContext); final Register refr = ref.getRegister(); final Register classr = requestRegister(JvmType.INT); //... | 26,065 |
public final void visit_checkcast(VmConstClass classRef) { // check that top item is a reference final RefItem ref = vstack.popRef(); // Load the ref ref.load(eContext); final Register refr = ref.getRegister(); final Register classr = requestRegister(JvmType.INT); //... | public final void visit_checkcast(VmConstClass classRef) { // check that top item is a reference final RefItem ref = vstack.popRef(); // Load the ref ref.load(eContext); final Register refr = ref.getRegister(); final Register classr = requestRegister(JvmType.INT); //... | 26,066 |
public final void visit_checkcast(VmConstClass classRef) { // check that top item is a reference final RefItem ref = vstack.popRef(); // Load the ref ref.load(eContext); final Register refr = ref.getRegister(); final Register classr = requestRegister(JvmType.INT); //... | public final void visit_checkcast(VmConstClass classRef) { // check that top item is a reference final RefItem ref = vstack.popRef(); // Load the ref ref.load(eContext); final Register refr = ref.getRegister(); final Register classr = requestRegister(JvmType.INT); //... | 26,067 |
public final void visit_checkcast(VmConstClass classRef) { // check that top item is a reference final RefItem ref = vstack.popRef(); // Load the ref ref.load(eContext); final Register refr = ref.getRegister(); final Register classr = requestRegister(JvmType.INT); //... | public final void visit_checkcast(VmConstClass classRef) { // check that top item is a reference final RefItem ref = vstack.popRef(); // Load the ref ref.load(eContext); final Register refr = ref.getRegister(); final Register classr = requestRegister(JvmType.INT); //... | 26,068 |
public final void visit_checkcast(VmConstClass classRef) { // check that top item is a reference final RefItem ref = vstack.popRef(); // Load the ref ref.load(eContext); final Register refr = ref.getRegister(); final Register classr = requestRegister(JvmType.INT); //... | public final void visit_checkcast(VmConstClass classRef) { // check that top item is a reference final RefItem ref = vstack.popRef(); // Load the ref ref.load(eContext); final Register refr = ref.getRegister(); final Register classr = requestRegister(JvmType.INT); //... | 26,069 |
public final void visit_checkcast(VmConstClass classRef) { // check that top item is a reference final RefItem ref = vstack.popRef(); // Load the ref ref.load(eContext); final Register refr = ref.getRegister(); final Register classr = requestRegister(JvmType.INT); //... | public final void visit_checkcast(VmConstClass classRef) { // check that top item is a reference final RefItem ref = vstack.popRef(); // Load the ref ref.load(eContext); final Register refr = ref.getRegister(); final Register classr = requestRegister(JvmType.INT); //... | 26,070 |
public final void visit_checkcast(VmConstClass classRef) { // check that top item is a reference final RefItem ref = vstack.popRef(); // Load the ref ref.load(eContext); final Register refr = ref.getRegister(); final Register classr = requestRegister(JvmType.INT); //... | public final void visit_checkcast(VmConstClass classRef) { // check that top item is a reference final RefItem ref = vstack.popRef(); // Load the ref ref.load(eContext); final Register refr = ref.getRegister(); final Register classr = requestRegister(JvmType.INT); //... | 26,071 |
public final void visit_d2f() { FPUHelper.convert(eContext, vstack, JvmType.DOUBLE, JvmType.FLOAT); } | public final void visit_d2f() { FPUHelper.convert(eContext, vstack, JvmType.DOUBLE, JvmType.FLOAT); } | 26,072 |
public final void visit_d2i() { FPUHelper.convert(eContext, vstack, JvmType.DOUBLE, JvmType.INT); } | public final void visit_d2i() { FPUHelper.convert(eContext, vstack, JvmType.DOUBLE, JvmType.INT); } | 26,073 |
public final void visit_d2l() { FPUHelper.convert(eContext, vstack, JvmType.DOUBLE, JvmType.LONG); } | public final void visit_d2l() { FPUHelper.convert(eContext, vstack, JvmType.DOUBLE, JvmType.LONG); } | 26,074 |
public final void visit_dadd() { FPUHelper.add(os, eContext, vstack, JvmType.DOUBLE); } | public final void visit_dadd() { FPUHelper.add(os, eContext, vstack, JvmType.DOUBLE); } | 26,075 |
public final void visit_daload() { visit_dwaload(JvmType.DOUBLE); } | public final void visit_daload() { visit_dwaload(JvmType.DOUBLE); } | 26,076 |
public final void visit_dastore() { visit_dwastore(JvmType.DOUBLE); } | public final void visit_dastore() { visit_dwastore(JvmType.DOUBLE); } | 26,077 |
public final void visit_dcmpg() { FPUHelper.compare(os, eContext, vstack, true, JvmType.DOUBLE, curInstrLabel); } | public final void visit_dcmpg() { FPUHelper.compare(os, eContext, vstack, true, JvmType.DOUBLE, curInstrLabel); } | 26,078 |
public final void visit_dcmpl() { FPUHelper.compare(os, eContext, vstack, false, JvmType.DOUBLE, curInstrLabel); } | public final void visit_dcmpl() { FPUHelper.compare(os, eContext, vstack, false, JvmType.DOUBLE, curInstrLabel); } | 26,079 |
public final void visit_dconst(double value) { vstack.push(DoubleItem.createConst(value)); } | public final void visit_dconst(double value) { vstack.push(DoubleItem.createConst(value)); } | 26,080 |
public final void visit_ddiv() { FPUHelper.div(os, eContext, vstack, JvmType.DOUBLE); } | public final void visit_ddiv() { FPUHelper.div(os, eContext, vstack, JvmType.DOUBLE); } | 26,081 |
public final void visit_dload(int index) { vstack.push(DoubleItem.createLocal(stackFrame.getWideEbpOffset(index))); } | public final void visit_dload(int index) { vstack.push(DoubleItem.createLocal(stackFrame.getWideEbpOffset(index))); } | 26,082 |
public final void visit_dmul() { FPUHelper.mul(os, eContext, vstack, JvmType.DOUBLE); } | public final void visit_dmul() { FPUHelper.mul(os, eContext, vstack, JvmType.DOUBLE); } | 26,083 |
public final void visit_dneg() { FPUHelper.neg(os, eContext, vstack, JvmType.DOUBLE); } | public final void visit_dneg() { FPUHelper.neg(os, eContext, vstack, JvmType.DOUBLE); } | 26,084 |
public final void visit_drem() { FPUHelper.rem(os, eContext, vstack, JvmType.DOUBLE); } | public final void visit_drem() { FPUHelper.rem(os, eContext, vstack, JvmType.DOUBLE); } | 26,085 |
public final void visit_dreturn() { final DoubleItem val = vstack.popDouble(); if (!(val.uses(EAX) && val.uses(EDX))) { if (val.uses(EAX) || val.uses(EDX)) { val.push(eContext); } requestRegister(EAX, val); requestRegister(EDX, val); ... | public final void visit_dreturn() { final DoubleItem val = vstack.popDouble(); if (!(val.uses(EAX) && val.uses(EDX))) { if (val.uses(EAX) || val.uses(EDX)) { val.push(eContext); } requestRegister(EAX, val); requestRegister(EDX, val); ... | 26,086 |
public final void visit_dstore(int index) { final DoubleItem val = vstack.popDouble(); final int ebpOfs = stackFrame.getWideEbpOffset(index); // pin down other references to this load vstack.loadLocal(eContext, ebpOfs); // Load value val.loadToGPR(eContext); // Store... | public final void visit_dstore(int index) { final DoubleItem val = vstack.popDouble(); final int ebpOfs = stackFrame.getWideEbpOffset(index); // pin down other references to this load vstack.loadLocal(eContext, ebpOfs); // Load value val.loadToGPR(eContext); // Store... | 26,087 |
public final void visit_dstore(int index) { final DoubleItem val = vstack.popDouble(); final int ebpOfs = stackFrame.getWideEbpOffset(index); // pin down other references to this load vstack.loadLocal(eContext, ebpOfs); // Load value val.loadToGPR(eContext); // Store... | public final void visit_dstore(int index) { final DoubleItem val = vstack.popDouble(); final int ebpOfs = stackFrame.getWideEbpOffset(index); // pin down other references to this load vstack.loadLocal(eContext, ebpOfs); // Load value val.loadToGPR(eContext); // Store... | 26,088 |
public final void visit_dstore(int index) { final DoubleItem val = vstack.popDouble(); final int ebpOfs = stackFrame.getWideEbpOffset(index); // pin down other references to this load vstack.loadLocal(eContext, ebpOfs); // Load value val.loadToGPR(eContext); // Store... | public final void visit_dstore(int index) { final DoubleItem val = vstack.popDouble(); final int ebpOfs = stackFrame.getWideEbpOffset(index); // pin down other references to this load vstack.loadLocal(eContext, ebpOfs); // Load value val.loadToGPR(eContext); // Store... | 26,089 |
public final void visit_dstore(int index) { final DoubleItem val = vstack.popDouble(); final int ebpOfs = stackFrame.getWideEbpOffset(index); // pin down other references to this load vstack.loadLocal(eContext, ebpOfs); // Load value val.loadToGPR(eContext); // Store... | public final void visit_dstore(int index) { final DoubleItem val = vstack.popDouble(); final int ebpOfs = stackFrame.getWideEbpOffset(index); // pin down other references to this load vstack.loadLocal(eContext, ebpOfs); // Load value val.loadToGPR(eContext); // Store... | 26,090 |
public final void visit_dstore(int index) { final DoubleItem val = vstack.popDouble(); final int ebpOfs = stackFrame.getWideEbpOffset(index); // pin down other references to this load vstack.loadLocal(eContext, ebpOfs); // Load value val.loadToGPR(eContext); // Store... | public final void visit_dstore(int index) { final DoubleItem val = vstack.popDouble(); final int ebpOfs = stackFrame.getWideEbpOffset(index); // pin down other references to this load vstack.loadLocal(eContext, ebpOfs); // Load value val.loadToGPR(eContext); // Store... | 26,091 |
public final void visit_dstore(int index) { final DoubleItem val = vstack.popDouble(); final int ebpOfs = stackFrame.getWideEbpOffset(index); // pin down other references to this load vstack.loadLocal(eContext, ebpOfs); // Load value val.loadToGPR(eContext); // Store... | public final void visit_dstore(int index) { final DoubleItem val = vstack.popDouble(); final int ebpOfs = stackFrame.getWideEbpOffset(index); // pin down other references to this load vstack.loadLocal(eContext, ebpOfs); // Load value val.loadToGPR(eContext); // Store... | 26,092 |
public final void visit_dsub() { FPUHelper.sub(os, eContext, vstack, JvmType.DOUBLE); } | public final void visit_dsub() { FPUHelper.sub(os, eContext, vstack, JvmType.DOUBLE); } | 26,093 |
public final void visit_dup() { final Item v1 = vstack.pop(); v1.loadIf(eContext, Item.Kind.STACK | Item.Kind.FPUSTACK); vstack.push(v1); vstack.push(v1.clone(eContext)); } | public final void visit_dup() { final Item v1 = vstack.pop(); v1.loadIf(eContext, Item.Kind.STACK | Item.Kind.FPUSTACK); vstack.push(v1); vstack.push(v1.clone(eContext)); } | 26,094 |
public final void visit_dup2() { final Item v1 = vstack.pop(); v1.loadIf(eContext, Item.Kind.STACK | Item.Kind.FPUSTACK); if (v1.getCategory() == 1) { // form1 final Item v2 = vstack.pop(); v2.loadIf(eContext, Item.Kind.STACK | Item.Kind.FPUSTACK); as... | public final void visit_dup2() { final Item v1 = vstack.pop(); v1.loadIf(eContext, Item.Kind.STACK | Item.Kind.FPUSTACK); if (v1.getCategory() == 1) { // form1 final Item v2 = vstack.pop(); v2.loadIf(eContext, Item.Kind.STACK | Item.Kind.FPUSTACK); as... | 26,095 |
public final void visit_dup2_x1() { final Item v1 = vstack.pop(); final Item v2 = vstack.pop(); v1.loadIf(eContext, Item.Kind.STACK | Item.Kind.FPUSTACK); v2.loadIf(eContext, Item.Kind.STACK | Item.Kind.FPUSTACK); assertCondition(v2.getCategory() == 1, "category mismatch"); ... | public final void visit_dup2_x1() { final Item v1 = vstack.pop(); final Item v2 = vstack.pop(); v1.loadIf(eContext, Item.Kind.STACK | Item.Kind.FPUSTACK); v2.loadIf(eContext, Item.Kind.STACK | Item.Kind.FPUSTACK); assertCondition(v2.getCategory() == 1, "category mismatch"); ... | 26,096 |
public final void visit_dup2_x2() { final Item v1 = vstack.pop(); final Item v2 = vstack.pop(); final int c1 = v1.getCategory(); final int c2 = v2.getCategory(); v1.loadIf(eContext, Item.Kind.STACK | Item.Kind.FPUSTACK); v2.loadIf(eContext, Item.Kind.STACK | Item.Kind.FPUST... | public final void visit_dup2_x2() { final Item v1 = vstack.pop(); final Item v2 = vstack.pop(); final int c1 = v1.getCategory(); final int c2 = v2.getCategory(); v1.loadIf(eContext, Item.Kind.STACK | Item.Kind.FPUSTACK); v2.loadIf(eContext, Item.Kind.STACK | Item.Kind.FPUST... | 26,097 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.