diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-02-28 14:04:53 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-02-28 14:04:53 +0000 |
commit | 4cf0918e8e3d8b06d84c3cd3e875c82edb8b87e6 (patch) | |
tree | 986d16e605fee63e700b7e28a72aa0b00894728c /ext | |
parent | 338ec3cee73f58091927d9282070efd0da0cca36 (diff) | |
download | ruby-4cf0918e8e3d8b06d84c3cd3e875c82edb8b87e6.tar.gz |
* compile.c (iseq_compile_each): remove redundant trace(line)
instruction. for example, at the following script
def m()
p:xyzzy
1
2
end
compiler ignores `1' because there is no effect. However,
`trace(line)' instruction remains in bytecode.
This modification removes such redundant trace(line) instruction.
* test/ruby/test_iseq.rb: add a test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39539 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
0 files changed, 0 insertions, 0 deletions