Ruby
2.0.0p645(2015-04-13revision50299)
|
#include "insns.inc"
#include <math.h>
#include "constant.h"
#include "internal.h"
#include "probes.h"
#include "probes_helper.h"
Go to the source code of this file.
Macros | |
#define | INLINE inline |
#define | USE_IC_FOR_IVAR 1 |
#define | CHECK_CMP_NAN(a, b) /* do nothing */ |
#define | SAVE_RESTORE_CI(expr, ci) |
#define | VM_PROFILE 0 |
#define | VM_PROFILE_UP(x) |
#define | VM_PROFILE_ATEXIT() |
Definition at line 978 of file vm_insnhelper.c.
Referenced by double_cmp_ge(), double_cmp_gt(), double_cmp_le(), and double_cmp_lt().
#define INLINE inline |
Definition at line 22 of file vm_insnhelper.c.
#define SAVE_RESTORE_CI | ( | expr, | |
ci | |||
) |
Referenced by vm_caller_setup_args().
#define USE_IC_FOR_IVAR 1 |
Definition at line 519 of file vm_insnhelper.c.
#define VM_PROFILE 0 |
Definition at line 1469 of file vm_insnhelper.c.
#define VM_PROFILE_ATEXIT | ( | ) |
Definition at line 1486 of file vm_insnhelper.c.
Referenced by Init_VM().
#define VM_PROFILE_UP | ( | x | ) |
Definition at line 1485 of file vm_insnhelper.c.
Referenced by vm_call0_cfunc_with_frame(), and vm_call_cfunc_with_frame().
|
static |
Definition at line 127 of file vm_insnhelper.c.
References exc, rb_iseq_location_struct::label, rb_iseq_struct::location, rb_iseq_location_struct::path, rb_arg_error_new(), rb_exc_raise(), rb_funcall(), rb_intern, rb_iseq_first_lineno(), rb_make_backtrace(), rb_sprintf(), and RSTRING_PTR.
Referenced by vm_callee_setup_arg(), and vm_callee_setup_arg_complex().
Definition at line 2093 of file vm_insnhelper.c.
References GetProcPtr, rb_proc_t::is_lambda, and proc.
Referenced by invoke_block_from_c(), vm_invoke_block(), and vm_yield_with_cfunc().
|
static |
Definition at line 1373 of file vm_insnhelper.c.
References func.
|
static |
Definition at line 1379 of file vm_insnhelper.c.
References func.
|
static |
Definition at line 1433 of file vm_insnhelper.c.
References func.
|
static |
Definition at line 1439 of file vm_insnhelper.c.
References func.
|
static |
Definition at line 1445 of file vm_insnhelper.c.
References func.
|
static |
Definition at line 1451 of file vm_insnhelper.c.
References func.
|
static |
Definition at line 1457 of file vm_insnhelper.c.
References func.
|
static |
Definition at line 1463 of file vm_insnhelper.c.
References func.
|
static |
Definition at line 1385 of file vm_insnhelper.c.
References func.
|
static |
Definition at line 1391 of file vm_insnhelper.c.
References func.
|
static |
Definition at line 1397 of file vm_insnhelper.c.
References func.
|
static |
Definition at line 1403 of file vm_insnhelper.c.
References func.
|
static |
Definition at line 1409 of file vm_insnhelper.c.
References func.
|
static |
Definition at line 1415 of file vm_insnhelper.c.
References func.
|
static |
Definition at line 1421 of file vm_insnhelper.c.
References func.
|
static |
Definition at line 1427 of file vm_insnhelper.c.
References func.
|
static |
Definition at line 1367 of file vm_insnhelper.c.
|
static |
Definition at line 1361 of file vm_insnhelper.c.
References func, and rb_ary_new4().
|
inlinestatic |
Definition at line 888 of file vm_insnhelper.c.
References rb_method_definition_struct::body, rb_method_definition_struct::cfunc, rb_method_entry_struct::def, rb_method_cfunc_struct::func, func, rb_method_definition_struct::type, and VM_METHOD_TYPE_CFUNC.
Referenced by opt_eq_func().
|
static |
Definition at line 948 of file vm_insnhelper.c.
References CLASS_OF, GET_THREAD(), idEqq, rb_bug(), rb_cModule, rb_eTypeError, rb_funcall2(), rb_method_entry_with_refinements(), rb_obj_is_kind_of(), rb_raise(), vm_call0(), VM_CHECKMATCH_TYPE_CASE, VM_CHECKMATCH_TYPE_RESCUE, and VM_CHECKMATCH_TYPE_WHEN.
|
static |
Definition at line 1754 of file vm_insnhelper.c.
References rb_control_frame_struct::iseq, rb_iseq_struct::local_iseq, RUBY_VM_CONTROL_FRAME_STACK_OVERFLOW_P, RUBY_VM_PREVIOUS_CONTROL_FRAME, and rb_iseq_struct::type.
Referenced by vm_call_method().
|
inlinestatic |
Definition at line 1003 of file vm_insnhelper.c.
References CHECK_CMP_NAN, Qfalse, and Qtrue.
|
inlinestatic |
Definition at line 996 of file vm_insnhelper.c.
References CHECK_CMP_NAN, Qfalse, and Qtrue.
|
inlinestatic |
Definition at line 989 of file vm_insnhelper.c.
References CHECK_CMP_NAN, Qfalse, and Qtrue.
|
inlinestatic |
Definition at line 982 of file vm_insnhelper.c.
References CHECK_CMP_NAN, Qfalse, and Qtrue.
Definition at line 1113 of file vm_insnhelper.c.
References hash, RHASH_EMPTY_P, RHASH_TBL, separate_symbol(), and st_foreach().
Referenced by vm_callee_setup_keyword_arg().
Definition at line 1742 of file vm_insnhelper.c.
References NIL_P(), Qnil, and rb_hash_lookup.
Referenced by rb_resolve_refined_method(), and vm_call_method().
|
static |
Definition at line 191 of file vm_insnhelper.c.
References ary, DEFAULT_SPECIAL_VAR_COUNT, lep_svar_place(), NIL_P(), Qnil, rb_ary_entry(), RNode::u1, RNode::u2, RNode::u3, and RNode::value.
Referenced by vm_cfp_svar_get(), and vm_getspecial().
|
inlinestatic |
Definition at line 174 of file vm_insnhelper.c.
References NEW_IF, NIL_P(), Qnil, rb_thread_struct::root_lep, and rb_thread_struct::root_svar.
Referenced by lep_svar_get(), and lep_svar_set().
|
static |
Definition at line 214 of file vm_insnhelper.c.
References ary, DEFAULT_SPECIAL_VAR_COUNT, lep_svar_place(), NIL_P(), rb_ary_new(), rb_ary_store(), RNode::u1, RNode::u2, RNode::u3, val, and RNode::value.
Referenced by vm_cfp_svar_set().
NORETURN | ( | static void | argument_errorconst rb_iseq_t *iseq, int miss_argc, int min_argc, int max_argc | ) |
NORETURN | ( | static void | unknown_keyword_errorconst rb_iseq_t *iseq, VALUE hash | ) |
Definition at line 904 of file vm_insnhelper.c.
References a, b, BASIC_OP_UNREDEFINED_P, BOP_EQ, check_cfunc(), FIXNUM_2_P, FIXNUM_REDEFINED_OP_FLAG, FLOAT_REDEFINED_OP_FLAG, FLONUM_2_P, HEAP_CLASS_OF, isnan, rb_call_info_struct::me, Qfalse, Qtrue, Qundef, rb_cFloat, rb_cString, rb_obj_equal(), rb_str_equal(), RFLOAT_VALUE, SPECIAL_CONST_P, STRING_REDEFINED_OP_FLAG, and vm_search_method().
Definition at line 110 of file vm_insnhelper.c.
References rb_eArgError, rb_exc_new3(), rb_sprintf(), and UNLIMITED_ARGUMENTS.
Referenced by argument_error(), and rb_error_arity().
Definition at line 166 of file vm_insnhelper.c.
References rb_arg_error_new(), and rb_exc_raise().
Referenced by econv_args(), econv_primitive_convert(), rb_io_s_popen(), and rb_scan_args().
|
static |
Referenced by vm_call_method().
Definition at line 288 of file vm_insnhelper.c.
References rb_bug(), and vm_get_cref0().
Referenced by rb_vm_cref(), vm_call_method(), vm_get_cbase(), vm_get_const_base(), and vm_get_ev_const().
void rb_vm_rewrite_cref_stack | ( | NODE * | node, |
VALUE | old_klass, | ||
VALUE | new_klass, | ||
NODE ** | new_cref_ptr | ||
) |
Definition at line 299 of file vm_insnhelper.c.
References COPY_CREF_OMOD, NEW_CREF, and NULL.
Referenced by clone_method().
Definition at line 1102 of file vm_insnhelper.c.
References rb_hash_aset(), rb_hash_new(), ST_CONTINUE, and SYMBOL_P.
Referenced by extract_keywords().
Definition at line 148 of file vm_insnhelper.c.
References rb_iseq_struct::arg_keyword_table, rb_iseq_struct::arg_keywords, i, ID2SYM, key, keys, msg, NULL, PRIsVALUE, RARRAY_LEN, rb_eArgError, rb_funcall(), rb_hash_tbl(), rb_intern, rb_raise(), RB_TYPE_P, rb_usascii_str_new2, st_delete(), T_ARRAY, and tbl.
Referenced by vm_callee_setup_keyword_arg().
|
static |
Definition at line 1010 of file vm_insnhelper.c.
References bp, GET_THREAD(), rb_control_frame_struct::iseq, rb_iseq_struct::local_size, rb_bug(), RUBY_VM_PREVIOUS_CONTROL_FRAME, rb_control_frame_struct::sp, and rb_iseq_struct::type.
Referenced by vm_exec().
|
static |
Referenced by check_match().
|
static |
Definition at line 1616 of file vm_insnhelper.c.
References rb_method_definition_struct::attr, rb_method_definition_struct::body, rb_method_entry_struct::def, rb_method_attr_struct::id, rb_call_info_struct::me, rb_call_info_struct::recv, rb_control_frame_struct::sp, val, and vm_setivar().
Referenced by vm_call_method().
|
static |
Definition at line 1644 of file vm_insnhelper.c.
References ALLOCA_N, rb_call_info_struct::argc, MEMCPY, rb_control_frame_struct::sp, and vm_call_bmethod_body().
Referenced by vm_call_method().
|
inlinestatic |
Definition at line 1624 of file vm_insnhelper.c.
References rb_call_info_struct::argc, rb_call_info_struct::blockptr, rb_method_definition_struct::body, rb_method_entry_struct::called_id, rb_method_entry_struct::def, rb_call_info_struct::defined_class, EXEC_EVENT_HOOK, GetProcPtr, rb_method_entry_struct::klass, rb_call_info_struct::me, rb_thread_struct::passed_me, rb_method_definition_struct::proc, proc, Qnil, rb_call_info_struct::recv, RUBY_DTRACE_METHOD_ENTRY_HOOK, RUBY_DTRACE_METHOD_RETURN_HOOK, RUBY_EVENT_CALL, RUBY_EVENT_RETURN, val, and vm_invoke_proc().
Referenced by vm_call0_body(), and vm_call_bmethod().
|
static |
Definition at line 1601 of file vm_insnhelper.c.
References vm_call_cfunc_with_frame().
Referenced by vm_call_method().
|
static |
Definition at line 1490 of file vm_insnhelper.c.
References rb_method_cfunc_struct::argc, rb_call_info_struct::argc, argc, rb_call_info_struct::blockptr, rb_method_definition_struct::body, rb_method_entry_struct::called_id, 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_method_entry_struct::klass, len, rb_call_info_struct::me, Qundef, 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, val, VM_ENVVAL_BLOCK_PTR, VM_FRAME_MAGIC_CFUNC, vm_pop_frame(), VM_PROFILE_UP, and vm_push_frame().
Referenced by vm_call_cfunc().
|
static |
Definition at line 1950 of file vm_insnhelper.c.
References vm_call_method().
Referenced by vm_search_method().
|
static |
Definition at line 1281 of file vm_insnhelper.c.
References rb_call_info_struct::argc, rb_method_definition_struct::body, rb_method_entry_struct::def, rb_method_definition_struct::iseq, rb_call_info_struct::me, rb_control_frame_struct::sp, vm_call_iseq_setup_2(), and vm_callee_setup_arg().
Referenced by vm_call0_body(), and vm_call_method().
|
static |
Definition at line 1288 of file vm_insnhelper.c.
References rb_call_info_struct::flag, LIKELY, vm_call_iseq_setup_normal(), vm_call_iseq_setup_tailcall(), and VM_CALL_TAILCALL.
Referenced by vm_call_iseq_setup().
|
inlinestatic |
Definition at line 1299 of file vm_insnhelper.c.
References rb_iseq_struct::arg_size, rb_call_info_struct::argc, argv, rb_call_info_struct::aux, rb_call_info_struct::blockptr, rb_method_definition_struct::body, CHECK_VM_STACK_OVERFLOW, rb_method_entry_struct::def, rb_call_info_struct::defined_class, i, iseq_catch_table_entry::iseq, rb_method_definition_struct::iseq, rb_iseq_struct::iseq_encoded, rb_iseq_struct::local_size, rb_call_info_struct::me, rb_call_info_struct::opt_pc, Qnil, Qundef, rb_call_info_struct::recv, iseq_catch_table_entry::sp, rb_control_frame_struct::sp, rb_iseq_struct::stack_max, VM_ENVVAL_BLOCK_PTR, VM_FRAME_MAGIC_METHOD, and vm_push_frame().
Referenced by vm_call_iseq_setup_2(), and vm_callee_setup_arg().
|
inlinestatic |
Definition at line 1322 of file vm_insnhelper.c.
References rb_iseq_struct::arg_size, rb_call_info_struct::argc, argv, rb_call_info_struct::aux, rb_call_info_struct::blockptr, rb_method_definition_struct::body, rb_thread_struct::cfp, CHECK_VM_STACK_OVERFLOW, rb_method_entry_struct::def, rb_call_info_struct::defined_class, i, iseq_catch_table_entry::iseq, rb_method_definition_struct::iseq, rb_iseq_struct::iseq_encoded, rb_iseq_struct::local_size, rb_call_info_struct::me, rb_call_info_struct::opt_pc, Qnil, Qundef, rb_call_info_struct::recv, RUBY_VM_CHECK_INTS, RUBY_VM_PREVIOUS_CONTROL_FRAME, iseq_catch_table_entry::sp, rb_control_frame_struct::sp, rb_iseq_struct::stack_max, VM_ENVVAL_BLOCK_PTR, VM_FRAME_FLAG_FINISH, VM_FRAME_MAGIC_METHOD, VM_FRAME_TYPE_FINISH_P, and vm_push_frame().
Referenced by vm_call_iseq_setup_2(), and vm_callee_setup_arg().
|
static |
Definition at line 1608 of file vm_insnhelper.c.
References rb_method_definition_struct::attr, rb_method_definition_struct::body, rb_method_entry_struct::def, rb_method_attr_struct::id, rb_call_info_struct::me, rb_call_info_struct::recv, rb_control_frame_struct::sp, val, and vm_getivar().
Referenced by vm_call_method().
|
inlinestatic |
Definition at line 1778 of file vm_insnhelper.c.
References rb_call_info_struct::argc, rb_call_info_struct::aux, rb_method_definition_struct::body, rb_call_info_struct::call, CI_SET_FASTPATH, current_method_entry(), rb_method_entry_struct::def, rb_call_info_struct::defined_class, rb_control_frame_struct::ep, find_refinement(), rb_method_entry_struct::flag, rb_call_info_struct::flag, rb_call_info_struct::index, rb_control_frame_struct::iseq, rb_method_entry_struct::klass, klass, rb_call_info_struct::me, rb_control_frame_struct::me, rb_call_info_struct::mid, rb_call_info_struct::missing_reason, NIL_P(), NOEX_MASK, NOEX_PRIVATE, NOEX_PROTECTED, NOEX_SAFE, NOEX_SUPER, NOEX_VCALL, rb_method_definition_struct::optimize_type, rb_method_definition_struct::orig_me, Qnil, rb_bug(), rb_check_arity, rb_eSecurityError, rb_id2name(), rb_method_definition_eq(), rb_method_entry(), rb_obj_is_kind_of(), rb_raise(), rb_raise_method_missing(), rb_vm_get_cref(), RCLASS_ORIGIN, RCLASS_SUPER, rb_call_info_struct::recv, rb_thread_struct::safe_level, rb_control_frame_struct::self, STACK_ADDR_FROM_TOP, stat, rb_method_definition_struct::type, UNDEFINED_METHOD_ENTRY_P, VM_CALL_ARGS_SPLAT, vm_call_attrset(), vm_call_bmethod(), vm_call_cfunc(), VM_CALL_FCALL, vm_call_iseq_setup(), vm_call_ivar(), vm_call_method_missing(), vm_call_opt_call(), VM_CALL_OPT_SEND, vm_call_opt_send(), VM_CALL_SUPER, vm_call_super_method(), VM_CALL_VCALL, 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_call_general(), vm_call_method_missing(), vm_call_opt_send(), and vm_call_super_method().
|
static |
Definition at line 1717 of file vm_insnhelper.c.
References rb_call_info_struct::argc, rb_call_info_struct::aux, rb_call_info_struct::blockptr, CHECK_VM_STACK_OVERFLOW, CLASS_OF, rb_call_info_struct::defined_class, rb_call_info_struct::flag, ID2SYM, INC_SP, rb_call_info_struct::me, MEMMOVE, rb_thread_struct::method_missing_reason, rb_call_info_struct::mid, rb_call_info_struct::missing_reason, rb_method_entry(), rb_call_info_struct::recv, STACK_ADDR_FROM_TOP, VM_CALL_FCALL, vm_call_method(), and VM_CALL_OPT_SEND.
Referenced by vm_call_method(), and vm_search_super_method().
|
static |
Definition at line 1704 of file vm_insnhelper.c.
References ALLOCA_N, rb_call_info_struct::argc, rb_call_info_struct::blockptr, GetProcPtr, MEMCPY, proc, rb_vm_invoke_proc(), rb_call_info_struct::recv, and rb_control_frame_struct::sp.
Referenced by vm_call_method().
|
static |
Definition at line 1662 of file vm_insnhelper.c.
References rb_call_info_struct::argc, CLASS_OF, DEC_SP, rb_call_info_struct::defined_class, exc, rb_call_info_struct::flag, i, make_no_method_exception(), rb_call_info_struct::me, MEMMOVE, rb_call_info_struct::mid, NULL, rb_check_id(), rb_eArgError, rb_eNoMethodError, rb_exc_raise(), rb_long2int, rb_method_basic_definition_p(), rb_method_entry_without_refinements(), rb_raise(), rb_to_id(), rb_call_info_struct::recv, sym, SYM2ID, SYMBOL_P, TOPN, VM_CALL_FCALL, vm_call_method(), and VM_CALL_OPT_SEND.
Referenced by vm_call_method().
|
static |
Definition at line 1956 of file vm_insnhelper.c.
References vm_call_method().
Referenced by vm_call_method(), and vm_search_super_method().
|
inlinestatic |
Definition at line 1258 of file vm_insnhelper.c.
References rb_iseq_struct::arg_simple, rb_call_info_struct::argc, rb_iseq_struct::argc, argument_error(), rb_call_info_struct::aux, CI_SET_FASTPATH, rb_method_entry_struct::flag, rb_call_info_struct::flag, LIKELY, rb_call_info_struct::me, NOEX_PROTECTED, rb_call_info_struct::opt_pc, UNLIKELY, VM_CALL_ARGS_SPLAT, vm_call_iseq_setup_normal(), vm_call_iseq_setup_tailcall(), VM_CALL_TAILCALL, and vm_callee_setup_arg_complex().
Referenced by vm_call_iseq_setup(), and vm_yield_setup_args().
|
inlinestatic |
Definition at line 1161 of file vm_insnhelper.c.
References ALLOCA_N, rb_iseq_struct::arg_block, rb_iseq_struct::arg_keyword, rb_iseq_struct::arg_opt_table, rb_iseq_struct::arg_opts, rb_iseq_struct::arg_post_len, rb_iseq_struct::arg_post_start, rb_iseq_struct::arg_rest, rb_iseq_struct::arg_size, rb_call_info_struct::argc, rb_iseq_struct::argc, argc, argument_error(), argv, rb_proc_t::block, rb_call_info_struct::blockptr, GetProcPtr, i, if(), m, rb_thread_struct::mark_stack_len, max(), MEMCPY, min(), opts, rb_block_struct::proc, proc, Qnil, rb_ary_new4(), rb_cProc, rb_vm_make_proc(), UNLIMITED_ARGUMENTS, and vm_callee_setup_keyword_arg().
Referenced by vm_callee_setup_arg().
|
inlinestatic |
Definition at line 1128 of file vm_insnhelper.c.
References rb_iseq_struct::arg_keyword_check, rb_iseq_struct::arg_keyword_table, rb_iseq_struct::arg_keywords, argc, extract_keywords(), i, ID2SYM, NIL_P(), rb_check_hash_type(), rb_hash_new(), RHASH_TBL, st_lookup(), and unknown_keyword_error().
Referenced by vm_callee_setup_arg_complex(), and vm_yield_setup_block_args().
|
static |
Definition at line 1035 of file vm_insnhelper.c.
References rb_call_info_struct::argc, ary, b, rb_proc_t::block, rb_call_info_struct::blockiseq, rb_call_info_struct::blockptr, CHECK_VM_STACK_OVERFLOW, rb_call_info_struct::flag, GetProcPtr, i, rb_block_struct::iseq, len, NIL_P(), rb_block_struct::proc, proc, ptr, Qnil, RARRAY_LEN, RARRAY_PTR(), rb_check_convert_type(), rb_eTypeError, rb_obj_classname(), rb_obj_is_proc(), rb_raise(), RUBY_VM_GET_BLOCK_PTR_IN_CFP, SAVE_RESTORE_CI, rb_control_frame_struct::sp, T_ARRAY, T_DATA, tmp, UNLIKELY, VM_CALL_ARGS_BLOCKARG, and VM_CALL_ARGS_SPLAT.
Referenced by vm_invoke_block().
Definition at line 376 of file vm_insnhelper.c.
References rb_eTypeError, rb_inspect(), rb_raise(), RB_TYPE_P, str, StringValuePtr, T_CLASS, and T_MODULE.
Referenced by vm_get_ev_const().
|
static |
Definition at line 320 of file vm_insnhelper.c.
References rb_thread_struct::cfp, COPY_CREF_OMOD, rb_control_frame_struct::ep, rb_block_struct::ep, rb_control_frame_struct::iseq, rb_block_struct::iseq, NEW_CREF, NIL_P(), Qnil, vm_get_cref0(), and vm_get_ruby_level_caller_cfp().
|
inlinestatic |
Definition at line 804 of file vm_insnhelper.c.
References i, len, ptr, Qnil, RARRAY_LEN, RARRAY_PTR(), rb_ary_new(), rb_ary_new4(), rb_ary_to_ary(), RB_GC_GUARD, RB_TYPE_P, rb_control_frame_struct::sp, T_ARRAY, and v.
Definition at line 343 of file vm_insnhelper.c.
References klass, Qundef, and rb_vm_get_cref().
Referenced by rb_vm_cbase().
Definition at line 359 of file vm_insnhelper.c.
References RNode::flags, klass, NODE_FL_CREF_PUSHED_BY_EVAL, Qundef, and rb_vm_get_cref().
Definition at line 273 of file vm_insnhelper.c.
References rb_iseq_struct::cref_stack, NULL, Qnil, RUBY_VM_NORMAL_ISEQ_P, VM_EP_LEP_P, and VM_EP_PREV_EP.
Referenced by rb_vm_get_cref(), and vm_cref_push().
|
inlinestatic |
Definition at line 479 of file vm_insnhelper.c.
References FL_SINGLETON, FL_TEST, RNode::flags, klass, NIL_P(), NODE_FL_CREF_PUSHED_BY_EVAL, rb_bug(), rb_eTypeError, rb_raise(), rb_warn(), and vm_get_iclass().
|
inlinestatic |
Definition at line 401 of file vm_insnhelper.c.
References av, rb_thread_struct::cfp, CLASS_OF, data, rb_control_frame_struct::ep, RNode::flags, klass, NIL_P(), NODE_FL_CREF_PUSHED_BY_EVAL, Qnil, Qundef, rb_autoload_load(), rb_autoloading_value(), rb_const_defined(), rb_const_get(), rb_public_const_defined_from(), rb_public_const_get_from(), rb_vm_get_cref(), RCLASS_CONST_TBL, rb_control_frame_struct::self, st_lookup(), val, vm_check_if_namespace(), and vm_get_iclass().
|
inlinestatic |
Definition at line 387 of file vm_insnhelper.c.
References FL_TEST, rb_control_frame_struct::klass, klass, RB_TYPE_P, RBASIC, RMODULE_IS_OVERLAID, T_ICLASS, and T_MODULE.
Referenced by vm_get_cvar_base(), and vm_get_ev_const().
|
static |
Referenced by vm_cref_push().
Definition at line 622 of file vm_insnhelper.c.
References vm_getivar().
Definition at line 523 of file vm_insnhelper.c.
References rb_call_info_struct::aux, GET_VM_STATE_VERSION, iseq_inline_cache_entry::ic_class, iseq_inline_cache_entry::ic_value, iseq_inline_cache_entry::ic_vmstat, iseq_inline_cache_entry::index, rb_call_info_struct::index, index, klass, len, LIKELY, ptr, Qnil, Qundef, rb_attr_get(), rb_id2name(), rb_ivar_get(), RB_TYPE_P, rb_warning(), RBASIC, ROBJECT_IV_INDEX_TBL, ROBJECT_IVPTR, ROBJECT_NUMIV, st_lookup(), T_OBJECT, UNLIKELY, and val.
Referenced by vm_call_ivar(), and vm_getinstancevariable().
|
inlinestatic |
Definition at line 237 of file vm_insnhelper.c.
References lep_svar_get(), rb_bug(), rb_reg_last_match(), rb_reg_match_last(), rb_reg_match_post(), rb_reg_match_pre(), rb_reg_nth_match(), and val.
|
static |
Definition at line 2350 of file vm_insnhelper.c.
References rb_iseq_struct::arg_size, rb_call_info_struct::argc, block, block_proc_is_lambda(), BUILTIN_TYPE, CHECK_VM_STACK_OVERFLOW, rb_block_struct::ep, rb_call_info_struct::flag, GET_CFP, GET_ISEQ, GET_SP, iseq_catch_table_entry::iseq, rb_block_struct::iseq, rb_iseq_struct::iseq_encoded, rb_block_struct::klass, rb_iseq_struct::local_size, POPN, rb_block_struct::proc, Qnil, Qundef, rb_vm_localjump_error(), rb_block_struct::self, SET_SP, STACK_ADDR_FROM_TOP, rb_iseq_struct::stack_max, T_NODE, type, UNLIKELY, val, VM_CALL_ARGS_SPLAT, vm_caller_setup_args(), VM_CF_BLOCK_PTR(), VM_ENVVAL_PREV_EP_PTR, VM_FRAME_MAGIC_BLOCK, vm_push_frame(), vm_yield_setup_args(), and vm_yield_with_cfunc().
|
inlinestatic |
Definition at line 99 of file vm_insnhelper.c.
References rb_thread_struct::cfp, RUBY_VM_PREVIOUS_CONTROL_FRAME, SDR, and VMDEBUG.
Referenced by rb_frame_pop(), rb_vm_call_cfunc(), rb_vm_pop_cfunc_frame(), rb_vm_rewind_cfp(), vm_call0_cfunc_with_frame(), vm_call_cfunc_with_frame(), and vm_exec().
|
inlinestatic |
Definition at line 34 of file vm_insnhelper.c.
References rb_control_frame_struct::block_iseq, rb_thread_struct::cfp, rb_control_frame_struct::ep, rb_control_frame_struct::flag, i, rb_control_frame_struct::iseq, rb_control_frame_struct::klass, klass, rb_control_frame_struct::me, rb_control_frame_struct::pc, rb_control_frame_struct::proc, Qnil, RUBY_VM_CONTROL_FRAME_STACK_OVERFLOW_P, RUBY_VM_PREVIOUS_CONTROL_FRAME, SDR, rb_control_frame_struct::self, rb_control_frame_struct::sp, type, vm_stackoverflow(), and VMDEBUG.
Referenced by invoke_block_from_c(), rb_vm_call_cfunc(), th_init(), vm_call0_cfunc_with_frame(), vm_call_cfunc_with_frame(), vm_call_iseq_setup_normal(), vm_call_iseq_setup_tailcall(), vm_exec(), vm_invoke_block(), vm_set_eval_stack(), vm_set_top_stack(), and vm_yield_with_cfunc().
Definition at line 505 of file vm_insnhelper.c.
References rb_cObject, rb_const_defined_at(), RCLASS_SUPER, and tmp.
|
static |
Definition at line 866 of file vm_insnhelper.c.
References rb_call_info_struct::call, CLASS_OF, rb_call_info_struct::defined_class, GET_VM_STATE_VERSION, rb_call_info_struct::klass, klass, LIKELY, rb_call_info_struct::me, rb_call_info_struct::mid, rb_method_entry(), vm_call_general(), and rb_call_info_struct::vmstat.
Referenced by opt_eq_func().
Definition at line 1964 of file vm_insnhelper.c.
References BUILTIN_TYPE, FL_TEST, RBASIC, RCLASS_ORIGIN, RCLASS_SUPER, RMODULE_IS_REFINEMENT, and T_ICLASS.
Referenced by vm_search_superclass().
|
static |
Definition at line 2032 of file vm_insnhelper.c.
References rb_call_info_struct::argc, rb_call_info_struct::aux, rb_method_definition_struct::body, BUILTIN_TYPE, rb_call_info_struct::call, CI_SET_FASTPATH, rb_method_entry_struct::def, rb_call_info_struct::defined_class, FL_TEST, GET_CFP, GET_ISEQ, iseq_catch_table_entry::iseq, rb_method_definition_struct::iseq, rb_call_info_struct::klass, rb_iseq_struct::klass, m, rb_call_info_struct::me, rb_call_info_struct::mid, rb_call_info_struct::missing_reason, NIL_P(), NOEX_SUPER, rb_iseq_struct::parent_iseq, PRIsVALUE, rb_eRuntimeError, rb_eTypeError, rb_method_entry(), rb_obj_class(), rb_obj_is_kind_of(), rb_raise(), RB_TYPE_P, RBASIC, RCLASS_REFINED_CLASS, RCLASS_SUPER, rb_call_info_struct::recv, RMODULE_INCLUDED_INTO_REFINEMENT, T_ICLASS, T_MODULE, TOPN, rb_method_definition_struct::type, vm_call_method_missing(), vm_call_super_method(), VM_METHOD_TYPE_ISEQ, vm_search_superclass(), and vm_super_outside().
|
static |
Definition at line 1981 of file vm_insnhelper.c.
References rb_method_entry_struct::def, rb_iseq_struct::defined_method_id, rb_control_frame_struct::ep, GET_CFP, GET_THREAD(), rb_control_frame_struct::iseq, rb_call_info_struct::klass, rb_iseq_struct::klass, rb_control_frame_struct::klass, rb_iseq_struct::local_iseq, rb_control_frame_struct::me, rb_call_info_struct::mid, rb_method_definition_struct::original_id, rb_iseq_struct::parent_iseq, RUBY_VM_CONTROL_FRAME_STACK_OVERFLOW_P, RUBY_VM_PREVIOUS_CONTROL_FRAME, VM_EP_PREV_EP, and vm_search_normal_superclass().
Referenced by vm_search_super_method().
Definition at line 628 of file vm_insnhelper.c.
References vm_setivar().
|
inlinestatic |
Definition at line 576 of file vm_insnhelper.c.
References rb_call_info_struct::aux, GET_VM_STATE_VERSION, iseq_inline_cache_entry::ic_class, iseq_inline_cache_entry::ic_value, iseq_inline_cache_entry::ic_vmstat, iseq_inline_cache_entry::index, rb_call_info_struct::index, index, klass, len, LIKELY, OBJ_UNTRUSTED, ptr, rb_check_frozen, rb_eSecurityError, rb_ivar_set(), rb_raise(), rb_safe_level, RB_TYPE_P, RBASIC, ROBJECT_IV_INDEX_TBL, ROBJECT_IVPTR, ROBJECT_NUMIV, st_lookup(), T_OBJECT, and val.
Referenced by vm_call_attrset(), and vm_setinstancevariable().
Definition at line 28 of file vm_insnhelper.c.
References rb_exc_raise(), and sysstack_error.
Referenced by vm_push_frame().
Definition at line 1975 of file vm_insnhelper.c.
References rb_eNoMethodError, and rb_raise().
Referenced by vm_search_super_method().
|
static |
Definition at line 634 of file vm_insnhelper.c.
References BUILTIN_TYPE, rb_iseq_struct::catch_table, rb_iseq_struct::catch_table_size, iseq_catch_table_entry::CATCH_TYPE_BREAK, iseq_catch_table_entry::cont, iseq_catch_table_entry::end, rb_control_frame_struct::ep, err, FIX2INT, FIXNUM_P, flag, GC_GUARDED_PTR_REF, GET_CFP, GET_EP, GET_ISEQ, GET_THROWOBJ_STATE, i, int, rb_control_frame_struct::iseq, rb_iseq_struct::iseq_encoded, level, NEW_THROW_OBJECT, rb_iseq_struct::parent_iseq, rb_control_frame_struct::pc, rb_bug(), rb_vm_localjump_error(), RUBY_VM_PREVIOUS_CONTROL_FRAME, rb_thread_struct::stack_size, iseq_catch_table_entry::start, rb_thread_struct::state, state, SYMBOL_P, T_NODE, TAG_BREAK, TAG_RAISE, TAG_RETRY, TAG_RETURN, TAG_THROW, iseq_catch_table_entry::type, rb_iseq_struct::type, VM_CF_LEP(), VM_EP_PREV_EP, VM_FRAME_MAGIC_LAMBDA, and VM_FRAME_TYPE.
|
inlinestatic |
Definition at line 2321 of file vm_insnhelper.c.
References rb_iseq_struct::arg_block, rb_iseq_struct::arg_opts, rb_iseq_struct::arg_post_len, rb_iseq_struct::arg_rest, rb_iseq_struct::arg_simple, rb_call_info_struct::argc, rb_iseq_struct::argc, argc, rb_call_info_struct::aux, rb_call_info_struct::blockptr, rb_call_info_struct::flag, rb_call_info_struct::opt_pc, vm_callee_setup_arg(), and vm_yield_setup_block_args().
Referenced by invoke_block_from_c(), and vm_invoke_block().
|
inlinestatic |
Definition at line 2210 of file vm_insnhelper.c.
References rb_iseq_struct::arg_block, rb_iseq_struct::arg_keyword, rb_iseq_struct::arg_opts, rb_iseq_struct::arg_post_len, rb_iseq_struct::arg_rest, rb_iseq_struct::arg_simple, rb_iseq_struct::arg_size, rb_iseq_struct::argc, argc, ary, rb_thread_struct::cfp, CHECK_VM_STACK_OVERFLOW, i, m, rb_thread_struct::mark_stack_len, MEMCPY, NIL_P(), rb_block_struct::proc, Qnil, r, RARRAY_LENINT, RARRAY_PTR(), rb_ary_new(), rb_ary_new4(), rb_check_array_type(), rb_cProc, rb_vm_make_proc(), vm_callee_setup_keyword_arg(), and vm_yield_setup_block_args_complex().
Referenced by vm_yield_setup_args().
|
inlinestatic |
Definition at line 2153 of file vm_insnhelper.c.
References rb_iseq_struct::arg_opt_table, rb_iseq_struct::arg_opts, rb_iseq_struct::arg_post_len, rb_iseq_struct::arg_post_start, rb_iseq_struct::arg_rest, rb_iseq_struct::argc, ary, i, len, m, MEMMOVE, opts, Qnil, r, rb_ary_new4(), and iseq_catch_table_entry::start.
Referenced by vm_yield_setup_block_args().
|
inlinestatic |
Definition at line 2107 of file vm_insnhelper.c.
References arg, block_proc_is_lambda(), rb_thread_struct::cfp, rb_block_struct::ep, rb_block_struct::iseq, rb_block_struct::proc, Qnil, rb_ary_new4(), rb_cProc, rb_vm_make_proc(), rb_control_frame_struct::sp, val, VM_ENVVAL_PREV_EP_PTR, VM_FRAME_MAGIC_IFUNC, and vm_push_frame().
Referenced by invoke_block_from_c(), and vm_invoke_block().