mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* insns.def: add new instruction opt_empty_p' for optimize empty?'
method. Apply a patch proposed at [ruby-dev:46120] [ruby-trunk - Feature #6972] by Glass_saga (Masaki Matsushita). * compile.c (iseq_specialized_instruction), vm.c, vm_insnhelper.h: ditto. * id.c, template/id.h.tmpl: ditto. * test/ruby/test_optimization.rb: test for this changes. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37036 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
24793ac32d
commit
1bebb22ce1
8 changed files with 74 additions and 0 deletions
1
id.c
1
id.c
|
|
@ -41,6 +41,7 @@ Init_id(void)
|
|||
REGISTER_SYMID(idEach, "each");
|
||||
REGISTER_SYMID(idLength, "length");
|
||||
REGISTER_SYMID(idSize, "size");
|
||||
REGISTER_SYMID(idEmptyP, "empty?");
|
||||
REGISTER_SYMID(idLambda, "lambda");
|
||||
REGISTER_SYMID(idIntern, "intern");
|
||||
REGISTER_SYMID(idGets, "gets");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue