|
Ruby
2.5.0dev(2017-10-22revision60238)
|
#include "id_table.h"Go to the source code of this file.
Data Structures | |
| struct | cache_entry |
Macros | |
| #define | METHOD_DEBUG 0 |
| #define | GLOBAL_METHOD_CACHE(c, m) (rb_bug("global method cache disabled improperly"), NULL) |
| #define | object_id idObject_id |
| #define | added idMethod_added |
| #define | singleton_added idSingleton_method_added |
| #define | removed idMethod_removed |
| #define | singleton_removed idSingleton_method_removed |
| #define | undefined idMethod_undefined |
| #define | singleton_undefined idSingleton_method_undefined |
| #define | attached id__attached__ |
| #define | ruby_running (GET_VM()->running) |
| #define | CALL_METHOD_HOOK(klass, hook, mid) |
| #define | UNDEF_ALLOC_FUNC ((rb_alloc_func_t)-1) |
| #define | BOUND_PRIVATE 0x01 |
| #define | BOUND_RESPONDS 0x02 |
| #define | rb_intern(str) rb_intern_const(str) |
| #define | REPLICATE_METHOD(klass, id) |
| #define added idMethod_added |
Definition at line 32 of file vm_method.c.
| #define attached id__attached__ |
Definition at line 38 of file vm_method.c.
| #define BOUND_PRIVATE 0x01 |
Definition at line 1064 of file vm_method.c.
| #define BOUND_RESPONDS 0x02 |
Definition at line 1065 of file vm_method.c.
Referenced by rb_method_boundp().
| #define CALL_METHOD_HOOK | ( | klass, | |
| hook, | |||
| mid | |||
| ) |
Definition at line 605 of file vm_method.c.
| #define GLOBAL_METHOD_CACHE | ( | c, | |
| m | |||
| ) | (rb_bug("global method cache disabled improperly"), NULL) |
Definition at line 25 of file vm_method.c.
| #define METHOD_DEBUG 0 |
Definition at line 7 of file vm_method.c.
| #define object_id idObject_id |
Definition at line 31 of file vm_method.c.
Referenced by rb_undef().
| #define rb_intern | ( | str | ) | rb_intern_const(str) |
| #define removed idMethod_removed |
Definition at line 34 of file vm_method.c.
| #define REPLICATE_METHOD | ( | klass, | |
| id | |||
| ) |
| #define ruby_running (GET_VM()->running) |
Definition at line 59 of file vm_method.c.
| #define singleton_added idSingleton_method_added |
Definition at line 33 of file vm_method.c.
| #define singleton_removed idSingleton_method_removed |
Definition at line 35 of file vm_method.c.
| #define singleton_undefined idSingleton_method_undefined |
Definition at line 37 of file vm_method.c.
| #define UNDEF_ALLOC_FUNC ((rb_alloc_func_t)-1) |
Definition at line 665 of file vm_method.c.
Referenced by rb_get_alloc_func(), and rb_undef_alloc_func().
| #define undefined idMethod_undefined |
Definition at line 36 of file vm_method.c.
| void Init_eval_method | ( | void | ) |
Definition at line 2086 of file vm_method.c.
References rb_define_method(), and rb_mKernel.
| void Init_Method | ( | void | ) |
Definition at line 2061 of file vm_method.c.
References calloc, EXIT_FAILURE, getenv, NULL, and val.
| rb_method_entry_t* rb_add_method | ( | VALUE | klass, |
| ID | mid, | ||
| rb_method_type_t | type, | ||
| void * | opts, | ||
| rb_method_visibility_t | visi | ||
| ) |
Definition at line 625 of file vm_method.c.
Referenced by rb_add_method_cfunc(), rb_add_method_iseq(), and rb_undef_method().
| void rb_add_method_cfunc | ( | VALUE | klass, |
| ID | mid, | ||
| VALUE(*)(ANYARGS) | func, | ||
| int | argc, | ||
| rb_method_visibility_t | visi | ||
| ) |
Definition at line 130 of file vm_method.c.
References rb_method_cfunc_struct::argc, argc, rb_method_cfunc_struct::func, rb_add_method(), rb_eArgError, rb_f_notimplement(), rb_raise(), and VM_METHOD_TYPE_CFUNC.
Referenced by rb_define_method(), rb_define_method_id(), rb_define_private_method(), and rb_define_protected_method().
| void rb_add_method_iseq | ( | VALUE | klass, |
| ID | mid, | ||
| const rb_iseq_t * | iseq, | ||
| rb_cref_t * | cref, | ||
| rb_method_visibility_t | visi | ||
| ) |
Definition at line 637 of file vm_method.c.
References rb_add_method(), and VM_METHOD_TYPE_ISEQ.
Definition at line 456 of file vm_method.c.
Definition at line 1525 of file vm_method.c.
References cache_entry::defined_class, METHOD_VISI_UNDEF, NIL_P, rb_eTypeError, rb_frozen_class_p(), and rb_raise().
Referenced by rb_define_alias().
Definition at line 1137 of file vm_method.c.
References METHOD_VISI_PUBLIC.
Referenced by rb_define_attr().
| const rb_callable_method_entry_t* rb_callable_method_entry | ( | VALUE | klass, |
| ID | id | ||
| ) |
Definition at line 833 of file vm_method.c.
References cache_entry::defined_class.
| const rb_callable_method_entry_t* rb_callable_method_entry_with_refinements | ( | VALUE | klass, |
| ID | id, | ||
| VALUE * | defined_class_ptr | ||
| ) |
Definition at line 872 of file vm_method.c.
References cache_entry::defined_class.
| const rb_callable_method_entry_t* rb_callable_method_entry_without_refinements | ( | VALUE | klass, |
| ID | id, | ||
| VALUE * | defined_class_ptr | ||
| ) |
Definition at line 886 of file vm_method.c.
References cache_entry::defined_class.
| void rb_clear_constant_cache | ( | void | ) |
Definition at line 84 of file vm_method.c.
References INC_GLOBAL_CONSTANT_STATE.
Referenced by rb_const_remove().
| void rb_clear_method_cache_by_class | ( | VALUE | klass | ) |
Definition at line 90 of file vm_method.c.
References INC_GLOBAL_METHOD_STATE, Qundef, rb_cBasicObject, rb_class2name(), rb_cObject, rb_mKernel, and RUBY_DTRACE_HOOK.
Definition at line 668 of file vm_method.c.
References Check_Type, RCLASS_EXT, and T_CLASS.
Referenced by rb_undef_alloc_func().
Definition at line 116 of file vm_method.c.
References rb_notimplement(), and UNREACHABLE.
Referenced by rb_add_method_cfunc().
| void rb_free_method_entry | ( | const rb_method_entry_t * | me | ) |
Definition at line 168 of file vm_method.c.
| rb_alloc_func_t rb_get_alloc_func | ( | VALUE | klass | ) |
Definition at line 681 of file vm_method.c.
References Check_Type, RCLASS_EXT, RCLASS_SUPER, T_CLASS, and UNDEF_ALLOC_FUNC.
Referenced by rb_marshal_define_compat().
| st_index_t rb_hash_method_entry | ( | st_index_t | hash, |
| const rb_method_entry_t * | me | ||
| ) |
Definition at line 1519 of file vm_method.c.
Definition at line 1879 of file vm_method.c.
References FALSE, cache_entry::me, METHOD_ENTRY_BASIC, rb_method_entry(), and TRUE.
Referenced by rb_hash_default_value(), and rb_p().
Definition at line 1068 of file vm_method.c.
References BOUND_RESPONDS, rb_method_entry_struct::def, METHOD_ENTRY_VISI, METHOD_VISI_PRIVATE, METHOD_VISI_PROTECTED, NULL, rb_method_entry_without_refinements(), and VM_METHOD_TYPE_NOTIMPLEMENTED.
| const rb_method_entry_t* rb_method_entry | ( | VALUE | klass, |
| ID | id | ||
| ) |
Definition at line 793 of file vm_method.c.
Referenced by rb_method_basic_definition_p().
| const rb_method_entry_t* rb_method_entry_at | ( | VALUE | klass, |
| ID | id | ||
| ) |
Definition at line 709 of file vm_method.c.
| const rb_method_entry_t* rb_method_entry_clone | ( | const rb_method_entry_t * | src_me | ) |
Definition at line 396 of file vm_method.c.
| const rb_callable_method_entry_t* rb_method_entry_complement_defined_class | ( | const rb_method_entry_t * | src_me, |
| ID | called_id, | ||
| VALUE | defined_class | ||
| ) |
Definition at line 405 of file vm_method.c.
| void rb_method_entry_copy | ( | rb_method_entry_t * | dst, |
| const rb_method_entry_t * | src | ||
| ) |
Definition at line 418 of file vm_method.c.
References rb_method_entry_struct::def.
| rb_method_entry_t* rb_method_entry_create | ( | ID | called_id, |
| VALUE | klass, | ||
| rb_method_visibility_t | visi, | ||
| const rb_method_definition_t * | def | ||
| ) |
Definition at line 387 of file vm_method.c.
| int rb_method_entry_eq | ( | const rb_method_entry_t * | m1, |
| const rb_method_entry_t * | m2 | ||
| ) |
Definition at line 1420 of file vm_method.c.
| rb_method_entry_t* rb_method_entry_set | ( | VALUE | klass, |
| ID | mid, | ||
| const rb_method_entry_t * | me, | ||
| rb_method_visibility_t | visi | ||
| ) |
Definition at line 660 of file vm_method.c.
| const rb_method_entry_t* rb_method_entry_with_refinements | ( | VALUE | klass, |
| ID | id, | ||
| VALUE * | defined_class_ptr | ||
| ) |
Definition at line 866 of file vm_method.c.
| const rb_method_entry_t* rb_method_entry_without_refinements | ( | VALUE | klass, |
| ID | id, | ||
| VALUE * | defined_class_ptr | ||
| ) |
Definition at line 880 of file vm_method.c.
Referenced by rb_method_boundp().
Definition at line 1984 of file vm_method.c.
References CLASS_OF, and GET_THREAD.
Referenced by rb_respond_to().
Definition at line 999 of file vm_method.c.
Definition at line 993 of file vm_method.c.
| const rb_method_entry_t* rb_resolve_refined_method | ( | VALUE | refinements, |
| const rb_method_entry_t * | me | ||
| ) |
Definition at line 940 of file vm_method.c.
| const rb_callable_method_entry_t* rb_resolve_refined_method_callable | ( | VALUE | refinements, |
| const rb_callable_method_entry_t * | me | ||
| ) |
Definition at line 946 of file vm_method.c.
References rb_callable_method_entry_struct::defined_class.
Definition at line 1994 of file vm_method.c.
References FALSE, and rb_obj_respond_to().
Referenced by ossl_to_der_if_possible(), rb_range_values(), and rb_str_equal().
| void rb_scope_visibility_set | ( | rb_method_visibility_t | visi | ) |
Definition at line 1125 of file vm_method.c.
Definition at line 1172 of file vm_method.c.
References cache_entry::me, NIL_P, object_id, rb_eTypeError, rb_frozen_class_p(), rb_id2name(), rb_raise(), and rb_warn().
| void rb_undef_alloc_func | ( | VALUE | klass | ) |
Definition at line 675 of file vm_method.c.
References rb_define_alloc_func(), and UNDEF_ALLOC_FUNC.
Referenced by Init_Binding(), Init_ISeq(), Init_ossl_engine(), Init_Proc(), Init_VM(), and InitVM_Struct().
1.8.13