Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: jruby/jruby
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: a870e579d425
Choose a base ref
...
head repository: jruby/jruby
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 04b44d7c5ef3
Choose a head ref
  • 2 commits
  • 5 files changed
  • 1 contributor

Commits on Oct 12, 2014

  1. Fixup broken commit c02df12.

    subbuss committed Oct 12, 2014
    Copy the full SHA
    6f312e9 View commit details
  2. Copy the full SHA
    04b44d7 View commit details
5 changes: 2 additions & 3 deletions core/src/main/java/org/jruby/ir/instructions/BreakInstr.java
Original file line number Diff line number Diff line change
@@ -92,10 +92,9 @@ public Instr clone(CloneInfo info) {
}

return new BreakInstr(returnValue.cloneForInlining(ii), scopeName);
} else {
throw new UnsupportedOperationException("Break instructions shouldn't show up outside closures.");
}

throw new UnsupportedOperationException();
//return super.clone(ii);
}

@Override
Original file line number Diff line number Diff line change
@@ -47,10 +47,9 @@ public Instr clone(CloneInfo info) {
}

return new NonlocalReturnInstr(returnValue.cloneForInlining(ii), methodName, maybeLambda);
} else {
throw new UnsupportedOperationException("Nonlocal returns shouldn't show up outside closures.");
}

throw new UnsupportedOperationException();
//return super.clone(ii);
}

@Override
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@
import org.jruby.ir.operands.Variable;
import org.jruby.ir.transformations.inlining.CloneInfo;

public class ReceiveExceptionBase extends Instr implements ResultInstr, FixedArityInstr {
public abstract class ReceiveExceptionBase extends Instr implements ResultInstr, FixedArityInstr {
protected Variable result;

public ReceiveExceptionBase(Operation op, Variable result) {
@@ -34,10 +34,4 @@ public String toString() {
public void updateResult(Variable v) {
this.result = v;
}

@Override
public Instr clone(CloneInfo info) {
throw new UnsupportedOperationException();
}

}
Original file line number Diff line number Diff line change
@@ -50,5 +50,4 @@ public String toString() {
public Instr clone(CloneInfo info) {
throw new UnsupportedOperationException();
}

}
6 changes: 3 additions & 3 deletions core/src/main/java/org/jruby/ir/operands/LocalVariable.java
Original file line number Diff line number Diff line change
@@ -16,9 +16,9 @@
* @author enebo
*/
public class LocalVariable extends Variable implements DepthCloneable {
protected String name;
protected int scopeDepth;
protected int offset;
protected final String name;
protected final int scopeDepth;
protected final int offset;

// FIXME: We should resolve to an index into an array but localvariable has no allocator
public LocalVariable(String name, int scopeDepth, int location) {