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: 17ae6b483dba
Choose a base ref
...
head repository: jruby/jruby
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 612a27c1aac6
Choose a head ref
  • 2 commits
  • 2 files changed
  • 2 contributors

Commits on Mar 3, 2015

  1. 3
    Copy the full SHA
    c066b99 View commit details
  2. Merge pull request #2641 from bjfish/truffle_symbol_succ

    [Truffle] Implemented Symbol#succ.
    chrisseaton committed Mar 3, 2015
    Copy the full SHA
    612a27c View commit details
Showing with 19 additions and 3 deletions.
  1. +0 −3 spec/truffle/tags/core/symbol/succ_tags.txt
  2. +19 −0 truffle/src/main/java/org/jruby/truffle/nodes/core/SymbolNodes.java
3 changes: 0 additions & 3 deletions spec/truffle/tags/core/symbol/succ_tags.txt

This file was deleted.

Original file line number Diff line number Diff line change
@@ -340,6 +340,25 @@ public int size(RubySymbol symbol) {

}

@CoreMethod(names = {"succ"})
public abstract static class SuccNode extends CoreMethodNode {

public SuccNode(RubyContext context, SourceSection sourceSection) {
super(context, sourceSection);
}

public SuccNode(SuccNode prev) {
super(prev);
}

@Specialization
public RubySymbol succ(RubySymbol symbol) {
notDesignedForCompilation();
return getContext().newSymbol(StringSupport.succCommon(symbol.getByteList()));
}

}

@CoreMethod(names = { "swapcase"})
public abstract static class SwapcaseNode extends CoreMethodNode {