summaryrefslogtreecommitdiff
path: root/vm_core.h
diff options
context:
space:
mode:
author卜部昌平 <shyouhei@ruby-lang.org>2019-09-04 15:55:02 +0900
committer卜部昌平 <shyouhei@ruby-lang.org>2019-09-05 12:13:07 +0900
commitdd2b9d4a96e6c9784daf645efc79bef11eb1decb (patch)
treeb2b0ac62e5a2186c3f6396f57b53bac0ec487893 /vm_core.h
parentb005d7c2e208790b89b332d5f8ca56334039d6ae (diff)
hide rb_funcallv_with_cc from public
Requested by ko1. Also, because now that this function is internal use only, why not just directly use struct rb_call_cache to purge the ZALLOC.
Diffstat (limited to 'vm_core.h')
-rw-r--r--vm_core.h29
1 files changed, 0 insertions, 29 deletions
diff --git a/vm_core.h b/vm_core.h
index eec80e41ef..60c258e1f3 100644
--- a/vm_core.h
+++ b/vm_core.h
@@ -234,17 +234,6 @@ union iseq_inline_storage_entry {
struct iseq_inline_cache_entry cache;
};
-enum method_missing_reason {
- MISSING_NOENTRY = 0x00,
- MISSING_PRIVATE = 0x01,
- MISSING_PROTECTED = 0x02,
- MISSING_FCALL = 0x04,
- MISSING_VCALL = 0x08,
- MISSING_SUPER = 0x10,
- MISSING_MISSING = 0x20,
- MISSING_NONE = 0x40
-};
-
struct rb_call_info {
/* fixed at compile time */
ID mid;
@@ -268,27 +257,9 @@ struct rb_calling_info {
int argc;
};
-struct rb_call_cache;
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);
-struct rb_call_cache {
- /* inline cache: keys */
- rb_serial_t method_state;
- rb_serial_t class_serial;
-
- /* inline cache: values */
- const rb_callable_method_entry_t *me;
-
- vm_call_handler call;
-
- union {
- unsigned int index; /* used by ivar */
- enum method_missing_reason method_missing_reason; /* used by method_missing */
- int inc_sp; /* used by cfunc */
- } aux;
-};
-
#if 1
#define CoreDataFromValue(obj, type) (type*)DATA_PTR(obj)
#else