rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
meta
stringlengths
141
403
return (String) columnIdentifiers.get(column);
} return result;
public String getColumnName(int column) { // Check for Column if (columnIdentifiers == null || column >= getColumnCount()) { return super.getColumnName(column); } // Return Column name return (String) columnIdentifiers.get(column); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/DefaultTableModel.java/buggy/core/src/classpath/javax/javax/swing/table/DefaultTableModel.java
fireTableDataChanged();
fireTableRowsInserted(row,row);
public void insertRow(int row, Vector rowData) { dataVector.add(row, rowData); fireTableDataChanged(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/DefaultTableModel.java/buggy/core/src/classpath/javax/javax/swing/table/DefaultTableModel.java
for (int index = 0; index < (endIndex - startIndex); index++) { Vector vector = (Vector) dataVector.remove(startIndex); dataVector.add(toIndex, vector);
Vector removed = new Vector(); for (int i = endIndex; i >= startIndex; i--) { removed.add(this.dataVector.remove(i)); } for (int i = 0; i <= endIndex - startIndex; i++) { dataVector.insertElementAt(removed.get(i), toIndex);
public void moveRow(int startIndex, int endIndex, int toIndex) { for (int index = 0; index < (endIndex - startIndex); index++) { Vector vector = (Vector) dataVector.remove(startIndex); dataVector.add(toIndex, vector); } fireTableDataChanged(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/DefaultTableModel.java/buggy/core/src/classpath/javax/javax/swing/table/DefaultTableModel.java
fireTableDataChanged();
fireTableRowsDeleted(row,row);
public void removeRow(int row) { dataVector.remove(row); fireTableDataChanged(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/DefaultTableModel.java/buggy/core/src/classpath/javax/javax/swing/table/DefaultTableModel.java
if (columnIdentifiers != null)
public void setColumnCount(int columnCount) { for (int i = 0; i < dataVector.size(); ++i) { ((Vector) dataVector.get(i)).setSize(columnCount); } columnIdentifiers.setSize(columnCount); fireTableDataChanged(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/DefaultTableModel.java/buggy/core/src/classpath/javax/javax/swing/table/DefaultTableModel.java
setColumnCount(columnIdentifiers.size());
setColumnCount((columnIdentifiers == null ? 0 : columnIdentifiers.size()));
public void setColumnIdentifiers(Vector columnIdentifiers) { this.columnIdentifiers = columnIdentifiers; setColumnCount(columnIdentifiers.size()); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/DefaultTableModel.java/buggy/core/src/classpath/javax/javax/swing/table/DefaultTableModel.java
fireTableDataChanged();
fireTableRowsDeleted(rowCount,existingRowCount-1); } else { int rowsToAdd = rowCount - existingRowCount; for (int i = 0; i < rowsToAdd; i++) { Vector tmp = new Vector(); tmp.setSize(columnIdentifiers.size()); dataVector.add(tmp); } fireTableRowsInserted(existingRowCount,rowCount-1); }
public void setRowCount(int rowCount) { dataVector.setSize(rowCount); fireTableDataChanged(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/DefaultTableModel.java/buggy/core/src/classpath/javax/javax/swing/table/DefaultTableModel.java
fireTableDataChanged();
fireTableCellUpdated(row,column);
public void setValueAt(Object value, int row, int column) { ((Vector) dataVector.get(row)).set(column, value); fireTableDataChanged(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/DefaultTableModel.java/buggy/core/src/classpath/javax/javax/swing/table/DefaultTableModel.java
constLocals.remove(index);
public final void visit_iinc(int index, int incValue) { final int ebpOfs = stackFrame.getEbpOffset(typeSizeInfo, index); // pin down other references to this local vstack.loadLocal(eContext, ebpOfs); if (incValue == 1) { os.writeINC(BITS32, helper.BP, ebpOfs); } else { os.writeADD(BITS32, helper.BP, ebpOfs, i...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/291c6ac9971698cc98abb4e9b7135d5bddf3d931/X86BytecodeVisitor.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/X86BytecodeVisitor.java
eContext, JvmType.INT, false);
eContext, JvmType.INT, true);
public final void visit_instanceof(VmConstClass classRef) { // Resolve the classRef classRef.resolve(loader); // Prepare final X86RegisterPool pool = eContext.getGPRPool(); final VmType<?> resolvedType = classRef.getResolvedVmClass(); if (resolvedType.isInterface() || resolvedType.isArray()) { // It is a...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/291c6ac9971698cc98abb4e9b7135d5bddf3d931/X86BytecodeVisitor.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/X86BytecodeVisitor.java
public final void writeClassInitialize(Label curInstrLabel, GPR classReg, VmType<?> cls) { if (!cls.isInitialized()) { os.writeTEST(BITS32, classReg, entryPoints.getVmTypeState() .getOffset(), VmTypeState.ST_INITIALIZED); final Label afterInit = new Label(curInstrLabel + "$$after-classinit-ex"); os.writeJCC(afterInit,...
public final boolean writeClassInitialize(VmMethod method) { if (method.isStatic() && !method.isInitializer()) { final VmType<?> cls = method.getDeclaringClass(); if (!cls.isInitialized()) { final GPR aax = this.AAX; final int size = os.getMode().getSize(); os.writePUSH(aax); final int typeOfs = getSharedStaticsO...
public final void writeClassInitialize(Label curInstrLabel, GPR classReg, VmType<?> cls) { if (!cls.isInitialized()) { // Test declaringClass.modifiers os.writeTEST(BITS32, classReg, entryPoints.getVmTypeState() .getOffset(), VmTypeState.ST_INITIALIZED); ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/0e6a4e1128a6806a1702d359427209b153ff887a/X86CompilerHelper.java/buggy/core/src/core/org/jnode/vm/x86/compiler/X86CompilerHelper.java
os.writePUSH(classReg); invokeJavaMethod(entryPoints.getVmTypeInitialize()); if (os.isCode32()) { os.writePOPA(); } else { os.writePOP(X86Register.R15); os.writePOP(X86Register.R14); os.writePOP(X86Register.R13); os.writePOP(X86Register.R11); os.writePOP(X86Register.R10); os.writePOP(X86Register.R9); os.writePOP(X86R...
public final void writeClassInitialize(Label curInstrLabel, GPR classReg, VmType<?> cls) { if (!cls.isInitialized()) { // Test declaringClass.modifiers os.writeTEST(BITS32, classReg, entryPoints.getVmTypeState() .getOffset(), VmTypeState.ST_INITIALIZED); ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/0e6a4e1128a6806a1702d359427209b153ff887a/X86CompilerHelper.java/buggy/core/src/core/org/jnode/vm/x86/compiler/X86CompilerHelper.java
return false;
public final void writeClassInitialize(Label curInstrLabel, GPR classReg, VmType<?> cls) { if (!cls.isInitialized()) { // Test declaringClass.modifiers os.writeTEST(BITS32, classReg, entryPoints.getVmTypeState() .getOffset(), VmTypeState.ST_INITIALIZED); ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/0e6a4e1128a6806a1702d359427209b153ff887a/X86CompilerHelper.java/buggy/core/src/core/org/jnode/vm/x86/compiler/X86CompilerHelper.java
public final void writeGetStaticsEntry64(Label curInstrLabel, GPR64 dstReg, VmSharedStaticsEntry entry) {
public final void writeGetStaticsEntry64(Label curInstrLabel, GPR lsbDst, GPR msbReg, VmSharedStaticsEntry entry) {
public final void writeGetStaticsEntry64(Label curInstrLabel, GPR64 dstReg, VmSharedStaticsEntry entry) { writeLoadSTATICS(curInstrLabel, "gs64", true); os .writeMOV(BITS64, dstReg, this.STATICS, getSharedStaticsOffset(entry)); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/0e6a4e1128a6806a1702d359427209b153ff887a/X86CompilerHelper.java/buggy/core/src/core/org/jnode/vm/x86/compiler/X86CompilerHelper.java
os .writeMOV(BITS64, dstReg, this.STATICS, getSharedStaticsOffset(entry));
final int staticsOfs = getSharedStaticsOffset(entry); os.writeMOV(INTSIZE, msbReg, this.STATICS, staticsOfs + 4); os.writeMOV(INTSIZE, lsbDst, this.STATICS, staticsOfs + 0);
public final void writeGetStaticsEntry64(Label curInstrLabel, GPR64 dstReg, VmSharedStaticsEntry entry) { writeLoadSTATICS(curInstrLabel, "gs64", true); os .writeMOV(BITS64, dstReg, this.STATICS, getSharedStaticsOffset(entry)); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/0e6a4e1128a6806a1702d359427209b153ff887a/X86CompilerHelper.java/buggy/core/src/core/org/jnode/vm/x86/compiler/X86CompilerHelper.java
public final void writePutStaticsEntry64(Label curInstrLabel, GPR64 srcReg, VmSharedStaticsEntry entry) {
public final void writePutStaticsEntry64(Label curInstrLabel, GPR lsbSrc, GPR msbSrc, VmSharedStaticsEntry entry) {
public final void writePutStaticsEntry64(Label curInstrLabel, GPR64 srcReg, VmSharedStaticsEntry entry) { writeLoadSTATICS(curInstrLabel, "ps64", true); os .writeMOV(BITS64, this.STATICS, getSharedStaticsOffset(entry), srcReg); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/0e6a4e1128a6806a1702d359427209b153ff887a/X86CompilerHelper.java/buggy/core/src/core/org/jnode/vm/x86/compiler/X86CompilerHelper.java
os .writeMOV(BITS64, this.STATICS, getSharedStaticsOffset(entry), srcReg);
final int staticsOfs = getSharedStaticsOffset(entry); os.writeMOV(BITS32, this.STATICS, staticsOfs + 4, msbSrc); os.writeMOV(BITS32, this.STATICS, staticsOfs + 0, lsbSrc);
public final void writePutStaticsEntry64(Label curInstrLabel, GPR64 srcReg, VmSharedStaticsEntry entry) { writeLoadSTATICS(curInstrLabel, "ps64", true); os .writeMOV(BITS64, this.STATICS, getSharedStaticsOffset(entry), srcReg); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/0e6a4e1128a6806a1702d359427209b153ff887a/X86CompilerHelper.java/buggy/core/src/core/org/jnode/vm/x86/compiler/X86CompilerHelper.java
requestRegister(EAX, val); requestRegister(EDX, val);
L1AHelper.requestRegister(eContext, EAX, val); L1AHelper.requestRegister(eContext, EDX, val);
private final void dwreturn(int jvmType) { final DoubleWordItem val = (DoubleWordItem) vstack.pop(jvmType); // Return value must be in EAX:EDX if (!(val.uses(EAX) && val.uses(EDX))) { if (val.uses(EAX) || val.uses(EDX)) { val.push(eContext); } requestRegister(EAX, val); requestRegister(EDX, val); val.l...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7f3f443c80552e30cb144c1a1ce760d89fa35f2b/X86BytecodeVisitor.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/X86BytecodeVisitor.java
requestRegister(ECX, shift);
L1AHelper.requestRegister(eContext, ECX, shift);
private final void ishift(int operation) { final IntItem shift = vstack.popInt(); final boolean isconst = shift.isConstant(); if (!isconst) { requestRegister(ECX, shift); shift.loadTo(eContext, ECX); } // Pop & load final IntItem val = vstack.popInt(); val.loadIf(eContext, ~Item.Kind.LOCAL); if (val.isLoca...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7f3f443c80552e30cb144c1a1ce760d89fa35f2b/X86BytecodeVisitor.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/X86BytecodeVisitor.java
requestRegister(EAX);
L1AHelper.requestRegister(eContext, EAX);
public final void visit_anewarray(VmConstClass classRef) { // Claim EAX, we're going to use it later requestRegister(EAX); // Request tmp register final Register classr = requestRegister(JvmType.INT, false); // Pop final IntItem cnt = vstack.popInt(); // Load the count value cnt.load(eContext); final Register...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7f3f443c80552e30cb144c1a1ce760d89fa35f2b/X86BytecodeVisitor.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/X86BytecodeVisitor.java
final Register classr = requestRegister(JvmType.INT, false);
final Register classr = L1AHelper.requestRegister(eContext, JvmType.INT, false);
public final void visit_anewarray(VmConstClass classRef) { // Claim EAX, we're going to use it later requestRegister(EAX); // Request tmp register final Register classr = requestRegister(JvmType.INT, false); // Pop final IntItem cnt = vstack.popInt(); // Load the count value cnt.load(eContext); final Register...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7f3f443c80552e30cb144c1a1ce760d89fa35f2b/X86BytecodeVisitor.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/X86BytecodeVisitor.java
releaseRegister(EAX);
L1AHelper.releaseRegister(eContext, EAX);
public final void visit_anewarray(VmConstClass classRef) { // Claim EAX, we're going to use it later requestRegister(EAX); // Request tmp register final Register classr = requestRegister(JvmType.INT, false); // Pop final IntItem cnt = vstack.popInt(); // Load the count value cnt.load(eContext); final Register...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7f3f443c80552e30cb144c1a1ce760d89fa35f2b/X86BytecodeVisitor.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/X86BytecodeVisitor.java
releaseRegister(classr);
L1AHelper.releaseRegister(eContext, classr);
public final void visit_anewarray(VmConstClass classRef) { // Claim EAX, we're going to use it later requestRegister(EAX); // Request tmp register final Register classr = requestRegister(JvmType.INT, false); // Pop final IntItem cnt = vstack.popInt(); // Load the count value cnt.load(eContext); final Register...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7f3f443c80552e30cb144c1a1ce760d89fa35f2b/X86BytecodeVisitor.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/X86BytecodeVisitor.java
final IntItem result = (IntItem) requestWordRegister(JvmType.INT, false);
final IntItem result = (IntItem) L1AHelper.requestWordRegister( eContext, JvmType.INT, false);
public final void visit_arraylength() { final RefItem ref = vstack.popRef(); final IntItem result = (IntItem) requestWordRegister(JvmType.INT, false); // Load ref.load(eContext); final Register refr = ref.getRegister(); final Register resultr = result.getRegister(); // Get length os.writeMOV(INTSIZE, resultr, ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7f3f443c80552e30cb144c1a1ce760d89fa35f2b/X86BytecodeVisitor.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/X86BytecodeVisitor.java
requestRegister(EAX, ref);
L1AHelper.requestRegister(eContext, EAX, ref);
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); } // Jump helper.writeJumpTableCALL(X86JumpTable.VM_ATHROW_OFS); // Release ref.release(eContext); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7f3f443c80552e30cb144c1a1ce760d89fa35f2b/X86BytecodeVisitor.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/X86BytecodeVisitor.java
public final void visit_checkcast(VmConstClass classRef) {
public final void visit_checkcast(VmConstClass classRef) {
public final void visit_checkcast(VmConstClass classRef) { // Pre-claim ECX requestRegister(ECX); 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 = EAX; final R...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7f3f443c80552e30cb144c1a1ce760d89fa35f2b/X86BytecodeVisitor.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/X86BytecodeVisitor.java
requestRegister(ECX); requestRegister(EAX);
L1AHelper.requestRegister(eContext, ECX); L1AHelper.requestRegister(eContext, EAX);
public final void visit_checkcast(VmConstClass classRef) { // Pre-claim ECX requestRegister(ECX); 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 = EAX; final R...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7f3f443c80552e30cb144c1a1ce760d89fa35f2b/X86BytecodeVisitor.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/X86BytecodeVisitor.java
final Register tmpr = requestRegister(JvmType.INT, false);
final Register tmpr = L1AHelper.requestRegister(eContext, JvmType.INT, false);
public final void visit_checkcast(VmConstClass classRef) { // Pre-claim ECX requestRegister(ECX); 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 = EAX; final R...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7f3f443c80552e30cb144c1a1ce760d89fa35f2b/X86BytecodeVisitor.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/X86BytecodeVisitor.java
releaseRegister(ECX); releaseRegister(classr); releaseRegister(tmpr);
L1AHelper.releaseRegister(eContext, ECX); L1AHelper.releaseRegister(eContext, classr); L1AHelper.releaseRegister(eContext, tmpr);
public final void visit_checkcast(VmConstClass classRef) { // Pre-claim ECX requestRegister(ECX); 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 = EAX; final R...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7f3f443c80552e30cb144c1a1ce760d89fa35f2b/X86BytecodeVisitor.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/X86BytecodeVisitor.java
final WordItem iw = requestWordRegister(type, false);
final WordItem iw = L1AHelper.requestWordRegister(eContext, type, false);
public final void visit_getfield(VmConstFieldRef fieldRef) { fieldRef.resolve(loader); final VmField field = fieldRef.getResolvedVmField(); if (field.isStatic()) { throw new IncompatibleClassChangeError( "getfield called on static field " + fieldRef.getName()); } final VmInstanceField inf = (VmInstanceField...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7f3f443c80552e30cb144c1a1ce760d89fa35f2b/X86BytecodeVisitor.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/X86BytecodeVisitor.java
final DoubleWordItem idw = requestDoubleWordRegisters(type);
final DoubleWordItem idw = L1AHelper .requestDoubleWordRegisters(eContext, type);
public final void visit_getfield(VmConstFieldRef fieldRef) { fieldRef.resolve(loader); final VmField field = fieldRef.getResolvedVmField(); if (field.isStatic()) { throw new IncompatibleClassChangeError( "getfield called on static field " + fieldRef.getName()); } final VmInstanceField inf = (VmInstanceField...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7f3f443c80552e30cb144c1a1ce760d89fa35f2b/X86BytecodeVisitor.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/X86BytecodeVisitor.java
final Register tmp = requestRegister(JvmType.INT, false);
final Register tmp = L1AHelper.requestRegister(eContext, JvmType.INT, false);
public final void visit_getstatic(VmConstFieldRef fieldRef) { fieldRef.resolve(loader); final int type = JvmType.SignatureToType(fieldRef.getSignature()); final VmStaticField sf = (VmStaticField) fieldRef.getResolvedVmField(); // Initialize if needed if (!sf.getDeclaringClass().isInitialized()) { final X86Regis...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7f3f443c80552e30cb144c1a1ce760d89fa35f2b/X86BytecodeVisitor.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/X86BytecodeVisitor.java
final WordItem result = requestWordRegister(type, false);
final WordItem result = L1AHelper.requestWordRegister(eContext, type, false);
public final void visit_getstatic(VmConstFieldRef fieldRef) { fieldRef.resolve(loader); final int type = JvmType.SignatureToType(fieldRef.getSignature()); final VmStaticField sf = (VmStaticField) fieldRef.getResolvedVmField(); // Initialize if needed if (!sf.getDeclaringClass().isInitialized()) { final X86Regis...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7f3f443c80552e30cb144c1a1ce760d89fa35f2b/X86BytecodeVisitor.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/X86BytecodeVisitor.java
final DoubleWordItem result = requestDoubleWordRegisters(type);
final DoubleWordItem result = L1AHelper.requestDoubleWordRegisters( eContext, type);
public final void visit_getstatic(VmConstFieldRef fieldRef) { fieldRef.resolve(loader); final int type = JvmType.SignatureToType(fieldRef.getSignature()); final VmStaticField sf = (VmStaticField) fieldRef.getResolvedVmField(); // Initialize if needed if (!sf.getDeclaringClass().isInitialized()) { final X86Regis...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7f3f443c80552e30cb144c1a1ce760d89fa35f2b/X86BytecodeVisitor.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/X86BytecodeVisitor.java
requestRegister(EAX); requestRegister(EDX);
L1AHelper.requestRegister(eContext, EAX); L1AHelper.requestRegister(eContext, EDX);
public final void visit_i2l() { final IntItem v = vstack.popInt(); if (v.isConstant()) { vstack.push(LongItem.createConst(v.getValue())); } else { final X86RegisterPool pool = eContext.getPool(); requestRegister(EAX); requestRegister(EDX); v.loadTo(eContext, EAX); final LongItem result = LongItem.create...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7f3f443c80552e30cb144c1a1ce760d89fa35f2b/X86BytecodeVisitor.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/X86BytecodeVisitor.java
requestRegister(EAX, v1);
L1AHelper.requestRegister(eContext, EAX, v1);
public final void visit_idiv() { final X86RegisterPool pool = eContext.getPool(); // Pop the arguments of the vstack final IntItem v2 = vstack.popInt(); final IntItem v1 = vstack.popInt(); // We need v1 in EAX, so if that is not the case, // spill those item using EAX requestRegister(EAX, v1); // We need to us...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7f3f443c80552e30cb144c1a1ce760d89fa35f2b/X86BytecodeVisitor.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/X86BytecodeVisitor.java
requestRegister(EDX);
L1AHelper.requestRegister(eContext, EDX);
public final void visit_idiv() { final X86RegisterPool pool = eContext.getPool(); // Pop the arguments of the vstack final IntItem v2 = vstack.popInt(); final IntItem v1 = vstack.popInt(); // We need v1 in EAX, so if that is not the case, // spill those item using EAX requestRegister(EAX, v1); // We need to us...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7f3f443c80552e30cb144c1a1ce760d89fa35f2b/X86BytecodeVisitor.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/X86BytecodeVisitor.java
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 if (prepareForOperation(v1, v2, true)) { // Swap final RefItem tmp = v2; ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7f3f443c80552e30cb144c1a1ce760d89fa35f2b/X86BytecodeVisitor.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/X86BytecodeVisitor.java
int c2 = v2.getValue();
final int c2 = v2.getValue();
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 if (prepareForOperation(v1, v2, (jccOpcode == X86Constants.JE) || (jccOpcode...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7f3f443c80552e30cb144c1a1ce760d89fa35f2b/X86BytecodeVisitor.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/X86BytecodeVisitor.java
os.writeJCC(helper.getInstrLabel(address), jccOpcode);
os.writeJMP(helper.getInstrLabel(address));
private void visit_ifxx(int type, int address, int jccOpcode) { //IMPROVE: Local case final WordItem val = (WordItem) vstack.pop(type); if ((type == JvmType.INT) && val.isConstant()) { final int ival = ((IntItem) val).getValue(); final boolean jump; switch (jccOpcode) { case X86Constants.JE: jump = (ival...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7f3f443c80552e30cb144c1a1ce760d89fa35f2b/X86BytecodeVisitor.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/X86BytecodeVisitor.java
requestRegister(ECX);
L1AHelper.requestRegister(eContext, ECX);
public final void visit_instanceof(VmConstClass classRef) { // Prepare final X86RegisterPool pool = eContext.getPool(); // Pre-claim ECX requestRegister(ECX); // Load reference final RefItem ref = vstack.popRef(); ref.load(eContext); final Register refr = ref.getRegister(); // Allocate tmp registers final Re...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7f3f443c80552e30cb144c1a1ce760d89fa35f2b/X86BytecodeVisitor.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/X86BytecodeVisitor.java
final Register classr = requestRegister(JvmType.INT, false); final Register tmpr = requestRegister(JvmType.INT, false);
final Register classr = L1AHelper.requestRegister(eContext, JvmType.INT, false); final Register tmpr = L1AHelper.requestRegister(eContext, JvmType.INT, false);
public final void visit_instanceof(VmConstClass classRef) { // Prepare final X86RegisterPool pool = eContext.getPool(); // Pre-claim ECX requestRegister(ECX); // Load reference final RefItem ref = vstack.popRef(); ref.load(eContext); final Register refr = ref.getRegister(); // Allocate tmp registers final Re...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7f3f443c80552e30cb144c1a1ce760d89fa35f2b/X86BytecodeVisitor.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/X86BytecodeVisitor.java
/* Get objectref -> S0 */ os.writeMOV(INTSIZE, S0, SP, argSlotCount * slotSize); /* Get VMT of objectef -> S0 */ os.writeMOV(INTSIZE, S0, S0, tibOffset);
/* Get objectref -> EAX */ os.writeMOV(INTSIZE, EAX, SP, argSlotCount * slotSize); /* Get VMT of objectef -> EAX */ os.writeMOV(INTSIZE, EAX, EAX, tibOffset);
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...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7f3f443c80552e30cb144c1a1ce760d89fa35f2b/X86BytecodeVisitor.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/X86BytecodeVisitor.java
os.writeMOV(INTSIZE, EAX, S0, arrayDataOffset + (tibIndex * slotSize));
os.writeMOV(INTSIZE, EAX, EAX, arrayDataOffset + (tibIndex * slotSize));
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...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7f3f443c80552e30cb144c1a1ce760d89fa35f2b/X86BytecodeVisitor.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/X86BytecodeVisitor.java
vstack.push(eContext); IntItem v2 = vstack.popInt(); IntItem v1 = vstack.popInt(); v2.release1(eContext); v1.release1(eContext); vstack.push1(IntItem.createStack());
L1AHelper.requestRegister(eContext, EDX); final IntItem result = IntItem.createReg(EDX); eContext.getPool().transferOwnerTo(EDX, result);
public final void visit_irem() { //TODO: port to orp-style vstack.push(eContext); IntItem v2 = vstack.popInt(); IntItem v1 = vstack.popInt(); v2.release1(eContext); v1.release1(eContext); vstack.push1(IntItem.createStack()); os.writePOP(S0); // Value2 os.writePOP(EAX); // Value1 os.writeCDQ(); os.writeIDIV_...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7f3f443c80552e30cb144c1a1ce760d89fa35f2b/X86BytecodeVisitor.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/X86BytecodeVisitor.java
os.writePOP(S0); os.writePOP(EAX); os.writeCDQ(); os.writeIDIV_EAX(S0); os.writePUSH(EDX);
final IntItem v2 = vstack.popInt(); final IntItem v1 = vstack.popInt(); L1AHelper.requestRegister(eContext, EAX, v1); v2.loadIf(eContext, ~Item.Kind.LOCAL); v1.loadTo(eContext, EAX); os.writeCDQ(); if (v2.isLocal()) { os.writeIDIV_EAX(FP, v2.getOffsetToFP()); } else { os.writeIDIV_EAX(v2.getRegister()); } vstac...
public final void visit_irem() { //TODO: port to orp-style vstack.push(eContext); IntItem v2 = vstack.popInt(); IntItem v1 = vstack.popInt(); v2.release1(eContext); v1.release1(eContext); vstack.push1(IntItem.createStack()); os.writePOP(S0); // Value2 os.writePOP(EAX); // Value1 os.writeCDQ(); os.writeIDIV_...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7f3f443c80552e30cb144c1a1ce760d89fa35f2b/X86BytecodeVisitor.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/X86BytecodeVisitor.java
final DoubleWordItem result = requestDoubleWordRegisters(JvmType.LONG); os.writeLEA(refr, refr, idxr, 8, VmArray.DATA_OFFSET * 4); os.writeMOV(INTSIZE, result.getLsbRegister(), refr, 0); os.writeMOV(INTSIZE, result.getMsbRegister(), refr, 4);
final DoubleWordItem result = L1AHelper.requestDoubleWordRegisters( eContext, JvmType.LONG); os.writeLEA(refr, refr, idxr, 8, arrayDataOffset); os.writeMOV(INTSIZE, result.getLsbRegister(), refr, LSB); os.writeMOV(INTSIZE, result.getMsbRegister(), refr, MSB);
public final void visit_laload() { final IntItem idx = vstack.popInt(); final RefItem ref = vstack.popRef(); idx.load(eContext); ref.load(eContext); final Register idxr = idx.getRegister(); final Register refr = ref.getRegister(); checkBounds(refr, idxr); final DoubleWordItem result = requestDoubleWordRegister...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7f3f443c80552e30cb144c1a1ce760d89fa35f2b/X86BytecodeVisitor.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/X86BytecodeVisitor.java
vstack.push(result);
public final void visit_laload() { final IntItem idx = vstack.popInt(); final RefItem ref = vstack.popRef(); idx.load(eContext); ref.load(eContext); final Register idxr = idx.getRegister(); final Register refr = ref.getRegister(); checkBounds(refr, idxr); final DoubleWordItem result = requestDoubleWordRegister...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7f3f443c80552e30cb144c1a1ce760d89fa35f2b/X86BytecodeVisitor.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/X86BytecodeVisitor.java
final IntItem result = (IntItem) requestWordRegister(JvmType.INT, false);
final IntItem result = (IntItem) L1AHelper.requestWordRegister( eContext, JvmType.INT, false);
public final void visit_lcmp() { final LongItem v2 = vstack.popLong(); final LongItem v1 = vstack.popLong(); // Load v2.load(eContext); final Register v2_lsb = v2.getLsbRegister(); final Register v2_msb = v2.getMsbRegister(); v1.load(eContext); final Register v1_lsb = v1.getLsbRegister(); final Register v1_ms...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7f3f443c80552e30cb144c1a1ce760d89fa35f2b/X86BytecodeVisitor.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/X86BytecodeVisitor.java
final LongItem result = (LongItem) requestDoubleWordRegisters( JvmType.LONG, EAX, EDX);
final LongItem result = (LongItem) L1AHelper .requestDoubleWordRegisters(eContext, JvmType.LONG, EAX, EDX);
public final void visit_lmul() { //TODO: port to orp-style vstack.push(eContext); final LongItem v2 = vstack.popLong(); final LongItem v1 = vstack.popLong(); v2.release1(eContext); v1.release1(eContext); writePOP64(Register.EBX, Register.ECX); // Value 2 final Register v2_lsb = Register.EBX; final Register v2...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7f3f443c80552e30cb144c1a1ce760d89fa35f2b/X86BytecodeVisitor.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/X86BytecodeVisitor.java
IntItem key = vstack.popInt();
final IntItem key = vstack.popInt();
public final void visit_lookupswitch(int defAddress, int[] matchValues, int[] addresses) { final int n = matchValues.length; //BootLog.debug("lookupswitch length=" + n); IntItem key = vstack.popInt(); key.load(eContext); Register r = key.getRegister(); // Conservative assumption, flush stack vstack.push(eCont...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7f3f443c80552e30cb144c1a1ce760d89fa35f2b/X86BytecodeVisitor.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/X86BytecodeVisitor.java
Register r = key.getRegister();
final Register keyr = key.getRegister();
public final void visit_lookupswitch(int defAddress, int[] matchValues, int[] addresses) { final int n = matchValues.length; //BootLog.debug("lookupswitch length=" + n); IntItem key = vstack.popInt(); key.load(eContext); Register r = key.getRegister(); // Conservative assumption, flush stack vstack.push(eCont...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7f3f443c80552e30cb144c1a1ce760d89fa35f2b/X86BytecodeVisitor.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/X86BytecodeVisitor.java
os.writeCMP_Const(r, matchValues[i]);
os.writeCMP_Const(keyr, matchValues[i]);
public final void visit_lookupswitch(int defAddress, int[] matchValues, int[] addresses) { final int n = matchValues.length; //BootLog.debug("lookupswitch length=" + n); IntItem key = vstack.popInt(); key.load(eContext); Register r = key.getRegister(); // Conservative assumption, flush stack vstack.push(eCont...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7f3f443c80552e30cb144c1a1ce760d89fa35f2b/X86BytecodeVisitor.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/X86BytecodeVisitor.java
requestRegister(ECX, v2);
L1AHelper.requestRegister(eContext, ECX, v2);
public final void visit_lshl() { final IntItem v2 = vstack.popInt(); final LongItem v1 = vstack.popLong(); requestRegister(ECX, v2); v2.loadTo(eContext, ECX); v1.load(eContext); final Register v1_lsb = v1.getLsbRegister(); final Register v1_msb = v1.getMsbRegister(); os.writeAND(ECX, 63); os.writeCMP_Const(EC...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7f3f443c80552e30cb144c1a1ce760d89fa35f2b/X86BytecodeVisitor.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/X86BytecodeVisitor.java
requestRegister(ECX, cnt);
L1AHelper.requestRegister(eContext, ECX, cnt);
public final void visit_lshr() { final IntItem cnt = vstack.popInt(); final LongItem val = vstack.popLong(); final X86RegisterPool pool = eContext.getPool(); // Get cnt into ECX if (!cnt.uses(ECX)) { val.spillIfUsing(eContext, ECX); requestRegister(ECX, cnt); cnt.loadTo(eContext, ECX); } // Load val val....
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7f3f443c80552e30cb144c1a1ce760d89fa35f2b/X86BytecodeVisitor.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/X86BytecodeVisitor.java
requestRegister(ECX, cnt);
L1AHelper.requestRegister(eContext, ECX, cnt);
public final void visit_lushr() { final IntItem cnt = vstack.popInt(); final LongItem val = vstack.popLong(); final X86RegisterPool pool = eContext.getPool(); // Get cnt into ECX if (!cnt.uses(ECX)) { val.spillIfUsing(eContext, ECX); requestRegister(ECX, cnt); cnt.loadTo(eContext, ECX); } // Load val val...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7f3f443c80552e30cb144c1a1ce760d89fa35f2b/X86BytecodeVisitor.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/X86BytecodeVisitor.java
RefItem v = vstack.popRef();
final RefItem v = vstack.popRef();
public final void visit_monitorenter() { vstack.push(eContext); RefItem v = vstack.popRef(); v.release1(eContext); // Objectref is already on the stack invokeJavaMethod(context.getMonitorEnterMethod()); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7f3f443c80552e30cb144c1a1ce760d89fa35f2b/X86BytecodeVisitor.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/X86BytecodeVisitor.java
RefItem v = vstack.popRef();
final RefItem v = vstack.popRef();
public final void visit_monitorexit() { vstack.push(eContext); RefItem v = vstack.popRef(); v.release1(eContext); // Objectref is already on the stack invokeJavaMethod(context.getMonitorExitMethod()); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7f3f443c80552e30cb144c1a1ce760d89fa35f2b/X86BytecodeVisitor.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/X86BytecodeVisitor.java
public final void visit_multianewarray(VmConstClass clazz, int dimensions) { // flush all vstack items to the stack // all registers are freed vstack.push(eContext); // Create the dimensions array os.writePUSH(10); /* type=int */ os.writePUSH(dimensions); /* elements */ invokeJavaMethod(context.getAllocPrimitiv...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7f3f443c80552e30cb144c1a1ce760d89fa35f2b/X86BytecodeVisitor.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/X86BytecodeVisitor.java
final Register classr = requestRegister(JvmType.REFERENCE, false);
final Register classr = L1AHelper.requestRegister(eContext, JvmType.REFERENCE, false);
public final void visit_multianewarray(VmConstClass clazz, int dimensions) { // flush all vstack items to the stack // all registers are freed vstack.push(eContext); // Create the dimensions array os.writePUSH(10); /* type=int */ os.writePUSH(dimensions); /* elements */ invokeJavaMethod(context.getAllocPrimitiv...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7f3f443c80552e30cb144c1a1ce760d89fa35f2b/X86BytecodeVisitor.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/X86BytecodeVisitor.java
releaseRegister(classr);
L1AHelper.releaseRegister(eContext, classr);
public final void visit_multianewarray(VmConstClass clazz, int dimensions) { // flush all vstack items to the stack // all registers are freed vstack.push(eContext); // Create the dimensions array os.writePUSH(10); /* type=int */ os.writePUSH(dimensions); /* elements */ invokeJavaMethod(context.getAllocPrimitiv...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7f3f443c80552e30cb144c1a1ce760d89fa35f2b/X86BytecodeVisitor.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/X86BytecodeVisitor.java
final Register classr = requestRegister(JvmType.REFERENCE, false);
final Register classr = L1AHelper.requestRegister(eContext, JvmType.REFERENCE, false);
public final void visit_new(VmConstClass classRef) { // Push all vstack.push(eContext); // Allocate tmp register final Register classr = requestRegister(JvmType.REFERENCE, false); writeResolveAndLoadClassToReg(classRef, classr); /* Setup a call to SoftByteCodes.allocObject */ os.writePUSH(classr); /* vmClass */...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7f3f443c80552e30cb144c1a1ce760d89fa35f2b/X86BytecodeVisitor.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/X86BytecodeVisitor.java
releaseRegister(classr);
L1AHelper.releaseRegister(eContext, classr);
public final void visit_new(VmConstClass classRef) { // Push all vstack.push(eContext); // Allocate tmp register final Register classr = requestRegister(JvmType.REFERENCE, false); writeResolveAndLoadClassToReg(classRef, classr); /* Setup a call to SoftByteCodes.allocObject */ os.writePUSH(classr); /* vmClass */...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7f3f443c80552e30cb144c1a1ce760d89fa35f2b/X86BytecodeVisitor.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/X86BytecodeVisitor.java
if (helper.needsWriteBarrier()) { final Register tmp = requestRegister(JvmType.INT, false);
if (!inf.isPrimitive() && helper.needsWriteBarrier()) { final Register tmp = L1AHelper.requestRegister(eContext, JvmType.INT, false);
public final void visit_putfield(VmConstFieldRef fieldRef) { fieldRef.resolve(loader); final VmField field = fieldRef.getResolvedVmField(); if (field.isStatic()) { throw new IncompatibleClassChangeError( "getfield called on static field " + fieldRef.getName()); } final VmInstanceField inf = (VmInstanceField...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7f3f443c80552e30cb144c1a1ce760d89fa35f2b/X86BytecodeVisitor.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/X86BytecodeVisitor.java
releaseRegister(tmp);
L1AHelper.releaseRegister(eContext, tmp);
public final void visit_putfield(VmConstFieldRef fieldRef) { fieldRef.resolve(loader); final VmField field = fieldRef.getResolvedVmField(); if (field.isStatic()) { throw new IncompatibleClassChangeError( "getfield called on static field " + fieldRef.getName()); } final VmInstanceField inf = (VmInstanceField...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7f3f443c80552e30cb144c1a1ce760d89fa35f2b/X86BytecodeVisitor.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/X86BytecodeVisitor.java
final Register tmp = requestRegister(JvmType.INT, false);
final Register tmp = L1AHelper.requestRegister(eContext, JvmType.INT, false);
public final void visit_putstatic(VmConstFieldRef fieldRef) { fieldRef.resolve(loader); final VmStaticField sf = (VmStaticField) fieldRef.getResolvedVmField(); // Initialize class if needed if (!sf.getDeclaringClass().isInitialized()) { final Register tmp = requestRegister(JvmType.INT, false); writeInitializeC...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7f3f443c80552e30cb144c1a1ce760d89fa35f2b/X86BytecodeVisitor.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/X86BytecodeVisitor.java
releaseRegister(tmp);
L1AHelper.releaseRegister(eContext, tmp);
public final void visit_putstatic(VmConstFieldRef fieldRef) { fieldRef.resolve(loader); final VmStaticField sf = (VmStaticField) fieldRef.getResolvedVmField(); // Initialize class if needed if (!sf.getDeclaringClass().isInitialized()) { final Register tmp = requestRegister(JvmType.INT, false); writeInitializeC...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7f3f443c80552e30cb144c1a1ce760d89fa35f2b/X86BytecodeVisitor.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/X86BytecodeVisitor.java
if (helper.needsWriteBarrier()) { final Register tmp = requestRegister(JvmType.INT, false);
if (!sf.isPrimitive() && helper.needsWriteBarrier()) { final Register tmp = L1AHelper.requestRegister(eContext, JvmType.INT, false);
public final void visit_putstatic(VmConstFieldRef fieldRef) { fieldRef.resolve(loader); final VmStaticField sf = (VmStaticField) fieldRef.getResolvedVmField(); // Initialize class if needed if (!sf.getDeclaringClass().isInitialized()) { final Register tmp = requestRegister(JvmType.INT, false); writeInitializeC...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7f3f443c80552e30cb144c1a1ce760d89fa35f2b/X86BytecodeVisitor.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/X86BytecodeVisitor.java
releaseRegister(tmp);
L1AHelper.releaseRegister(eContext, tmp);
public final void visit_putstatic(VmConstFieldRef fieldRef) { fieldRef.resolve(loader); final VmStaticField sf = (VmStaticField) fieldRef.getResolvedVmField(); // Initialize class if needed if (!sf.getDeclaringClass().isInitialized()) { final Register tmp = requestRegister(JvmType.INT, false); writeInitializeC...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7f3f443c80552e30cb144c1a1ce760d89fa35f2b/X86BytecodeVisitor.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/X86BytecodeVisitor.java
final Register tmp = requestRegister(JvmType.INT, false);
public final void visit_ret(int index) { // Calc EBP offset final int ebpOfs = stackFrame.getEbpOffset(index); // Claim tmp register final Register tmp = requestRegister(JvmType.INT, false); // Load ret & jmp os.writeMOV(INTSIZE, tmp, FP, ebpOfs); os.writeJMP(tmp); // Release releaseRegister(tmp); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7f3f443c80552e30cb144c1a1ce760d89fa35f2b/X86BytecodeVisitor.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/X86BytecodeVisitor.java
os.writeMOV(INTSIZE, tmp, FP, ebpOfs); os.writeJMP(tmp); releaseRegister(tmp);
os.writeJMP(FP, ebpOfs);
public final void visit_ret(int index) { // Calc EBP offset final int ebpOfs = stackFrame.getEbpOffset(index); // Claim tmp register final Register tmp = requestRegister(JvmType.INT, false); // Load ret & jmp os.writeMOV(INTSIZE, tmp, FP, ebpOfs); os.writeJMP(tmp); // Release releaseRegister(tmp); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7f3f443c80552e30cb144c1a1ce760d89fa35f2b/X86BytecodeVisitor.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/X86BytecodeVisitor.java
valSize = WORDSIZE; scale = 2; resultType = JvmType.INT; break;
private final void waload(int jvmType) { final IntItem idx = vstack.popInt(); final RefItem ref = vstack.popRef(); final int valSize; final int scale; final int resultType; final boolean isfloat = (jvmType == JvmType.FLOAT); switch (jvmType) { case JvmType.BYTE: valSize = BYTESIZE; scale = 1; resultType ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7f3f443c80552e30cb144c1a1ce760d89fa35f2b/X86BytecodeVisitor.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/X86BytecodeVisitor.java
result = requestWordRegister(resultType, (valSize == BYTESIZE));
result = L1AHelper.requestWordRegister(eContext, resultType, (valSize == BYTESIZE));
private final void waload(int jvmType) { final IntItem idx = vstack.popInt(); final RefItem ref = vstack.popRef(); final int valSize; final int scale; final int resultType; final boolean isfloat = (jvmType == JvmType.FLOAT); switch (jvmType) { case JvmType.BYTE: valSize = BYTESIZE; scale = 1; resultType ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7f3f443c80552e30cb144c1a1ce760d89fa35f2b/X86BytecodeVisitor.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/X86BytecodeVisitor.java
valSize = WORDSIZE; scale = 2; valType = JvmType.INT; break;
private final void wastore(int jvmType) { final boolean useBarrier = (context.getWriteBarrier() != null); final int valSize; final int scale; final int valType; int extraLoadIdxMask = 0; switch (jvmType) { case JvmType.BYTE: valSize = BYTESIZE; scale = 1; valType = JvmType.INT; break; case JvmType.CHAR...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7f3f443c80552e30cb144c1a1ce760d89fa35f2b/X86BytecodeVisitor.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/X86BytecodeVisitor.java
requestRegister(EAX, val);
L1AHelper.requestRegister(eContext, EAX, val);
private final void wreturn(int jvmType) { final WordItem val = (WordItem) vstack.pop(jvmType); // Return value must be in EAX if (!val.uses(EAX)) { requestRegister(EAX, val); val.loadTo(eContext, EAX); } // Release val.release(eContext); // Do actual return visit_return(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7f3f443c80552e30cb144c1a1ce760d89fa35f2b/X86BytecodeVisitor.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/X86BytecodeVisitor.java
vstack.push(eContext);
private final void writeInitializeClass(VmConstFieldRef fieldRef, Register scratch) { // Get fieldRef via constantpool to avoid direct object references in // the native code final VmType declClass = fieldRef.getResolvedVmField() .getDeclaringClass(); if (!declClass.isInitialized()) { // Now look for class ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7f3f443c80552e30cb144c1a1ce760d89fa35f2b/X86BytecodeVisitor.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/X86BytecodeVisitor.java
public static Object getDesktopPropertyValue(String systemPropertyName, Object fallbackValue)
public static Object getDesktopPropertyValue(String systemPropertyName, Object fallbackValue)
public static Object getDesktopPropertyValue(String systemPropertyName, Object fallbackValue) { Object value = Toolkit.getDefaultToolkit().getDesktopProperty(systemPropertyName); return value != null ? value : fallbackValue; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b0819f69fb87c25602911abcc49016c8e9b9db5d/LookAndFeel.java/buggy/core/src/classpath/javax/javax/swing/LookAndFeel.java
FileDialog(Frame parent) { this(parent, "", LOAD); }
public FileDialog(Dialog parent) { this(parent, "", LOAD); }
FileDialog(Frame parent){ this(parent, "", LOAD);}
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6927129f1f7f8acd84e5ca16651e8fe5aa4e194b/FileDialog.java/clean/core/src/classpath/java/java/awt/FileDialog.java
CopyNode(TemplateNode children, TemplateNode next, String uas)
CopyNode(String uas)
CopyNode(TemplateNode children, TemplateNode next, String uas) { super(children, next); this.uas = uas; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b8e6f02cb6a820cbb793320542ee01a4b70f176a/CopyNode.java/buggy/core/src/classpath/gnu/gnu/xml/transform/CopyNode.java
super(children, next);
CopyNode(TemplateNode children, TemplateNode next, String uas) { super(children, next); this.uas = uas; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b8e6f02cb6a820cbb793320542ee01a4b70f176a/CopyNode.java/buggy/core/src/classpath/gnu/gnu/xml/transform/CopyNode.java
return new CopyNode((children == null) ? null : children.clone(stylesheet), (next == null) ? null : next.clone(stylesheet), uas);
TemplateNode ret = new CopyNode(uas); if (children != null) { ret.children = children.clone(stylesheet); } if (next != null) { ret.next = next.clone(stylesheet); } return ret;
TemplateNode clone(Stylesheet stylesheet) { return new CopyNode((children == null) ? null : children.clone(stylesheet), (next == null) ? null : next.clone(stylesheet), uas); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b8e6f02cb6a820cbb793320542ee01a4b70f176a/CopyNode.java/buggy/core/src/classpath/gnu/gnu/xml/transform/CopyNode.java
public abstract float get ();
public FloatBuffer get (float[] dst, int offset, int length) { checkArraySize(dst.length, offset, length); checkForUnderflow(length); for (int i = offset; i < offset + length; i++) { dst [i] = get (); } return this; }
public abstract float get ();
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/61b8e27fab61a8487622d1793b61aa19c130c7ab/FloatBuffer.java/buggy/core/src/classpath/java/java/nio/FloatBuffer.java
public abstract FloatBuffer put (float b);
public FloatBuffer put (FloatBuffer src) { if (src == this) throw new IllegalArgumentException (); checkForOverflow(src.remaining()); if (src.remaining () > 0) { float[] toPut = new float [src.remaining ()]; src.get (toPut); put (toPut); } return this; }
public abstract FloatBuffer put (float b);
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/61b8e27fab61a8487622d1793b61aa19c130c7ab/FloatBuffer.java/buggy/core/src/classpath/java/java/nio/FloatBuffer.java
if (here == root) return null;
private Node successor(Node here, boolean forward) { Node next; // the "leftmost" end is funky if (here == null) { return forward ? root : null; } // // Forward, this is preorder: children before siblings. // Backward, it's postorder: we saw the children already. // if (forwa...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bfc868d8eca62bee7fa0aac5a51ae6c3bbaa7e55/DomIterator.java/clean/core/src/classpath/gnu/gnu/xml/dom/DomIterator.java
jComponent.addInternalFrameListener(new WindowEventDispatcher());
this.eventDispatcher = new WindowEventDispatcher(); jComponent.addInternalFrameListener(eventDispatcher);
public SwingBaseWindowPeer(SwingToolkit toolkit, awtT window, peerT jComponent) { super(toolkit, window, jComponent); jComponent.addInternalFrameListener(new WindowEventDispatcher()); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d38fbd949384502ceb3f02e101548789fed3b5ca/SwingBaseWindowPeer.java/buggy/gui/src/awt/org/jnode/awt/swingpeers/SwingBaseWindowPeer.java
if (name == null && ! nameExplicitlySet) name = generateName();
public String getName() { return name; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6927129f1f7f8acd84e5ca16651e8fe5aa4e194b/MenuComponent.java/buggy/core/src/classpath/java/java/awt/MenuComponent.java
return true;
return false;
public boolean isNativeLookAndFeel() { return true; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/fd6a57fe2ed88cedb0f331b4b49081272bc198c5/MetalLookAndFeel.java/clean/core/src/classpath/javax/javax/swing/plaf/metal/MetalLookAndFeel.java
os.writeSETCC(result.getRegister(), methodToCC(mcode));
os.writeSETCC(resultr, methodToCC(mcode));
public void emitMagic(EmitterContext ec, VmMethod method, boolean isstatic) { //final int type = getClass(method); final int mcode = getMethodCode(method); final VirtualStack vstack = ec.getVStack(); final AbstractX86Stream os = ec.getStream(); final ItemFactory ifac = ec.getItemF...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e1085d2d78d1dfb82684d5fe7540e75db2145890/MagicHelper.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/MagicHelper.java
throws NotImplementedException
public CompositeContext createContext(ColorModel srcColorModel, ColorModel dstColorModel, RenderingHints hints) { // XXX Implement. Sun uses undocumented implementation class // sun.java2d.SunCompositeContext. throw new Error("not...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4b6281ed01a542e70503c69a67129ff6df618649/AlphaComposite.java/buggy/core/src/classpath/java/java/awt/AlphaComposite.java
public synchronized void addPropertyChangeListener(PropertyChangeListener listener) { changeSupport.addPropertyChangeListener(listener); }
public void addPropertyChangeListener(PropertyChangeListener listener) { changeSupport.addPropertyChangeListener(listener); }
public synchronized void addPropertyChangeListener(PropertyChangeListener listener) { changeSupport.addPropertyChangeListener(listener); } // addPropertyChangeListener()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/AbstractAction.java/buggy/core/src/classpath/javax/javax/swing/AbstractAction.java
protected Object clone() throws CloneNotSupportedException { return null; }
protected Object clone() throws CloneNotSupportedException { AbstractAction copy = (AbstractAction) super.clone(); copy.store = (HashMap) store.clone(); return copy; }
protected Object clone() throws CloneNotSupportedException { // What to do?? return null; } // clone()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/AbstractAction.java/buggy/core/src/classpath/javax/javax/swing/AbstractAction.java
protected void firePropertyChange(String propertyName, Object oldValue, Object newValue) { changeSupport.firePropertyChange(propertyName, oldValue, newValue); }
protected void firePropertyChange(String propertyName, Object oldValue, Object newValue) { changeSupport.firePropertyChange(propertyName, oldValue, newValue); }
protected void firePropertyChange(String propertyName, Object oldValue, Object newValue) { changeSupport.firePropertyChange(propertyName, oldValue, newValue); } // firePropertyChange()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/AbstractAction.java/buggy/core/src/classpath/javax/javax/swing/AbstractAction.java
public Object[] getKeys() { return store.keySet().toArray(); }
public Object[] getKeys() { return store.keySet().toArray(); }
public Object[] getKeys() { return store.keySet().toArray(); } // getKeys()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/AbstractAction.java/buggy/core/src/classpath/javax/javax/swing/AbstractAction.java
public Object getValue(String key) { return store.get(key); }
public Object getValue(String key) { return store.get(key); }
public Object getValue(String key) { return store.get(key); } // getValue()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/AbstractAction.java/buggy/core/src/classpath/javax/javax/swing/AbstractAction.java
public void putValue(String key, Object value) { store.put(key, value); }
public void putValue(String key, Object value) { store.put(key, value); }
public void putValue(String key, Object value) { store.put(key, value); } // putValue()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/AbstractAction.java/buggy/core/src/classpath/javax/javax/swing/AbstractAction.java
private void readObject(ObjectInputStream stream) throws ClassNotFoundException, IOException { }
private void readObject(ObjectInputStream stream) throws ClassNotFoundException, IOException { }
private void readObject(ObjectInputStream stream) throws ClassNotFoundException, IOException { // TODO } // readObject()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/AbstractAction.java/buggy/core/src/classpath/javax/javax/swing/AbstractAction.java
public synchronized void removePropertyChangeListener(PropertyChangeListener listener) { changeSupport.removePropertyChangeListener(listener); }
public void removePropertyChangeListener(PropertyChangeListener listener) { changeSupport.removePropertyChangeListener(listener); }
public synchronized void removePropertyChangeListener(PropertyChangeListener listener) { changeSupport.removePropertyChangeListener(listener); } // removePropertyChangeListener()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/AbstractAction.java/buggy/core/src/classpath/javax/javax/swing/AbstractAction.java
public void setEnabled(boolean enabled) { this.enabled = enabled; }
public void setEnabled(boolean enabled) { this.enabled = enabled; }
public void setEnabled(boolean enabled) { this.enabled = enabled; } // setEnabled()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/AbstractAction.java/buggy/core/src/classpath/javax/javax/swing/AbstractAction.java
private void writeObject(ObjectOutputStream stream) throws IOException { }
private void writeObject(ObjectOutputStream stream) throws IOException { }
private void writeObject(ObjectOutputStream stream) throws IOException { // TODO } // writeObject()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/AbstractAction.java/buggy/core/src/classpath/javax/javax/swing/AbstractAction.java
if (parent != container) throw new AWTError("invalid parent");
if (container != parent) throw new AWTError("BoxLayout can't be shared");
public float getLayoutAlignmentX(Container parent) { if (parent != container) throw new AWTError("invalid parent"); return 0; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/BoxLayout.java/clean/core/src/classpath/javax/javax/swing/BoxLayout.java