From 1e0600324b651310396329343fd407507a533318 Mon Sep 17 00:00:00 2001 From: ko1 Date: Fri, 23 Oct 2015 17:00:51 +0000 Subject: * vm_core.h: define vm_call_handler. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52253 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ vm_core.h | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 7ba6571335..18ea9a9dce 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Sat Oct 24 01:58:50 2015 Koichi Sasada + + * vm_core.h: define vm_call_handler. + Sat Oct 24 01:56:01 2015 Koichi Sasada * vm_core.h, vm_insnhelper.h: move definition of VMDEBUG diff --git a/vm_core.h b/vm_core.h index 35df3dcb6b..50fd3ee3d2 100644 --- a/vm_core.h +++ b/vm_core.h @@ -228,6 +228,9 @@ struct rb_calling_info { int argc; }; +struct rb_call_cache; +typedef VALUE (*vm_call_handler)(struct rb_thread_struct *th, struct rb_control_frame_struct *cfp, struct rb_calling_info *calling, const struct rb_call_info *ci, struct rb_call_cache *cc); + struct rb_call_cache { /* inline cache: keys */ rb_serial_t method_state; @@ -236,7 +239,7 @@ struct rb_call_cache { /* inline cache: values */ const rb_callable_method_entry_t *me; - VALUE (*call)(struct rb_thread_struct *th, struct rb_control_frame_struct *cfp, struct rb_calling_info *calling, const struct rb_call_info *ci, struct rb_call_cache *cc); + vm_call_handler call; union { unsigned int index; /* used by ivar */ -- cgit v1.2.3