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

Commits on Mar 7, 2015

  1. Copy the full SHA
    cd5dfb9 View commit details
  2. [Truffle] Hash#store

    chrisseaton committed Mar 7, 2015
    Copy the full SHA
    3525a13 View commit details
1 change: 0 additions & 1 deletion spec/truffle/tags/core/hash/store_tags.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
fails:Hash#store accepts keys with private #hash method
fails:Hash#store doesn't duplicate and freeze already frozen string keys
8 changes: 0 additions & 8 deletions spec/truffle/tags/core/hash/try_convert_tags.txt

This file was deleted.

Original file line number Diff line number Diff line change
@@ -31,7 +31,7 @@ public class FindEntryNode extends RubyNode {

public FindEntryNode(RubyContext context, SourceSection sourceSection) {
super(context, sourceSection);
hashNode = DispatchHeadNodeFactory.createMethodCall(context);
hashNode = DispatchHeadNodeFactory.createMethodCall(context, true);
eqlNode = DispatchHeadNodeFactory.createMethodCall(context, false, false, null);
equalNode = DispatchHeadNodeFactory.createMethodCall(context, false, false, null);
}
6 changes: 6 additions & 0 deletions truffle/src/main/ruby/core/rubinius/common/hash.rb
Original file line number Diff line number Diff line change
@@ -230,4 +230,10 @@ def values_at(*args)
alias_method :indices, :values_at
alias_method :indexes, :values_at

def self.try_convert(obj)
Rubinius::Type.try_convert obj, Hash, :to_hash
end

alias_method :store, :[]=

end