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: 9a1e3526e890
Choose a base ref
...
head repository: jruby/jruby
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 90909cf5e318
Choose a head ref
  • 2 commits
  • 2 files changed
  • 1 contributor

Commits on Apr 18, 2016

  1. [noci] Add toString for self

    enebo committed Apr 18, 2016
    Copy the full SHA
    3e852cf View commit details
  2. [noci] Change output of LVP data to display variable name and not bit…

    …field holding index
    enebo committed Apr 18, 2016
    Copy the full SHA
    90909cf View commit details
Showing with 7 additions and 2 deletions.
  1. +2 −2 core/src/main/java/org/jruby/ir/dataflow/analyses/LiveVariableNode.java
  2. +5 −0 core/src/main/java/org/jruby/ir/operands/Self.java
Original file line number Diff line number Diff line change
@@ -167,7 +167,7 @@ public String toString() {
for (int i = 0; i < in.size(); i++) {
if (in.get(i)) {
count++;
buf.append(' ').append(i);
buf.append(' ').append(problem.getVariable(i));
if (count % 10 == 0) buf.append("\t\n");
}
}
@@ -179,7 +179,7 @@ public String toString() {
for (int i = 0; i < out.size(); i++) {
if (out.get(i)) {
count++;
buf.append(' ').append(i);
buf.append(' ').append(problem.getVariable(i));
if (count % 10 == 0) buf.append("\t\n");
}
}
5 changes: 5 additions & 0 deletions core/src/main/java/org/jruby/ir/operands/Self.java
Original file line number Diff line number Diff line change
@@ -60,4 +60,9 @@ public void visit(IRVisitor visitor) {
public int compareTo(Object o) {
return this == o ? 0 : -1;
}

@Override
public String toString() {
return NAME;
}
}