Home
last modified time | relevance | path

Searched refs:valstack (Results 1 – 25 of 36) sorted by relevance

12

/civetweb-2.7.6/src/third_party/duktape-1.8.0/src-separate/
Dduk_hthread_alloc.c19 DUK_ASSERT(thr->valstack == NULL); in duk_hthread_init_stacks()
28 thr->valstack = (duk_tval *) DUK_ALLOC(heap, alloc_size); in duk_hthread_init_stacks()
29 if (!thr->valstack) { in duk_hthread_init_stacks()
32 DUK_MEMZERO(thr->valstack, alloc_size); in duk_hthread_init_stacks()
33 thr->valstack_end = thr->valstack + DUK_VALSTACK_INITIAL_SIZE; in duk_hthread_init_stacks()
37 thr->valstack_bottom = thr->valstack; in duk_hthread_init_stacks()
38 thr->valstack_top = thr->valstack; in duk_hthread_init_stacks()
41 DUK_TVAL_SET_UNDEFINED(&thr->valstack[i]); in duk_hthread_init_stacks()
67 DUK_FREE(heap, thr->valstack); in duk_hthread_init_stacks()
71 thr->valstack = NULL; in duk_hthread_init_stacks()
[all …]
Dduk_js_call.c794 vs_min_size = (thr->valstack_bottom - thr->valstack) + /* bottom of current func */ in duk__adjust_valstack_and_top()
819 if (vs_min_size < (duk_size_t) (thr->valstack_top - thr->valstack)) { in duk__adjust_valstack_and_top()
996 DUK_ASSERT(thr->valstack != NULL);
1007 entry_valstack_bottom_index = (duk_size_t) (thr->valstack_bottom - thr->valstack);
1009 entry_valstack_end = (duk_size_t) (thr->valstack_end - thr->valstack);
1011 DUK_ASSERT((duk_size_t) (thr->valstack_end - thr->valstack) == thr->valstack_size);
1188 DUK_ASSERT(thr->valstack != NULL);
1199 entry_valstack_bottom_index = (duk_size_t) (thr->valstack_bottom - thr->valstack);
1201 entry_valstack_end = (duk_size_t) (thr->valstack_end - thr->valstack);
1203 DUK_ASSERT((duk_size_t) (thr->valstack_end - thr->valstack) == thr->valstack_size);
[all …]
Dduk_hthread.h167 …DUK_ASSERT((duk_size_t) (((duk_hthread *) (ctx))->valstack_end - ((duk_hthread *) (ctx))->valstack
176 DUK_ASSERT(((duk_hthread *) (ctx))->valstack != NULL); \
177 DUK_ASSERT(((duk_hthread *) (ctx))->valstack_end >= ((duk_hthread *) (ctx))->valstack); \
178 DUK_ASSERT(((duk_hthread *) (ctx))->valstack_top >= ((duk_hthread *) (ctx))->valstack); \
290 duk_tval *valstack; /* start of valstack allocation */ member
Dduk_js_executor.c592 thr->valstack_bottom = thr->valstack + act->idx_bottom; in duk__reconfig_valstack_ecma_return()
599 … (thr->valstack_bottom - thr->valstack) + /* bottom of current func */ in duk__reconfig_valstack_ecma_return()
625 thr->valstack_bottom = thr->valstack + act->idx_bottom; in duk__reconfig_valstack_ecma_catcher()
633 … (thr->valstack_bottom - thr->valstack) + /* bottom of current func */ in duk__reconfig_valstack_ecma_catcher()
650 tv1 = thr->valstack + thr->catchstack[cat_idx].idx_base; in duk__set_catcher_regs()
654 tv1 = thr->valstack + thr->catchstack[cat_idx].idx_base + 1; in duk__set_catcher_regs()
739 duk_push_tval(ctx, thr->valstack + thr->catchstack[cat_idx].idx_base); in duk__handle_catch()
820 …tv1 = resumer->valstack + resumer->callstack[act_idx].idx_retval; /* return value from Duktape.Th… in duk__handle_yield()
915 (resumee->valstack_top == resumee->valstack + 1 && in duk__handle_longjmp()
949 …tv = resumee->valstack + resumee->callstack[act_idx].idx_retval; /* return value from Duktape.Thr… in duk__handle_longjmp()
[all …]
Dduk_api_stack.c503 DUK_ASSERT(thr->valstack_bottom >= thr->valstack); in duk__resize_valstack()
506 …DUK_ASSERT((duk_size_t) (thr->valstack_top - thr->valstack) <= new_size); /* can't resize below '… in duk__resize_valstack()
511 old_bottom_offset = (((duk_uint8_t *) thr->valstack_bottom) - ((duk_uint8_t *) thr->valstack)); in duk__resize_valstack()
512 old_top_offset = (((duk_uint8_t *) thr->valstack_top) - ((duk_uint8_t *) thr->valstack)); in duk__resize_valstack()
514 …old_end_offset_pre = (((duk_uint8_t *) thr->valstack_end) - ((duk_uint8_t *) thr->valstack)); /* … in duk__resize_valstack()
515 old_valstack_pre = thr->valstack; in duk__resize_valstack()
554 …DUK_ASSERT((((duk_uint8_t *) thr->valstack_bottom) - ((duk_uint8_t *) thr->valstack)) == old_botto… in duk__resize_valstack()
555 …DUK_ASSERT((((duk_uint8_t *) thr->valstack_top) - ((duk_uint8_t *) thr->valstack)) == old_top_offs… in duk__resize_valstack()
558 …old_end_offset_post = (((duk_uint8_t *) thr->valstack_end) - ((duk_uint8_t *) thr->valstack)); /*… in duk__resize_valstack()
560 old_valstack_post = thr->valstack; in duk__resize_valstack()
[all …]
Dduk_js_var.c691 DUK_ASSERT(thr->valstack + regbase + regnum >= thr->valstack); in duk_js_close_environment_record()
692 DUK_ASSERT(thr->valstack + regbase + regnum < thr->valstack_top); in duk_js_close_environment_record()
696 duk_push_tval(ctx, thr->valstack + regbase + regnum); in duk_js_close_environment_record()
823 tv = env_thr->valstack + idx; in duk__getid_open_decl_env_regs()
824 DUK_ASSERT(tv >= env_thr->valstack && tv < env_thr->valstack_end); /* XXX: more accurate? */ in duk__getid_open_decl_env_regs()
881 tv = thr->valstack + idx; in duk__getid_activation_regs()
Dduk_bi_thread.c113 (thr_resume->valstack_top - thr_resume->valstack != 1)) { in duk_bi_thread_resume()
117 DUK_ASSERT(tv >= thr_resume->valstack && tv < thr_resume->valstack_top); in duk_bi_thread_resume()
Dduk_debug_vsnprintf.c557 DUK__COMMA(); duk_fb_sprintf(fb, "__valstack:%p", (void *) t->valstack); in duk__print_hobject()
558 …ntf(fb, "__valstack_end:%p/%ld", (void *) t->valstack_end, (long) (t->valstack_end - t->valstack)); in duk__print_hobject()
559 …__valstack_bottom:%p/%ld", (void *) t->valstack_bottom, (long) (t->valstack_bottom - t->valstack)); in duk__print_hobject()
560 …ntf(fb, "__valstack_top:%p/%ld", (void *) t->valstack_top, (long) (t->valstack_top - t->valstack)); in duk__print_hobject()
Dduk_error_misc.c128 DUK_ASSERT(thr->valstack_top > thr->valstack); in duk_err_setup_heap_ljstate()
Dduk_hthread_misc.c16 thr->valstack_bottom = thr->valstack; in duk_hthread_terminate()
Dduk_hobject_alloc.c153 res->valstack = NULL; in duk_hthread_alloc()
/civetweb-2.7.6/src/third_party/duktape-1.5.2/src-separate/
Dduk_hthread_alloc.c19 DUK_ASSERT(thr->valstack == NULL); in duk_hthread_init_stacks()
28 thr->valstack = (duk_tval *) DUK_ALLOC(heap, alloc_size); in duk_hthread_init_stacks()
29 if (!thr->valstack) { in duk_hthread_init_stacks()
32 DUK_MEMZERO(thr->valstack, alloc_size); in duk_hthread_init_stacks()
33 thr->valstack_end = thr->valstack + DUK_VALSTACK_INITIAL_SIZE; in duk_hthread_init_stacks()
37 thr->valstack_bottom = thr->valstack; in duk_hthread_init_stacks()
38 thr->valstack_top = thr->valstack; in duk_hthread_init_stacks()
41 DUK_TVAL_SET_UNDEFINED(&thr->valstack[i]); in duk_hthread_init_stacks()
67 DUK_FREE(heap, thr->valstack); in duk_hthread_init_stacks()
71 thr->valstack = NULL; in duk_hthread_init_stacks()
[all …]
Dduk_js_call.c792 vs_min_size = (thr->valstack_bottom - thr->valstack) + /* bottom of current func */ in duk__adjust_valstack_and_top()
817 if (vs_min_size < (duk_size_t) (thr->valstack_top - thr->valstack)) { in duk__adjust_valstack_and_top()
994 DUK_ASSERT(thr->valstack != NULL);
1005 entry_valstack_bottom_index = (duk_size_t) (thr->valstack_bottom - thr->valstack);
1007 entry_valstack_end = (duk_size_t) (thr->valstack_end - thr->valstack);
1009 DUK_ASSERT((duk_size_t) (thr->valstack_end - thr->valstack) == thr->valstack_size);
1186 DUK_ASSERT(thr->valstack != NULL);
1197 entry_valstack_bottom_index = (duk_size_t) (thr->valstack_bottom - thr->valstack);
1199 entry_valstack_end = (duk_size_t) (thr->valstack_end - thr->valstack);
1201 DUK_ASSERT((duk_size_t) (thr->valstack_end - thr->valstack) == thr->valstack_size);
[all …]
Dduk_hthread.h167 …DUK_ASSERT((duk_size_t) (((duk_hthread *) (ctx))->valstack_end - ((duk_hthread *) (ctx))->valstack
176 DUK_ASSERT(((duk_hthread *) (ctx))->valstack != NULL); \
177 DUK_ASSERT(((duk_hthread *) (ctx))->valstack_end >= ((duk_hthread *) (ctx))->valstack); \
178 DUK_ASSERT(((duk_hthread *) (ctx))->valstack_top >= ((duk_hthread *) (ctx))->valstack); \
290 duk_tval *valstack; /* start of valstack allocation */ member
Dduk_js_executor.c592 thr->valstack_bottom = thr->valstack + act->idx_bottom; in duk__reconfig_valstack_ecma_return()
599 … (thr->valstack_bottom - thr->valstack) + /* bottom of current func */ in duk__reconfig_valstack_ecma_return()
625 thr->valstack_bottom = thr->valstack + act->idx_bottom; in duk__reconfig_valstack_ecma_catcher()
633 … (thr->valstack_bottom - thr->valstack) + /* bottom of current func */ in duk__reconfig_valstack_ecma_catcher()
650 tv1 = thr->valstack + thr->catchstack[cat_idx].idx_base; in duk__set_catcher_regs()
654 tv1 = thr->valstack + thr->catchstack[cat_idx].idx_base + 1; in duk__set_catcher_regs()
739 duk_push_tval(ctx, thr->valstack + thr->catchstack[cat_idx].idx_base); in duk__handle_catch()
820 …tv1 = resumer->valstack + resumer->callstack[act_idx].idx_retval; /* return value from Duktape.Th… in duk__handle_yield()
915 (resumee->valstack_top == resumee->valstack + 1 && in duk__handle_longjmp()
949 …tv = resumee->valstack + resumee->callstack[act_idx].idx_retval; /* return value from Duktape.Thr… in duk__handle_longjmp()
[all …]
Dduk_api_stack.c503 DUK_ASSERT(thr->valstack_bottom >= thr->valstack); in duk__resize_valstack()
506 …DUK_ASSERT((duk_size_t) (thr->valstack_top - thr->valstack) <= new_size); /* can't resize below '… in duk__resize_valstack()
511 old_bottom_offset = (((duk_uint8_t *) thr->valstack_bottom) - ((duk_uint8_t *) thr->valstack)); in duk__resize_valstack()
512 old_top_offset = (((duk_uint8_t *) thr->valstack_top) - ((duk_uint8_t *) thr->valstack)); in duk__resize_valstack()
514 …old_end_offset_pre = (((duk_uint8_t *) thr->valstack_end) - ((duk_uint8_t *) thr->valstack)); /* … in duk__resize_valstack()
515 old_valstack_pre = thr->valstack; in duk__resize_valstack()
554 …DUK_ASSERT((((duk_uint8_t *) thr->valstack_bottom) - ((duk_uint8_t *) thr->valstack)) == old_botto… in duk__resize_valstack()
555 …DUK_ASSERT((((duk_uint8_t *) thr->valstack_top) - ((duk_uint8_t *) thr->valstack)) == old_top_offs… in duk__resize_valstack()
558 …old_end_offset_post = (((duk_uint8_t *) thr->valstack_end) - ((duk_uint8_t *) thr->valstack)); /*… in duk__resize_valstack()
560 old_valstack_post = thr->valstack; in duk__resize_valstack()
[all …]
Dduk_js_var.c687 DUK_ASSERT(thr->valstack + regbase + regnum >= thr->valstack); in duk_js_close_environment_record()
688 DUK_ASSERT(thr->valstack + regbase + regnum < thr->valstack_top); in duk_js_close_environment_record()
692 duk_push_tval(ctx, thr->valstack + regbase + regnum); in duk_js_close_environment_record()
819 tv = env_thr->valstack + idx; in duk__getid_open_decl_env_regs()
820 DUK_ASSERT(tv >= env_thr->valstack && tv < env_thr->valstack_end); /* XXX: more accurate? */ in duk__getid_open_decl_env_regs()
877 tv = thr->valstack + idx; in duk__getid_activation_regs()
Dduk_bi_thread.c113 (thr_resume->valstack_top - thr_resume->valstack != 1)) { in duk_bi_thread_resume()
117 DUK_ASSERT(tv >= thr_resume->valstack && tv < thr_resume->valstack_top); in duk_bi_thread_resume()
Dduk_debug_vsnprintf.c557 DUK__COMMA(); duk_fb_sprintf(fb, "__valstack:%p", (void *) t->valstack); in duk__print_hobject()
558 …ntf(fb, "__valstack_end:%p/%ld", (void *) t->valstack_end, (long) (t->valstack_end - t->valstack)); in duk__print_hobject()
559 …__valstack_bottom:%p/%ld", (void *) t->valstack_bottom, (long) (t->valstack_bottom - t->valstack)); in duk__print_hobject()
560 …ntf(fb, "__valstack_top:%p/%ld", (void *) t->valstack_top, (long) (t->valstack_top - t->valstack)); in duk__print_hobject()
Dduk_error_misc.c128 DUK_ASSERT(thr->valstack_top > thr->valstack); in duk_err_setup_heap_ljstate()
Dduk_hthread_misc.c16 thr->valstack_bottom = thr->valstack; in duk_hthread_terminate()
Dduk_hobject_alloc.c153 res->valstack = NULL; in duk_hthread_alloc()
/civetweb-2.7.6/src/third_party/duktape-1.8.0/src/
Dduktape.c6138 …DUK_ASSERT((duk_size_t) (((duk_hthread *) (ctx))->valstack_end - ((duk_hthread *) (ctx))->valstack
6147 DUK_ASSERT(((duk_hthread *) (ctx))->valstack != NULL); \
6148 DUK_ASSERT(((duk_hthread *) (ctx))->valstack_end >= ((duk_hthread *) (ctx))->valstack); \
6149 DUK_ASSERT(((duk_hthread *) (ctx))->valstack_top >= ((duk_hthread *) (ctx))->valstack); \
6261 duk_tval *valstack; /* start of valstack allocation */ member
15524 DUK_ASSERT(thr->valstack_bottom >= thr->valstack); in duk__resize_valstack()
15527 …DUK_ASSERT((duk_size_t) (thr->valstack_top - thr->valstack) <= new_size); /* can't resize below '… in duk__resize_valstack()
15532 old_bottom_offset = (((duk_uint8_t *) thr->valstack_bottom) - ((duk_uint8_t *) thr->valstack)); in duk__resize_valstack()
15533 old_top_offset = (((duk_uint8_t *) thr->valstack_top) - ((duk_uint8_t *) thr->valstack)); in duk__resize_valstack()
15535 …old_end_offset_pre = (((duk_uint8_t *) thr->valstack_end) - ((duk_uint8_t *) thr->valstack)); /* … in duk__resize_valstack()
[all …]
/civetweb-2.7.6/src/third_party/duktape-1.8.0/src-noline/
Dduktape.c6116 …DUK_ASSERT((duk_size_t) (((duk_hthread *) (ctx))->valstack_end - ((duk_hthread *) (ctx))->valstack
6125 DUK_ASSERT(((duk_hthread *) (ctx))->valstack != NULL); \
6126 DUK_ASSERT(((duk_hthread *) (ctx))->valstack_end >= ((duk_hthread *) (ctx))->valstack); \
6127 DUK_ASSERT(((duk_hthread *) (ctx))->valstack_top >= ((duk_hthread *) (ctx))->valstack); \
6239 duk_tval *valstack; /* start of valstack allocation */ member
15469 DUK_ASSERT(thr->valstack_bottom >= thr->valstack); in duk__resize_valstack()
15472 …DUK_ASSERT((duk_size_t) (thr->valstack_top - thr->valstack) <= new_size); /* can't resize below '… in duk__resize_valstack()
15477 old_bottom_offset = (((duk_uint8_t *) thr->valstack_bottom) - ((duk_uint8_t *) thr->valstack)); in duk__resize_valstack()
15478 old_top_offset = (((duk_uint8_t *) thr->valstack_top) - ((duk_uint8_t *) thr->valstack)); in duk__resize_valstack()
15480 …old_end_offset_pre = (((duk_uint8_t *) thr->valstack_end) - ((duk_uint8_t *) thr->valstack)); /* … in duk__resize_valstack()
[all …]
/civetweb-2.7.6/src/third_party/duktape-1.5.2/src-noline/
Dduktape.c6111 …DUK_ASSERT((duk_size_t) (((duk_hthread *) (ctx))->valstack_end - ((duk_hthread *) (ctx))->valstack
6120 DUK_ASSERT(((duk_hthread *) (ctx))->valstack != NULL); \
6121 DUK_ASSERT(((duk_hthread *) (ctx))->valstack_end >= ((duk_hthread *) (ctx))->valstack); \
6122 DUK_ASSERT(((duk_hthread *) (ctx))->valstack_top >= ((duk_hthread *) (ctx))->valstack); \
6234 duk_tval *valstack; /* start of valstack allocation */ member
15393 DUK_ASSERT(thr->valstack_bottom >= thr->valstack); in duk__resize_valstack()
15396 …DUK_ASSERT((duk_size_t) (thr->valstack_top - thr->valstack) <= new_size); /* can't resize below '… in duk__resize_valstack()
15401 old_bottom_offset = (((duk_uint8_t *) thr->valstack_bottom) - ((duk_uint8_t *) thr->valstack)); in duk__resize_valstack()
15402 old_top_offset = (((duk_uint8_t *) thr->valstack_top) - ((duk_uint8_t *) thr->valstack)); in duk__resize_valstack()
15404 …old_end_offset_pre = (((duk_uint8_t *) thr->valstack_end) - ((duk_uint8_t *) thr->valstack)); /* … in duk__resize_valstack()
[all …]

12