mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* keywords, lex.c.src, opt_insn_unif.def, opt_operand.def: moved rarely changed
input files for code generators into defs/ directory. * Makefile.in (lex.c): followed keywords and lex.c.src. * common.mk (parser.o): followed keywords. (INSNS): followed opt_*.def * tools/instruction.rb: followed opt_*.def. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19844 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b7be78d774
commit
c2091e37ec
8 changed files with 21 additions and 9 deletions
59
defs/opt_operand.def
Normal file
59
defs/opt_operand.def
Normal file
|
@ -0,0 +1,59 @@
|
|||
#
|
||||
# configration file for operand union optimization
|
||||
#
|
||||
# format:
|
||||
# [insn name] op1, op2 ...
|
||||
#
|
||||
# wildcard: *
|
||||
#
|
||||
|
||||
__END__
|
||||
|
||||
getlocal 2
|
||||
getlocal 3
|
||||
getlocal 4
|
||||
|
||||
setlocal 2
|
||||
setlocal 3
|
||||
setlocal 4
|
||||
|
||||
getdynamic *, 0
|
||||
getdynamic 1, 0
|
||||
getdynamic 2, 0
|
||||
getdynamic 3, 0
|
||||
getdynamic 4, 0
|
||||
|
||||
setdynamic *, 0
|
||||
setdynamic 1, 0
|
||||
setdynamic 2, 0
|
||||
setdynamic 3, 0
|
||||
setdynamic 4, 0
|
||||
|
||||
putobject INT2FIX(0)
|
||||
putobject INT2FIX(1)
|
||||
putobject Qtrue
|
||||
putobject Qfalse
|
||||
|
||||
# CALL
|
||||
send *, *, Qfalse, 0, *
|
||||
send *, 0, Qfalse, 0, *
|
||||
send *, 1, Qfalse, 0, *
|
||||
send *, 2, Qfalse, 0, *
|
||||
send *, 3, Qfalse, 0, *
|
||||
|
||||
# FCALL
|
||||
send *, *, Qfalse, 0x04, *
|
||||
send *, 0, Qfalse, 0x04, *
|
||||
send *, 1, Qfalse, 0x04, *
|
||||
send *, 2, Qfalse, 0x04, *
|
||||
send *, 3, Qfalse, 0x04, *
|
||||
|
||||
# VCALL
|
||||
send *, 0, Qfalse, 0x0c, *
|
||||
|
||||
|
||||
__END__
|
||||
|
||||
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue