aboutsummaryrefslogtreecommitdiffstats
path: root/insns.def
diff options
context:
space:
mode:
authorshyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-12-28 01:06:04 +0000
committershyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-12-28 01:06:04 +0000
commit24b1b433c5abf02e9f9c7eb3851f4417dc5d8751 (patch)
treefc513612cf7e6904294a2cf6052973e1c13c563e /insns.def
parentd3c0b20949916aa7b432a0498a8016d67a7822ad (diff)
downloadruby-24b1b433c5abf02e9f9c7eb3851f4417dc5d8751.tar.gz
vm_insnhelper.c: delete unused macros
- FIXNUM_2_P: moved to vm_insnhelper.c because that is the only place this macro is used. - FLONUM_2_P: ditto. - FLOAT_HEAP_P: not used anywhere. - FLOAT_INSTANCE_P: ditto. - GET_TOS: ditto. - USE_IC_FOR_SPECIALIZED_METHOD: ditto. - rb_obj_hidden_p: ditto. - REG_A: ditto. - REG_B: ditto. - GET_CONST_INLINE_CACHE: ditto. - vm_regan_regtype: moved inside of VM_COLLECT_USAGE_DETAILS because that os the only place this enum is used. - vm_regan_acttype: ditto. - GET_GLOBAL: used only once. Removed with replacing that usage. - SET_GLOBAL: ditto. - rb_method_definition_create: declaration moved to vm_insnhelper.c because that is the only place this declaration makes sense. - rb_method_definition_set: ditto. - rb_method_definition_eq: ditto. - rb_make_no_method_exception: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66597 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'insns.def')
-rw-r--r--insns.def6
1 files changed, 4 insertions, 2 deletions
diff --git a/insns.def b/insns.def
index 4840a44083..a062a9f119 100644
--- a/insns.def
+++ b/insns.def
@@ -290,7 +290,8 @@ getglobal
(VALUE val)
// attr bool leaf = leafness_of_getglobal(entry);
{
- val = GET_GLOBAL((VALUE)entry);
+ struct rb_global_entry *gentry = (void *)entry;
+ val = rb_gvar_get(gentry);
}
/* set global variable id as val. */
@@ -301,7 +302,8 @@ setglobal
()
// attr bool leaf = leafness_of_setglobal(entry);
{
- SET_GLOBAL((VALUE)entry, val);
+ struct rb_global_entry *gentry = (void *)entry;
+ rb_gvar_set(gentry, val);
}
/**********************************************************/