From 804fd345d17cd970e4c5a0810f9da223b3bd3c90 Mon Sep 17 00:00:00 2001 From: mame Date: Thu, 23 Aug 2018 08:32:30 +0000 Subject: 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 --- eval.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'eval.c') diff --git a/eval.c b/eval.c index 2aa7de46ed..35255e0975 100644 --- a/eval.c +++ b/eval.c @@ -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()); -- cgit v1.2.3