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
This commit is contained in:
parent
dd155e029e
commit
e70210cad6
@ -1,3 +1,7 @@
|
|||||||
|
Sat Dec 6 06:48:03 2014 Eric Wong <e@80x24.org>
|
||||||
|
|
||||||
|
* compile.c (rb_iseq_build_from_ary): remove misc handling
|
||||||
|
|
||||||
Sat Dec 6 06:14:23 2014 Vit Ondruch <vondruch@redhat.com>
|
Sat Dec 6 06:14:23 2014 Vit Ondruch <vondruch@redhat.com>
|
||||||
|
|
||||||
* configure.in (RUBY_LIB_VERSION): Fix --with-ruby-version
|
* configure.in (RUBY_LIB_VERSION): Fix --with-ruby-version
|
||||||
|
11
compile.c
11
compile.c
@ -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))) { \
|
* we currently ignore misc params,
|
||||||
rb_raise(rb_eTypeError, "misc field missing: %s", #F); \
|
* local_size, stack_size and param.size are all calculated
|
||||||
} } while (0)
|
*/
|
||||||
MISC_PARAM(&iseq->local_size, local_size);
|
|
||||||
/* iseq->stack_size and iseq->param.size are calculated */
|
|
||||||
#undef MISC_PARAM
|
|
||||||
|
|
||||||
#define INT_PARAM(F) int_param(&iseq->param.F, params, SYM(F))
|
#define INT_PARAM(F) int_param(&iseq->param.F, params, SYM(F))
|
||||||
if (INT_PARAM(lead_num)) {
|
if (INT_PARAM(lead_num)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user