mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* compile.c (ADD_INSNL): make ADD_INSNSL as alias of ADD_INSN1.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36660 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
e2f5d4f9c7
commit
dcfaf3e277
2 changed files with 7 additions and 5 deletions
|
@ -1,3 +1,7 @@
|
|||
Wed Aug 8 17:11:20 2012 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* compile.c (ADD_INSNL): make ADD_INSNSL as alias of ADD_INSN1.
|
||||
|
||||
Wed Aug 8 17:08:14 2012 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* bootstrap/test_exception.rb: fix a last committed test.
|
||||
|
|
|
@ -185,16 +185,14 @@ r_value(VALUE value)
|
|||
#define ADD_INSN(seq, line, insn) \
|
||||
ADD_ELEM((seq), (LINK_ELEMENT *) new_insn_body(iseq, (line), BIN(insn), 0))
|
||||
|
||||
/* add an instruction with label operand */
|
||||
#define ADD_INSNL(seq, line, insn, label) \
|
||||
ADD_ELEM((seq), (LINK_ELEMENT *) \
|
||||
new_insn_body(iseq, (line), BIN(insn), 1, (VALUE)(label)))
|
||||
|
||||
/* add an instruction with some operands (1, 2, 3, 5) */
|
||||
#define ADD_INSN1(seq, line, insn, op1) \
|
||||
ADD_ELEM((seq), (LINK_ELEMENT *) \
|
||||
new_insn_body(iseq, (line), BIN(insn), 1, (VALUE)(op1)))
|
||||
|
||||
/* add an instruction with label operand (alias of ADD_INSN1) */
|
||||
#define ADD_INSNL(seq, line, insn, label) ADD_INSN1(seq, line, insn, label)
|
||||
|
||||
#define ADD_INSN2(seq, line, insn, op1, op2) \
|
||||
ADD_ELEM((seq), (LINK_ELEMENT *) \
|
||||
new_insn_body(iseq, (line), BIN(insn), 2, (VALUE)(op1), (VALUE)(op2)))
|
||||
|
|
Loading…
Reference in a new issue