Lines Matching refs:act
8327 #define DUK_ACT_GET_FUNC(act) ((act)->func) argument
8670 DUK_INTERNAL_DECL void duk_hthread_activation_free(duk_hthread *thr, duk_activation *act);
8677 DUK_INTERNAL_DECL void duk_hthread_catcher_unwind_norz(duk_hthread *thr, duk_activation *act);
8678 …INTERNAL_DECL void duk_hthread_catcher_unwind_nolexenv_norz(duk_hthread *thr, duk_activation *act);
8687 …INTERNAL_DECL duk_uint_fast32_t duk_hthread_get_act_curr_pc(duk_hthread *thr, duk_activation *act);
8689 …INTERNAL_DECL duk_uint_fast32_t duk_hthread_get_act_prev_pc(duk_hthread *thr, duk_activation *act);
11186 DUK_INTERNAL_DECL duk_bool_t duk_js_getvar_activation(duk_hthread *thr, duk_activation *act, duk_hs…
11188 DUK_INTERNAL_DECL void duk_js_putvar_activation(duk_hthread *thr, duk_activation *act, duk_hstring …
11192 DUK_INTERNAL_DECL duk_bool_t duk_js_delvar_activation(duk_hthread *thr, duk_activation *act, duk_hs…
11193 DUK_INTERNAL_DECL duk_bool_t duk_js_declvar_activation(duk_hthread *thr, duk_activation *act, duk_h…
11194 …ECL void duk_js_init_activation_environment_records_delayed(duk_hthread *thr, duk_activation *act);
20677 duk_activation *act; in duk_is_constructor_call() local
20681 act = thr->callstack_curr; in duk_is_constructor_call()
20682 if (act != NULL) { in duk_is_constructor_call()
20683 return ((act->flags & DUK_ACT_FLAG_CONSTRUCT) != 0 ? 1 : 0); in duk_is_constructor_call()
20698 duk_activation *act; in duk_is_strict_call() local
20711 act = thr->callstack_curr; in duk_is_strict_call()
20712 if (act != NULL) { in duk_is_strict_call()
20713 return ((act->flags & DUK_ACT_FLAG_STRICT) != 0 ? 1 : 0); in duk_is_strict_call()
20725 duk_activation *act; in duk_get_current_magic() local
20730 act = thr->callstack_curr; in duk_get_current_magic()
20731 if (act) { in duk_get_current_magic()
20732 func = DUK_ACT_GET_FUNC(act); in duk_get_current_magic()
20734 duk_tval *tv = &act->tv_func; in duk_get_current_magic()
22573 duk_activation *act; in duk_inspect_callstack_entry() local
22583 act = duk_hthread_get_activation_for_level(thr, level); in duk_inspect_callstack_entry()
22584 if (act == NULL) { in duk_inspect_callstack_entry()
22594 pc = duk_hthread_get_act_prev_pc(thr, act); in duk_inspect_callstack_entry()
22596 duk_push_tval(thr, &act->tv_func); in duk_inspect_callstack_entry()
28387 duk_activation *act; in duk_push_new_target() local
28407 act = thr->callstack_curr; in duk_push_new_target()
28409 if (act == NULL) { in duk_push_new_target()
28413 if (act->flags & DUK_ACT_FLAG_CONSTRUCT) { in duk_push_new_target()
28414 duk_push_tval(thr, &act->tv_func); in duk_push_new_target()
28416 } else if (act->flags & DUK_ACT_FLAG_DIRECT_EVAL) { in duk_push_new_target()
28417 act = act->parent; in duk_push_new_target()
28427 duk_activation *act; in duk_push_current_function() local
28431 act = thr->callstack_curr; in duk_push_current_function()
28432 if (act != NULL) { in duk_push_current_function()
28433 duk_push_tval(thr, &act->tv_func); in duk_push_current_function()
50508 DUK_LOCAL void duk__print_activation(duk__dprint_state *st, duk_activation *act) { argument
50515 if (!act) {
50523 (void *) act,
50524 (void *) act->func, (void *) act->parent, (void *) act->var_env,
50525 (void *) act->lex_env, (void *) act->cat, (void *) act->curr_pc,
50526 (long) act->bottom_byteoff, (long) act->retval_byteoff, (long) act->reserve_byteoff,
50527 (long) act->flags);
51800 duk_activation *act; local
51804 act = thr->callstack_curr;
51805 if (act == NULL) {
51816 pc = duk_hthread_get_act_curr_pc(thr, act);
51821 duk_push_tval(thr, &act->tv_func);
51828 duk_activation *act; local
51833 act = thr->callstack_curr;
51834 if (act == NULL) {
51840 duk_push_tval(thr, &act->tv_func);
51848 duk_debug_write_uint(thr, (duk_uint32_t) duk_hthread_get_act_curr_pc(thr, act));
51860 duk_activation *act; local
51885 act = thr->callstack_curr;
51886 if (act != NULL) {
51887 duk_push_tval(thr, &act->tv_func);
51890 pc = (duk_uint32_t) duk_hthread_get_act_prev_pc(thr, act);
52010 duk_activation *act; local
52014 act = duk_hthread_get_activation_for_level(thr, level);
52015 if (act == NULL) {
52018 return act;
52164 duk_activation *act; local
52171 act = duk__debug_read_level_get_activation(thr);
52172 if (act == NULL) {
52178 rc = duk_js_getvar_activation(thr, act, str, 0);
52193 duk_activation *act; local
52200 act = duk__debug_read_level_get_activation(thr);
52201 if (act == NULL) {
52212 duk_js_putvar_activation(thr, act, str, tv, 0);
52269 duk_activation *act; local
52274 act = duk__debug_read_level_get_activation(thr);
52275 if (act == NULL) {
52287 if (DUK_TVAL_IS_OBJECT(&act->tv_func)) {
52288 duk_hobject *h_func = DUK_TVAL_GET_OBJECT(&act->tv_func);
52298 duk_js_getvar_activation(thr, act, varname, 0 /*throw_flag*/);
52364 duk_activation *act; local
52367 act = duk_hthread_get_activation_for_level(thr, level);
52368 if (act != NULL) {
52369 fun = DUK_ACT_GET_FUNC(act);
52611 duk_activation *act; local
52643 act = duk_hthread_get_activation_for_level(thr, level);
52644 if (act == NULL) {
52647 fun = (duk_hcompfunc *) DUK_ACT_GET_FUNC(act);
53490 duk_activation *act; local
53502 act = thr->callstack_curr;
53509 if (act != NULL) {
53511 old_pc = act->curr_pc;
53512 fun = (duk_hcompfunc *) DUK_ACT_GET_FUNC(act);
53517 DUK_ASSERT(act->curr_pc == NULL ||
53520 act->curr_pc != NULL &&
53521 act->curr_pc > DUK_HCOMPFUNC_GET_CODE_BASE(thr->heap, fun)) {
53522 act->curr_pc--;
53547 if (act != NULL) {
53548 act->curr_pc = old_pc; /* restore PC */
53827 duk_activation *act; local
53854 act = thr->callstack_curr;
53862 DUK_ASSERT(act != NULL);
53863 act = act->parent;
53927 for (; depth-- > 0; act = act->parent) {
53933 DUK_ASSERT(act != NULL); /* depth check above, assumes book-keeping is correct */
53934 DUK_ASSERT_DISABLE(act->pc >= 0); /* unsigned */
53937 tv_src = &act->tv_func; /* object (function) or lightfunc */
53948 pc = (duk_uint32_t) duk_hthread_get_act_prev_pc(thr_callstack, act);
53951 d = ((duk_double_t) act->flags) * DUK_DOUBLE_2TO32 + (duk_double_t) pc;
54020 duk_activation *act; local
54027 for (act = thr_callstack->callstack_curr; depth-- > 0; act = act->parent) {
54031 DUK_ASSERT(act != NULL);
54032 func = DUK_ACT_GET_FUNC(act);
54041 …pc = duk_hthread_get_act_prev_pc(thr, act); /* thr argument only used for thr->heap, so specific …
54394 duk_activation *act; local
54400 for (act = thr->callstack_curr; act != NULL; act = act->parent) {
54401 for (cat = act->cat; cat != NULL; cat = cat->parent) {
54990 duk_activation *act; local
55000 for (act = t->callstack_curr; act != NULL;) {
55004 for (cat = act->cat; cat != NULL;) {
55012 act_next = act->parent;
55013 DUK_FREE(heap, (void *) act);
55014 act = act_next;
55094 duk_activation *act; local
55098 for (act = heap->activation_free; act != NULL;) {
55099 act_next = act->parent;
55100 DUK_FREE(heap, (void *) act);
55101 act = act_next;
56877 duk_activation *act; local
56888 for (act = t->callstack_curr; act != NULL; act = act->parent) {
56889 duk__mark_heaphdr(heap, (duk_heaphdr *) DUK_ACT_GET_FUNC(act));
56890 duk__mark_heaphdr(heap, (duk_heaphdr *) act->var_env);
56891 duk__mark_heaphdr(heap, (duk_heaphdr *) act->lex_env);
56893 duk__mark_heaphdr(heap, (duk_heaphdr *) act->prev_caller);
56896 for (cat = act->cat; cat != NULL; cat = cat->parent) {
59012 duk_activation *act; local
59023 for (act = t->callstack_curr; act != NULL; act = act->parent) {
59024 DUK_HOBJECT_DECREF_NORZ_ALLOWNULL(thr, (duk_hobject *) DUK_ACT_GET_FUNC(act));
59025 DUK_HOBJECT_DECREF_NORZ_ALLOWNULL(thr, (duk_hobject *) act->var_env);
59026 DUK_HOBJECT_DECREF_NORZ_ALLOWNULL(thr, (duk_hobject *) act->lex_env);
59028 DUK_HOBJECT_DECREF_NORZ_ALLOWNULL(thr, (duk_hobject *) act->prev_caller);
59031 for (cat = act->cat; cat != NULL; cat = cat->parent) {
69912 DUK_INTERNAL duk_uint_fast32_t duk_hthread_get_act_curr_pc(duk_hthread *thr, duk_activation *act) { argument
69916 DUK_ASSERT(act != NULL);
69920 if (act->func && DUK_HOBJECT_IS_COMPFUNC(act->func)) {
69921 bcode = DUK_HCOMPFUNC_GET_CODE_BASE(thr->heap, (duk_hcompfunc *) (act->func));
69922 return (duk_uint_fast32_t) (act->curr_pc - bcode);
69928 DUK_INTERNAL duk_uint_fast32_t duk_hthread_get_act_prev_pc(duk_hthread *thr, duk_activation *act) { argument
69933 DUK_ASSERT(act != NULL);
69936 if (act->func && DUK_HOBJECT_IS_COMPFUNC(act->func)) {
69937 bcode = DUK_HCOMPFUNC_GET_CODE_BASE(thr->heap, (duk_hcompfunc *) (act->func));
69938 ret = (duk_uint_fast32_t) (act->curr_pc - bcode);
69949 duk_activation *act; local
69957 act = thr->callstack_curr;
69958 DUK_ASSERT(act != NULL);
69959 act->curr_pc = *thr->ptr_curr_pc;
69964 duk_activation *act; local
69972 act = thr->callstack_curr;
69973 DUK_ASSERT(act != NULL);
69974 act->curr_pc = *thr->ptr_curr_pc;
69990 DUK_INTERNAL void duk_hthread_catcher_unwind_norz(duk_hthread *thr, duk_activation *act) { argument
69994 DUK_ASSERT(act != NULL);
69995 DUK_ASSERT(act->cat != NULL); /* caller must check */
69996 cat = act->cat;
70004 env = act->lex_env; /* current lex_env of the activation (created for catcher) */
70006 …act->lex_env = DUK_HOBJECT_GET_PROTOTYPE(thr->heap, env); /* prototype is lex_env before catcher …
70007 DUK_HOBJECT_INCREF(thr, act->lex_env);
70015 act->cat = cat->parent;
70020 DUK_INTERNAL void duk_hthread_catcher_unwind_nolexenv_norz(duk_hthread *thr, duk_activation *act) { argument
70024 DUK_ASSERT(act != NULL);
70025 DUK_ASSERT(act->cat != NULL); /* caller must check */
70026 cat = act->cat;
70033 act->cat = cat->parent;
70087 duk_activation *act; local
70089 act = (duk_activation *) DUK_ALLOC_CHECKED(thr, sizeof(duk_activation));
70090 DUK_ASSERT(act != NULL);
70091 return act;
70096 duk_activation *act; local
70100 act = thr->heap->activation_free;
70101 if (DUK_LIKELY(act != NULL)) {
70102 thr->heap->activation_free = act->parent;
70103 return act;
70115 DUK_INTERNAL void duk_hthread_activation_free(duk_hthread *thr, duk_activation *act) { argument
70117 DUK_ASSERT(act != NULL);
70121 act->parent = thr->heap->activation_free;
70122 thr->heap->activation_free = act;
70124 DUK_FREE_CHECKED(thr, (void *) act);
70135 duk_activation *act; local
70142 act = thr->callstack_curr;
70143 DUK_ASSERT(act != NULL);
70155 func = DUK_ACT_GET_FUNC(act);
70170 if (act->prev_caller) {
70174 DUK_TVAL_SET_OBJECT(tv_caller, act->prev_caller);
70175 act->prev_caller = NULL;
70178 DUK_ASSERT(act->prev_caller == NULL);
70182 h_tmp = act->prev_caller;
70184 act->prev_caller = NULL;
70188 DUK_ASSERT(act->prev_caller == NULL);
70221 while (act->cat != NULL) {
70222 duk_hthread_catcher_unwind_norz(thr, act);
70235 func = DUK_ACT_GET_FUNC(act);
70246 DUK_ASSERT(act->lex_env == act->var_env);
70254 if (act->var_env != NULL) {
70256 (void *) act->var_env, (duk_heaphdr *) act->var_env));
70257 duk_js_close_environment_record(thr, act->var_env);
70266 if (act->flags & DUK_ACT_FLAG_PREVENT_YIELD) {
70280 DUK_HOBJECT_DECREF_NORZ_ALLOWNULL(thr, act->var_env);
70281 DUK_HOBJECT_DECREF_NORZ_ALLOWNULL(thr, act->lex_env);
70282 tmp = DUK_ACT_GET_FUNC(act);
70292 duk_activation *act; local
70298 act = thr->callstack_curr;
70299 thr->callstack_curr = act->parent;
70309 duk_hthread_activation_free(thr, act);
70326 duk_activation *act; local
70331 act = thr->callstack_curr;
70333 if (act == NULL) {
70334 return act;
70337 return act;
70340 act = act->parent;
71498 duk_activation *act) { argument
71505 DUK_ASSERT(act != NULL);
71516 act->lex_env = h_lex;
71517 act->var_env = h_var;
71990 duk_activation *act; local
72005 act = thr->callstack_curr;
72006 DUK_ASSERT(act != NULL);
72007 *out_act = act;
72013 if (act->flags & DUK_ACT_FLAG_PREVENT_YIELD) {
72024 flags1 = (duk_small_uint_t) ((act->flags & DUK_ACT_FLAG_CONSTRUCT) ? 1 : 0)
72026 | (duk_small_uint_t) ((act->flags & DUK_ACT_FLAG_CONSTRUCT_PROXY) ? 2 : 0)
72038 DUK_ASSERT(((act->flags & DUK_ACT_FLAG_CONSTRUCT) && (call_flags & DUK_CALL_FLAG_CONSTRUCT)) ||
72039 (!(act->flags & DUK_ACT_FLAG_CONSTRUCT) && !(call_flags & DUK_CALL_FLAG_CONSTRUCT)));
72040 …DUK_ASSERT(((act->flags & DUK_ACT_FLAG_CONSTRUCT_PROXY) && (call_flags & DUK_CALL_FLAG_CONSTRUCT_P…
72041 … (!(act->flags & DUK_ACT_FLAG_CONSTRUCT_PROXY) && !(call_flags & DUK_CALL_FLAG_CONSTRUCT_PROXY)));
72077 DUK_ASSERT((act->flags & DUK_ACT_FLAG_PREVENT_YIELD) == 0);
72086 if (act == thr->heap->dbg_pause_act) {
72101 DUK_ASSERT(act == thr->callstack_curr);
72111 act->cat = NULL;
72112 act->var_env = NULL;
72113 act->lex_env = NULL;
72116 act->func = func; /* don't want an intermediate exposed state with func == NULL */
72118 act->prev_caller = NULL;
72121 act->curr_pc = DUK_HCOMPFUNC_GET_CODE_BASE(thr->heap, (duk_hcompfunc *) func);
72123 act->prev_line = 0;
72125 DUK_TVAL_SET_OBJECT(&act->tv_func, func); /* borrowed, no refcount */
72128 act->flags = DUK_ACT_FLAG_TAILCALLED;
72130 act->flags |= DUK_ACT_FLAG_STRICT;
72133 act->flags |= DUK_ACT_FLAG_CONSTRUCT;
72137 act->flags |= DUK_ACT_FLAG_CONSTRUCT_PROXY;
72141 DUK_ASSERT(DUK_ACT_GET_FUNC(act) == func); /* already updated */
72142 DUK_ASSERT(act->var_env == NULL);
72143 DUK_ASSERT(act->lex_env == NULL);
72144 act->bottom_byteoff = entry_valstack_bottom_byteoff; /* tail call -> reuse current "frame" */
72147 act->retval_byteoff = 0;
72153 act->reserve_byteoff = 0;
72213 duk_activation *act; local
72225 act = thr->callstack_curr;
72226 if (act != NULL) {
72237 act->retval_byteoff = entry_valstack_bottom_byteoff + (duk_size_t) idx_func * sizeof(duk_tval);
72240 new_act->parent = act;
72243 act = new_act;
72244 *out_act = act;
72249 act->cat = NULL;
72251 act->flags = 0;
72253 act->flags |= DUK_ACT_FLAG_CONSTRUCT;
72257 act->flags |= DUK_ACT_FLAG_CONSTRUCT_PROXY;
72261 act->flags |= DUK_ACT_FLAG_DIRECT_EVAL;
72265 act->func = func; /* NULL for lightfunc */
72267 DUK_TVAL_SET_OBJECT(&act->tv_func, func); /* borrowed, no refcount */
72269 act->flags |= DUK_ACT_FLAG_STRICT;
72298 act->flags |= DUK_ACT_FLAG_STRICT;
72302 DUK_TVAL_SET_TVAL(&act->tv_func, tv_func); /* borrowed, no refcount */
72318 act->var_env = NULL;
72319 act->lex_env = NULL;
72321 act->prev_caller = NULL;
72323 act->curr_pc = NULL;
72325 act->prev_line = 0;
72327 …act->bottom_byteoff = entry_valstack_bottom_byteoff + sizeof(duk_tval) * ((duk_size_t) idx_func + …
72329 …act->retval_byteoff = 0; /* topmost activation retval_byteoff is considered garbage, no need to …
72335 act->reserve_byteoff = 0; /* filled in by caller */
72354 DUK_LOCAL void duk__call_env_setup(duk_hthread *thr, duk_hobject *func, duk_activation *act, duk_id… argument
72367 DUK_ASSERT(act->lex_env == NULL);
72368 DUK_ASSERT(act->var_env == NULL);
72375 env = duk_create_activation_environment_record(thr, func, act->bottom_byteoff);
72385 act->lex_env = env;
72386 act->var_env = env;
72399 duk__handle_oldenv_for_call(thr, func, act);
72401 DUK_ASSERT(act->lex_env != NULL);
72402 DUK_ASSERT(act->var_env != NULL);
72406 DUK_ASSERT(act->lex_env == NULL);
72407 DUK_ASSERT(act->var_env == NULL);
72486 duk_activation *act; local
72628 act = NULL;
72645 &act);
72665 &act);
72670 DUK_ASSERT(act != NULL);
72687 duk__call_env_setup(thr, func, act, idx_args);
72700 …act->reserve_byteoff = (duk_size_t) ((duk_uint8_t *) thr->valstack_end - (duk_uint8_t *) thr->vals…
72732 act->curr_pc = DUK_HCOMPFUNC_GET_CODE_BASE(thr->heap, (duk_hcompfunc *) func);
72737 DUK_ASSERT((act->flags & DUK_ACT_FLAG_PREVENT_YIELD) == 0);
72746 DUK_ASSERT((act->flags & DUK_ACT_FLAG_PREVENT_YIELD) == 0);
72747 act->flags |= DUK_ACT_FLAG_PREVENT_YIELD;
72780 DUK_ASSERT((act->flags & DUK_ACT_FLAG_PREVENT_YIELD) == 0);
72781 act->flags |= DUK_ACT_FLAG_PREVENT_YIELD;
72794 tv_func = &act->tv_func;
82252 duk_activation *act; local
82276 act = thr->callstack_curr;
82277 (void) duk_js_getvar_activation(thr, act, name, 1 /*throw*/); /* -> [ ... val this ] */
82295 DUK_ASSERT(act == thr->callstack_curr);
82296 duk_js_putvar_activation(thr, act, name, DUK_GET_TVAL_NEGIDX(thr, -1), is_strict);
82301 DUK_ASSERT(act == thr->callstack_curr);
82302 duk_js_putvar_activation(thr, act, name, DUK_GET_TVAL_NEGIDX(thr, -1), is_strict);
82337 duk_activation *act; local
82342 act = thr->callstack_curr;
82343 DUK_ASSERT(act != NULL);
82344 DUK_ASSERT(DUK_ACT_GET_FUNC(act) != NULL);
82345 DUK_ASSERT(DUK_HOBJECT_IS_COMPFUNC(DUK_ACT_GET_FUNC(act)));
82352 h_func = (duk_hcompfunc *) DUK_ACT_GET_FUNC(act);
82354 thr->valstack_bottom = (duk_tval *) (void *) ((duk_uint8_t *) thr->valstack + act->bottom_byteoff);
82355 DUK_ASSERT(act->retval_byteoff >= act->bottom_byteoff);
82356 …clamp_top = (duk_idx_t) ((act->retval_byteoff - act->bottom_byteoff + sizeof(duk_tval)) / sizeof(d…
82359 …DUK_ASSERT((duk_uint8_t *) thr->valstack_end >= (duk_uint8_t *) thr->valstack + act->reserve_byteo…
82360 thr->valstack_end = (duk_tval *) (void *) ((duk_uint8_t *) thr->valstack + act->reserve_byteoff);
82368 DUK_LOCAL void duk__reconfig_valstack_ecma_catcher(duk_hthread *thr, duk_activation *act) { argument
82375 DUK_ASSERT(act != NULL);
82376 DUK_ASSERT(DUK_ACT_GET_FUNC(act) != NULL);
82377 DUK_ASSERT(DUK_HOBJECT_IS_COMPFUNC(DUK_ACT_GET_FUNC(act)));
82378 cat = act->cat;
82381 h_func = (duk_hcompfunc *) DUK_ACT_GET_FUNC(act);
82383 thr->valstack_bottom = (duk_tval *) (void *) ((duk_uint8_t *) thr->valstack + act->bottom_byteoff);
82389 …DUK_ASSERT((duk_uint8_t *) thr->valstack_end >= (duk_uint8_t *) thr->valstack + act->reserve_byteo…
82390 thr->valstack_end = (duk_tval *) (void *) ((duk_uint8_t *) thr->valstack + act->reserve_byteoff);
82415 duk_activation *act; local
82421 act = thr->callstack_curr;
82422 DUK_ASSERT(act != NULL);
82423 DUK_DD(DUK_DDPRINT("handle catch, part 1; act=%!A, cat=%!C", act, act->cat));
82425 DUK_ASSERT(act->cat != NULL);
82426 DUK_ASSERT(DUK_CAT_GET_TYPE(act->cat) == DUK_CAT_TYPE_TCF);
82434 duk__set_catcher_regs_norz(thr, act->cat, tv_val_unstable, lj_type);
82442 DUK_ASSERT(act == thr->callstack_curr);
82443 DUK_ASSERT(act != NULL);
82444 duk__reconfig_valstack_ecma_catcher(thr, act);
82447 DUK_ASSERT(act == thr->callstack_curr);
82448 DUK_ASSERT(act != NULL);
82449 cat = act->cat;
82452 act->curr_pc = cat->pc_base + 0; /* +0 = catch */
82473 duk_activation *act; local
82479 act = thr->callstack_curr;
82480 DUK_ASSERT(act != NULL);
82481 DUK_DD(DUK_DDPRINT("handle catch, part 2; act=%!A, cat=%!C", act, act->cat));
82483 DUK_ASSERT(act->cat != NULL);
82484 cat = act->cat;
82500 if (act->lex_env == NULL) {
82501 DUK_ASSERT(act->var_env == NULL);
82504 duk_js_init_activation_environment_records_delayed(thr, act);
82505 DUK_ASSERT(act == thr->callstack_curr);
82506 DUK_ASSERT(act != NULL);
82508 DUK_ASSERT(act->lex_env != NULL);
82509 DUK_ASSERT(act->var_env != NULL);
82510 DUK_ASSERT(DUK_ACT_GET_FUNC(act) != NULL);
82536 DUK_ASSERT(act == thr->callstack_curr);
82537 DUK_ASSERT(act != NULL);
82538 DUK_HOBJECT_SET_PROTOTYPE(thr->heap, (duk_hobject *) new_env, act->lex_env);
82539 act->lex_env = (duk_hobject *) new_env;
82553 duk_activation *act; local
82559 act = thr->callstack_curr;
82560 DUK_ASSERT(act != NULL);
82561 DUK_ASSERT(act->cat != NULL);
82562 DUK_ASSERT(DUK_CAT_GET_TYPE(act->cat) == DUK_CAT_TYPE_TCF);
82564 duk__set_catcher_regs_norz(thr, act->cat, tv_val_unstable, lj_type);
82572 DUK_ASSERT(act == thr->callstack_curr);
82573 DUK_ASSERT(act != NULL);
82574 duk__reconfig_valstack_ecma_catcher(thr, act);
82577 DUK_ASSERT(act == thr->callstack_curr);
82578 DUK_ASSERT(act != NULL);
82579 cat = act->cat;
82582 act->curr_pc = cat->pc_base + 1; /* +1 = finally */
82588 duk_activation *act; local
82594 act = thr->callstack_curr;
82595 DUK_ASSERT(act != NULL);
82596 DUK_ASSERT(DUK_ACT_GET_FUNC(act) != NULL);
82597 DUK_ASSERT(DUK_HOBJECT_HAS_COMPFUNC(DUK_ACT_GET_FUNC(act)));
82600 cat = act->cat;
82604 act->curr_pc = cat->pc_base + (lj_type == DUK_LJ_TYPE_CONTINUE ? 1 : 0);
82609 DUK_ASSERT(act == thr->callstack_curr);
82610 DUK_ASSERT(act != NULL);
82612 (duk_size_t) ((duk_hcompfunc *) DUK_ACT_GET_FUNC(act))->nregs);
82917 duk_activation *act; local
82922 act = thr->callstack_curr;
82923 if (act == NULL) {
82928 cat = act->cat;
82937 (void *) thr, (void *) act, (void *) act->cat));
82961 duk_hthread_catcher_unwind_norz(thr, act);
82964 if (act == entry_act) {
83052 duk_activation *act; local
83066 act = thr->callstack_curr;
83067 DUK_ASSERT(act != NULL);
83070 cat = act->cat;
83100 duk_hthread_catcher_unwind_norz(thr, act);
83119 duk_activation *act; local
83154 act = thr->callstack_curr;
83155 DUK_ASSERT(act != NULL);
83158 cat = act->cat;
83172 duk_hthread_catcher_unwind_norz(thr, act);
83175 if (act == entry_act) {
83315 duk_activation *act; local
83324 act = thr->callstack_curr;
83325 DUK_ASSERT(act != NULL);
83345 if (act->flags & DUK_ACT_FLAG_BREAKPOINT_ACTIVE ||
83349 if (act->prev_line != line) {
83379 if (act->prev_line != bp->line && line == bp->line) {
83389 act->prev_line = (duk_uint32_t) line;
83472 DUK_ASSERT(act == thr->callstack_curr);
83473 DUK_ASSERT(act != NULL);
83474 if (act->flags & DUK_ACT_FLAG_BREAKPOINT_ACTIVE ||
83504 duk_activation *act; local
83551 act = thr->callstack_curr;
83552 DUK_ASSERT(act != NULL);
83554 fun = (duk_hcompfunc *) DUK_ACT_GET_FUNC(act);
83589 DUK_ASSERT(act == thr->callstack_curr);
83627 DUK_LOCAL void duk__executor_recheck_debugger(duk_hthread *thr, duk_activation *act, duk_hcompfunc … argument
83635 DUK_ASSERT(act != NULL);
83640 act->flags &= ~DUK_ACT_FLAG_BREAKPOINT_ACTIVE;
83712 act->flags |= DUK_ACT_FLAG_BREAKPOINT_ACTIVE;
83734 if ((act->flags & DUK_ACT_FLAG_BREAKPOINT_ACTIVE) ||
83789 duk_activation *act; local
83866 act = thr->callstack_curr;
83867 DUK_ASSERT(act != NULL);
83868 cat->parent = act->cat;
83869 act->cat = cat;
83894 DUK_ASSERT(act == thr->callstack_curr);
83895 DUK_ASSERT(act != NULL);
83896 if (act->lex_env == NULL) {
83898 DUK_ASSERT(act->var_env == NULL);
83900 duk_js_init_activation_environment_records_delayed(thr, act);
83901 DUK_ASSERT(act == thr->callstack_curr);
83902 DUK_UNREF(act); /* 'act' is no longer accessed, scanbuild fix */
83904 DUK_ASSERT(act->lex_env != NULL);
83905 DUK_ASSERT(act->var_env != NULL);
83926 DUK_ASSERT(act == thr->callstack_curr);
83928 DUK_ASSERT(act->lex_env != NULL);
83929 DUK_HOBJECT_SET_PROTOTYPE(thr->heap, (duk_hobject *) env, act->lex_env);
83930 act->lex_env = (duk_hobject *) env; /* Now reachable. */
83939 cat = act->cat; /* XXX: better to relookup? not mandatory because 'cat' is stable */
83954 duk_activation *act; local
83962 act = thr->callstack_curr;
83963 DUK_ASSERT(act != NULL);
83964 cat = act->cat;
83966 DUK_ASSERT(DUK_CAT_GET_TYPE(act->cat) == DUK_CAT_TYPE_TCF);
83990 duk_hthread_catcher_unwind_norz(thr, act); /* lexenv may be set for 'with' binding */
83998 duk_activation *act; local
84006 act = thr->callstack_curr;
84007 DUK_ASSERT(act != NULL);
84008 cat = act->cat;
84017 DUK_ASSERT(act->lex_env != NULL);
84021 prev_env = act->lex_env;
84023 act->lex_env = DUK_HOBJECT_GET_PROTOTYPE(thr->heap, prev_env);
84025 DUK_HOBJECT_INCREF(thr, act->lex_env);
84028 DUK_ASSERT(act == thr->callstack_curr);
84029 DUK_ASSERT(act != NULL);
84051 duk_hthread_catcher_unwind_norz(thr, act);
84059 duk_activation *act; local
84067 act = thr->callstack_curr;
84068 DUK_ASSERT(act != NULL);
84096 duk_hthread_catcher_unwind_norz(thr, act);
84694 duk_activation *act; local
84702 act = thr->callstack_curr;
84703 DUK_ASSERT(act != NULL);
84704 fun = (duk_hcompfunc *) DUK_ACT_GET_FUNC(act);
84712 duk__executor_recheck_debugger(thr, act, fun);
84713 DUK_ASSERT(act == thr->callstack_curr);
84714 DUK_ASSERT(act != NULL);
84723 curr_pc = act->curr_pc;
84766 duk_activation *act; local
84768 act = thr->callstack_curr;
84769 DUK_ASSERT(act != NULL);
84770 act->curr_pc = (duk_instr_t *) curr_pc;
84802 duk_activation *act; local
84803 act = thr->callstack_curr;
84806 DUK_UNREF(act); /* if debugging disabled */
85083 duk_activation *act; local
85095 act = thr->callstack_curr;
85096 if (duk_js_getvar_activation(thr, act, name, 0 /*throw*/)) {
85847 duk_activation *act; local
85878 act = thr->callstack_curr;
85879 if (duk_js_declvar_activation(thr, act, name, tv1, prop_flags, is_func_decl)) {
85883 duk_js_putvar_activation(thr, act, name, tv1, DUK__STRICT());
85928 duk_activation *act; local
85941 act = thr->callstack_curr;
85942 (void) duk_js_getvar_activation(thr, act, name, 1 /*throw*/); /* -> [... val this] */
85953 duk_activation *act; local
85968 act = thr->callstack_curr;
85969 fun_act = (duk_hcompfunc *) DUK_ACT_GET_FUNC(act);
85977 if (act->lex_env == NULL) {
85978 DUK_ASSERT(act->var_env == NULL);
85979 duk_js_init_activation_environment_records_delayed(thr, act);
85980 act = thr->callstack_curr;
85982 DUK_ASSERT(act->lex_env != NULL);
85983 DUK_ASSERT(act->var_env != NULL);
85991 act->var_env,
85992 act->lex_env,
85998 duk_activation *act; local
86006 act = thr->callstack_curr;
86007 DUK_ASSERT(act != NULL);
86008 (void) duk_js_getvar_activation(thr, act, name, 1 /*throw*/); /* -> [... val this] */
86014 duk_activation *act; local
86028 act = thr->callstack_curr;
86029 duk_js_putvar_activation(thr, act, name, tv1, DUK__STRICT());
86034 duk_activation *act; local
86043 act = thr->callstack_curr;
86044 rc = duk_js_delvar_activation(thr, act, name);
86136 duk_activation *act; local
86150 act = thr->callstack_curr;
86151 DUK_ASSERT(act != NULL);
86152 cat->parent = act->cat;
86153 act->cat = cat;
86165 duk_activation *act; local
86173 act = thr->callstack_curr;
86174 DUK_ASSERT(act->cat != NULL);
86175 DUK_ASSERT(DUK_CAT_GET_TYPE(act->cat) == DUK_CAT_TYPE_LABEL);
86176 DUK_ASSERT((duk_uint_fast_t) DUK_CAT_GET_LABEL(act->cat) == bc);
86177 duk_hthread_catcher_unwind_nolexenv_norz(thr, act);
88896 duk_activation *act) { argument
88901 func = DUK_ACT_GET_FUNC(act);
88910 DUK_ASSERT(act->lex_env == NULL);
88911 DUK_ASSERT(act->var_env == NULL);
88915 env = duk_create_activation_environment_record(thr, func, act->bottom_byteoff);
88930 act->lex_env = env;
88931 act->var_env = env;
89124 duk_activation *act, argument
89133 DUK_ASSERT(act != NULL);
89136 func = DUK_ACT_GET_FUNC(act);
89159 tv = (duk_tval *) (void *) ((duk_uint8_t *) thr->valstack + act->bottom_byteoff);
89174 duk_activation *act, argument
89181 DUK_ASSERT(env != NULL || act != NULL);
89204 if (env == NULL && act != NULL) {
89215 if (duk__getid_activation_regs(thr, name, act, out)) {
89248 func = DUK_ACT_GET_FUNC(act);
89487 duk_activation *act, argument
89497 (void *) thr, (void *) env, (void *) act,
89510 if (duk__get_identifier_reference(thr, env, name, act, parents, &ref)) {
89558 duk_activation *act, argument
89561 DUK_ASSERT(act != NULL);
89562 return duk__getvar_helper(thr, act->lex_env, act, name, throw_flag);
89583 duk_activation *act, argument
89596 (void *) thr, (void *) env, (void *) act,
89629 if (duk__get_identifier_reference(thr, env, name, act, parents, &ref)) {
89691 duk_activation *act, argument
89695 DUK_ASSERT(act != NULL);
89696 duk__putvar_helper(thr, act->lex_env, act, name, val, strict);
89721 duk_activation *act, argument
89728 (void *) thr, (void *) env, (void *) act,
89739 if (duk__get_identifier_reference(thr, env, name, act, parents, &ref)) {
89776 duk_activation *act, argument
89778 DUK_ASSERT(act != NULL);
89779 return duk__delvar_helper(thr, act->lex_env, act, name);
90062 duk_activation *act, argument
90070 DUK_ASSERT(act != NULL);
90084 if (!act->var_env) {
90085 DUK_ASSERT(act->lex_env == NULL);
90086 duk_js_init_activation_environment_records_delayed(thr, act);
90089 DUK_ASSERT(act->lex_env != NULL);
90090 DUK_ASSERT(act->var_env != NULL);
90092 env = act->var_env;