summaryrefslogtreecommitdiff
path: root/vm_core.h
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-10-23 17:00:51 (GMT)
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-10-23 17:00:51 (GMT)
commit1e0600324b651310396329343fd407507a533318 (patch)
tree538653d0c643afc888ac2c5ab3e32baceba41bc4 /vm_core.h
parent9e1b06e17d27fb4ddf51e9244f205417e9c4dd5c (diff)
* vm_core.h: define vm_call_handler.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52253 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_core.h')
-rw-r--r--vm_core.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/vm_core.h b/vm_core.h
index 35df3dc..50fd3ee 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 */