diff options
author | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-08-23 08:32:30 +0000 |
---|---|---|
committer | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-08-23 08:32:30 +0000 |
commit | 804fd345d17cd970e4c5a0810f9da223b3bd3c90 (patch) | |
tree | 1fcdc749e929fe7d036d1dd6a8e969041e669792 /eval.c | |
parent | c1f7344674c979fa74ba158876ae716a7a6dd91f (diff) | |
download | ruby-804fd345d17cd970e4c5a0810f9da223b3bd3c90.tar.gz |
iseq.c: add a map from encoded insn to insn data
This enhances rb_vm_insn_addr2insn which retrieves a decoded insn number
from encoded insn.
The insn data table include not only decoded insn number, but also its
len, trace and non-trace version of encoded insn.
This table can be used to simplify trace instrumentation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64518 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -66,7 +66,7 @@ ruby_setup(void) #endif Init_BareVM(); Init_heap(); - rb_addr2insn_init(); + rb_vm_encoded_insn_data_table_init(); Init_vm_objects(); EC_PUSH_TAG(GET_EC()); |