diff options
author | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-12-05 21:49:42 +0000 |
---|---|---|
committer | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-12-05 21:49:42 +0000 |
commit | e70210cad637c5be31709f65c0eb9603f8ec18a1 (patch) | |
tree | 47200e0b956e17248a8bbd4a2b6ac6cc96ee08cf /compile.c | |
parent | dd155e029e1bc42a15532f82f0d7e6bae5ec0229 (diff) | |
download | ruby-e70210cad637c5be31709f65c0eb9603f8ec18a1.tar.gz |
compile.c (rb_iseq_build_from_ary): remove misc handling
iseq->local_size is calculated, too, along with stack_size and
param.size, meaning there is no need to blindly load values in
the misc hash passed to us.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48725 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'compile.c')
-rw-r--r-- | compile.c | 11 |
1 files changed, 4 insertions, 7 deletions
@@ -6072,13 +6072,10 @@ rb_iseq_build_from_ary(rb_iseq_t *iseq, VALUE misc, VALUE locals, VALUE params, } } -#define MISC_PARAM(D,F) do { \ - if (!int_param(D, misc, SYM(F))) { \ - rb_raise(rb_eTypeError, "misc field missing: %s", #F); \ - } } while (0) - MISC_PARAM(&iseq->local_size, local_size); - /* iseq->stack_size and iseq->param.size are calculated */ -#undef MISC_PARAM + /* + * we currently ignore misc params, + * local_size, stack_size and param.size are all calculated + */ #define INT_PARAM(F) int_param(&iseq->param.F, params, SYM(F)) if (INT_PARAM(lead_num)) { |