Ruby
2.1.10p492(2016-04-01revision54464)
|
Go to the source code of this file.
Data Structures | |
struct | rescue_funcall_args |
struct | iter_method_arg |
struct | eval_string_from_file_arg |
Macros | |
#define | NOEX_OK NOEX_NOSUPER |
#define | type_case(t) case t: return #t; |
#define | NOEX_MISSING 0x80 |
Typedefs | |
typedef enum call_type | call_type |
Enumerations | |
enum | call_type { CALL_PUBLIC, CALL_FCALL, CALL_VCALL, CALL_TYPE_MAX } |
#define NOEX_MISSING 0x80 |
Definition at line 639 of file vm_eval.c.
Referenced by method_missing(), raise_method_missing(), and rb_raise_method_missing().
#define NOEX_OK NOEX_NOSUPER |
Definition at line 295 of file vm_eval.c.
Referenced by check_funcall_callable(), rb_call0(), rb_check_funcall(), rb_check_funcall_with_hook(), and rb_method_call_status().
Referenced by rb_type_str().
enum call_type |
|
static |
Definition at line 384 of file vm_eval.c.
References CALL_FCALL, rb_thread_struct::cfp, NOEX_OK, rb_method_call_status(), and rb_control_frame_struct::self.
Referenced by rb_check_funcall(), and rb_check_funcall_with_hook().
|
static |
Definition at line 337 of file vm_eval.c.
References rescue_funcall_args::argc, rescue_funcall_args::argv, new_args, RARRAY_PTR(), rb_ary_new4, rb_ary_unshift(), rb_funcall2(), RB_GC_GUARD(), rescue_funcall_args::recv, and rescue_funcall_args::sym.
Referenced by check_funcall_missing().
|
static |
Definition at line 348 of file vm_eval.c.
References Qundef, rb_exc_raise(), rb_respond_to(), rescue_funcall_args::recv, rescue_funcall_args::sym, and SYM2ID.
Referenced by check_funcall_missing().
|
static |
Definition at line 390 of file vm_eval.c.
References rescue_funcall_args::argc, argc, rescue_funcall_args::argv, argv, check_funcall_exec(), check_funcall_failed(), ID2SYM, rb_thread_struct::method_missing_reason, Qundef, rb_eNoMethodError, rb_method_basic_definition_p(), rb_rescue2(), rescue_funcall_args::recv, and rescue_funcall_args::sym.
Referenced by rb_check_funcall(), and rb_check_funcall_with_hook().
|
static |
Definition at line 357 of file vm_eval.c.
References args, FALSE, rb_method_entry_struct::flag, ID2SYM, idRespond_to, NOEX_BASIC, rb_thread_struct::passed_block, Qtrue, rb_eArgError, rb_method_entry(), rb_method_entry_arity(), rb_raise(), result, RTEST, TRUE, and vm_call0().
Referenced by rb_check_funcall(), and rb_check_funcall_with_hook().
Definition at line 1325 of file vm_eval.c.
References eval_string_with_cref().
Referenced by eval_string_from_file_helper(), rb_eval_cmd(), rb_f_eval(), and ruby_eval_string_from_file().
Definition at line 1383 of file vm_eval.c.
References arg, eval_string(), eval_string_from_file_arg::filename, Qnil, rb_vm_top_self(), and eval_string_from_file_arg::str.
Referenced by ruby_eval_string_from_file_protect().
|
static |
Definition at line 1188 of file vm_eval.c.
References rb_env_t::block, block, rb_thread_struct::cfp, Check_TypedStruct, CLASS_OF, CONST_ID, COPY_CREF, env, rb_binding_t::env, rb_block_struct::ep, rb_thread_struct::errinfo, rb_binding_t::first_lineno, GET_THREAD(), GetEnvPtr, GetISeqPtr, INT2FIX, rb_control_frame_struct::iseq, rb_block_struct::iseq, JUMP_TAG, rb_control_frame_struct::klass, rb_iseq_struct::local_table_size, m, rb_thread_struct::mild_compile_error, NEW_CREF, NIL_P(), NULL, OBJ_FROZEN, rb_thread_struct::parse_in_eval, rb_binding_t::path, Qnil, Qundef, RARRAY_AREF, RARRAY_ASET, RARRAY_LEN, rb_attr_get(), rb_current_realfilepath(), rb_eRuntimeError, rb_exc_raise(), rb_fstring(), RB_GC_GUARD(), rb_get_backtrace(), rb_iseq_compile_with_option(), rb_iseq_disasm(), rb_ivar_set(), rb_raise(), rb_sourcefilename(), rb_sourceline(), rb_str_append(), rb_str_cat(), rb_str_dup(), rb_str_new2, rb_str_update(), RB_TYPE_P, rb_usascii_str_new_cstr(), rb_vm_backtrace_str_ary(), rb_vm_get_cref(), rb_vm_get_ruby_level_next_cfp(), rb_vm_make_env_object(), result, RSTRING_LEN, RTEST, ruby_binding_data_type, RUBY_VM_GET_BLOCK_PTR_IN_CFP, rb_block_struct::self, state, StringValuePtr, T_ARRAY, T_STRING, TAG_RAISE, TH_EXEC_TAG, TH_POP_TAG, TH_PUSH_TAG, vm_exec(), and vm_set_eval_stack().
Referenced by eval_string(), and eval_under().
Definition at line 1554 of file vm_eval.c.
References eval_string_with_cref(), RNode::flags, GET_THREAD(), NIL_P(), NODE_FL_CREF_PUSHED_BY_EVAL, NOEX_PUBLIC, NULL, Qnil, SafeStringValue, SPECIAL_CONST_P, and vm_cref_push().
Referenced by specific_eval().
Definition at line 1974 of file vm_eval.c.
References rb_add_method(), rb_cBasicObject, rb_cModule, rb_define_global_function(), rb_define_method(), rb_define_private_method(), rb_f_block_given_p(), rb_f_catch(), rb_f_eval(), rb_f_local_variables(), rb_f_loop(), rb_f_public_send(), rb_f_send(), rb_f_throw(), rb_intern, rb_method_missing(), rb_mKernel, rb_mod_module_eval(), rb_mod_module_exec(), rb_obj_instance_eval(), rb_obj_instance_exec(), and VM_METHOD_TYPE_OPTIMIZED.
Referenced by Init_eval().
Definition at line 1160 of file vm_eval.c.
References arg, iter_method_arg::argc, iter_method_arg::argv, iter_method_arg::mid, iter_method_arg::obj, and rb_check_funcall().
Referenced by rb_check_block_call().
Definition at line 1138 of file vm_eval.c.
References arg, iter_method_arg::argc, iter_method_arg::argv, CALL_FCALL, iter_method_arg::mid, iter_method_arg::obj, and rb_call().
Referenced by rb_block_call().
Definition at line 1012 of file vm_eval.c.
References Qnil, and rb_yield_0().
Referenced by rb_f_loop().
|
static |
Definition at line 642 of file vm_eval.c.
References args, CLASS_OF, n, rb_ary_new4, rb_class_new_instance(), rb_const_get(), rb_eNoMethodError, rb_funcall(), rb_intern, rb_method_basic_definition_p(), rb_name_err_mesg_new(), and rb_str_new2.
Referenced by raise_method_missing(), send_internal(), and vm_call_opt_send().
|
inlinestatic |
Definition at line 702 of file vm_eval.c.
References ALLOCA_N, CLASS_OF, GET_THREAD(), ID2SYM, MEMCPY, rb_thread_struct::method_missing_reason, NOEX_MISSING, rb_thread_struct::passed_block, raise_method_missing(), RARRAY_PTR(), rb_ary_clear(), rb_ary_set_len(), rb_ary_tmp_new(), rb_funcall2(), rb_method_basic_definition_p(), and result.
Referenced by rb_call0(), vm_call0_body(), and vm_call_super().
NORETURN | ( | static void | raise_method_missingrb_thread_t *th, int argc, const VALUE *argv, VALUE obj, int call_status | ) |
|
static |
Definition at line 666 of file vm_eval.c.
References exc, make_no_method_exception(), NOEX_MISSING, NOEX_PRIVATE, NOEX_PROTECTED, NOEX_SUPER, NOEX_VCALL, rb_eArgError, rb_eNameError, rb_eNoMethodError, rb_exc_raise(), rb_raise(), rb_vm_pop_cfunc_frame(), stack_check(), and SYMBOL_P.
Referenced by method_missing(), rb_method_missing(), and rb_raise_method_missing().
Calls a method.
recv | receiver of the method |
mid | an ID that represents the name of the method |
args | an Array object which contains method arguments |
Definition at line 752 of file vm_eval.c.
References ALLOCA_N, argc, argv, CALL_FCALL, MEMCPY, OBJ_FREEZE, RARRAY_CONST_PTR, RARRAY_LENINT, RARRAY_PTR(), rb_ary_subseq(), rb_call(), RB_GC_GUARD(), RBASIC_CLEAR_CLASS, and ret.
Referenced by exec_callback(), and if().
VALUE rb_block_call | ( | VALUE | obj, |
ID | mid, | ||
int | argc, | ||
const VALUE * | argv, | ||
VALUE(*)(ANYARGS) | bl_proc, | ||
VALUE | data2 | ||
) |
Definition at line 1147 of file vm_eval.c.
References iter_method_arg::argc, argc, iter_method_arg::argv, argv, iterate_method(), iter_method_arg::mid, iter_method_arg::obj, obj, and rb_iterate().
|
inlinestatic |
calls the specified method.
This function is called by functions in rb_call* family.
recv | receiver |
mid | an ID that represents the name of the method |
argc | the number of method arguments |
argv | a pointer to an array of method arguments |
scope |
Definition at line 589 of file vm_eval.c.
References rb_thread_struct::cfp, GET_THREAD(), rb_call0(), and rb_control_frame_struct::self.
Referenced by iterate_method(), rb_apply(), rb_each(), rb_funcall(), rb_funcall_passing_block(), rb_funcall_with_block(), rb_funcallv(), and rb_funcallv_public().
|
inlinestatic |
calls the specified method.
This function is called by functions in rb_call* family.
recv | receiver of the method |
mid | an ID that represents the name of the method |
argc | the number of method arguments |
argv | a pointer to an array of method arguments |
scope | |
self | self in the caller. Qundef means no self is considered and protected methods cannot be called |
Definition at line 313 of file vm_eval.c.
References GET_THREAD(), method_missing(), NOEX_OK, rb_method_call_status(), rb_search_method_entry(), stack_check(), and vm_call0().
Referenced by rb_call(), and send_internal().
Definition at line 275 of file vm_eval.c.
References GET_THREAD(), PASS_PASSED_BLOCK, and vm_call_super().
Referenced by esignal_init(), exit_initialize(), float_denominator(), float_numerator(), fole_initialize(), gzfile_error_inspect(), interrupt_init(), lazy_super(), lazy_zip(), name_err_initialize(), ossl_ssl_initialize(), path_freeze(), path_taint(), path_untaint(), range_include(), range_max(), range_min(), strio_initialize(), and syserr_initialize().
Definition at line 1825 of file vm_eval.c.
References func, ID2SYM, rb_catch_obj(), rb_cObject, rb_intern, and rb_obj_alloc().
VALUE rb_catch_protect | ( | VALUE | t, |
rb_block_call_func * | func, | ||
VALUE | data, | ||
int * | stateptr | ||
) |
Definition at line 1842 of file vm_eval.c.
References rb_thread_struct::cfp, data, rb_thread_struct::errinfo, GET_THREAD(), Qnil, rb_vm_rewind_cfp(), rb_vm_tag::retval, RNODE, state, t, rb_vm_tag::tag, rb_thread_struct::tag, TAG_THROW, TH_EXEC_TAG, TH_POP_TAG, TH_PUSH_TAG, and val.
Referenced by exec_recursive(), and rb_catch_obj().
VALUE rb_check_block_call | ( | VALUE | obj, |
ID | mid, | ||
int | argc, | ||
const VALUE * | argv, | ||
VALUE(*)(ANYARGS) | bl_proc, | ||
VALUE | data2 | ||
) |
Definition at line 1169 of file vm_eval.c.
References iter_method_arg::argc, argc, iter_method_arg::argv, argv, iterate_check_method(), iter_method_arg::mid, iter_method_arg::obj, obj, and rb_iterate().
Definition at line 410 of file vm_eval.c.
References check_funcall_callable(), check_funcall_missing(), check_funcall_respond_to(), CLASS_OF, GET_THREAD(), klass, NOEX_OK, Qundef, rb_search_method_entry(), stack_check(), and vm_call0().
Referenced by convert_type(), enum_size(), enumerator_rewind(), enumerator_size(), error_print(), exc_equal(), flo_cmp(), invcmp_recursive(), io_call_close(), io_close(), is_integer_p(), iterate_check_method(), make_exception(), marshal_dump(), marshal_load(), num_exact(), path_initialize(), rb_dlptr_s_to_ptr(), rb_fiddle_ptr_s_to_ptr(), rb_get_path_check_to_string(), rb_str_cmp_m(), time_timespec(), and try_convert_to_exception().
VALUE rb_check_funcall_with_hook | ( | VALUE | recv, |
ID | mid, | ||
int | argc, | ||
const VALUE * | argv, | ||
rb_check_funcall_hook * | hook, | ||
VALUE | arg | ||
) |
Definition at line 429 of file vm_eval.c.
References arg, argc, argv, check_funcall_callable(), check_funcall_missing(), check_funcall_respond_to(), CLASS_OF, FALSE, GET_THREAD(), klass, NOEX_OK, Qundef, rb_search_method_entry(), rescue_funcall_args::recv, stack_check(), TRUE, and vm_call0().
Definition at line 1964 of file vm_eval.c.
References rb_iseq_location_struct::absolute_path, rb_thread_struct::cfp, GET_THREAD(), rb_control_frame_struct::iseq, rb_iseq_struct::location, Qnil, RUBY_VM_PREVIOUS_CONTROL_FRAME, and vm_get_ruby_level_caller_cfp().
Referenced by eval_string_with_cref(), f_current_dirname(), and rb_f_require_relative().
Definition at line 1182 of file vm_eval.c.
References CALL_FCALL, and rb_call().
Definition at line 1471 of file vm_eval.c.
References eval_string(), EXEC_TAG, JUMP_TAG, OBJ_TAINTED, POP_TAG, PUSH_TAG, Qnil, RARRAY_LENINT, RARRAY_PTR(), rb_funcall2(), rb_intern, rb_safe_level, rb_set_safe_level_force(), RB_TYPE_P, rb_vm_top_self(), safe, state, T_STRING, and val.
Referenced by rb_trace_eval(), run_single_final(), and signal_exec().
Evaluates the given string in an isolated binding.
Here "isolated" means the binding does not inherit any other binding. This behaves same as the binding for required libraries.
FILE will be "(eval)", and LINE starts from 1 in the evaluation.
str | Ruby code to evaluate. |
Exception | Raises an exception on error. |
Definition at line 1411 of file vm_eval.c.
References ruby_eval_string_from_file().
Referenced by foletype_s_typelibs(), and rb_eval_string_protect().
Evaluates the given string in an isolated binding.
FILE will be "(eval)", and LINE starts from 1 in the evaluation.
str | Ruby code to evaluate. |
state | Being set to zero if succeeded. Nonzero if an error occurred. |
Definition at line 1427 of file vm_eval.c.
References rb_eval_string(), and rb_protect().
Referenced by rb_eval_string_wrap().
Evaluates the given string under a module binding in an isolated binding.
This is same as the binding for required libraries on "require('foo', true)".
FILE will be "(eval)", and LINE starts from 1 in the evaluation.
str | Ruby code to evaluate. |
state | Being set to zero if succeeded. Nonzero if an error occurred. |
Definition at line 1444 of file vm_eval.c.
References GET_THREAD(), JUMP_TAG, rb_eval_string_protect(), rb_extend_object(), rb_module_new(), rb_obj_clone(), rb_vm_top_self(), status, rb_thread_struct::top_self, rb_thread_struct::top_wrapper, and val.
Definition at line 1949 of file vm_eval.c.
References rb_thread_struct::cfp, GET_THREAD(), Qfalse, Qtrue, RUBY_VM_PREVIOUS_CONTROL_FRAME, VM_CF_BLOCK_PTR(), and vm_get_ruby_level_caller_cfp().
Referenced by Init_vm_eval().
Definition at line 1811 of file vm_eval.c.
References catch_i(), rb_catch_obj(), rb_cObject, rb_obj_alloc(), rb_scan_args(), and rb_vm_tag::tag.
Referenced by Init_vm_eval().
Definition at line 1349 of file vm_eval.c.
References eval_string(), NIL_P(), NUM2INT, Qundef, rb_scan_args(), SafeStringValue, src, and StringValue.
Referenced by bind_eval(), and Init_vm_eval().
Definition at line 1885 of file vm_eval.c.
References ary, rb_thread_struct::cfp, rb_control_frame_struct::ep, GET_THREAD(), i, ID2SYM, rb_control_frame_struct::iseq, rb_iseq_struct::local_table, rb_iseq_struct::local_table_size, rb_ary_new(), rb_ary_push(), rb_id2name(), RUBY_VM_PREVIOUS_CONTROL_FRAME, VM_CF_PREV_EP(), vm_collect_local_variables_in_heap(), VM_EP_LEP_P, and vm_get_ruby_level_caller_cfp().
Referenced by Init_vm_eval().
Definition at line 1046 of file vm_eval.c.
References loop_i(), Qnil, rb_eStopIteration, rb_f_loop_size(), rb_rescue2(), and RETURN_SIZED_ENUMERATOR.
Referenced by Init_vm_eval().
Definition at line 1021 of file vm_eval.c.
References DBL2NUM, and INFINITY.
Referenced by rb_f_loop().
Definition at line 934 of file vm_eval.c.
References CALL_PUBLIC, and send_internal().
Referenced by Init_vm_eval().
Definition at line 914 of file vm_eval.c.
References CALL_FCALL, and send_internal().
Referenced by Init_vm_eval().
Definition at line 1730 of file vm_eval.c.
References rb_scan_args(), rb_throw_obj(), UNREACHABLE, and value.
Referenced by Init_vm_eval().
Calls a method.
recv | receiver of the method |
mid | an ID that represents the name of the method |
n | the number of arguments |
... | arbitrary number of method arguments |
Definition at line 781 of file vm_eval.c.
References ALLOCA_N, argv, CALL_FCALL, i, n, rb_call(), va_end(), and va_init_list.
Definition at line 833 of file vm_eval.c.
References CALL_PUBLIC, GET_THREAD(), PASS_PASSED_BLOCK_TH, and rb_call().
Referenced by rb_f_chomp(), rb_f_chop(), rb_f_gsub(), and rb_f_sub().
VALUE rb_funcall_with_block | ( | VALUE | recv, |
ID | mid, | ||
int | argc, | ||
const VALUE * | argv, | ||
VALUE | pass_procval | ||
) |
Definition at line 841 of file vm_eval.c.
References rb_proc_t::block, block, CALL_PUBLIC, GET_THREAD(), GetProcPtr, NIL_P(), rb_thread_struct::passed_block, and rb_call().
Referenced by sym_call().
Calls a method.
recv | receiver of the method |
mid | an ID that represents the name of the method |
argc | the number of arguments |
argv | pointer to an array of method arguments |
Definition at line 812 of file vm_eval.c.
References CALL_FCALL, and rb_call().
Referenced by binomial_coefficient(), cmp_eq_recursive(), descending_factorial(), dump_output(), hash_recursive(), rb_ary_bsearch(), rb_ary_cycle_size(), rb_ary_repeated_permutation_size(), rb_io_write(), recursive_cmp(), and sort_2().
Calls a method.
Same as rb_funcall2 but this function can call only public methods.
recv | receiver of the method |
mid | an ID that represents the name of the method |
argc | the number of arguments |
argv | pointer to an array of method arguments |
Definition at line 827 of file vm_eval.c.
References CALL_PUBLIC, and rb_call().
Definition at line 1059 of file vm_eval.c.
References rb_thread_struct::cfp, rb_control_frame_struct::ep, err, rb_thread_struct::errinfo, GET_THREAD(), GET_THROWOBJ_CATCH_POINT, GET_THROWOBJ_VAL, rb_block_struct::iseq, NEW_IFUNC, rb_thread_struct::passed_block, rb_block_struct::proc, Qnil, rb_frame_this_func(), rb_vm_rewind_cfp(), retval, RUBY_VM_GET_BLOCK_PTR_IN_CFP, rb_thread_struct::state, state, TAG_BREAK, TAG_RETRY, TH_EXEC_TAG, TH_JUMP_TAG, TH_POP_TAG, TH_PUSH_TAG, and VM_CF_BLOCK_PTR().
Referenced by call_lexer(), method_proc(), rb_block_call(), rb_check_block_call(), and rb_proc_new().
|
inlinestatic |
Definition at line 529 of file vm_eval.c.
References CALL_PUBLIC, CALL_VCALL, rb_method_entry_struct::called_id, rb_method_entry_struct::def, rb_method_entry_struct::flag, rb_method_entry_struct::klass, klass, NOEX_MASK, NOEX_OK, NOEX_PRIVATE, NOEX_PROTECTED, NOEX_SAFE, NOEX_VCALL, NULL, rb_method_definition_struct::original_id, Qnil, Qundef, rb_eSecurityError, rb_id2name(), rb_obj_is_kind_of(), rb_raise(), rb_resolve_refined_method(), RB_TYPE_P, RBASIC, rb_thread_struct::safe_level, T_ICLASS, rb_method_definition_struct::type, undefined, UNDEFINED_METHOD_ENTRY_P, UNLIKELY, and VM_METHOD_TYPE_REFINED.
Referenced by check_funcall_callable(), and rb_call0().
Definition at line 632 of file vm_eval.c.
References GET_THREAD(), rb_thread_struct::method_missing_reason, raise_method_missing(), and UNREACHABLE.
Referenced by Init_vm_eval().
Definition at line 1684 of file vm_eval.c.
References specific_eval().
Referenced by Init_vm_eval(), and rb_struct_s_def().
Definition at line 1712 of file vm_eval.c.
References rb_ary_new4, and yield_under().
Referenced by Init_vm_eval(), and rb_mod_initialize().
Definition at line 1613 of file vm_eval.c.
References klass, rb_singleton_class(), rb_special_singleton_class(), SPECIAL_CONST_P, and specific_eval().
Referenced by if(), and Init_vm_eval().
Definition at line 1645 of file vm_eval.c.
References klass, rb_ary_new4, rb_singleton_class(), rb_special_singleton_class(), SPECIAL_CONST_P, and yield_under().
Referenced by if(), and Init_vm_eval().
void rb_raise_method_missing | ( | rb_thread_t * | th, |
int | argc, | ||
VALUE * | argv, | ||
VALUE | obj, | ||
int | call_status | ||
) |
Definition at line 736 of file vm_eval.c.
References NOEX_MISSING, rb_thread_struct::passed_block, and raise_method_missing().
Referenced by vm_call_method().
|
inlinestatic |
Definition at line 486 of file vm_eval.c.
References BUILTIN_TYPE, CLASS_OF, flags, IMMEDIATE_P, klass, PRIxVALUE, rb_eNotImpError, rb_id2name(), rb_method_entry(), rb_raise(), rb_type_str(), RBASIC, T_NIL, T_OBJECT, and type.
Referenced by rb_call0(), rb_check_funcall(), and rb_check_funcall_with_hook().
Definition at line 1762 of file vm_eval.c.
References ID2SYM, rb_intern, and rb_throw_obj().
Definition at line 1740 of file vm_eval.c.
References rb_thread_struct::errinfo, GET_THREAD(), JUMP_TAG, NEW_THROW_OBJECT, rb_vm_tag::prev, PRIsVALUE, rb_eArgError, rb_inspect(), rb_raise(), rb_vm_tag::retval, rb_vm_tag::tag, rb_thread_struct::tag, TAG_THROW, and value.
Referenced by exec_recursive(), rb_f_throw(), and rb_throw().
|
static |
Definition at line 451 of file vm_eval.c.
References NULL, T_ARRAY, T_BIGNUM, T_CLASS, T_COMPLEX, T_DATA, T_FALSE, T_FILE, T_FIXNUM, T_FLOAT, T_HASH, T_ICLASS, T_MATCH, T_MODULE, T_NIL, T_NODE, T_NONE, T_OBJECT, T_RATIONAL, T_REGEXP, T_STRING, T_STRUCT, T_SYMBOL, T_TRUE, T_UNDEF, T_ZOMBIE, and type_case.
Referenced by rb_search_method_entry().
VALUE rb_vm_backtrace_str_ary | ( | rb_thread_t * | th, |
int | lev, | ||
int | n | ||
) |
VALUE rb_vm_call | ( | rb_thread_t * | th, |
VALUE | recv, | ||
VALUE | id, | ||
int | argc, | ||
const VALUE * | argv, | ||
const rb_method_entry_t * | me, | ||
VALUE | defined_class | ||
) |
Definition at line 244 of file vm_eval.c.
References vm_call0().
Referenced by rb_method_call_with_block().
Definition at line 948 of file vm_eval.c.
References Qundef, and rb_yield_0().
Definition at line 942 of file vm_eval.c.
References GET_THREAD(), and vm_yield().
Referenced by catch_i(), loop_i(), rb_yield(), rb_yield_splat(), rb_yield_values(), and rb_yield_values2().
Definition at line 1000 of file vm_eval.c.
References rb_proc_t::block, GET_THREAD(), GetProcPtr, NIL_P(), and vm_yield_with_block().
Definition at line 1534 of file vm_eval.c.
References block, rb_thread_struct::cfp, RNode::flags, GET_THREAD(), NODE_FL_CREF_PUSHED_BY_EVAL, NOEX_PUBLIC, NULL, RB_OBJ_WRITE, rb_block_struct::self, VM_CF_BLOCK_PTR(), VM_CF_LEP(), vm_cref_push(), VM_ENVVAL_BLOCK_PTR, and vm_yield_with_cref().
Referenced by rb_mod_refine().
Definition at line 987 of file vm_eval.c.
References NIL_P(), RARRAY_CONST_PTR, RARRAY_LENINT, rb_check_array_type(), rb_eArgError, RB_GC_GUARD(), rb_raise(), rb_yield_0(), tmp, and v.
Definition at line 959 of file vm_eval.c.
References ALLOCA_N, args, argv, i, n, rb_yield_0(), va_end(), and va_init_list.
Definition at line 981 of file vm_eval.c.
References rb_yield_0().
Referenced by if(), and rb_ary_zip().
Definition at line 1371 of file vm_eval.c.
References eval_string(), Qnil, rb_str_new2, rb_str_new_cstr(), and rb_vm_top_self().
Referenced by rb_eval_string().
Definition at line 1390 of file vm_eval.c.
References eval_string_from_file_helper(), eval_string_from_file_arg::filename, rb_protect(), rb_str_new_cstr(), and eval_string_from_file_arg::str.
Referenced by pruby_eval().
Definition at line 858 of file vm_eval.c.
References CALL_PUBLIC, rb_thread_struct::cfp, CLASS_OF, exc, GET_THREAD(), id, make_no_method_exception(), NULL, PASS_PASSED_BLOCK_TH, Qundef, rb_call0(), rb_check_id(), rb_eArgError, rb_eNoMethodError, rb_exc_raise(), rb_method_basic_definition_p(), rb_raise(), rb_to_id(), and RUBY_VM_PREVIOUS_CONTROL_FRAME.
Referenced by rb_f_public_send(), rb_f_send(), and vm_call0_body().
Definition at line 1567 of file vm_eval.c.
References eval_under(), NIL_P(), NUM2INT, Qundef, rb_block_given_p(), rb_check_arity, SafeStringValue, StringValue, and yield_under().
Referenced by rb_mod_module_eval(), and rb_obj_instance_eval().
Definition at line 282 of file vm_eval.c.
References GET_THREAD(), RAISED_STACKOVERFLOW, rb_exc_raise(), rb_thread_raised_p, rb_thread_raised_set, ruby_stack_check(), and sysstack_error.
Referenced by raise_method_missing(), rb_call0(), rb_check_funcall(), and rb_check_funcall_with_hook().
|
static |
Definition at line 38 of file vm_eval.c.
References rb_call_info_struct::argc, argc, rb_call_info_struct::defined_class, rb_call_info_struct::flag, id, rb_call_info_struct::me, rb_call_info_struct::mid, rb_call_info_struct::recv, and vm_call0_body().
Referenced by check_funcall_respond_to(), rb_call0(), rb_check_funcall(), rb_check_funcall_with_hook(), rb_vm_call(), and vm_call_super().
|
static |
Definition at line 141 of file vm_eval.c.
References rb_call_info_struct::argc, rb_method_definition_struct::attr, rb_call_info_struct::blockptr, rb_method_definition_struct::body, CALL_FCALL, rb_thread_struct::cfp, CHECK_VM_STACK_OVERFLOW, rb_method_entry_struct::def, rb_call_info_struct::defined_class, rb_control_frame_struct::flag, GetProcPtr, i, rb_method_attr_struct::id, ID2SYM, rb_call_info_struct::me, method_missing(), rb_call_info_struct::mid, new_args, NOEX_SUPER, rb_method_definition_struct::optimize_type, rb_method_definition_struct::orig_me, rb_thread_struct::passed_block, proc, Qnil, Qundef, RARRAY_PTR(), rb_ary_new4, rb_ary_unshift(), rb_attr_get(), rb_bug(), rb_check_arity, rb_funcall2(), RB_GC_GUARD(), rb_ivar_set(), rb_method_entry(), rb_vm_invoke_proc(), RCLASS_SUPER, rb_call_info_struct::recv, ret, RUBY_VM_CHECK_INTS, send_internal(), rb_control_frame_struct::sp, rb_method_definition_struct::type, vm_call0_cfunc(), vm_call_bmethod_body(), vm_call_iseq_setup(), vm_exec(), VM_FRAME_FLAG_FINISH, VM_METHOD_TYPE_ATTRSET, VM_METHOD_TYPE_BMETHOD, VM_METHOD_TYPE_CFUNC, VM_METHOD_TYPE_ISEQ, VM_METHOD_TYPE_IVAR, VM_METHOD_TYPE_MISSING, VM_METHOD_TYPE_NOTIMPLEMENTED, VM_METHOD_TYPE_OPTIMIZED, VM_METHOD_TYPE_REFINED, VM_METHOD_TYPE_UNDEF, and VM_METHOD_TYPE_ZSUPER.
Referenced by vm_call0().
|
static |
Definition at line 133 of file vm_eval.c.
References vm_call0_cfunc_with_frame().
Referenced by vm_call0_body().
|
static |
Definition at line 95 of file vm_eval.c.
References rb_method_cfunc_struct::argc, rb_call_info_struct::argc, argc, rb_call_info_struct::blockptr, rb_method_definition_struct::body, rb_thread_struct::cfp, rb_method_definition_struct::cfunc, rb_method_entry_struct::def, rb_call_info_struct::defined_class, EXEC_EVENT_HOOK, rb_method_cfunc_struct::func, rb_method_cfunc_struct::invoker, rb_call_info_struct::me, rb_call_info_struct::mid, Qnil, rb_bug(), rb_check_arity, rb_call_info_struct::recv, RUBY_DTRACE_CMETHOD_ENTRY_HOOK, RUBY_DTRACE_CMETHOD_RETURN_HOOK, RUBY_EVENT_C_CALL, RUBY_EVENT_C_RETURN, rb_control_frame_struct::sp, UNLIKELY, val, VM_ENVVAL_BLOCK_PTR, VM_FRAME_MAGIC_CFUNC, vm_pop_frame(), VM_PROFILE_UP, and vm_push_frame().
Referenced by vm_call0_cfunc().
|
inlinestatic |
Definition at line 251 of file vm_eval.c.
References rb_thread_struct::cfp, rb_method_entry_struct::def, id, rb_control_frame_struct::iseq, rb_control_frame_struct::klass, klass, rb_control_frame_struct::me, method_missing(), NIL_P(), NOEX_SUPER, rb_method_definition_struct::original_id, rb_bug(), rb_method_entry(), RCLASS_ORIGIN, RCLASS_SUPER, rb_control_frame_struct::self, and vm_call0().
Referenced by rb_call_super().
|
static |
Referenced by rb_f_local_variables().
|
static |
Referenced by eval_under(), rb_yield_refine_block(), and yield_under().
|
static |
Referenced by eval_string_with_cref(), and vm_call0_body().
|
static |
Referenced by eval_string_with_cref().
|
inlinestatic |
Referenced by rb_yield_0().
|
inlinestatic |
Referenced by rb_yield_block().
|
inlinestatic |
Referenced by rb_yield_refine_block(), and yield_under().
Definition at line 1511 of file vm_eval.c.
References block, rb_thread_struct::cfp, RNode::flags, GET_THREAD(), NODE_FL_CREF_PUSHED_BY_EVAL, NOEX_PUBLIC, Qundef, RARRAY_CONST_PTR, RARRAY_LENINT, rb_block_struct::self, VM_CF_BLOCK_PTR(), VM_CF_LEP(), vm_cref_push(), VM_ENVVAL_BLOCK_PTR, and vm_yield_with_cref().
Referenced by rb_mod_module_exec(), rb_obj_instance_exec(), and specific_eval().