diff options
author | k0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-10-30 14:57:03 +0000 |
---|---|---|
committer | k0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-10-30 14:57:03 +0000 |
commit | 51a0f04e6beae33047016204f0fd3546cc0b66e3 (patch) | |
tree | 6ce86f1d5d3a4340b1276e5730a185bd87278538 /vm_core.h | |
parent | fae6c6bfd850f49e595d625659c9b5d8816a8c7c (diff) |
_mjit_compile_send.erb: do not inline tailcall ISeq
because it's not supported by this file. Also, shared `def_iseq_ptr`
instead of copying the main definition of it.
vm_core.h: moved `def_iseq_ptr` to this place. added `inline` to avoid
compiler warnings since it's not used in some files including vm_core.h.
vm_insnhelper.c: moved `def_iseq_ptr` to vm_core.h.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65440 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_core.h')
-rw-r--r-- | vm_core.h | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -507,6 +507,15 @@ rb_iseq_check(const rb_iseq_t *iseq) return iseq; } +static inline const rb_iseq_t * +def_iseq_ptr(rb_method_definition_t *def) +{ +#if VM_CHECK_MODE > 0 + if (def->type != VM_METHOD_TYPE_ISEQ) rb_bug("def_iseq_ptr: not iseq (%d)", def->type); +#endif + return rb_iseq_check(def->body.iseq.iseqptr); +} + enum ruby_special_exceptions { ruby_error_reenter, ruby_error_nomemory, |