From 0a5b4c13ad16bacfa5659f7ac92eb7abf9416261 Mon Sep 17 00:00:00 2001 From: shyouhei Date: Fri, 25 Jan 2019 14:09:10 +0000 Subject: vm.inc now in C99 This changeset modifies the VM generator so that vm.inc is written in C99. Also added some comments in _insn_entry.erb so that the intention of each parts to be made more clear. I think this improves overall readability of the generated VM. Confirmed that the exact same binary is generated before/after this changeset. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66923 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- vm_insnhelper.h | 1 + 1 file changed, 1 insertion(+) (limited to 'vm_insnhelper.h') diff --git a/vm_insnhelper.h b/vm_insnhelper.h index 7541b02276..b96c794d4f 100644 --- a/vm_insnhelper.h +++ b/vm_insnhelper.h @@ -137,6 +137,7 @@ enum vm_regan_acttype { #if VM_CHECK_MODE > 0 #define SETUP_CANARY() \ + VALUE * canary; \ if (leaf) { \ canary = GET_SP(); \ SET_SV(vm_stack_canary); \ -- cgit v1.2.1