From d574683c40d42c1ec834c99c2717cbd8de442353 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 --- vm_core.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'vm_core.h') diff --git a/vm_core.h b/vm_core.h index 1e27e7f839..bb6409719b 100644 --- a/vm_core.h +++ b/vm_core.h @@ -164,11 +164,7 @@ void *rb_register_sigaltstack(void); #endif /* OPT_STACK_CACHING */ #endif /* OPT_CALL_THREADED_CODE */ -#if OPT_DIRECT_THREADED_CODE || OPT_CALL_THREADED_CODE -void rb_addr2insn_init(void); -#else -static inline void rb_addr2insn_init(void) { } -#endif +void rb_vm_encoded_insn_data_table_init(void); typedef unsigned long rb_num_t; typedef signed long rb_snum_t; -- cgit v1.2.3