1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* vm_core.h: define vm_call_handler.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52253 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ko1 2015-10-23 17:00:51 +00:00
parent 9e1b06e17d
commit 1e0600324b
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,7 @@
Sat Oct 24 01:58:50 2015 Koichi Sasada <ko1@atdot.net>
* vm_core.h: define vm_call_handler.
Sat Oct 24 01:56:01 2015 Koichi Sasada <ko1@atdot.net>
* vm_core.h, vm_insnhelper.h: move definition of VMDEBUG

View file

@ -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 */