aboutsummaryrefslogtreecommitdiffstats
path: root/vm_insnhelper.h
diff options
context:
space:
mode:
authorshyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-01-25 14:09:10 +0000
committershyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-01-25 14:09:10 +0000
commit0a5b4c13ad16bacfa5659f7ac92eb7abf9416261 (patch)
treea50901558bb6bf4831411235c990c14d4abd4c02 /vm_insnhelper.h
parent24b57b102c1992b679f8f8c0fd1a0239289a129b (diff)
downloadruby-0a5b4c13ad16bacfa5659f7ac92eb7abf9416261.tar.gz
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
Diffstat (limited to 'vm_insnhelper.h')
-rw-r--r--vm_insnhelper.h1
1 files changed, 1 insertions, 0 deletions
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); \