diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-04-06 02:56:23 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-04-06 02:56:23 +0000 |
commit | 658669ee7b96bed3c99e421f28ccf8a89b131c2d (patch) | |
tree | 55c317d2f1391a309fbc501dd0db8c28d3eade37 /ext/etc/mkconstants.rb | |
parent | 475572548f0144802213bd39c24ff16b0e57f62b (diff) | |
download | ruby-658669ee7b96bed3c99e421f28ccf8a89b131c2d.tar.gz |
fix TracePoint#return_value with non-local exits
* vm.c: get return_value from imemo_throw_data object (THROW_DATA_VAL()).
imemo_throw_data (TAG_BREAK) contains returned value.
However, imemo_throw_data (TAG_BREAK) can skip several frames so that
we need to use it only once (at most internal frame). To record it,
we introduced THROW_DATA_CONSUMED and check it.
* internal.h: define THROW_DATA_CONSUMED flag.
* test/ruby/test_settracefunc.rb: add tests for [Bug #13369]
* vm_insnhelper.h: add THROW_DATA_CONSUMED_P() and
THROW_DATA_CONSUMED_SET().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58262 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/etc/mkconstants.rb')
0 files changed, 0 insertions, 0 deletions