diff options
author | 卜部昌平 <shyouhei@ruby-lang.org> | 2019-10-24 18:08:52 +0900 |
---|---|---|
committer | 卜部昌平 <shyouhei@ruby-lang.org> | 2019-10-25 12:24:22 +0900 |
commit | 356e203a3acd4d3d20ba12f956fd22e17b6363e9 (patch) | |
tree | 78b4eccc00668da18debcb3e818146add31da10a /vm_core.h | |
parent | a7ec88ad61eba8cda3f99805e6077cb515c0ad08 (diff) | |
download | bundler-356e203a3acd4d3d20ba12f956fd22e17b6363e9.tar.gz |
more on struct rb_call_data
Replacing adjacent struct rb_call_info and struct rb_call_cache
into a struct rb_call_data.
Diffstat (limited to 'vm_core.h')
-rw-r--r-- | vm_core.h | 14 |
1 files changed, 1 insertions, 13 deletions
@@ -234,13 +234,6 @@ union iseq_inline_storage_entry { struct iseq_inline_cache_entry cache; }; -struct rb_call_info { - /* fixed at compile time */ - ID mid; - unsigned int flag; - int orig_argc; -}; - struct rb_call_info_kw_arg { int keyword_len; VALUE keywords[1]; @@ -258,18 +251,13 @@ struct rb_calling_info { int kw_splat; }; -struct rb_call_data { - struct rb_call_cache cc; - struct rb_call_info ci; -}; - struct rb_kwarg_call_data { struct rb_call_cache cc; struct rb_call_info_with_kwarg ci_kw; }; struct rb_execution_context_struct; -typedef VALUE (*vm_call_handler)(struct rb_execution_context_struct *ec, struct rb_control_frame_struct *cfp, struct rb_calling_info *calling, const struct rb_call_info *ci, struct rb_call_cache *cc); +typedef VALUE (*vm_call_handler)(struct rb_execution_context_struct *ec, struct rb_control_frame_struct *cfp, struct rb_calling_info *calling, struct rb_call_data *cd); #if 1 #define CoreDataFromValue(obj, type) (type*)DATA_PTR(obj) |