bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
public boolean isPaged() { if(media.equals("print")) { return true; } if(media.equals("projection")) { return true; } if(media.equals("embossed")) { return true; } if(media.equals("handheld")) { return true; ... | public boolean isPaged() { if(media.equals("print")) { return true; } if(media.equals("projection")) { return true; } if(media.equals("embossed")) { return true; } if(media.equals("handheld")) { return true; ... | 56,980 |
public void setMedia(String media) { this.media = media; } | public void setMedia(String media) { this.media = media; } | 56,981 |
protected int checkHorizontalKey(int key, String message) { // Verify that key is a legal value for the horizontalAlignment properties. return 0; } | protected int checkHorizontalKey(int key, String message) { // Verify that key is a legal value for the horizontalAlignment properties. return 0; } | 56,982 |
protected int checkVerticalKey(int key, String message) { // Verify that key is a legal value for the verticalAlignment or verticalTextPosition properties. return 0; } | protected int checkVerticalKey(int key, String message) { // Verify that key is a legal value for the verticalAlignment or verticalTextPosition properties. return 0; } | 56,983 |
public AccessibleContext getAccessibleContext() { // Get the AccessibleContext of this object return null; } | public AccessibleContext getAccessibleContext() { // Get the AccessibleContext of this object return null; } | 56,984 |
public int getDisplayedMnemonic() { // Return the keycode that indicates a mnemonic key. return 0; } | public int getDisplayedMnemonic() { // Return the keycode that indicates a mnemonic key. return 0; } | 56,985 |
public Component getLabelFor() { // Get the component this is labelling. return null; } | public Component getLabelFor() { // Get the component this is labelling. return null; } | 56,986 |
public String getUIClassID() { return "LabelUI"; } | public String getUIClassID() { return "LabelUI"; } | 56,987 |
public boolean imageUpdate(Image img, int infoflags, int x, int y, int w, int h) { // This is overriden to return false if the current Icon's Image is not equal to the passed in Image img. return (img == icon); } | public boolean imageUpdate(Image img, int infoflags, int x, int y, int w, int h) { // This is overriden to return false if the current Icon's Image is not equal to the passed in Image img. return (img == icon); } | 56,988 |
protected String paramString() { // Returns a string representation of this JLabel. return "JLabel"; } | protected String paramString() { // Returns a string representation of this JLabel. return "JLabel"; } | 56,989 |
public void setDisabledIcon(Icon disabledIcon) { // Set the icon to be displayed if this JLabel is "disabled" (JLabel.setEnabled(false)). } | public void setDisabledIcon(Icon disabledIcon) { // Set the icon to be displayed if this JLabel is "disabled" (JLabel.setEnabled(false)). } | 56,990 |
public void setDisplayedMnemonic(char aChar) { // Specifies the displayedMnemonic as a char value. } | public void setDisplayedMnemonic(char aChar) { // Specifies the displayedMnemonic as a char value. } | 56,991 |
public void setIconTextGap(int iconTextGap) { gap = iconTextGap; } | public void setIconTextGap(int iconTextGap) { gap = iconTextGap; } | 56,992 |
public void setVerticalTextPosition(int textPosition) { // Sets the vertical position of the label's text, relative to its image. vert_text_pos = textPosition; } | public void setVerticalTextPosition(int textPosition) { // Sets the vertical position of the label's text, relative to its image. vert_text_pos = textPosition; } | 56,993 |
public void testMapper() { Set set = new HashSet(); set.add(new Integer(50)); set.add(new Integer(25)); set.add(new Integer(15)); DefaultFailoverMapper mapper = new DefaultFailoverMapper(); Map map = mapper.generateMapping(set); assertEquals(new Integer(15),map.get(new Integer(25... | public void testMapper() { Set set = new HashSet(); set.add(new Integer(50)); set.add(new Integer(25)); set.add(new Integer(15)); DefaultFailoverMapper mapper = new DefaultFailoverMapper(); Map map = mapper.generateMapping(set); assertEquals(new Integer(15),map.get(new Integer(25... | 56,994 |
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()) { os.writeCMP_Const(r, arrayLengthOffset, index.ge... | 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()) { os.writeCMP_Const(r, arrayLengthOffset, index.ge... | 56,995 |
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()) { os.writeCMP_Const(r, arrayLengthOffset, index.ge... | 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()) { os.writeCMP_Const(r, arrayLengthOffset, index.ge... | 56,996 |
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()) { os.writeCMP_Const(r, arrayLengthOffset, index.ge... | 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()) { os.writeCMP_Const(r, arrayLengthOffset, index.ge... | 56,997 |
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); } } | 56,998 |
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 (!vstack.uses(reg)) { throw new InternalErr... | 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 (!vstack.uses(reg)) { throw new InternalErr... | 56,999 |
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 (!vstack.uses(reg)) { throw new InternalErr... | 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 (!vstack.uses(reg)) { throw new InternalErr... | 57,000 |
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 (!vstack.uses(reg)) { throw new InternalErr... | 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 (!vstack.uses(reg)) { throw new InternalErr... | 57,001 |
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 (!vstack.uses(reg)) { throw new InternalErr... | 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 (!vstack.uses(reg)) { throw new InternalErr... | 57,002 |
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 (!vstack.uses(reg)) { throw new InternalErr... | public vstack.fpuStack.visitItems(new ItemVisitor() { public void visit(Item item) { if (!vstack.contains(item)) { throw new InternalError( "Item " + item + " is not on the vstack, but still of the fpu stack in method " + currentMethod + " at address " + curAddress); } } }); vstack.visitItems(new ItemVisitor() { pub... | 57,003 |
public void visit(Register reg) { if (!vstack.uses(reg)) { throw new InternalError("Register " + reg + " is in use outsite of the vstack in method " + currentMethod + " 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 in method " + currentMethod + " at bytecode address " + curAddress); } } | 57,004 |
public void visit(Register reg) { if (!vstack.uses(reg)) { throw new InternalError("Register " + reg + " is in use outsite of the vstack in method " + currentMethod + " 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 in method " + currentMethod + " at bytecode address " + curAddress); } } | 57,005 |
public void visit(Item item) { if (!vstack.contains(item)) { throw new InternalError( "Item " + item + " is not on the vstack, but still of the fpu stack in method " + currentMethod + " at address " + curAddress); } } | public void visit(Item item) { if (!vstack.contains(item)) { throw new InternalError( "Item " + item + " is not on the vstack, but still of the fpu stack in method " + currentMethod + " at address " + curAddress); } } | 57,006 |
public void visit(Item item) { if (!vstack.contains(item)) { throw new InternalError( "Item " + item + " is not on the vstack, but still of the fpu stack in method " + currentMethod + " at address " + curAddress); } } | public void visit(Item item) { if (!vstack.contains(item)) { throw new InternalError( "Item " + item + " is not on the vstack, but still of the fpu stack in method " + currentMethod + " at address " + curAddress); } } | 57,007 |
public void visit(Item item) { if (item.getKind() == 0) { throw new InternalError("Item " + item + " is kind 0 in method " + currentMethod + " at address " + curAddress); } if (item.isRegister()) { if (item instanceof WordItem) { if (pool.getOwner(((WordItem)item).getRegister()) != ... | public void visit(Item item) { if (item.getKind() == 0) { throw new InternalError("Item " + item + " is kind 0 in method " + currentMethod + " at address " + curAddress); } if (item.isRegister()) { if (item instanceof WordItem) { if (pool.getOwner(((WordItem)item).getRegister()) != ... | 57,008 |
public void visit(Item item) { if (item.getKind() == 0) { throw new InternalError("Item " + item + " is kind 0 in method " + currentMethod + " at address " + curAddress); } if (item.isRegister()) { if (item instanceof WordItem) { if (pool.getOwner(((WordItem)item).getRegister()) != ... | public void visit(Item item) { if (item.getKind() == 0) { throw new InternalError("Item " + item + " is kind 0 in method " + currentMethod + " at address " + curAddress); } if (item.isRegister()) { if (item instanceof WordItem) { if (pool.getOwner(((WordItem)item).getRegister()) != ... | 57,009 |
public void visit(Item item) { if (item.getKind() == 0) { throw new InternalError("Item " + item + " is kind 0 in method " + currentMethod + " at address " + curAddress); } if (item.isRegister()) { if (item instanceof WordItem) { if (pool.getOwner(((WordItem)item).getRegister()) != ... | public void visit(Item item) { if (item.getKind() == 0) { throw new InternalError("Item " + item + " is kind 0 in method " + currentMethod + " at address " + curAddress); } if (item.isRegister()) { if (item instanceof WordItem) { if (pool.getOwner(((WordItem)item).getRegister()) != ... | 57,010 |
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.STACK | Item.Kind.FPUSTACK)); dest... | 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.STACK | Item.Kind.FPUSTACK)); dest... | 57,011 |
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) { final int offset = idx.getValue(); os.writeMO... | 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) { final int offset = idx.getValue(); os.writeMO... | 57,013 |
public final void visit_aastore() { final boolean useBarrier = (context.getWriteBarrier() != null); final RefItem val = vstack.popRef(); final IntItem idx = vstack.popInt(); final RefItem ref = vstack.popRef(); //IMPROVE: optimize case with const value val.load(eContext); // if barrier in use, the index must al... | public final void visit_aastore() { final boolean useBarrier = (context.getWriteBarrier() != null); final RefItem val = vstack.popRef(); final IntItem idx = vstack.popInt(); final RefItem ref = vstack.popRef(); //IMPROVE: optimize case with const value val.load(eContext); // if barrier in use, the index must al... | 57,014 |
public final void visit_anewarray(VmConstClass classRef) { // Claim EAX, we're going to use it later requestRegister(EAX); final IntItem cnt = vstack.popInt(); // Load the count value cnt.load(eContext); final Register cntr = cnt.getRegister(); // Request tmp register final Register classr = requestRegister(Jv... | public final void visit_anewarray(VmConstClass classRef) { // Claim EAX, we're going to use it later requestRegister(EAX); final IntItem cnt = vstack.popInt(); // Load the count value cnt.load(eContext); final Register cntr = cnt.getRegister(); // Request tmp register final Register classr = requestRegister(Jv... | 57,015 |
public final void visit_anewarray(VmConstClass classRef) { // Claim EAX, we're going to use it later requestRegister(EAX); final IntItem cnt = vstack.popInt(); // Load the count value cnt.load(eContext); final Register cntr = cnt.getRegister(); // Request tmp register final Register classr = requestRegister(Jv... | public final void visit_anewarray(VmConstClass classRef) { // Claim EAX, we're going to use it later requestRegister(EAX); final IntItem cnt = vstack.popInt(); // Load the count value cnt.load(eContext); final Register cntr = cnt.getRegister(); // Request tmp register final Register classr = requestRegister(Jv... | 57,016 |
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(); } | 57,017 |
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); vstack.push(i); } | 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); vstack.push(i); } | 57,018 |
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); vstack.push(i); } | 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); vstack.push(i); } | 57,019 |
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); vstack.push(i); } | 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); vstack.push(i); } | 57,020 |
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(); i.load(eContext); os.writeMOV(INTSIZE, FP, d... | 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(); i.load(eContext); os.writeMOV(INTSIZE, FP, d... | 57,021 |
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) { final int offset = idx.getValue(); os.writeM... | 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) { final int offset = idx.getValue(); os.writeM... | 57,023 |
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 Register r = ref.getRegister(); final Register v =... | 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 Register r = ref.getRegister(); final Register v =... | 57,024 |
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) { final int offset = idx.getValue(); os.writeM... | 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) { final int offset = idx.getValue(); os.writeM... | 57,025 |
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 Register r = ref.getRegister(); final Register v =... | 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 Register r = ref.getRegister(); final Register v =... | 57,026 |
public final void visit_checkcast(VmConstClass classRef) { // Pre-claim EAX requestRegister(EAX); // 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); // Res... | public final void visit_checkcast(VmConstClass classRef) { // Pre-claim EAX requestRegister(EAX); // 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); // Res... | 57,027 |
public final void visit_daload() { final IntItem idx = vstack.popInt(); final RefItem ref = vstack.popRef(); idx.loadIf(eContext, ~Item.Kind.CONSTANT); ref.load(eContext); final Register refr = ref.getRegister(); checkBounds(ref, idx); FPUHelper.ensureStackCapacity(os, eContext, vstack, 1); if (idx.isConstant(... | public final void visit_daload() { final IntItem idx = vstack.popInt(); final RefItem ref = vstack.popRef(); idx.loadIf(eContext, ~Item.Kind.CONSTANT); ref.load(eContext); final Register refr = ref.getRegister(); checkBounds(ref, idx); FPUHelper.ensureStackCapacity(os, eContext, vstack, 1); if (idx.isConstant(... | 57,028 |
public final void visit_daload() { final IntItem idx = vstack.popInt(); final RefItem ref = vstack.popRef(); idx.loadIf(eContext, ~Item.Kind.CONSTANT); ref.load(eContext); final Register refr = ref.getRegister(); checkBounds(ref, idx); FPUHelper.ensureStackCapacity(os, eContext, vstack, 1); if (idx.isConstant(... | public final void visit_daload() { final IntItem idx = vstack.popInt(); final RefItem ref = vstack.popRef(); idx.loadIf(eContext, ~Item.Kind.CONSTANT); ref.load(eContext); final Register refr = ref.getRegister(); checkBounds(ref, idx); FPUHelper.ensureStackCapacity(os, eContext, vstack, 1); if (idx.isConstant(... | 57,029 |
public final void visit_dastore() { visit_dwastore(JvmType.DOUBLE); } | public final void visit_dastore() { visit_dwastore(JvmType.DOUBLE); } | 57,030 |
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); val.loadTo(eContext, EAX, EDX); } val.release(eContext); visit_retu... | 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); val.loadTo(eContext, EAX, EDX); } val.release(eContext); visit_retu... | 57,031 |
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 final Register lsb = val.getLsbRegister(); ... | 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 final Register lsb = val.getLsbRegister(); ... | 57,032 |
public final void visit_faload() { final IntItem idx = vstack.popInt(); final RefItem ref = vstack.popRef(); idx.loadIf(eContext, ~Item.Kind.CONSTANT); ref.load(eContext); final Register refr = ref.getRegister(); checkBounds(ref, idx); FPUHelper.ensureStackCapacity(os, eContext, vstack, 1); if (idx.isConstant(... | public final void visit_faload() { final IntItem idx = vstack.popInt(); final RefItem ref = vstack.popRef(); idx.loadIf(eContext, ~Item.Kind.CONSTANT); ref.load(eContext); final Register refr = ref.getRegister(); checkBounds(ref, idx); FPUHelper.ensureStackCapacity(os, eContext, vstack, 1); if (idx.isConstant(... | 57,033 |
public final void visit_fastore() { final FloatItem val = vstack.popFloat(); final IntItem idx = vstack.popInt(); final RefItem ref = vstack.popRef(); val.loadToGPR(eContext); idx.load(eContext); ref.load(eContext); final Register valr = val.getRegister(); final Register idxr = idx.getRegister(); final Regist... | public final void visit_fastore() { final FloatItem val = vstack.popFloat(); final IntItem idx = vstack.popInt(); final RefItem ref = vstack.popRef(); val.loadToGPR(eContext); idx.load(eContext); ref.load(eContext); final Register valr = val.getRegister(); final Register idxr = idx.getRegister(); final Regist... | 57,034 |
public final void visit_freturn() { final FloatItem val = vstack.popFloat(); if (!val.uses(EAX)) { requestRegister(EAX, val); val.loadTo(eContext, EAX); } val.release(eContext); visit_return(); } | public final void visit_freturn() { final FloatItem val = vstack.popFloat(); if (!val.uses(EAX)) { requestRegister(EAX, val); val.loadTo(eContext, EAX); } val.release(eContext); visit_return(); } | 57,035 |
public final void visit_fstore(int index) { final FloatItem val = vstack.popFloat(); final int ebpOfs = stackFrame.getEbpOffset(index); // pin down other references to this local vstack.loadLocal(eContext, ebpOfs); // Load val.loadToGPR(eContext); final Register valr = val.getRegister(); // Save os.writeMOV(I... | public final void visit_fstore(int index) { final FloatItem val = vstack.popFloat(); final int ebpOfs = stackFrame.getEbpOffset(index); // pin down other references to this local vstack.loadLocal(eContext, ebpOfs); // Load val.loadToGPR(eContext); final Register valr = val.getRegister(); // Save os.writeMOV(I... | 57,036 |
public final void visit_getfield(VmConstFieldRef fieldRef) { //TODO: port to orp-style; must probably implement a getfield method // in each Item! fieldRef.resolve(loader); final VmField field = fieldRef.getResolvedVmField(); if (field.isStatic()) { throw new IncompatibleClassChangeError( "getfield called o... | public final void visit_getfield(VmConstFieldRef fieldRef) { //TODO: port to orp-style; must probably implement a getfield method // in each Item! fieldRef.resolve(loader); final VmField field = fieldRef.getResolvedVmField(); if (field.isStatic()) { throw new IncompatibleClassChangeError( "getfield called o... | 57,037 |
public final void visit_getfield(VmConstFieldRef fieldRef) { //TODO: port to orp-style; must probably implement a getfield method // in each Item! fieldRef.resolve(loader); final VmField field = fieldRef.getResolvedVmField(); if (field.isStatic()) { throw new IncompatibleClassChangeError( "getfield called o... | public final void visit_getfield(VmConstFieldRef fieldRef) { //TODO: port to orp-style; must probably implement a getfield method // in each Item! fieldRef.resolve(loader); final VmField field = fieldRef.getResolvedVmField(); if (field.isStatic()) { throw new IncompatibleClassChangeError( "getfield called o... | 57,038 |
public final void visit_getfield(VmConstFieldRef fieldRef) { //TODO: port to orp-style; must probably implement a getfield method // in each Item! fieldRef.resolve(loader); final VmField field = fieldRef.getResolvedVmField(); if (field.isStatic()) { throw new IncompatibleClassChangeError( "getfield called o... | public final void visit_getfield(VmConstFieldRef fieldRef) { //TODO: port to orp-style; must probably implement a getfield method // in each Item! fieldRef.resolve(loader); final VmField field = fieldRef.getResolvedVmField(); if (field.isStatic()) { throw new IncompatibleClassChangeError( "getfield called o... | 57,039 |
public final void visit_getfield(VmConstFieldRef fieldRef) { //TODO: port to orp-style; must probably implement a getfield method // in each Item! fieldRef.resolve(loader); final VmField field = fieldRef.getResolvedVmField(); if (field.isStatic()) { throw new IncompatibleClassChangeError( "getfield called o... | public final void visit_getfield(VmConstFieldRef fieldRef) { //TODO: port to orp-style; must probably implement a getfield method // in each Item! fieldRef.resolve(loader); final VmField field = fieldRef.getResolvedVmField(); if (field.isStatic()) { throw new IncompatibleClassChangeError( "getfield called o... | 57,040 |
public final void visit_getfield(VmConstFieldRef fieldRef) { //TODO: port to orp-style; must probably implement a getfield method // in each Item! fieldRef.resolve(loader); final VmField field = fieldRef.getResolvedVmField(); if (field.isStatic()) { throw new IncompatibleClassChangeError( "getfield called o... | public final void visit_getfield(VmConstFieldRef fieldRef) { //TODO: port to orp-style; must probably implement a getfield method // in each Item! fieldRef.resolve(loader); final VmField field = fieldRef.getResolvedVmField(); if (field.isStatic()) { throw new IncompatibleClassChangeError( "getfield called o... | 57,041 |
public final void visit_getfield(VmConstFieldRef fieldRef) { //TODO: port to orp-style; must probably implement a getfield method // in each Item! fieldRef.resolve(loader); final VmField field = fieldRef.getResolvedVmField(); if (field.isStatic()) { throw new IncompatibleClassChangeError( "getfield called o... | public final void visit_getfield(VmConstFieldRef fieldRef) { //TODO: port to orp-style; must probably implement a getfield method // in each Item! fieldRef.resolve(loader); final VmField field = fieldRef.getResolvedVmField(); if (field.isStatic()) { throw new IncompatibleClassChangeError( "getfield called o... | 57,042 |
public final void visit_getstatic(VmConstFieldRef fieldRef) { final X86RegisterPool pool = eContext.getPool(); fieldRef.resolve(loader); final int type = JvmType.SignatureToType(fieldRef.getSignature()); final VmStaticField sf = (VmStaticField) fieldRef.getResolvedVmField(); // Initialize if needed if (!sf.getDe... | public final void visit_getstatic(VmConstFieldRef fieldRef) { final X86RegisterPool pool = eContext.getPool(); fieldRef.resolve(loader); final int type = JvmType.SignatureToType(fieldRef.getSignature()); final VmStaticField sf = (VmStaticField) fieldRef.getResolvedVmField(); // Initialize if needed if (!sf.getDe... | 57,044 |
public final void visit_getstatic(VmConstFieldRef fieldRef) { final X86RegisterPool pool = eContext.getPool(); fieldRef.resolve(loader); final int type = JvmType.SignatureToType(fieldRef.getSignature()); final VmStaticField sf = (VmStaticField) fieldRef.getResolvedVmField(); // Initialize if needed if (!sf.getDe... | public final void visit_getstatic(VmConstFieldRef fieldRef) { final X86RegisterPool pool = eContext.getPool(); fieldRef.resolve(loader); final int type = JvmType.SignatureToType(fieldRef.getSignature()); final VmStaticField sf = (VmStaticField) fieldRef.getResolvedVmField(); // Initialize if needed if (!sf.getDe... | 57,045 |
public final void visit_getstatic(VmConstFieldRef fieldRef) { final X86RegisterPool pool = eContext.getPool(); fieldRef.resolve(loader); final int type = JvmType.SignatureToType(fieldRef.getSignature()); final VmStaticField sf = (VmStaticField) fieldRef.getResolvedVmField(); // Initialize if needed if (!sf.getDe... | public final void visit_getstatic(VmConstFieldRef fieldRef) { final X86RegisterPool pool = eContext.getPool(); fieldRef.resolve(loader); final int type = JvmType.SignatureToType(fieldRef.getSignature()); final VmStaticField sf = (VmStaticField) fieldRef.getResolvedVmField(); // Initialize if needed if (!sf.getDe... | 57,046 |
public final void visit_getstatic(VmConstFieldRef fieldRef) { final X86RegisterPool pool = eContext.getPool(); fieldRef.resolve(loader); final int type = JvmType.SignatureToType(fieldRef.getSignature()); final VmStaticField sf = (VmStaticField) fieldRef.getResolvedVmField(); // Initialize if needed if (!sf.getDe... | public final void visit_getstatic(VmConstFieldRef fieldRef) { final X86RegisterPool pool = eContext.getPool(); fieldRef.resolve(loader); final int type = JvmType.SignatureToType(fieldRef.getSignature()); final VmStaticField sf = (VmStaticField) fieldRef.getResolvedVmField(); // Initialize if needed if (!sf.getDe... | 57,047 |
public final void visit_i2b() { final IntItem v = vstack.popInt(); if (v.getKind() == Item.Kind.CONSTANT) { vstack.push(IntItem.createConst((byte) v.getValue())); } else { v.load(eContext); final Register r = v.getRegister(); os.writeMOVSX(r, r, BYTESIZE); vstack.push(v); } } | public final void visit_i2b() { final IntItem v = vstack.popInt(); if (v.getKind() == Item.Kind.CONSTANT) { vstack.push(IntItem.createConst((byte) v.getValue())); } else { v.load(eContext); final Register r = v.getRegister(); os.writeMOVSX(r, r, BYTESIZE); vstack.push(v); } } | 57,048 |
public final void visit_i2c() { final IntItem v = vstack.popInt(); if (v.getKind() == Item.Kind.CONSTANT) { vstack.push(IntItem.createConst((char) v.getValue())); } else { v.load(eContext); final Register r = v.getRegister(); os.writeMOVZX(r, r, BYTESIZE); vstack.push(v); } } | public final void visit_i2c() { final IntItem v = vstack.popInt(); if (v.getKind() == Item.Kind.CONSTANT) { vstack.push(IntItem.createConst((char) v.getValue())); } else { v.load(eContext); final Register r = v.getRegister(); os.writeMOVZX(r, r, BYTESIZE); vstack.push(v); } } | 57,049 |
public final void visit_i2s() { IntItem v = vstack.popInt(); v.load(eContext); final Register r = v.getRegister(); os.writeMOVSX(r, r, WORDSIZE); vstack.push(v); } | public final void visit_i2s() { IntItem v = vstack.popInt(); v.load(eContext); final Register r = v.getRegister(); os.writeMOVSX(r, r, WORDSIZE); vstack.push(v); } | 57,051 |
public final void visit_iadd() { //REFACTOR: parametrize the os.write operations to avoid code // duplication //IMPROVE: allow parameter permutation final IntItem v2 = vstack.popInt(); final IntItem v1 = vstack.popInt(); prepareForOperation(v1, v2); final Register r1 = v1.getRegister(); switch (v2.getKind()) {... | public final void visit_iadd() { //REFACTOR: parametrize the os.write operations to avoid code // duplication //IMPROVE: allow parameter permutation final IntItem v2 = vstack.popInt(); final IntItem v1 = vstack.popInt(); prepareForOperation(v1, v2); final Register r1 = v1.getRegister(); switch (v2.getKind()) {... | 57,052 |
public final void visit_iaload() { final IntItem idx = vstack.popInt(); final RefItem ref = vstack.popRef(); idx.loadIf(eContext, ~Item.Kind.CONSTANT); ref.load(eContext); final Register resultr = requestRegister(JvmType.INT); final Register refr = ref.getRegister(); checkBounds(ref, idx); if (idx.isConstant()... | public final void visit_iaload() { final IntItem idx = vstack.popInt(); final RefItem ref = vstack.popRef(); idx.loadIf(eContext, ~Item.Kind.CONSTANT); ref.load(eContext); final Register resultr = requestRegister(JvmType.INT); final Register refr = ref.getRegister(); checkBounds(ref, idx); if (idx.isConstant()... | 57,053 |
public final void visit_iand() { //REFACTOR: parametrize the os.write operations to avoid code // duplication //IMPROVE: allow parameter permutation IntItem v2 = vstack.popInt(); IntItem v1 = vstack.popInt(); prepareForOperation(v1, v2); final Register r1 = v1.getRegister(); switch (v2.getKind()) { case Item.... | public final void visit_iand() { //REFACTOR: parametrize the os.write operations to avoid code // duplication //IMPROVE: allow parameter permutation IntItem v2 = vstack.popInt(); IntItem v1 = vstack.popInt(); prepareForOperation(v1, v2); final Register r1 = v1.getRegister(); switch (v2.getKind()) { case Item.... | 57,054 |
public final void visit_iastore() { IntItem val = vstack.popInt(); IntItem idx = vstack.popInt(); RefItem ref = vstack.popRef(); val.loadIf(eContext, ~Item.Kind.CONSTANT); idx.loadIf(eContext, ~Item.Kind.CONSTANT); ref.load(eContext); final Register r = ref.getRegister(); checkBounds(ref, idx); if (idx.isCons... | public final void visit_iastore() { IntItem val = vstack.popInt(); IntItem idx = vstack.popInt(); RefItem ref = vstack.popRef(); val.loadIf(eContext, ~Item.Kind.CONSTANT); idx.loadIf(eContext, ~Item.Kind.CONSTANT); ref.load(eContext); final Register r = ref.getRegister(); checkBounds(ref, idx); if (idx.isCons... | 57,055 |
private final void visit_if_acmp(int address, int jccOpcode) { RefItem v2 = vstack.popRef(); RefItem v1 = vstack.popRef(); // flush vstack before jumping vstack.push(eContext); //TODO: can be less restrictive: v1 must not be register prepareForOperation(v1, v2); Register r1 = v1.getRegister(); switch (v2.getKi... | private final void visit_if_acmp(int address, int jccOpcode) { RefItem v2 = vstack.popRef(); RefItem v1 = vstack.popRef(); // flush vstack before jumping vstack.push(eContext); //TODO: can be less restrictive: v1 must not be register prepareForOperation(v1, v2); Register r1 = v1.getRegister(); switch (v2.getKi... | 57,056 |
private final void visit_if_icmp(int address, int jccOpcode) { IntItem v2 = vstack.popInt(); IntItem v1 = vstack.popInt(); // flush vstack before jumping vstack.push(eContext); //TODO: can be less restrictive: v1 must not be register prepareForOperation(v1, v2); Register r1 = v1.getRegister(); switch (v2.getKi... | private final void visit_if_icmp(int address, int jccOpcode) { IntItem v2 = vstack.popInt(); IntItem v1 = vstack.popInt(); // flush vstack before jumping vstack.push(eContext); //TODO: can be less restrictive: v1 must not be register prepareForOperation(v1, v2); Register r1 = v1.getRegister(); switch (v2.getKi... | 57,057 |
private void visit_ifxx(int type, int address, int jccOpcode) { //IMPROVE: Constant case / Local case Item v; Register r; if (type == JvmType.REFERENCE) { RefItem vr = vstack.popRef(); vr.load(eContext); r = vr.getRegister(); v = vr; } else { IntItem vi = vstack.popInt(); vi.load(eContext); r = vi.g... | private void visit_ifxx(int type, int address, int jccOpcode) { //IMPROVE: Constant case / Local case Item v; Register r; if (type == JvmType.REFERENCE) { RefItem vr = vstack.popRef(); vr.load(eContext); r = vr.getRegister(); v = vr; } else { IntItem vi = vstack.popInt(); vi.load(eContext); r = vi.g... | 57,058 |
private void visit_ifxx(int type, int address, int jccOpcode) { //IMPROVE: Constant case / Local case Item v; Register r; if (type == JvmType.REFERENCE) { RefItem vr = vstack.popRef(); vr.load(eContext); r = vr.getRegister(); v = vr; } else { IntItem vi = vstack.popInt(); vi.load(eContext); r = vi.g... | private void visit_ifxx(int type, int address, int jccOpcode) { //IMPROVE: Constant case / Local case Item v; Register r; if (type == JvmType.REFERENCE) { RefItem vr = vstack.popRef(); vr.load(eContext); r = vr.getRegister(); v = vr; } else { IntItem vi = vstack.popInt(); vi.load(eContext); r = vi.g... | 57,059 |
private void visit_ifxx(int type, int address, int jccOpcode) { //IMPROVE: Constant case / Local case Item v; Register r; if (type == JvmType.REFERENCE) { RefItem vr = vstack.popRef(); vr.load(eContext); r = vr.getRegister(); v = vr; } else { IntItem vi = vstack.popInt(); vi.load(eContext); r = vi.g... | private void visit_ifxx(int type, int address, int jccOpcode) { //IMPROVE: Constant case / Local case Item v; Register r; if (type == JvmType.REFERENCE) { RefItem vr = vstack.popRef(); vr.load(eContext); r = vr.getRegister(); v = vr; } else { IntItem vi = vstack.popInt(); vi.load(eContext); r = vi.g... | 57,060 |
private void visit_ifxx(int type, int address, int jccOpcode) { //IMPROVE: Constant case / Local case Item v; Register r; if (type == JvmType.REFERENCE) { RefItem vr = vstack.popRef(); vr.load(eContext); r = vr.getRegister(); v = vr; } else { IntItem vi = vstack.popInt(); vi.load(eContext); r = vi.g... | private void visit_ifxx(int type, int address, int jccOpcode) { //IMPROVE: Constant case / Local case Item v; Register r; if (type == JvmType.REFERENCE) { RefItem vr = vstack.popRef(); vr.load(eContext); r = vr.getRegister(); v = vr; } else { IntItem vi = vstack.popInt(); vi.load(eContext); r = vi.g... | 57,061 |
public final void visit_imul() { IntItem v2 = vstack.popInt(); IntItem v1 = vstack.popInt(); prepareForOperation(v1, v2); final Register r1 = v1.getRegister(); switch (v2.getKind()) { case Item.Kind.REGISTER: os.writeIMUL(r1, v2.getRegister()); break; case Item.Kind.CONSTANT: os.writeIMUL_3(r1, r1, v2.get... | public final void visit_imul() { IntItem v2 = vstack.popInt(); IntItem v1 = vstack.popInt(); prepareForOperation(v1, v2); final Register r1 = v1.getRegister(); switch (v2.getKind()) { case Item.Kind.REGISTER: os.writeIMUL(r1, v2.getRegister()); break; case Item.Kind.CONSTANT: os.writeIMUL_3(r1, r1, v2.get... | 57,062 |
public final void visit_ineg() { IntItem v = vstack.popInt(); v.load(eContext); os.writeNEG(v.getRegister()); vstack.push(v); } | public final void visit_ineg() { IntItem v = vstack.popInt(); v.load(eContext); os.writeNEG(v.getRegister()); vstack.push(v); } | 57,063 |
public final void visit_invokeinterface(VmConstIMethodRef methodRef, int count) { //TODO: port to orp-style vstack.push(eContext); methodRef.resolve(loader); /* * if (!methodRef.getConstClass().isResolved()) { Label startClassLabel = * new Label(this.curInstrLabel + "startClass"); * os.setObjectRef(startCl... | public final void visit_invokeinterface(VmConstIMethodRef methodRef, int count) { //TODO: port to orp-style vstack.push(eContext); methodRef.resolve(loader); /* * if (!methodRef.getConstClass().isResolved()) { Label startClassLabel = * new Label(this.curInstrLabel + "startClass"); * os.setObjectRef(startCl... | 57,064 |
public final void visit_invokespecial(VmConstMethodRef methodRef) { //TODO: port to orp-style vstack.push(eContext); methodRef.resolve(loader); try { final VmMethod sm = methodRef.getResolvedVmMethod(); dropParameters(sm, true); // Get method from statics table helper.writeGetStaticsEntry(curInstrLabel, EA... | public final void visit_invokespecial(VmConstMethodRef methodRef) { //TODO: port to orp-style vstack.push(eContext); methodRef.resolve(loader); try { final VmMethod sm = methodRef.getResolvedVmMethod(); dropParameters(sm, true); // Get method from statics table helper.writeGetStaticsEntry(curInstrLabel, EA... | 57,065 |
public final void visit_invokespecial(VmConstMethodRef methodRef) { //TODO: port to orp-style vstack.push(eContext); methodRef.resolve(loader); try { final VmMethod sm = methodRef.getResolvedVmMethod(); dropParameters(sm, true); // Get method from statics table helper.writeGetStaticsEntry(curInstrLabel, EA... | public final void visit_invokespecial(VmConstMethodRef methodRef) { //TODO: port to orp-style vstack.push(eContext); methodRef.resolve(loader); try { final VmMethod sm = methodRef.getResolvedVmMethod(); dropParameters(sm, true); // Get method from statics table helper.writeGetStaticsEntry(curInstrLabel, EA... | 57,066 |
public final void visit_invokestatic(VmConstMethodRef methodRef) { //TODO: port to orp-style vstack.push(eContext); methodRef.resolve(loader); final VmStaticMethod sm = (VmStaticMethod) methodRef .getResolvedVmMethod(); dropParameters(sm, false); // Get static field object helper.writeGetStaticsEntry(curInst... | public final void visit_invokestatic(VmConstMethodRef methodRef) { //TODO: port to orp-style vstack.push(eContext); methodRef.resolve(loader); final VmStaticMethod sm = (VmStaticMethod) methodRef .getResolvedVmMethod(); dropParameters(sm, false); // Get static field object helper.writeGetStaticsEntry(curInst... | 57,067 |
public final void visit_invokestatic(VmConstMethodRef methodRef) { //TODO: port to orp-style vstack.push(eContext); methodRef.resolve(loader); final VmStaticMethod sm = (VmStaticMethod) methodRef .getResolvedVmMethod(); dropParameters(sm, false); // Get static field object helper.writeGetStaticsEntry(curInst... | public final void visit_invokestatic(VmConstMethodRef methodRef) { //TODO: port to orp-style vstack.push(eContext); methodRef.resolve(loader); final VmStaticMethod sm = (VmStaticMethod) methodRef .getResolvedVmMethod(); dropParameters(sm, false); // Get static field object helper.writeGetStaticsEntry(curInst... | 57,068 |
public final void visit_invokevirtual(VmConstMethodRef methodRef) { //TODO: port to orp-style vstack.push(eContext); methodRef.resolve(loader); final VmMethod mts = methodRef.getResolvedVmMethod(); dropParameters(mts, true); if (mts.isStatic()) { throw new IncompatibleClassChangeError( "Static method in in... | public final void visit_invokevirtual(VmConstMethodRef methodRef) { //TODO: port to orp-style vstack.push(eContext); methodRef.resolve(loader); final VmMethod mts = methodRef.getResolvedVmMethod(); dropParameters(mts, true); if (mts.isStatic()) { throw new IncompatibleClassChangeError( "Static method in in... | 57,069 |
public final void visit_ior() { //REFACTOR: parametrize the os.write operations to avoid code // duplication //IMPROVE: allow parameter permutation IntItem v2 = vstack.popInt(); IntItem v1 = vstack.popInt(); prepareForOperation(v1, v2); final Register r1 = v1.getRegister(); switch (v2.getKind()) { case Item.K... | public final void visit_ior() { //REFACTOR: parametrize the os.write operations to avoid code // duplication //IMPROVE: allow parameter permutation IntItem v2 = vstack.popInt(); IntItem v1 = vstack.popInt(); prepareForOperation(v1, v2); final Register r1 = v1.getRegister(); switch (v2.getKind()) { case Item.K... | 57,070 |
public final void visit_ireturn() { final IntItem val = vstack.popInt(); if (!val.uses(EAX)) { requestRegister(EAX, val); val.loadTo(eContext, EAX); } val.release(eContext); visit_return(); } | public final void visit_ireturn() { final IntItem val = vstack.popInt(); if (!val.uses(EAX)) { requestRegister(EAX, val); val.loadTo(eContext, EAX); } val.release(eContext); visit_return(); } | 57,071 |
public final void visit_ishl() { IntItem shift = vstack.popInt(); if (shift.getKind() != Item.Kind.CONSTANT) { requestRegister(ECX, shift); shift.loadTo(eContext, ECX); } IntItem value = vstack.popInt(); value.load(eContext); Register v = value.getRegister(); if (shift.getKind() == Item.Kind.CONSTANT) { i... | public final void visit_ishl() { IntItem shift = vstack.popInt(); if (shift.getKind() != Item.Kind.CONSTANT) { requestRegister(ECX, shift); shift.loadTo(eContext, ECX); } IntItem value = vstack.popInt(); value.load(eContext); Register v = value.getRegister(); if (shift.getKind() == Item.Kind.CONSTANT) { i... | 57,072 |
public final void visit_ishr() { IntItem shift = vstack.popInt(); if (shift.getKind() != Item.Kind.CONSTANT) { requestRegister(ECX, shift); shift.loadTo(eContext, ECX); } IntItem value = vstack.popInt(); value.load(eContext); Register v = value.getRegister(); if (shift.getKind() == Item.Kind.CONSTANT) { i... | public final void visit_ishr() { IntItem shift = vstack.popInt(); if (shift.getKind() != Item.Kind.CONSTANT) { requestRegister(ECX, shift); shift.loadTo(eContext, ECX); } IntItem value = vstack.popInt(); value.load(eContext); Register v = value.getRegister(); if (shift.getKind() == Item.Kind.CONSTANT) { i... | 57,073 |
public final void visit_istore(int index) { final int disp = stackFrame.getEbpOffset(index); vstack.loadLocal(eContext, disp); // avoid aliasing throubles IntItem i = vstack.popInt(); i.loadIf(eContext, ~Item.Kind.CONSTANT); if (i.getKind() == Item.Kind.CONSTANT) { os.writeMOV_Const(FP, disp, i.getValue()); } ... | public final void visit_istore(int index) { final int disp = stackFrame.getEbpOffset(index); vstack.loadLocal(eContext, disp); // avoid aliasing throubles IntItem i = vstack.popInt(); i.loadIf(eContext, ~Item.Kind.CONSTANT); if (i.getKind() == Item.Kind.CONSTANT) { os.writeMOV_Const(FP, disp, i.getValue()); } ... | 57,074 |
public final void visit_isub() { //REFACTOR: parametrize the os.write operations to avoid code // duplication IntItem v2 = vstack.popInt(); IntItem v1 = vstack.popInt(); prepareForOperation(v1, v2); final Register r1 = v1.getRegister(); switch (v2.getKind()) { case Item.Kind.REGISTER: os.writeSUB(r1, v2.getR... | public final void visit_isub() { //REFACTOR: parametrize the os.write operations to avoid code // duplication IntItem v2 = vstack.popInt(); IntItem v1 = vstack.popInt(); prepareForOperation(v1, v2); final Register r1 = v1.getRegister(); switch (v2.getKind()) { case Item.Kind.REGISTER: os.writeSUB(r1, v2.getR... | 57,075 |
public final void visit_iushr() { IntItem shift = vstack.popInt(); if (shift.getKind() != Item.Kind.CONSTANT) { requestRegister(ECX, shift); shift.loadTo(eContext, ECX); } IntItem value = vstack.popInt(); value.load(eContext); Register v = value.getRegister(); if (shift.getKind() == Item.Kind.CONSTANT) { ... | public final void visit_iushr() { IntItem shift = vstack.popInt(); if (shift.getKind() != Item.Kind.CONSTANT) { requestRegister(ECX, shift); shift.loadTo(eContext, ECX); } IntItem value = vstack.popInt(); value.load(eContext); Register v = value.getRegister(); if (shift.getKind() == Item.Kind.CONSTANT) { ... | 57,076 |
public final void visit_ixor() { //REFACTOR: parametrize the os.write operations to avoid code // duplication //IMPROVE: allow parameter permutation IntItem v2 = vstack.popInt(); IntItem v1 = vstack.popInt(); prepareForOperation(v1, v2); final Register r1 = v1.getRegister(); switch (v2.getKind()) { case Item.... | public final void visit_ixor() { //REFACTOR: parametrize the os.write operations to avoid code // duplication //IMPROVE: allow parameter permutation IntItem v2 = vstack.popInt(); IntItem v1 = vstack.popInt(); prepareForOperation(v1, v2); final Register r1 = v1.getRegister(); switch (v2.getKind()) { case Item.... | 57,077 |
public final void visit_ladd() { final LongItem v2 = vstack.popLong(); final LongItem v1 = vstack.popLong(); prepareForOperation(v1, v2); final Register r1_lsb = v1.getLsbRegister(); final Register r1_msb = v1.getMsbRegister(); switch (v2.getKind()) { case Item.Kind.REGISTER: os.writeADD(r1_lsb, v2.getLsbRegi... | public final void visit_ladd() { final LongItem v2 = vstack.popLong(); final LongItem v1 = vstack.popLong(); prepareForOperation(v1, v2); final Register r1_lsb = v1.getLsbRegister(); final Register r1_msb = v1.getMsbRegister(); switch (v2.getKind()) { case Item.Kind.REGISTER: os.writeADD(r1_lsb, v2.getLsbRegi... | 57,078 |
public final void visit_land() { final LongItem v2 = vstack.popLong(); final LongItem v1 = vstack.popLong(); prepareForOperation(v1, v2); final Register r1_lsb = v1.getLsbRegister(); final Register r1_msb = v1.getMsbRegister(); switch (v2.getKind()) { case Item.Kind.REGISTER: os.writeAND(r1_lsb, v2.getLsbRegi... | public final void visit_land() { final LongItem v2 = vstack.popLong(); final LongItem v1 = vstack.popLong(); prepareForOperation(v1, v2); final Register r1_lsb = v1.getLsbRegister(); final Register r1_msb = v1.getMsbRegister(); switch (v2.getKind()) { case Item.Kind.REGISTER: os.writeAND(r1_lsb, v2.getLsbRegi... | 57,079 |
public final void visit_lastore() { visit_dwastore(JvmType.LONG); } | public final void visit_lastore() { visit_dwastore(JvmType.LONG); } | 57,080 |
public final void visit_ldiv() { //TODO: port to orp-style vstack.push(eContext); final LongItem v2 = vstack.popLong(); final LongItem v1 = vstack.popLong(); v2.release1(eContext); v1.release1(eContext); helper.invokeJavaMethod(context.getLdivMethod()); } | public final void visit_ldiv() { //TODO: port to orp-style vstack.push(eContext); final LongItem v2 = vstack.popLong(); final LongItem v1 = vstack.popLong(); v2.release1(eContext); v1.release1(eContext); helper.invokeJavaMethod(context.getLdivMethod()); } | 57,081 |
public final void visit_lor() { final LongItem v2 = vstack.popLong(); final LongItem v1 = vstack.popLong(); prepareForOperation(v1, v2); final Register r1_lsb = v1.getLsbRegister(); final Register r1_msb = v1.getMsbRegister(); switch (v2.getKind()) { case Item.Kind.REGISTER: os.writeOR(r1_lsb, v2.getLsbRegist... | public final void visit_lor() { final LongItem v2 = vstack.popLong(); final LongItem v1 = vstack.popLong(); prepareForOperation(v1, v2); final Register r1_lsb = v1.getLsbRegister(); final Register r1_msb = v1.getMsbRegister(); switch (v2.getKind()) { case Item.Kind.REGISTER: os.writeOR(r1_lsb, v2.getLsbRegist... | 57,082 |
public final void visit_lrem() { //TODO: port to orp-style vstack.push(eContext); Item v2 = vstack.pop(JvmType.LONG); Item v1 = vstack.pop(JvmType.LONG); v2.release1(eContext); v1.release1(eContext); helper.invokeJavaMethod(context.getLremMethod()); } | public final void visit_lrem() { //TODO: port to orp-style vstack.push(eContext); Item v2 = vstack.pop(JvmType.LONG); Item v1 = vstack.pop(JvmType.LONG); v2.release1(eContext); v1.release1(eContext); helper.invokeJavaMethod(context.getLremMethod()); } | 57,083 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.