Ruby
2.7.1p83(2020-03-31revisiona0c7c23c9cec0d0ffcba012279cd652d28ad5bf3)
|
Go to the source code of this file.
Data Structures | |
struct | local_var_list |
struct | rescue_funcall_args |
struct | iter_method_arg |
struct | eval_string_wrap_arg |
Macros | |
#define | id_mesg idMesg |
#define | type_case(t) t: return #t |
Typedefs | |
typedef enum call_type | call_type |
Enumerations | |
enum | call_type { CALL_PUBLIC, CALL_FCALL, CALL_VCALL, CALL_PUBLIC_KW, CALL_FCALL_KW, CALL_TYPE_MAX, CALL_PUBLIC, CALL_FCALL, CALL_VCALL, CALL_PUBLIC_KW, CALL_FCALL_KW, CALL_TYPE_MAX } |
#define type_case | ( | t | ) | t: return #t |
enum call_type |
Definition at line 2472 of file vm_eval.c.
References rb_define_global_function(), and rb_f_eval().
NORETURN | ( | static void | raise_method_missingrb_execution_context_t *ec, int argc, const VALUE *argv, VALUE obj, enum method_missing_reason call_status | ) |
NORETURN | ( | static void | uncallable_objectVALUE recv, ID mid | ) |
MJIT_FUNC_EXPORTED VALUE rb_adjust_argv_kw_splat | ( | int * | argc, |
const VALUE ** | argv, | ||
int * | kw_splat | ||
) |
Definition at line 237 of file vm_eval.c.
References argc, n, ptr, rb_empty_keyword_given_p(), RB_PASS_CALLED_KEYWORDS, RB_PASS_EMPTY_KEYWORDS, and v.
Referenced by rb_block_call_kw(), rb_fiber_start(), rb_funcall_passing_block_kw(), rb_funcallv_kw(), rb_funcallv_public_kw(), rb_proc_call_kw(), rb_proc_call_with_block_kw(), rb_vm_call_kw(), and rb_yield_block().
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 890 of file vm_eval.c.
References argc, argv, OBJ_FREEZE, RARRAY_LENINT, rb_ary_subseq, and RBASIC_CLEAR_CLASS.
VALUE rb_catch_protect | ( | VALUE | t, |
rb_block_call_func * | func, | ||
VALUE | data, | ||
enum ruby_tag_type * | stateptr | ||
) |
VALUE rb_check_block_call | ( | VALUE | obj, |
ID | mid, | ||
int | argc, | ||
const VALUE * | argv, | ||
rb_block_call_func_t | bl_proc, | ||
VALUE | data2 | ||
) |
Definition at line 1528 of file vm_eval.c.
References arg, argc, argv, iter_method_arg::mid, obj, and rb_iterate().
Definition at line 505 of file vm_eval.c.
Referenced by rb_get_message(), rb_iseq_load_iseq(), and rb_range_values().
Definition at line 533 of file vm_eval.c.
Referenced by rb_get_path_check_to_string().
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 565 of file vm_eval.c.
References arg, argc, argv, rescue_funcall_args::mid, rb_check_funcall_with_hook_kw(), RB_NO_KEYWORDS, and rescue_funcall_args::recv.
VALUE rb_check_funcall_with_hook_kw | ( | VALUE | recv, |
ID | mid, | ||
int | argc, | ||
const VALUE * | argv, | ||
rb_check_funcall_hook * | hook, | ||
VALUE | arg, | ||
int | kw_splat | ||
) |
Definition at line 539 of file vm_eval.c.
References CLASS_OF, rescue_funcall_args::ec, GET_EC, klass, me, rescue_funcall_args::recv, and rescue_funcall_args::respond.
Referenced by rb_check_funcall_with_hook().
Definition at line 2462 of file vm_eval.c.
References rb_execution_context_struct::cfp, cfp, and GET_EC.
Referenced by rb_f_require_relative().
Definition at line 1824 of file vm_eval.c.
References arg, rb_eval_cmd_kw(), RB_NO_KEYWORDS, and rb_warn().
Definition at line 1801 of file vm_eval.c.
References arg, EC_EXEC_TAG, EC_PUSH_TAG, GET_EC, idCall, Qnil, RARRAY_CONST_PTR, RARRAY_LENINT, rb_funcallv_kw(), RB_TYPE_P, T_STRING, and TAG_NONE.
Referenced by rb_eval_cmd().
Definition at line 1670 of file vm_eval.c.
References argc, argv, NIL_P, NUM2INT, Qundef, rb_scan_args, SafeStringValue, src, and StringValue().
Referenced by Init_vm_eval().
VALUE rb_lambda_call | ( | VALUE | obj, |
ID | mid, | ||
int | argc, | ||
const VALUE * | argv, | ||
rb_block_call_func_t | bl_proc, | ||
int | min_argc, | ||
int | max_argc, | ||
VALUE | data2 | ||
) |
Definition at line 1501 of file vm_eval.c.
References arg, argc, argv, max_argc, min_argc, obj, rb_eArgError, rb_raise(), and rb_vm_ifunc_new().
MJIT_FUNC_EXPORTED VALUE rb_make_no_method_exception | ( | VALUE | exc, |
VALUE | format, | ||
VALUE | obj, | ||
int | argc, | ||
const VALUE * | argv, | ||
int | priv | ||
) |
Definition at line 772 of file vm_eval.c.
References argc, argv, exc, name, obj, rb_ary_new4, rb_eNoMethodError, rb_fstring_lit, rb_name_err_new(), and rb_nomethod_err_new().
Definition at line 19044 of file ripper.c.
References TypedData_Get_Struct.
Definition at line 2220 of file vm_eval.c.
References rb_sym_intern_ascii_cstr, rb_throw_obj(), and rb_vm_tag::tag.
Definition at line 2195 of file vm_eval.c.
References GET_EC, numberof, rb_vm_tag::prev, rb_class_new_instance(), rb_exc_raise(), rb_str_new_cstr, rb_vm_tag::retval, rb_vm_tag::tag, and rb_execution_context_struct::tag.
Referenced by rb_throw().
const char* rb_type_str | ( | enum ruby_value_type | type | ) |
Definition at line 572 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_IMEMO, T_MASK, T_MATCH, T_MODULE, T_MOVED, 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_insn_operand_intern().
MJIT_FUNC_EXPORTED VALUE rb_vm_call0 | ( | rb_execution_context_t * | ec, |
VALUE | recv, | ||
ID | id, | ||
int | argc, | ||
const VALUE * | argv, | ||
const rb_callable_method_entry_t * | me, | ||
int | kw_splat | ||
) |
Definition at line 46 of file vm_eval.c.
References argc, calling, cc, ci, rb_callable_method_entry_struct::def, id, rb_calling_info::kw_splat, me, rb_method_definition_struct::method_serial, Qundef, rb_calling_info::recv, and VM_CALL_KW_SPLAT.
Referenced by rb_vm_call_kw().
MJIT_FUNC_EXPORTED VALUE rb_vm_call_kw | ( | rb_execution_context_t * | ec, |
VALUE | recv, | ||
VALUE | id, | ||
int | argc, | ||
const VALUE * | argv, | ||
const rb_callable_method_entry_t * | me, | ||
int | kw_splat | ||
) |
Definition at line 265 of file vm_eval.c.
References argc, argv, me, rb_adjust_argv_kw_splat(), rb_free_tmp_buffer(), rb_vm_call0(), and v.
VALUE rb_yield_block | ( | RB_BLOCK_CALL_FUNC_ARGLIST(val, arg) | ) |
Definition at line 1315 of file vm_eval.c.
References argc, argv, rb_adjust_argv_kw_splat(), RB_PASS_CALLED_KEYWORDS, and v.
Definition at line 1885 of file vm_eval.c.
References block_handler, and GET_EC.
Definition at line 1696 of file vm_eval.c.
References rb_str_new_cstr.
Referenced by rb_eval_string().
VALUE vm_exec | ( | rb_execution_context_t * | ec, |
int | mjit_enable_p | ||
) |