From 9a8b38cacfa029aa9bbc5f1600b1ead3903a8c88 Mon Sep 17 00:00:00 2001 From: shyouhei Date: Mon, 29 Jan 2018 06:47:05 +0000 Subject: extensive use of instruction attributes Instead of using magic numbers, let us define a series of attributes and use them from the VM core. Proper function declarations makes these attributes inlined in most modern compilers. On my machine exact same binary is generated with or without this changeset. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62085 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- vm_insnhelper.c | 1 + 1 file changed, 1 insertion(+) (limited to 'vm_insnhelper.c') diff --git a/vm_insnhelper.c b/vm_insnhelper.c index 1ba3cce..9903bcc 100644 --- a/vm_insnhelper.c +++ b/vm_insnhelper.c @@ -10,6 +10,7 @@ /* finish iseq array */ #include "insns.inc" +#include "insns_info.inc" #include #include "constant.h" #include "internal.h" -- cgit v1.1