Lines Matching refs:func
487 duk_hobject *func, in duk_create_activation_environment_record() argument
495 DUK_ASSERT(func != NULL); in duk_create_activation_environment_record()
497 tv = duk_hobject_find_existing_entry_tval_ptr(thr->heap, func, DUK_HTHREAD_STRING_INT_LEXENV(thr)); in duk_create_activation_environment_record()
516 if (DUK_HOBJECT_IS_COMPILEDFUNCTION(func)) { in duk_create_activation_environment_record()
519 duk_push_hobject(ctx, func); in duk_create_activation_environment_record()
532 duk_hobject *func; in duk_js_init_activation_environment_records_delayed() local
535 func = DUK_ACT_GET_FUNC(act); in duk_js_init_activation_environment_records_delayed()
536 DUK_ASSERT(func != NULL); in duk_js_init_activation_environment_records_delayed()
537 DUK_ASSERT(!DUK_HOBJECT_HAS_BOUND(func)); /* bound functions are never in act 'func' */ in duk_js_init_activation_environment_records_delayed()
543 DUK_ASSERT(DUK_HOBJECT_HAS_NEWENV(func)); in duk_js_init_activation_environment_records_delayed()
547 env = duk_create_activation_environment_record(thr, func, act->idx_bottom); in duk_js_init_activation_environment_records_delayed()
584 …close_environment_record(duk_hthread *thr, duk_hobject *env, duk_hobject *func, duk_size_t regbase… in duk_js_close_environment_record() argument
600 (duk_heaphdr *) env, (duk_heaphdr *) func, (long) regbase)); in duk_js_close_environment_record()
611 DUK_ASSERT(duk_get_hobject(ctx, -1) == (duk_hobject *) func); in duk_js_close_environment_record()
631 if (func != NULL && DUK_HOBJECT_IS_COMPILEDFUNCTION(func)) { in duk_js_close_environment_record()
686 DUK_ASSERT(regnum < ((duk_hcompiledfunction *) func)->nregs); /* regnum is sane */ in duk_js_close_environment_record()
840 duk_hobject *func; in duk__getid_activation_regs() local
850 func = DUK_ACT_GET_FUNC(act); in duk__getid_activation_regs()
851 DUK_ASSERT(func != NULL); in duk__getid_activation_regs()
852 DUK_ASSERT(DUK_HOBJECT_HAS_NEWENV(func)); in duk__getid_activation_regs()
854 if (!DUK_HOBJECT_IS_COMPILEDFUNCTION(func)) { in duk__getid_activation_regs()
858 tv = duk_hobject_find_existing_entry_tval_ptr(thr->heap, func, DUK_HTHREAD_STRING_INT_VARMAP(thr)); in duk__getid_activation_regs()
873 DUK_ASSERT(reg_rel < ((duk_hcompiledfunction *) func)->nregs); in duk__getid_activation_regs()
927 duk_hobject *func; in duk__get_identifier_reference() local
969 func = DUK_ACT_GET_FUNC(act); in duk__get_identifier_reference()
970 DUK_ASSERT(func != NULL); in duk__get_identifier_reference()
971 DUK_ASSERT(DUK_HOBJECT_HAS_NEWENV(func)); in duk__get_identifier_reference()
973 …tv = duk_hobject_find_existing_entry_tval_ptr(thr->heap, func, DUK_HTHREAD_STRING_INT_LEXENV(thr)); in duk__get_identifier_reference()
978 …DUK_ASSERT(duk_hobject_find_existing_entry_tval_ptr(thr->heap, func, DUK_HTHREAD_STRING_INT_VARENV… in duk__get_identifier_reference()