1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

insns.def: description [ci skip]

* insns.def: [DOC] add missing English description.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53490 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2016-01-10 02:07:00 +00:00
parent ec0198fd8c
commit 645d23955f

View file

@ -329,7 +329,7 @@ putspecialobject
/** /**
@c put @c put
@e put iseq value. @e put iseq value.
@j put iseq value. @j iseq
*/ */
DEFINE_INSN DEFINE_INSN
putiseq putiseq
@ -377,7 +377,7 @@ concatstrings
/** /**
@c put @c put
@e to_str @e push the result of to_str.
@j to_str @j to_str
*/ */
DEFINE_INSN DEFINE_INSN
@ -391,7 +391,7 @@ tostring
/** /**
@c put @c put
@e Freeze (dynamically) created strings. @e Freeze (dynamically) created strings. if debug_info is given, set it.
@j freeze debug_info @j freeze debug_info
*/ */
DEFINE_INSN DEFINE_INSN
@ -408,7 +408,8 @@ freezestring
/** /**
@c put @c put
@e to Regexp @e compile str to Regexp and push it.
opt is the option for the Regexp.
@j str @j str
opt opt
*/ */
@ -431,7 +432,7 @@ toregexp
/** /**
@c put @c put
@e put new array. @e put new array initialized with num values on the stack.
@j num @j num
*/ */
DEFINE_INSN DEFINE_INSN
@ -460,7 +461,14 @@ duparray
/** /**
@c put @c put
@e expand array to num objects. @e if TOS is an array expand, expand it to num objects.
if the number of the array is less than num, push nils to fill.
if it is greater than num, exceeding elements are dropped.
unless TOS is an array, push num - 1 nils.
if flags is non-zero, push the array of the rest elements.
flag: 0x01 - rest args array
flag: 0x02 - for postarg
flag: 0x04 - reverse?
@j @j
num以下ならば nil num以上なら num以下ならば nil num以上なら
num以上の要素は切り捨てる num以上の要素は切り捨てる
@ -510,8 +518,8 @@ concatarray
/** /**
@c put @c put
@e splat array @e call to_a on array ary to splat
@j ary to_a @j splat ary to_a
*/ */
DEFINE_INSN DEFINE_INSN
splatarray splatarray
@ -531,7 +539,7 @@ splatarray
/** /**
@c put @c put
@e put new Hash. @e put new Hash from n elements. n must be an even number.
@j n @j n
n 2 n 2
*/ */