diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-12-02 08:20:35 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-12-02 08:20:35 +0000 |
commit | cfd1157f1123998bde7b93212bdb111a65b82414 (patch) | |
tree | 418f1f7d9a8652ed71e1ffbef0afbb59281111a3 /iseq.c | |
parent | a9c0cf4ff06ecbda16b1fcf9d16cb252becd9453 (diff) |
* iseq.h: introduce ISEQ_ORIGINAL_ISEQ() and
ISEQ_ORIGINAL_ISEQ_ALLOC() macro.
* compile.c: use them to access original iseq buffer.
* iseq.c: ditto.
* vm_core.h: rename iseq field to support this fix.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52862 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'iseq.c')
-rw-r--r-- | iseq.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -92,7 +92,7 @@ rb_iseq_free(const rb_iseq_t *iseq) ruby_xfree((void *)iseq->body->param.keyword); } compile_data_free(ISEQ_COMPILE_DATA(iseq)); - ruby_xfree(iseq->variable_body->iseq); + ruby_xfree(iseq->variable_body->iseq_); ruby_xfree(iseq->variable_body); ruby_xfree(iseq->body); } @@ -157,7 +157,7 @@ iseq_memsize(const rb_iseq_t *iseq) if (variable_body) { size += sizeof(struct rb_iseq_variable_body); - if (variable_body->iseq && body) { + if (variable_body->iseq_ && body) { size += body->iseq_size * sizeof(VALUE); } } |