summaryrefslogtreecommitdiff
path: root/compile.h
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-26 08:27:00 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-26 08:27:00 +0000
commit3b1c663ed942c3125c8ff93243b3af77da7cdac4 (patch)
treeda7697de54138e1706fffc7e3de02c03c0c8a02f /compile.h
parent1e039d96f3c391cea3138c8c2c01d4f4757b0433 (diff)
* 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
Diffstat (limited to 'compile.h')
-rw-r--r--compile.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/compile.h b/compile.h
index 54b5d5d91f..f2e0cae5b9 100644
--- a/compile.h
+++ b/compile.h
@@ -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, \