mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* iseq.c (iseq_load): disable peephole optimization option
because apply it multiple times change the sequence. (iseq != peephole_optimize(load(iseq.to_a))) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52924 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
21366b17a5
commit
8dce6b15cc
2 changed files with 7 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
|||
Tue Dec 8 03:44:51 2015 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* iseq.c (iseq_load): disable peephole optimization option
|
||||
because apply it multiple times change the sequence.
|
||||
(iseq != peephole_optimize(load(iseq.to_a)))
|
||||
|
||||
Tue Dec 8 03:43:21 2015 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* compile.c (rb_iseq_build_from_ary): do not allocate table
|
||||
|
|
1
iseq.c
1
iseq.c
|
@ -565,6 +565,7 @@ iseq_load(VALUE data, const rb_iseq_t *parent, VALUE opt)
|
|||
}
|
||||
|
||||
make_compile_option(&option, opt);
|
||||
option.peephole_optimization = FALSE; /* because peephole optimization can modify original iseq */
|
||||
prepare_iseq_build(iseq, name, path, absolute_path, first_lineno,
|
||||
parent, (enum iseq_type)iseq_type, &option);
|
||||
|
||||
|
|
Loading…
Reference in a new issue