diff options
author | eregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-01-07 11:31:53 +0000 |
---|---|---|
committer | eregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-01-07 11:31:53 +0000 |
commit | d87ec1f939faabab0e1b6f7f6bda0744dadda47c (patch) | |
tree | 1437b08685e31dfbefd9c2b895522cb3e5b16764 /internal.h | |
parent | 268f8198e079fa82760bed813034a23b1c7500f3 (diff) | |
download | ruby-d87ec1f939faabab0e1b6f7f6bda0744dadda47c.tar.gz |
fix optimization for hash aset/aref with fstring
Patch by Eric Wong [ruby-core:78797].
I don't like the idea of making insns.def any bigger to support
a corner case, and "test_hash_aref_fstring_identity" shows
how contrived this is.
[ruby-core:78783] [Bug #12855]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57278 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'internal.h')
-rw-r--r-- | internal.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/internal.h b/internal.h index 2346345480..c44d7bd99c 100644 --- a/internal.h +++ b/internal.h @@ -1098,6 +1098,7 @@ long rb_objid_hash(st_index_t index); long rb_dbl_long_hash(double d); st_table *rb_init_identtable(void); st_table *rb_init_identtable_with_size(st_index_t size); +VALUE rb_hash_compare_by_id_p(VALUE hash); #define RHASH_TBL_RAW(h) rb_hash_tbl_raw(h) VALUE rb_hash_keys(VALUE hash); |