bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
public void run() { while (true) { try { AWTEvent evt = queue.getNextEvent(); queue.dispatchEvent(evt); } catch (Throwable x) { System.err.println("Exception during event dispatch:"); x.printStackTrace(System.err); } } }
public void run() { while (true) { try { AWTEvent evt = queue.getNextEvent(); queue.dispatchEvent(evt); } catch (Throwable x) { System.err.println("Exception during event dispatch:"); x.printStackTrace(System.err); } } }
42,625
public void initializeStyles(EmptyStyle c) { styleStack = new Stack(); styleStack.push(c); }
public void initializeStyles(CalculatedStyle c) { styleStack = new Stack(); styleStack.push(c); }
42,626
private Configuration() { startupLogRecords = new ArrayList(); try { // read logging level from System properties String val = null; try { val = System.getProperty("show-config"); } catch (Exception ex) { System.out.println("err...
private Configuration() { startupLogRecords = new ArrayList(); try { // read logging level from System properties String val = null; try { val = System.getProperty("show-config"); } catch (Exception ex) { System.out.println("err...
42,627
private void loadOverrideProperties() { try { String overrideName = System.getProperty("user.home") + File.separator + ".flyingsaucer" + File.separator + "local.xhtmlrenderer.conf"; File f = new File(overrideName); if (f.exists()) { fine("Found local config ove...
private void loadOverrideProperties(String overrideFileName) { try { String overrideName = System.getProperty("user.home") + File.separator + ".flyingsaucer" + File.separator + "local.xhtmlrenderer.conf"; File f = new File(overrideName); if (f.exists()) { fine(...
42,628
private void loadOverrideProperties() { try { String overrideName = System.getProperty("user.home") + File.separator + ".flyingsaucer" + File.separator + "local.xhtmlrenderer.conf"; File f = new File(overrideName); if (f.exists()) { fine("Found local config ove...
private void loadOverrideProperties() { try { String overrideName = System.getProperty("user.home") + File.separator + ".flyingsaucer" + File.separator + "local.xhtmlrenderer.conf"; File f = new File(overrideName); if (f.exists()) { fine("Found local config ove...
42,629
private void loadOverrideProperties() { try { String overrideName = System.getProperty("user.home") + File.separator + ".flyingsaucer" + File.separator + "local.xhtmlrenderer.conf"; File f = new File(overrideName); if (f.exists()) { fine("Found local config ove...
private void loadOverrideProperties() { try { String overrideName = System.getProperty("user.home") + File.separator + ".flyingsaucer" + File.separator + "local.xhtmlrenderer.conf"; File f = new File(overrideName); if (f.exists()) { info("Found config override ...
42,630
public static InputStream openStreamFromClasspath( Object obj, String resource ) { InputStream readStream = null; try { ClassLoader loader = obj.getClass().getClassLoader(); if ( loader == null ) { readStream = ClassLoader.getSystemResourceAsStream( resource ); ...
public static InputStream openStreamFromClasspath(Object obj, String resource) { InputStream readStream = null; try { ClassLoader loader = obj.getClass().getClassLoader(); if ( loader == null ) { readStream = ClassLoader.getSystemResourceAsStream( resource ); ...
42,632
public static InputStream openStreamFromClasspath( Object obj, String resource ) { InputStream readStream = null; try { ClassLoader loader = obj.getClass().getClassLoader(); if ( loader == null ) { readStream = ClassLoader.getSystemResourceAsStream( resource ); ...
public static InputStream openStreamFromClasspath( Object obj, String resource ) { InputStream readStream = null; try { ClassLoader loader = obj.getClass().getClassLoader(); if ( loader == null ) { readStream = ClassLoader.getSystemResourceAsStream( resource ); ...
42,633
public static InputStream openStreamFromClasspath( Object obj, String resource ) { InputStream readStream = null; try { ClassLoader loader = obj.getClass().getClassLoader(); if ( loader == null ) { readStream = ClassLoader.getSystemResourceAsStream( resource ); ...
public static InputStream openStreamFromClasspath( Object obj, String resource ) { InputStream readStream = null; try { ClassLoader loader = obj.getClass().getClassLoader(); if ( loader == null ) { readStream = ClassLoader.getSystemResourceAsStream( resource ); ...
42,634
public static InputStream openStreamFromClasspath( Object obj, String resource ) { InputStream readStream = null; try { ClassLoader loader = obj.getClass().getClassLoader(); if ( loader == null ) { readStream = ClassLoader.getSystemResourceAsStream( resource ); ...
public static InputStream openStreamFromClasspath( Object obj, String resource ) { InputStream readStream = null; try { ClassLoader loader = obj.getClass().getClassLoader(); if ( loader == null ) { readStream = ClassLoader.getSystemResourceAsStream( resource ); ...
42,635
public static InputStream openStreamFromClasspath( Object obj, String resource ) { InputStream readStream = null; try { ClassLoader loader = obj.getClass().getClassLoader(); if ( loader == null ) { readStream = ClassLoader.getSystemResourceAsStream( resource ); ...
public static InputStream openStreamFromClasspath( Object obj, String resource ) { InputStream readStream = null; try { ClassLoader loader = obj.getClass().getClassLoader(); if ( loader == null ) { readStream = ClassLoader.getSystemResourceAsStream( resource ); ...
42,636
public static Double valueOf(String s) { return new Double(parseDouble(s)); }
public static Double valueOf(double val) { return new Double(parseDouble(s)); }
42,637
public static Double valueOf(String s) { return new Double(parseDouble(s)); }
public static Double valueOf(String s) { return new Double(val); }
42,638
protected void initComponentDefaults(UIDefaults defaults) { super.initComponentDefaults(defaults); Object[] myDefaults = new Object[] { "Button.background", getControl(), "Button.border", MetalBorders.getButtonBorder(), "Button.darkShadow", getControlDarkShadow(), "Button.disabledText", get...
protected void initComponentDefaults(UIDefaults defaults) { super.initComponentDefaults(defaults); Object[] myDefaults = new Object[] { "Button.background", getControl(), "Button.border", MetalBorders.getButtonBorder(), "Button.darkShadow", getControlDarkShadow(), "Button.disabledText", get...
42,640
public QueueBrowserTest(String name) { super(name); }
public QueueBrowserTest(String name) { super(name); }
42,641
public void setUp() throws Exception { super.setUp(); ServerManagement.startInVMServer(); initialContext = new InitialContext(InVMInitialContextFactory.getJNDIEnvironment()); cf = (JBossConnectionFactory)initialContext.lookup("/messaging/ConnectionFactory"); ServerManagement....
public void setUp() throws Exception { super.setUp(); ServerManagement.startInVMServer(); initialContext = new InitialContext(InVMInitialContextFactory.getJNDIEnvironment()); cf = (JBossConnectionFactory)initialContext.lookup("/messaging/ConnectionFactory"); ServerManagement....
42,642
public void tearDown() throws Exception { ServerManagement.stopInVMServer(); //connection.stop(); //connection = null; super.tearDown(); }
public void tearDown() throws Exception { ServerManagement.stopInVMServer(); //connection.stop(); //connection = null; super.tearDown(); }
42,643
public void testBrowse() throws Exception { log.trace("Starting testBrowse()"); Connection conn = cf.createConnection(); Session sess = conn.createSession(false, Session.AUTO_ACKNOWLEDGE); MessageProducer mp = sess.createProducer(queue); final int numMessa...
public void testBrowse() throws Exception { log.trace("Starting testBrowse()"); Connection conn = cf.createConnection(); Session sess = conn.createSession(false, Session.AUTO_ACKNOWLEDGE); MessageProducer mp = sess.createProducer(queue); final int numMessa...
42,644
public void testBrowse() throws Exception { log.trace("Starting testBrowse()"); Connection conn = cf.createConnection(); Session sess = conn.createSession(false, Session.AUTO_ACKNOWLEDGE); MessageProducer mp = sess.createProducer(queue); final int numMessa...
public void testBrowse() throws Exception { log.trace("Starting testBrowse()"); Connection conn = cf.createConnection(); Session sess = conn.createSession(false, Session.AUTO_ACKNOWLEDGE); MessageProducer mp = sess.createProducer(queue); final int numMessa...
42,645
public VmLocalVariable(char startPC, char length, String name, String signature, char index) { this.startPC = startPC; this.length = length; this.name = name; this.signature = signature; this.index = index; }
public VmLocalVariable(char startPC, char length, String name, String signature, char index) { this.startPC = startPC; this.length = length; this.name = name; this.signature = signature; this.index = index; }
42,646
public VmLocalVariable(char startPC, char length, String name, String signature, char index) { this.startPC = startPC; this.length = length; this.name = name; this.signature = signature; this.index = index; }
public VmLocalVariable(char startPC, char length, String name, String signature, char index) { this.startPC = startPC; this.length = length; this.name = name; this.signature = signature; this.index = index; }
42,647
public String getName() { return this.name; }
public String getName() { return this.name; }
42,648
public Class getCategory() { return JobStateReason.class; }
public final Class getCategory() { return JobStateReason.class; }
42,649
public String getName() { return "job-state-reason"; }
public final String getName() { return "job-state-reason"; }
42,650
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { requestType = in.readInt(); xid = (Xid)in.readObject(); txInfo = (TxState)in.readObject(); }
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { requestType = in.readInt(); xid = (Xid)in.readObject(); state = (TxState)in.readObject(); }
42,651
public void writeExternal(ObjectOutput out) throws IOException { out.writeInt(requestType); out.writeObject(xid); out.writeObject(txInfo); }
public void writeExternal(ObjectOutput out) throws IOException { out.writeInt(requestType); out.writeObject(xid); out.writeObject(state); }
42,652
public Point getPerimeterPoint(Point source, Point p) { // Compute relative bounds Rectangle r = getBounds(); int x = r.x; int y = r.y; int a = (r.width + 1) / 2; int b = (r.height + 1) / 2; // Get center int xCenter = (int) (x + a); int yCenter = (int) (y + b); // Compute angle int dx = p.x - xCenter; int...
public Point getPerimeterPoint(Point source, Point p) { // Compute relative bounds Rectangle r = getBounds(); int x = r.x; int y = r.y; int a = (r.width + 1) / 2; int b = (r.height + 1) / 2; // Get center int xCenter = (int) (x + a); int yCenter = (int) (y + b); // Compute angle int dx = p.x - xCenter; int...
42,653
public MessageHolder(Message msg, PagingMessageStore ms) { this.msg = msg; this.ms = ms; }
public MessageHolder(Message msg, SimpleMessageStore ms) { this.msg = msg; this.ms = ms; }
42,655
public SimpleMessageReference(MessageHolder holder, MessageStore ms) { this(holder.getMessage().getMessageID(), holder.getMessage().isReliable(), holder.getMessage().getExpiration(), holder.getMessage().getTimestamp(), holder.getMessage().getHeaders(), holder.getMessage().isRedelivered(), ...
public SimpleMessageReference() { this(holder.getMessage().getMessageID(), holder.getMessage().isReliable(), holder.getMessage().getExpiration(), holder.getMessage().getTimestamp(), holder.getMessage().getHeaders(), holder.getMessage().isRedelivered(), holder.getMessage().getPrio...
42,656
public SimpleMessageReference(MessageHolder holder, MessageStore ms) { this(holder.getMessage().getMessageID(), holder.getMessage().isReliable(), holder.getMessage().getExpiration(), holder.getMessage().getTimestamp(), holder.getMessage().getHeaders(), holder.getMessage().isRedelivered(), ...
public SimpleMessageReference(MessageHolder holder, MessageStore ms) { this(holder.getMessage().getMessageID(), holder.getMessage().isReliable(), holder.getMessage().getExpiration(), holder.getMessage().getTimestamp(), holder.getMessage().getHeaders(), holder.getMessage().isRedelivered(), ...
42,657
public void endBasicBlock() { // flush vstack: at end/begin of basic block are all items on the stack vstack.push(eContext); if (log) { os.log("End of basic block"); } }
public void endBasicBlock() { // flush vstack: at end/begin of basic block are all items on the stack vstack.push(eContext); if (log) { os.log("End of basic block"); } }
42,658
private void notImplemented() { throw new Error("NotImplemented"); }
private void notImplemented() { throw new Error("NotImplemented"); }
42,659
private void requestRegister(Register reg, Item it) { X86RegisterPool pool = eContext.getPool(); // check item doesn't already use register if (!it.uses(reg)) { if (!pool.isFree(reg)) { notImplemented(); //TODO: spill register; make sure that the stack items // and floating ...
private void requestRegister(Register reg, Item it) { X86RegisterPool pool = eContext.getPool(); // check item doesn't already use register if (!it.uses(reg)) { if (!pool.isFree(reg)) { notImplemented(); //TODO: spill register; make sure that the stack items // and floating ...
42,660
public void startInlinedMethod(VmMethod inlinedMethod, int newMaxLocals) { //TODO: check whether this is really needed vstack.push(eContext); maxLocals = newMaxLocals; endOfInlineLabel = new Label(curInstrLabel + "_end_of_inline"); helper.startInlinedMethod(inlinedMethod, curInstrLabel)...
public void startInlinedMethod(VmMethod inlinedMethod, int newMaxLocals) { //TODO: check whether this is really needed vstack.push(eContext); maxLocals = newMaxLocals; endOfInlineLabel = new Label(curInstrLabel + "_end_of_inline"); helper.startInlinedMethod(inlinedMethod, curInstrLabel)...
42,661
public final void visit_aastore() { final boolean useBarrier = (context.getWriteBarrier() != null); RefItem val = vstack.popRef(); IntItem idx = vstack.popInt(); RefItem ref = vstack.popRef(); //IMPROVE: optimize case with const value val.load(eContext); // if barr...
public final void visit_aastore() { final boolean useBarrier = (context.getWriteBarrier() != null); RefItem val = vstack.popRef(); IntItem idx = vstack.popInt(); RefItem ref = vstack.popRef(); //IMPROVE: optimize case with const value val.load(eContext); // if barr...
42,662
public final void visit_aastore() { final boolean useBarrier = (context.getWriteBarrier() != null); RefItem val = vstack.popRef(); IntItem idx = vstack.popInt(); RefItem ref = vstack.popRef(); //IMPROVE: optimize case with const value val.load(eContext); // if barr...
public final void visit_aastore() { final boolean useBarrier = (context.getWriteBarrier() != null); RefItem val = vstack.popRef(); IntItem idx = vstack.popInt(); RefItem ref = vstack.popRef(); //IMPROVE: optimize case with const value val.load(eContext); // if barr...
42,663
public final void visit_aastore() { final boolean useBarrier = (context.getWriteBarrier() != null); RefItem val = vstack.popRef(); IntItem idx = vstack.popInt(); RefItem ref = vstack.popRef(); //IMPROVE: optimize case with const value val.load(eContext); // if barr...
public final void visit_aastore() { final boolean useBarrier = (context.getWriteBarrier() != null); RefItem val = vstack.popRef(); IntItem idx = vstack.popInt(); RefItem ref = vstack.popRef(); //IMPROVE: optimize case with const value val.load(eContext); // if barr...
42,664
public final void visit_aastore() { final boolean useBarrier = (context.getWriteBarrier() != null); RefItem val = vstack.popRef(); IntItem idx = vstack.popInt(); RefItem ref = vstack.popRef(); //IMPROVE: optimize case with const value val.load(eContext); // if barr...
public final void visit_aastore() { final boolean useBarrier = (context.getWriteBarrier() != null); RefItem val = vstack.popRef(); IntItem idx = vstack.popInt(); RefItem ref = vstack.popRef(); //IMPROVE: optimize case with const value val.load(eContext); // if barr...
42,665
public final void visit_areturn() { RefItem i = vstack.popRef(); requestRegister(EAX, i); i.loadTo(eContext, EAX); visit_return(); i.release(eContext); }
public final void visit_areturn() { RefItem i = vstack.popRef(); requestRegister(EAX, i); i.loadTo(eContext, EAX); visit_return(); i.release(eContext); }
42,666
public final void visit_athrow() { RefItem ref = vstack.popRef(); requestRegister(EAX, ref); ref.loadTo(eContext, EAX); helper.writeJumpTableCALL(X86JumpTable.VM_ATHROW_OFS); ref.release(eContext); }
public final void visit_athrow() { RefItem ref = vstack.popRef(); requestRegister(EAX, ref); ref.loadTo(eContext, EAX); helper.writeJumpTableCALL(X86JumpTable.VM_ATHROW_OFS); ref.release(eContext); }
42,667
public final void visit_baload() { IntItem idx = vstack.popInt(); RefItem ref = vstack.popRef(); idx.loadIf(eContext, ~Item.CONSTANT); ref.load(eContext); final Register r = ref.getRegister(); checkBounds(ref, idx); if (idx.getKind() == Item.CONSTANT) { ...
public final void visit_baload() { IntItem idx = vstack.popInt(); RefItem ref = vstack.popRef(); idx.loadIf(eContext, ~Item.CONSTANT); ref.load(eContext); final Register r = ref.getRegister(); checkBounds(ref, idx); if (idx.getKind() == Item.CONSTANT) { ...
42,668
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.CONSTANT); ref.load(eContext); final Regis...
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.CONSTANT); ref.load(eContext); final Regis...
42,669
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.CONSTANT); ref.load(eContext); final Regis...
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.CONSTANT); ref.load(eContext); final Regis...
42,670
public final void visit_caload() { IntItem idx = vstack.popInt(); RefItem ref = vstack.popRef(); idx.loadIf(eContext, ~Item.CONSTANT); ref.load(eContext); final Register r = ref.getRegister(); checkBounds(ref, idx); if (idx.getKind() == Item.CONSTANT)...
public final void visit_caload() { IntItem idx = vstack.popInt(); RefItem ref = vstack.popRef(); idx.loadIf(eContext, ~Item.CONSTANT); ref.load(eContext); final Register r = ref.getRegister(); checkBounds(ref, idx); if (idx.getKind() == Item.CONSTANT)...
42,671
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.CONSTANT); ref.load(eContext); final Regis...
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.CONSTANT); ref.load(eContext); final Regis...
42,672
public final void visit_drem() { //TODO: port to orp-style vstack.push(eContext); Item v1 = vstack.popItem(Item.DOUBLE); Item v2 = vstack.popItem(Item.DOUBLE); v1.release(eContext); v2.release(eContext); vstack.pushItem(DoubleItem.createStack()); os.writeFLD64...
public final void visit_drem() { //TODO: port to orp-style vstack.push(eContext); Item v1 = vstack.popItem(Item.DOUBLE); Item v2 = vstack.popItem(Item.DOUBLE); v1.release(eContext); v2.release(eContext); vstack.pushItem(DoubleItem.createStack()); os.writeFLD64...
42,673
public final void visit_dup() { //TODO: port to orp-style os.log("dup"); vstack.push(eContext); Item v1 = vstack.popItem(); vstack.pushItem(v1); vstack.pushItem(v1); os.writeMOV(INTSIZE, T0, SP, 0); // Value1, leave on stack helper.writePUSH(T0); }
public final void visit_dup() { //TODO: port to orp-style os.log("dup"); vstack.push(eContext); Item v1 = vstack.popItem(); vstack.pushItem(v1); vstack.pushItem(v1); os.writeMOV(INTSIZE, T0, SP, 0); // Value1, leave on stack helper.writePUSH(T0); }
42,674
public final void visit_dup() { //TODO: port to orp-style os.log("dup"); vstack.push(eContext); Item v1 = vstack.popItem(); vstack.pushItem(v1); vstack.pushItem(v1); os.writeMOV(INTSIZE, T0, SP, 0); // Value1, leave on stack helper.writePUSH(T0); }
public final void visit_dup() { //TODO: port to orp-style os.log("dup"); vstack.push(eContext); Item v1 = vstack.popItem(); vstack.pushItem(v1.clone(eContext)); vstack.pushItem(v1.clone(eContext)); os.writeMOV(INTSIZE, T0, SP, 0); // Value1, leave on stack hel...
42,675
public final void visit_dup() { //TODO: port to orp-style os.log("dup"); vstack.push(eContext); Item v1 = vstack.popItem(); vstack.pushItem(v1); vstack.pushItem(v1); os.writeMOV(INTSIZE, T0, SP, 0); // Value1, leave on stack helper.writePUSH(T0); }
public final void visit_dup() { //TODO: port to orp-style os.log("dup"); vstack.push(eContext); Item v1 = vstack.popItem(); vstack.pushItem(v1); vstack.pushItem(v1); os.writeMOV(INTSIZE, T0, SP, 0); // Value1, leave on stack helper.writePUSH(T0); }
42,676
public final void visit_dup2() { //TODO: port to orp-style //REFACTORING: merge all duplication opcodes os.log("dup2");// vstack.push(eContext);// Item v1 = vstack.popItem();// if (v1.getCategory() == 1) {// // form1// Item v2 = vstack.popItem();// ...
public final void visit_dup2() { //TODO: port to orp-style //REFACTORING: merge all duplication opcodes os.log("dup2");// vstack.push(eContext);// Item v1 = vstack.popItem();// if (v1.getCategory() == 1) {// // form1// Item v2 = vstack.popItem();// ...
42,677
public final void visit_dup2_x1() { //TODO: port to orp-style os.log("dup2_x1");// vstack.push(eContext);// Item v1 = vstack.popItem();// Item v2 = vstack.popItem();// assertCondition(v2.getCategory() == 1);// if (v1.getCategory() == 2) { // form2// vstack...
public final void visit_dup2_x1() { //TODO: port to orp-style os.log("dup2_x1");// vstack.push(eContext);// Item v1 = vstack.popItem();// Item v2 = vstack.popItem();// assertCondition(v2.getCategory() == 1);// if (v1.getCategory() == 2) { // form2// vstack...
42,678
public final void visit_dup2_x2() { //TODO: port to orp-style os.log("dup2_x2");// vstack.push(eContext);// Item v1 = vstack.popItem();// Item v2 = vstack.popItem();// int c1 = v1.getCategory();// int c2 = v2.getCategory();// // cope with brain-dead definition...
public final void visit_dup2_x2() { //TODO: port to orp-style os.log("dup2_x2");// vstack.push(eContext);// Item v1 = vstack.popItem();// Item v2 = vstack.popItem();// int c1 = v1.getCategory();// int c2 = v2.getCategory();// // cope with brain-dead definition...
42,679
public final void visit_dup_x2() { //TODO: port to orp-style os.log("dup_x2");// vstack.push(eContext);// Item v1 = vstack.popItem();// Item v2 = vstack.popItem();// if (v2.getCategory() == 2) {// // form2// vstack.pushItem(v1);// vstack.pus...
public final void visit_dup_x2() { //TODO: port to orp-style os.log("dup_x2");// vstack.push(eContext);// Item v1 = vstack.popItem();// Item v2 = vstack.popItem();// if (v2.getCategory() == 2) {// // form2// vstack.pushItem(v1);// vstack.pus...
42,680
public final void visit_i2b() { //TODO: improve const case IntItem v = vstack.popInt(); v.load(eContext); final Register r = v.getRegister(); os.writeMOVSX(r, r, BYTESIZE); vstack.pushItem(v); }
public final void visit_i2b() { //TODO: improve const case IntItem v = vstack.popInt(); v.load(eContext); final Register r = v.getRegister(); os.writeMOVSX(r, r, BYTESIZE); vstack.pushItem(v); }
42,682
public final void visit_iaload() { IntItem idx = vstack.popInt(); RefItem ref = vstack.popRef(); idx.loadIf(eContext, ~Item.CONSTANT); ref.load(eContext); final Register r = ref.getRegister(); checkBounds(ref, idx); if (idx.getKind() == Item.CONSTANT)...
public final void visit_iaload() { IntItem idx = vstack.popInt(); RefItem ref = vstack.popRef(); idx.loadIf(eContext, ~Item.CONSTANT); ref.load(eContext); final Register r = ref.getRegister(); checkBounds(ref, idx); if (idx.getKind() == Item.CONSTANT)...
42,683
public final void visit_iastore() { IntItem val = vstack.popInt(); IntItem idx = vstack.popInt(); RefItem ref = vstack.popRef(); val.loadIf(eContext, ~Item.CONSTANT); idx.loadIf(eContext, ~Item.CONSTANT); ref.load(eContext); final Register r = ref.getRegister(); ...
public final void visit_iastore() { IntItem val = vstack.popInt(); IntItem idx = vstack.popInt(); RefItem ref = vstack.popRef(); val.loadIf(eContext, ~Item.CONSTANT); idx.loadIf(eContext, ~Item.CONSTANT); ref.load(eContext); final Register r = ref.getRegister(); ...
42,684
public final void visit_iastore() { IntItem val = vstack.popInt(); IntItem idx = vstack.popInt(); RefItem ref = vstack.popRef(); val.loadIf(eContext, ~Item.CONSTANT); idx.loadIf(eContext, ~Item.CONSTANT); ref.load(eContext); final Register r = ref.getRegister(); ...
public final void visit_iastore() { IntItem val = vstack.popInt(); IntItem idx = vstack.popInt(); RefItem ref = vstack.popRef(); val.loadIf(eContext, ~Item.CONSTANT); idx.loadIf(eContext, ~Item.CONSTANT); ref.load(eContext); final Register r = ref.getRegister(); ...
42,685
public final void visit_iastore() { IntItem val = vstack.popInt(); IntItem idx = vstack.popInt(); RefItem ref = vstack.popRef(); val.loadIf(eContext, ~Item.CONSTANT); idx.loadIf(eContext, ~Item.CONSTANT); ref.load(eContext); final Register r = ref.getRegister(); ...
public final void visit_iastore() { IntItem val = vstack.popInt(); IntItem idx = vstack.popInt(); RefItem ref = vstack.popRef(); val.loadIf(eContext, ~Item.CONSTANT); idx.loadIf(eContext, ~Item.CONSTANT); ref.load(eContext); final Register r = ref.getRegister(); ...
42,686
private final void visit_if_xcmp(int address, int jccOpcode) { IntItem v2 = vstack.popInt(); IntItem v1 = vstack.popInt(); //TODO: can be less restrictive: v1 must not be register prepareForOperation(v1, v2); Register r1 = v1.getRegister(); switch (v2.getKind()) { case Item...
private final void visit_if_xcmp(int address, int jccOpcode) { IntItem v2 = vstack.popInt(); IntItem v1 = vstack.popInt(); //TODO: can be less restrictive: v1 must not be register prepareForOperation(v1, v2); Register r1 = v1.getRegister(); switch (v2.getKind()) { case Item...
42,687
public final void visit_ifeq(int address) { visit_ifxx(address, X86Constants.JE); // JE }
public final void visit_ifeq(int address) { visit_ifxx(Item.INT, address, X86Constants.JE); // JE }
42,688
public final void visit_ifge(int address) { visit_ifxx(address, X86Constants.JGE); // JGE }
public final void visit_ifge(int address) { visit_ifxx(Item.INT, address, X86Constants.JGE); // JGE }
42,689
public final void visit_ifgt(int address) { visit_ifxx(address, X86Constants.JG); // JG }
public final void visit_ifgt(int address) { visit_ifxx(Item.INT, address, X86Constants.JG); // JG }
42,690
public final void visit_ifle(int address) { visit_ifxx(address, X86Constants.JLE); // JLE }
public final void visit_ifle(int address) { visit_ifxx(Item.INT, address, X86Constants.JLE); // JLE }
42,691
public final void visit_iflt(int address) { visit_ifxx(address, X86Constants.JL); // JL }
public final void visit_iflt(int address) { visit_ifxx(Item.INT, address, X86Constants.JL); // JL }
42,692
public final void visit_ifne(int address) { visit_ifxx(address, X86Constants.JNE); // JNE }
public final void visit_ifne(int address) { visit_ifxx(Item.INT, address, X86Constants.JNE); // JNE }
42,693
public final void visit_ifnonnull(int address) { visit_ifxx(address, X86Constants.JNE); }
public final void visit_ifnonnull(int address) { visit_ifxx(Item.REFERENCE, address, X86Constants.JNE); }
42,694
public final void visit_ifnull(int address) { visit_ifxx(address, X86Constants.JE); }
public final void visit_ifnull(int address) { visit_ifxx(Item.REFERENCE, address, X86Constants.JE); }
42,695
private void visit_ifxx(int address, int jccOpcode) { //IMPROVE: Constant case / Local case RefItem v = vstack.popRef(); v.load(eContext); Register r = v.getRegister(); os.writeTEST(r, r); //TODO: shall I flush the stack before a jump? os.writeJCC(helper.getInstrLabe...
private void visit_ifxx(int type, int address, int jccOpcode) { //IMPROVE: Constant case / Local case RefItem v = vstack.popRef(); v.load(eContext); Register r = v.getRegister(); os.writeTEST(r, r); //TODO: shall I flush the stack before a jump? os.writeJCC(helper.ge...
42,696
private void visit_ifxx(int address, int jccOpcode) { //IMPROVE: Constant case / Local case RefItem v = vstack.popRef(); v.load(eContext); Register r = v.getRegister(); os.writeTEST(r, r); //TODO: shall I flush the stack before a jump? os.writeJCC(helper.getInstrLabe...
private void visit_ifxx(int address, int jccOpcode) { //IMPROVE: Constant case / Local case RefItem v = vstack.popRef(); v.load(eContext); Register r = v.getRegister(); os.writeTEST(r, r); //TODO: shall I flush the stack before a jump? os.writeJCC(helper.getInstrLabe...
42,697
private void visit_ifxx(int address, int jccOpcode) { //IMPROVE: Constant case / Local case RefItem v = vstack.popRef(); v.load(eContext); Register r = v.getRegister(); os.writeTEST(r, r); //TODO: shall I flush the stack before a jump? os.writeJCC(helper.getInstrLabe...
private void visit_ifxx(int address, int jccOpcode) { //IMPROVE: Constant case / Local case RefItem v = vstack.popRef(); v.load(eContext); Register r = v.getRegister(); os.writeTEST(r, r); //TODO: shall I flush the stack before a jump? os.writeJCC(helper.getInstrLabe...
42,698
public void visit_inlinedReturn() { vstack.push(eContext); os.writeJMP(endOfInlineLabel); }
public void visit_inlinedReturn() { vstack.push(eContext); os.writeJMP(endOfInlineLabel); }
42,699
public final void visit_ireturn() { IntItem v = vstack.popInt(); requestRegister(EAX, v); v.loadTo(eContext, EAX); visit_return(); v.release(eContext); }
public final void visit_ireturn() { IntItem v = vstack.popInt(); requestRegister(EAX, v); v.loadTo(eContext, EAX); visit_return(); v.release(eContext); }
42,700
public final void visit_ishl() { IntItem shift = vstack.popInt(); requestRegister(ECX, shift); IntItem value = vstack.popInt(); shift.loadToIf(eContext, ~Item.CONSTANT, ECX); value.load(eContext); Register v = value.getRegister(); if (shift.getKind() == Item.CONSTANT) { ...
public final void visit_ishl() { IntItem shift = vstack.popInt(); if (shift.getKind() != Item.CONSTANT) { requestRegister(ECX, shift); shift.loadTo(eContext, ECX); } IntItem value = vstack.popInt(); shift.loadToIf(eContext, ~Item.CONSTANT, ECX); value.load(eContext); Register v ...
42,701
public final void visit_ishl() { IntItem shift = vstack.popInt(); requestRegister(ECX, shift); IntItem value = vstack.popInt(); shift.loadToIf(eContext, ~Item.CONSTANT, ECX); value.load(eContext); Register v = value.getRegister(); if (shift.getKind() == Item.CONSTANT) { ...
public final void visit_ishl() { IntItem shift = vstack.popInt(); requestRegister(ECX, shift); IntItem value = vstack.popInt(); value.load(eContext); Register v = value.getRegister(); if (shift.getKind() == Item.CONSTANT) { int offset = shift.getValue(); ...
42,702
public final void visit_ishr() { IntItem shift = vstack.popInt(); requestRegister(ECX, shift); IntItem value = vstack.popInt(); shift.loadToIf(eContext, ~Item.CONSTANT, ECX); value.load(eContext); Register v = value.getRegister(); if (shift.getKind() == Item.CONSTANT) { ...
public final void visit_ishr() { IntItem shift = vstack.popInt(); if (shift.getKind() != Item.CONSTANT) { requestRegister(ECX, shift); shift.loadTo(eContext, ECX); } IntItem value = vstack.popInt(); shift.loadToIf(eContext, ~Item.CONSTANT, ECX); value.load(eContext); Register v =...
42,703
public final void visit_ishr() { IntItem shift = vstack.popInt(); requestRegister(ECX, shift); IntItem value = vstack.popInt(); shift.loadToIf(eContext, ~Item.CONSTANT, ECX); value.load(eContext); Register v = value.getRegister(); if (shift.getKind() == Item.CONSTANT) { ...
public final void visit_ishr() { IntItem shift = vstack.popInt(); requestRegister(ECX, shift); IntItem value = vstack.popInt(); value.load(eContext); Register v = value.getRegister(); if (shift.getKind() == Item.CONSTANT) { int offset = shift.getValue(); ...
42,704
public final void visit_ishr() { IntItem shift = vstack.popInt(); requestRegister(ECX, shift); IntItem value = vstack.popInt(); shift.loadToIf(eContext, ~Item.CONSTANT, ECX); value.load(eContext); Register v = value.getRegister(); if (shift.getKind() == Item.CONSTANT) { ...
public final void visit_ishr() { IntItem shift = vstack.popInt(); requestRegister(ECX, shift); IntItem value = vstack.popInt(); shift.loadToIf(eContext, ~Item.CONSTANT, ECX); value.load(eContext); Register v = value.getRegister(); if (shift.getKind() == Item.CONSTANT) { ...
42,705
public final void visit_iushr() { IntItem shift = vstack.popInt(); requestRegister(ECX, shift); IntItem value = vstack.popInt(); shift.loadToIf(eContext, ~Item.CONSTANT, ECX); value.load(eContext); Register v = value.getRegister(); if (shift.getKind() == Item.CONSTANT) { ...
public final void visit_iushr() { IntItem shift = vstack.popInt(); requestRegister(ECX, shift); IntItem value = vstack.popInt(); shift.loadToIf(eContext, ~Item.CONSTANT, ECX); value.load(eContext); Register v = value.getRegister(); if (shift.getKind() == Item.CONSTANT) { ...
42,706
public final void visit_iushr() { IntItem shift = vstack.popInt(); requestRegister(ECX, shift); IntItem value = vstack.popInt(); shift.loadToIf(eContext, ~Item.CONSTANT, ECX); value.load(eContext); Register v = value.getRegister(); if (shift.getKind() == Item.CONSTANT) { ...
public final void visit_iushr() { IntItem shift = vstack.popInt(); requestRegister(ECX, shift); IntItem value = vstack.popInt(); shift.loadToIf(eContext, ~Item.CONSTANT, ECX); value.load(eContext); Register v = value.getRegister(); if (shift.getKind() == Item.CONSTANT) { ...
42,707
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()...
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()...
42,708
public final void visit_ldc(VmConstString value) { vstack.pushItem(RefItem.createConst(value)); // //REFACTOR: use Constant instead of Object! // if (value instanceof Integer) { // visit_iconst(((Integer) value).intValue()); //// os.writeMOV_Const(Register.EAX, ((Integer) value)....
public final void visit_ldc(VmConstString value) { vstack.pushItem(RefItem.createConst(value)); // //REFACTOR: use Constant instead of Object! // if (value instanceof Integer) { // visit_iconst(((Integer) value).intValue()); //// os.writeMOV_Const(Register.EAX, ((Integer) value)....
42,709
public final void visit_ldc(VmConstString value) { vstack.pushItem(RefItem.createConst(value)); // //REFACTOR: use Constant instead of Object! // if (value instanceof Integer) { // visit_iconst(((Integer) value).intValue()); //// os.writeMOV_Const(Register.EAX, ((Integer) value)....
public final void visit_ldc(VmConstString value) { vstack.pushItem(RefItem.createConst(value)); // //REFACTOR: use Constant instead of Object! // if (value instanceof Integer) { // visit_iconst(((Integer) value).intValue()); //// os.writeMOV_Const(Register.EAX, ((Integer) value)....
42,710
public final void visit_ldc(VmConstString value) { vstack.pushItem(RefItem.createConst(value)); // //REFACTOR: use Constant instead of Object! // if (value instanceof Integer) { // visit_iconst(((Integer) value).intValue()); //// os.writeMOV_Const(Register.EAX, ((Integer) value)....
public final void visit_ldc(VmConstString value) { vstack.pushItem(RefItem.createConst(value)); // //REFACTOR: use Constant instead of Object! // if (value instanceof Integer) { // visit_iconst(((Integer) value).intValue()); //// os.writeMOV_Const(Register.EAX, ((Integer) value)....
42,711
public final void visit_ldc(VmConstString value) { vstack.pushItem(RefItem.createConst(value)); // //REFACTOR: use Constant instead of Object! // if (value instanceof Integer) { // visit_iconst(((Integer) value).intValue()); //// os.writeMOV_Const(Register.EAX, ((Integer) value)....
public final void visit_ldc(VmConstString value) { vstack.pushItem(RefItem.createConst(value)); // //REFACTOR: use Constant instead of Object! // if (value instanceof Integer) { // visit_iconst(((Integer) value).intValue()); //// os.writeMOV_Const(Register.EAX, ((Integer) value)....
42,712
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 helper.writePUSH(10); /* type=int */ helper.writePUSH(dimensions); /* elements */ helper.invokeJavaM...
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 helper.writePUSH(10); /* type=int */ helper.writePUSH(dimensions); /* elements */ helper.invokeJavaM...
42,713
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 helper.writePUSH(10); /* type=int */ helper.writePUSH(dimensions); /* elements */ helper.invokeJavaM...
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 helper.writePUSH(10); /* type=int */ helper.writePUSH(dimensions); /* elements */ helper.invokeJavaM...
42,714
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 helper.writePUSH(10); /* type=int */ helper.writePUSH(dimensions); /* elements */ helper.invokeJavaM...
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 helper.writePUSH(10); /* type=int */ helper.writePUSH(dimensions); /* elements */ helper.invokeJavaM...
42,715
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 helper.writePUSH(10); /* type=int */ helper.writePUSH(dimensions); /* elements */ helper.invokeJavaM...
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 helper.writePUSH(10); /* type=int */ helper.writePUSH(dimensions); /* elements */ helper.invokeJavaM...
42,716
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 helper.writePUSH(10); /* type=int */ helper.writePUSH(dimensions); /* elements */ helper.invokeJavaM...
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 helper.writePUSH(10); /* type=int */ helper.writePUSH(dimensions); /* elements */ helper.invokeJavaM...
42,717
public final void visit_newarray(int type) { IntItem count = vstack.popInt(); count.loadIf(eContext, Item.STACK); // helper.writePOP(S0); /* Elements */ /* Setup a call to SoftByteCodes.allocArray */ helper.writePUSH(type); /* type */ // helper.writePUSH(S0); /* elements ...
public final void visit_newarray(int type) { IntItem count = vstack.popInt(); count.loadIf(eContext, Item.STACK); // helper.writePOP(S0); /* Elements */ /* Setup a call to SoftByteCodes.allocArray */ helper.writePUSH(type); /* type */ // helper.writePUSH(S0); /* elements ...
42,718
public final void visit_newarray(int type) { IntItem count = vstack.popInt(); count.loadIf(eContext, Item.STACK); // helper.writePOP(S0); /* Elements */ /* Setup a call to SoftByteCodes.allocArray */ helper.writePUSH(type); /* type */ // helper.writePUSH(S0); /* elements ...
public final void visit_newarray(int type) { IntItem count = vstack.popInt(); count.loadIf(eContext, Item.STACK); // helper.writePOP(S0); /* Elements */ /* Setup a call to SoftByteCodes.allocArray */ helper.writePUSH(type); /* type */ // helper.writePUSH(S0); /* elements ...
42,719
public final void visit_putfield(VmConstFieldRef fieldRef) { //TODO: port to orp-style fieldRef.resolve(loader); final VmField field = fieldRef.getResolvedVmField(); if (field.isStatic()) { throw new IncompatibleClassChangeError( "getfield called on static field " + fieldRef....
public final void visit_putfield(VmConstFieldRef fieldRef) { //TODO: port to orp-style fieldRef.resolve(loader); final VmField field = fieldRef.getResolvedVmField(); if (field.isStatic()) { throw new IncompatibleClassChangeError( "getfield called on static field " + fieldRef....
42,720
public final void visit_putfield(VmConstFieldRef fieldRef) { //TODO: port to orp-style fieldRef.resolve(loader); final VmField field = fieldRef.getResolvedVmField(); if (field.isStatic()) { throw new IncompatibleClassChangeError( "getfield called on static field " + fieldRef....
public final void visit_putfield(VmConstFieldRef fieldRef) { //TODO: port to orp-style fieldRef.resolve(loader); final VmField field = fieldRef.getResolvedVmField(); if (field.isStatic()) { throw new IncompatibleClassChangeError( "getfield called on static field " + fieldRef....
42,721
public final void visit_putfield(VmConstFieldRef fieldRef) { //TODO: port to orp-style fieldRef.resolve(loader); final VmField field = fieldRef.getResolvedVmField(); if (field.isStatic()) { throw new IncompatibleClassChangeError( "getfield called on static field " + fieldRef....
public final void visit_putfield(VmConstFieldRef fieldRef) { //TODO: port to orp-style fieldRef.resolve(loader); final VmField field = fieldRef.getResolvedVmField(); if (field.isStatic()) { throw new IncompatibleClassChangeError( "getfield called on static field " + fieldRef....
42,722
public final void visit_putfield(VmConstFieldRef fieldRef) { //TODO: port to orp-style fieldRef.resolve(loader); final VmField field = fieldRef.getResolvedVmField(); if (field.isStatic()) { throw new IncompatibleClassChangeError( "getfield called on static field " + fieldRef....
public final void visit_putfield(VmConstFieldRef fieldRef) { //TODO: port to orp-style fieldRef.resolve(loader); final VmField field = fieldRef.getResolvedVmField(); if (field.isStatic()) { throw new IncompatibleClassChangeError( "getfield called on static field " + fieldRef....
42,723
public final void visit_saload() { IntItem idx = vstack.popInt(); RefItem ref = vstack.popRef(); idx.loadIf(eContext, ~Item.CONSTANT); ref.load(eContext); Register r = ref.getRegister(); checkBounds(ref, idx); if (idx.getKind() == Item.CONSTANT) { final in...
public final void visit_saload() { IntItem idx = vstack.popInt(); RefItem ref = vstack.popRef(); idx.loadIf(eContext, ~Item.CONSTANT); ref.load(eContext); Register r = ref.getRegister(); checkBounds(ref, idx); if (idx.getKind() == Item.CONSTANT) { final in...
42,724
public final void visit_swap() { Item v1 = vstack.popItem(); Item v2 = vstack.popItem(); assertCondition((v1.getCategory() == 1) && (v2.getCategory() == 1)); //TODO: handle floats assertCondition((v1.getType() != Item.FLOAT)); final boolean v1IsBool = (v1.getKind() == Item.STACK); ...
public final void visit_swap() { Item v1 = vstack.popItem(); Item v2 = vstack.popItem(); assertCondition((v1.getCategory() == 1) && (v2.getCategory() == 1)); //TODO: handle floats assertCondition((v1.getType() != Item.FLOAT)); final boolean v1IsBool = (v1.getKind() == Item.STACK); ...
42,725
static int SignatureToType(char type) { switch (type) { case 'Z' : // Boolean case 'B' : // Byte case 'C' : // Character case 'S' : // Short case 'I' : // Integer return INT; case 'F' : // Float return FLOAT; case 'L' : // Object case ';' : // Object case '[' : // Array return REFERENCE; ...
static int SignatureToType(char type) { switch (type) { case 'Z' : // Boolean case 'B' : // Byte case 'C' : // Character case 'S' : // Short case 'I' : // Integer return INT; case 'F' : // Float return FLOAT; case 'L' : // Object case ';' : // Object case '[' : // Array return REFERENCE; ...
42,726
static int SignatureToType(char type) { switch (type) { case 'Z' : // Boolean case 'B' : // Byte case 'C' : // Character case 'S' : // Short case 'I' : // Integer return INT; case 'F' : // Float return FLOAT; case 'L' : // Object case ';' : // Object case '[' : // Array return REFERENCE; ...
static int SignatureToType(char type) { switch (type) { case 'Z' : // Boolean case 'B' : // Byte case 'C' : // Character case 'S' : // Short case 'I' : // Integer return INT; case 'F' : // Float return FLOAT; case 'L' : // Object case ';' : // Object case '[' : // Array return REFERENCE; ...
42,727
static int SignatureToType(char type) { switch (type) { case 'Z' : // Boolean case 'B' : // Byte case 'C' : // Character case 'S' : // Short case 'I' : // Integer return INT; case 'F' : // Float return FLOAT; case 'L' : // Object case ';' : // Object case '[' : // Array return REFERENCE; ...
static int SignatureToType(char type) { switch (type) { case 'Z' : // Boolean case 'B' : // Byte case 'C' : // Character case 'S' : // Short case 'I' : // Integer return INT; case 'F' : // Float return FLOAT; case 'L' : // Object case ';' : // Object case '[' : // Array return REFERENCE; ...
42,728