mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* compile.c, compile.h: fix to calculate correct stack depth
at each instruction. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15251 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
1e039d96f3
commit
3b1c663ed9
3 changed files with 103 additions and 56 deletions
|
@ -167,6 +167,9 @@ r_value(VALUE value)
|
|||
#define ADD_ADJUST(seq, line, label) \
|
||||
ADD_ELEM(seq, (LINK_ELEMENT *) new_adjust_body(iseq, label, line))
|
||||
|
||||
#define ADD_ADJUST_RESTORE(seq, label) \
|
||||
ADD_ELEM(seq, (LINK_ELEMENT *) new_adjust_body(iseq, label, -1))
|
||||
|
||||
#define ADD_CATCH_ENTRY(type, ls, le, iseqv, lc) \
|
||||
(rb_ary_push(iseq->compile_data->catch_table_ary, \
|
||||
rb_ary_new3(5, type, \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue