/civetweb-2.7.6/src/third_party/duktape-1.8.0/src-separate/ |
D | duk_debugger.c | 26 #define DUK__SET_CONN_BROKEN(thr,reason) do { \ argument 28 duk__debug_do_detach1((thr)->heap, (reason)); \ 50 duk_hthread *thr; in duk__debug_do_detach1() local 52 thr = heap->heap_thread; in duk__debug_do_detach1() 53 DUK_ASSERT(thr != NULL); in duk__debug_do_detach1() 55 duk_debug_write_notify(thr, DUK_DBG_CMD_DETACHING); in duk__debug_do_detach1() 56 duk_debug_write_int(thr, reason); in duk__debug_do_detach1() 57 duk_debug_write_eom(thr); in duk__debug_do_detach1() 121 DUK_LOCAL void duk__debug_null_most_callbacks(duk_hthread *thr) { in duk__debug_null_most_callbacks() argument 123 heap = thr->heap; in duk__debug_null_most_callbacks() [all …]
|
D | duk_js_call.c | 28 DUK_LOCAL void duk__handle_call_inner(duk_hthread *thr, 32 DUK_LOCAL void duk__handle_call_error(duk_hthread *thr, 43 DUK_LOCAL void duk__handle_safe_call_inner(duk_hthread *thr, 50 DUK_LOCAL void duk__handle_safe_call_error(duk_hthread *thr, 57 DUK_LOCAL void duk__handle_safe_call_shared(duk_hthread *thr, 70 DUK_LOCAL void duk__interrupt_fixup(duk_hthread *thr, duk_hthread *entry_curr_thread) { in duk__interrupt_fixup() argument 81 DUK_ASSERT(thr != NULL); in duk__interrupt_fixup() 82 DUK_ASSERT(thr->heap != NULL); in duk__interrupt_fixup() 86 thr->interrupt_init = thr->interrupt_init - thr->interrupt_counter; in duk__interrupt_fixup() 87 thr->heap->inst_count_interrupt += thr->interrupt_init; in duk__interrupt_fixup() [all …]
|
D | duk_builtins.h | 13 #define DUK_HTHREAD_STRING_UC_UNDEFINED(thr) DUK_HTHREAD_GET_STRING((thr),… argument 16 #define DUK_HTHREAD_STRING_UC_NULL(thr) DUK_HTHREAD_GET_STRING((thr),… argument 19 #define DUK_HTHREAD_STRING_UC_ARGUMENTS(thr) DUK_HTHREAD_GET_STRING((thr),… argument 22 #define DUK_HTHREAD_STRING_UC_OBJECT(thr) DUK_HTHREAD_GET_STRING((thr),… argument 25 #define DUK_HTHREAD_STRING_UC_FUNCTION(thr) DUK_HTHREAD_GET_STRING((thr),… argument 28 #define DUK_HTHREAD_STRING_ARRAY(thr) DUK_HTHREAD_GET_STRING((thr),… argument 31 #define DUK_HTHREAD_STRING_UC_STRING(thr) DUK_HTHREAD_GET_STRING((thr),… argument 34 #define DUK_HTHREAD_STRING_UC_BOOLEAN(thr) DUK_HTHREAD_GET_STRING((thr),… argument 37 #define DUK_HTHREAD_STRING_UC_NUMBER(thr) DUK_HTHREAD_GET_STRING((thr),… argument 40 #define DUK_HTHREAD_STRING_DATE(thr) DUK_HTHREAD_GET_STRING((thr),… argument [all …]
|
D | duk_hthread_stacks.c | 26 DUK_INTERNAL void duk_hthread_callstack_grow(duk_hthread *thr) { in duk_hthread_callstack_grow() argument 31 DUK_ASSERT(thr != NULL); in duk_hthread_callstack_grow() 32 DUK_ASSERT_DISABLE(thr->callstack_top >= 0); /* avoid warning (unsigned) */ in duk_hthread_callstack_grow() 33 DUK_ASSERT(thr->callstack_size >= thr->callstack_top); in duk_hthread_callstack_grow() 35 if (thr->callstack_top < thr->callstack_size) { in duk_hthread_callstack_grow() 39 old_size = thr->callstack_size; in duk_hthread_callstack_grow() 43 if (new_size >= thr->callstack_max) { in duk_hthread_callstack_grow() 44 DUK_ERROR_RANGE(thr, DUK_STR_CALLSTACK_LIMIT); in duk_hthread_callstack_grow() 55 …ew_ptr = (duk_activation *) DUK_REALLOC_INDIRECT(thr->heap, duk_hthread_get_callstack_ptr, (void *… in duk_hthread_callstack_grow() 58 DUK_ERROR_ALLOC_DEFMSG(thr); in duk_hthread_callstack_grow() [all …]
|
D | duk_js_executor.c | 40 DUK_LOCAL void duk__vm_arith_add(duk_hthread *thr, duk_tval *tv_x, duk_tval *tv_y, duk_small_uint_f… in duk__vm_arith_add() argument 57 duk_context *ctx = (duk_context *) thr; in duk__vm_arith_add() 60 DUK_ASSERT(thr != NULL); in duk__vm_arith_add() 86 tv_z = thr->valstack_bottom + idx_z; in duk__vm_arith_add() 87 DUK_TVAL_SET_FASTINT_UPDREF(thr, tv_z, v3); /* side effects */ in duk__vm_arith_add() 103 tv_z = thr->valstack_bottom + idx_z; in duk__vm_arith_add() 104 DUK_TVAL_SET_NUMBER_UPDREF(thr, tv_z, du.d); /* side effects */ in duk__vm_arith_add() 147 DUK_LOCAL void duk__vm_arith_binary_op(duk_hthread *thr, duk_tval *tv_x, duk_tval *tv_y, duk_idx_t … in duk__vm_arith_binary_op() argument 156 duk_context *ctx = (duk_context *) thr; in duk__vm_arith_binary_op() 161 DUK_ASSERT(thr != NULL); in duk__vm_arith_binary_op() [all …]
|
D | duk_error.h | 55 #define DUK_ERROR(thr,err,msg) do { \ argument 58 …duk_err_handle_error((thr), DUK_FILE_MACRO, (((duk_uint_t) duk__err) << 24) | ((duk_uint_t) duk__l… 60 #define DUK_ERROR_RAW(thr,file,line,err,msg) do { \ argument 63 …duk_err_handle_error((thr), (file), (((duk_uint_t) duk__err) << 24) | ((duk_uint_t) duk__line), (m… 66 #define DUK_ERROR_FMT1(thr,err,fmt,arg1) do { \ argument 69 …duk_err_handle_error_fmt((thr), DUK_FILE_MACRO, (((duk_uint_t) duk__err) << 24) | ((duk_uint_t) du… 71 #define DUK_ERROR_RAW_FMT1(thr,file,line,err,fmt,arg1) do { \ argument 74 …duk_err_handle_error_fmt((thr), (file), (((duk_uint_t) duk__err) << 24) | ((duk_uint_t) duk__line)… 77 #define DUK_ERROR_FMT2(thr,err,fmt,arg1,arg2) do { \ argument 80 …duk_err_handle_error_fmt((thr), DUK_FILE_MACRO, (((duk_uint_t) duk__err) << 24) | ((duk_uint_t) du… [all …]
|
D | duk_heaphdr.h | 295 #define DUK_TVAL_INCREF_FAST(thr,tv) do { \ argument 305 #define DUK_TVAL_DECREF_FAST(thr,tv) do { \ argument 314 duk_heaphdr_refzero((thr), duk__h); \ 318 #define DUK_HEAPHDR_INCREF_FAST(thr,h) do { \ argument 326 #define DUK_HEAPHDR_DECREF_FAST(thr,h) do { \ argument 333 duk_heaphdr_refzero((thr), duk__h); \ 341 #define DUK_TVAL_INCREF_SLOW(thr,tv) do { \ argument 344 #define DUK_TVAL_DECREF_SLOW(thr,tv) do { \ argument 345 duk_tval_decref((thr), (tv)); \ 347 #define DUK_HEAPHDR_INCREF_SLOW(thr,h) do { \ argument [all …]
|
D | duk_util.h | 129 #define DUK_BW_INIT_PUSHBUF(thr,bw_ctx,sz) do { \ argument 130 duk_bw_init_pushbuf((thr), (bw_ctx), (sz)); \ 132 #define DUK_BW_INIT_WITHBUF(thr,bw_ctx,buf) do { \ argument 133 duk_bw_init((thr), (bw_ctx), (buf)); \ 135 #define DUK_BW_COMPACT(thr,bw_ctx) do { \ argument 137 duk_bw_compact((thr), (bw_ctx)); \ 139 #define DUK_BW_PUSH_AS_STRING(thr,bw_ctx) do { \ argument 140 duk_push_lstring((duk_context *) (thr), \ 149 #define DUK_BW_ASSERT_VALID_EXPR(thr,bw_ctx) \ argument 159 #define DUK_BW_ASSERT_VALID(thr,bw_ctx) do { \ argument [all …]
|
D | duk_bi_thread.c | 51 duk_hthread *thr = (duk_hthread *) ctx; in duk_bi_thread_resume() local 63 DUK_ASSERT(thr->state == DUK_HTHREAD_STATE_RUNNING); in duk_bi_thread_resume() 64 DUK_ASSERT(thr->heap->curr_thread == thr); in duk_bi_thread_resume() 76 if (thr->callstack_top < 2) { in duk_bi_thread_resume() 80 DUK_ASSERT(DUK_ACT_GET_FUNC(thr->callstack + thr->callstack_top - 1) != NULL); /* us */ in duk_bi_thread_resume() 81 …DUK_ASSERT(DUK_HOBJECT_IS_NATIVEFUNCTION(DUK_ACT_GET_FUNC(thr->callstack + thr->callstack_top - 1)… in duk_bi_thread_resume() 82 DUK_ASSERT(DUK_ACT_GET_FUNC(thr->callstack + thr->callstack_top - 2) != NULL); /* caller */ in duk_bi_thread_resume() 84 caller_func = DUK_ACT_GET_FUNC(thr->callstack + thr->callstack_top - 2); in duk_bi_thread_resume() 143 duk_err_augment_error_throw(thr); /* in resumer's context */ in duk_bi_thread_resume() 163 thr->heap->lj.type = DUK_LJ_TYPE_RESUME; in duk_bi_thread_resume() [all …]
|
D | duk_api_stack.c | 38 DUK_ASSERT(!(thr->valstack_top >= thr->valstack_end)); \ 42 if (DUK_UNLIKELY(thr->valstack_top >= thr->valstack_end)) { \ 43 DUK_ERROR_API(thr, DUK_STR_PUSH_BEYOND_ALLOC_STACK); \ 51 duk_hthread *thr; in duk__api_coerce_d2i() local 56 thr = (duk_hthread *) ctx; in duk__api_coerce_d2i() 111 DUK_ERROR_REQUIRE_TYPE_INDEX(thr, index, "number", DUK_STR_NOT_NUMBER); in duk__api_coerce_d2i() 118 duk_hthread *thr; in duk__api_coerce_d2ui() local 125 thr = (duk_hthread *) ctx; in duk__api_coerce_d2ui() 168 DUK_ERROR_REQUIRE_TYPE_INDEX(thr, index, "number", DUK_STR_NOT_NUMBER); in duk__api_coerce_d2ui() 184 duk_hthread *thr = (duk_hthread *) ctx; in duk_normalize_index() local [all …]
|
D | duk_hthread_alloc.c | 13 DUK_INTERNAL duk_bool_t duk_hthread_init_stacks(duk_heap *heap, duk_hthread *thr) { in duk_hthread_init_stacks() argument 18 DUK_ASSERT(thr != NULL); in duk_hthread_init_stacks() 19 DUK_ASSERT(thr->valstack == NULL); in duk_hthread_init_stacks() 20 DUK_ASSERT(thr->valstack_end == NULL); in duk_hthread_init_stacks() 21 DUK_ASSERT(thr->valstack_bottom == NULL); in duk_hthread_init_stacks() 22 DUK_ASSERT(thr->valstack_top == NULL); in duk_hthread_init_stacks() 23 DUK_ASSERT(thr->callstack == NULL); in duk_hthread_init_stacks() 24 DUK_ASSERT(thr->catchstack == 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() [all …]
|
D | duk_js_var.c | 73 DUK_LOCAL void duk__inc_data_inner_refcounts(duk_hthread *thr, duk_hcompiledfunction *f) { in duk__inc_data_inner_refcounts() argument 82 DUK_ASSERT(DUK_HCOMPILEDFUNCTION_GET_DATA(thr->heap, f) != NULL); in duk__inc_data_inner_refcounts() 83 DUK_UNREF(thr); in duk__inc_data_inner_refcounts() 85 tv = DUK_HCOMPILEDFUNCTION_GET_CONSTS_BASE(thr->heap, f); in duk__inc_data_inner_refcounts() 86 tv_end = DUK_HCOMPILEDFUNCTION_GET_CONSTS_END(thr->heap, f); in duk__inc_data_inner_refcounts() 88 DUK_TVAL_INCREF(thr, tv); in duk__inc_data_inner_refcounts() 92 funcs = DUK_HCOMPILEDFUNCTION_GET_FUNCS_BASE(thr->heap, f); in duk__inc_data_inner_refcounts() 93 funcs_end = DUK_HCOMPILEDFUNCTION_GET_FUNCS_END(thr->heap, f); in duk__inc_data_inner_refcounts() 95 DUK_HEAPHDR_INCREF(thr, (duk_heaphdr *) *funcs); in duk__inc_data_inner_refcounts() 118 void duk_js_push_closure(duk_hthread *thr, in duk_js_push_closure() argument [all …]
|
D | duk_hobject_props.c | 76 DUK_LOCAL_DECL duk_bool_t duk__check_arguments_map_for_get(duk_hthread *thr, duk_hobject *obj, duk_… 77 DUK_LOCAL_DECL void duk__check_arguments_map_for_put(duk_hthread *thr, duk_hobject *obj, duk_hstrin… 78 DUK_LOCAL_DECL void duk__check_arguments_map_for_delete(duk_hthread *thr, duk_hobject *obj, duk_hst… 80 DUK_LOCAL_DECL duk_bool_t duk__handle_put_array_length_smaller(duk_hthread *thr, duk_hobject *obj, … 81 DUK_LOCAL_DECL duk_bool_t duk__handle_put_array_length(duk_hthread *thr, duk_hobject *obj); 83 DUK_LOCAL_DECL duk_bool_t duk__get_propdesc(duk_hthread *thr, duk_hobject *obj, duk_hstring *key, d… 84 DUK_LOCAL_DECL duk_bool_t duk__get_own_propdesc_raw(duk_hthread *thr, duk_hobject *obj, duk_hstring… 85 DUK_LOCAL duk_uint32_t duk__get_old_array_length(duk_hthread *thr, duk_hobject *obj, duk_propdesc *… 162 DUK_LOCAL duk_bool_t duk__key_is_lightfunc_ownprop(duk_hthread *thr, duk_hstring *key) { in duk__key_is_lightfunc_ownprop() argument 163 DUK_UNREF(thr); in duk__key_is_lightfunc_ownprop() [all …]
|
/civetweb-2.7.6/src/third_party/duktape-1.5.2/src-separate/ |
D | duk_debugger.c | 26 #define DUK__SET_CONN_BROKEN(thr,reason) do { \ argument 28 duk__debug_do_detach1((thr)->heap, (reason)); \ 50 duk_hthread *thr; in duk__debug_do_detach1() local 52 thr = heap->heap_thread; in duk__debug_do_detach1() 53 DUK_ASSERT(thr != NULL); in duk__debug_do_detach1() 55 duk_debug_write_notify(thr, DUK_DBG_CMD_DETACHING); in duk__debug_do_detach1() 56 duk_debug_write_int(thr, reason); in duk__debug_do_detach1() 57 duk_debug_write_eom(thr); in duk__debug_do_detach1() 121 DUK_LOCAL void duk__debug_null_most_callbacks(duk_hthread *thr) { in duk__debug_null_most_callbacks() argument 123 heap = thr->heap; in duk__debug_null_most_callbacks() [all …]
|
D | duk_js_call.c | 28 DUK_LOCAL void duk__handle_call_inner(duk_hthread *thr, 32 DUK_LOCAL void duk__handle_call_error(duk_hthread *thr, 43 DUK_LOCAL void duk__handle_safe_call_inner(duk_hthread *thr, 50 DUK_LOCAL void duk__handle_safe_call_error(duk_hthread *thr, 57 DUK_LOCAL void duk__handle_safe_call_shared(duk_hthread *thr, 70 DUK_LOCAL void duk__interrupt_fixup(duk_hthread *thr, duk_hthread *entry_curr_thread) { in duk__interrupt_fixup() argument 81 DUK_ASSERT(thr != NULL); in duk__interrupt_fixup() 82 DUK_ASSERT(thr->heap != NULL); in duk__interrupt_fixup() 86 thr->interrupt_init = thr->interrupt_init - thr->interrupt_counter; in duk__interrupt_fixup() 87 thr->heap->inst_count_interrupt += thr->interrupt_init; in duk__interrupt_fixup() [all …]
|
D | duk_builtins.h | 13 #define DUK_HTHREAD_STRING_UC_UNDEFINED(thr) DUK_HTHREAD_GET_STRING((thr),… argument 16 #define DUK_HTHREAD_STRING_UC_NULL(thr) DUK_HTHREAD_GET_STRING((thr),… argument 19 #define DUK_HTHREAD_STRING_UC_ARGUMENTS(thr) DUK_HTHREAD_GET_STRING((thr),… argument 22 #define DUK_HTHREAD_STRING_UC_OBJECT(thr) DUK_HTHREAD_GET_STRING((thr),… argument 25 #define DUK_HTHREAD_STRING_UC_FUNCTION(thr) DUK_HTHREAD_GET_STRING((thr),… argument 28 #define DUK_HTHREAD_STRING_ARRAY(thr) DUK_HTHREAD_GET_STRING((thr),… argument 31 #define DUK_HTHREAD_STRING_UC_STRING(thr) DUK_HTHREAD_GET_STRING((thr),… argument 34 #define DUK_HTHREAD_STRING_UC_BOOLEAN(thr) DUK_HTHREAD_GET_STRING((thr),… argument 37 #define DUK_HTHREAD_STRING_UC_NUMBER(thr) DUK_HTHREAD_GET_STRING((thr),… argument 40 #define DUK_HTHREAD_STRING_DATE(thr) DUK_HTHREAD_GET_STRING((thr),… argument [all …]
|
D | duk_hthread_stacks.c | 26 DUK_INTERNAL void duk_hthread_callstack_grow(duk_hthread *thr) { in duk_hthread_callstack_grow() argument 31 DUK_ASSERT(thr != NULL); in duk_hthread_callstack_grow() 32 DUK_ASSERT_DISABLE(thr->callstack_top >= 0); /* avoid warning (unsigned) */ in duk_hthread_callstack_grow() 33 DUK_ASSERT(thr->callstack_size >= thr->callstack_top); in duk_hthread_callstack_grow() 35 if (thr->callstack_top < thr->callstack_size) { in duk_hthread_callstack_grow() 39 old_size = thr->callstack_size; in duk_hthread_callstack_grow() 43 if (new_size >= thr->callstack_max) { in duk_hthread_callstack_grow() 44 DUK_ERROR_RANGE(thr, DUK_STR_CALLSTACK_LIMIT); in duk_hthread_callstack_grow() 55 …ew_ptr = (duk_activation *) DUK_REALLOC_INDIRECT(thr->heap, duk_hthread_get_callstack_ptr, (void *… in duk_hthread_callstack_grow() 58 DUK_ERROR_ALLOC_DEFMSG(thr); in duk_hthread_callstack_grow() [all …]
|
D | duk_js_executor.c | 40 DUK_LOCAL void duk__vm_arith_add(duk_hthread *thr, duk_tval *tv_x, duk_tval *tv_y, duk_small_uint_f… in duk__vm_arith_add() argument 57 duk_context *ctx = (duk_context *) thr; in duk__vm_arith_add() 60 DUK_ASSERT(thr != NULL); in duk__vm_arith_add() 86 tv_z = thr->valstack_bottom + idx_z; in duk__vm_arith_add() 87 DUK_TVAL_SET_FASTINT_UPDREF(thr, tv_z, v3); /* side effects */ in duk__vm_arith_add() 103 tv_z = thr->valstack_bottom + idx_z; in duk__vm_arith_add() 104 DUK_TVAL_SET_NUMBER_UPDREF(thr, tv_z, du.d); /* side effects */ in duk__vm_arith_add() 147 DUK_LOCAL void duk__vm_arith_binary_op(duk_hthread *thr, duk_tval *tv_x, duk_tval *tv_y, duk_idx_t … in duk__vm_arith_binary_op() argument 156 duk_context *ctx = (duk_context *) thr; in duk__vm_arith_binary_op() 161 DUK_ASSERT(thr != NULL); in duk__vm_arith_binary_op() [all …]
|
D | duk_error.h | 55 #define DUK_ERROR(thr,err,msg) do { \ argument 58 …duk_err_handle_error((thr), DUK_FILE_MACRO, (((duk_uint_t) duk__err) << 24) | ((duk_uint_t) duk__l… 60 #define DUK_ERROR_RAW(thr,file,line,err,msg) do { \ argument 63 …duk_err_handle_error((thr), (file), (((duk_uint_t) duk__err) << 24) | ((duk_uint_t) duk__line), (m… 66 #define DUK_ERROR_FMT1(thr,err,fmt,arg1) do { \ argument 69 …duk_err_handle_error_fmt((thr), DUK_FILE_MACRO, (((duk_uint_t) duk__err) << 24) | ((duk_uint_t) du… 71 #define DUK_ERROR_RAW_FMT1(thr,file,line,err,fmt,arg1) do { \ argument 74 …duk_err_handle_error_fmt((thr), (file), (((duk_uint_t) duk__err) << 24) | ((duk_uint_t) duk__line)… 77 #define DUK_ERROR_FMT2(thr,err,fmt,arg1,arg2) do { \ argument 80 …duk_err_handle_error_fmt((thr), DUK_FILE_MACRO, (((duk_uint_t) duk__err) << 24) | ((duk_uint_t) du… [all …]
|
D | duk_heaphdr.h | 293 #define DUK_TVAL_INCREF_FAST(thr,tv) do { \ argument 303 #define DUK_TVAL_DECREF_FAST(thr,tv) do { \ argument 312 duk_heaphdr_refzero((thr), duk__h); \ 316 #define DUK_HEAPHDR_INCREF_FAST(thr,h) do { \ argument 324 #define DUK_HEAPHDR_DECREF_FAST(thr,h) do { \ argument 331 duk_heaphdr_refzero((thr), duk__h); \ 339 #define DUK_TVAL_INCREF_SLOW(thr,tv) do { \ argument 342 #define DUK_TVAL_DECREF_SLOW(thr,tv) do { \ argument 343 duk_tval_decref((thr), (tv)); \ 345 #define DUK_HEAPHDR_INCREF_SLOW(thr,h) do { \ argument [all …]
|
D | duk_util.h | 129 #define DUK_BW_INIT_PUSHBUF(thr,bw_ctx,sz) do { \ argument 130 duk_bw_init_pushbuf((thr), (bw_ctx), (sz)); \ 132 #define DUK_BW_INIT_WITHBUF(thr,bw_ctx,buf) do { \ argument 133 duk_bw_init((thr), (bw_ctx), (buf)); \ 135 #define DUK_BW_COMPACT(thr,bw_ctx) do { \ argument 137 duk_bw_compact((thr), (bw_ctx)); \ 139 #define DUK_BW_PUSH_AS_STRING(thr,bw_ctx) do { \ argument 140 duk_push_lstring((duk_context *) (thr), \ 149 #define DUK_BW_ASSERT_VALID_EXPR(thr,bw_ctx) \ argument 159 #define DUK_BW_ASSERT_VALID(thr,bw_ctx) do { \ argument [all …]
|
D | duk_bi_thread.c | 51 duk_hthread *thr = (duk_hthread *) ctx; in duk_bi_thread_resume() local 63 DUK_ASSERT(thr->state == DUK_HTHREAD_STATE_RUNNING); in duk_bi_thread_resume() 64 DUK_ASSERT(thr->heap->curr_thread == thr); in duk_bi_thread_resume() 76 if (thr->callstack_top < 2) { in duk_bi_thread_resume() 80 DUK_ASSERT(DUK_ACT_GET_FUNC(thr->callstack + thr->callstack_top - 1) != NULL); /* us */ in duk_bi_thread_resume() 81 …DUK_ASSERT(DUK_HOBJECT_IS_NATIVEFUNCTION(DUK_ACT_GET_FUNC(thr->callstack + thr->callstack_top - 1)… in duk_bi_thread_resume() 82 DUK_ASSERT(DUK_ACT_GET_FUNC(thr->callstack + thr->callstack_top - 2) != NULL); /* caller */ in duk_bi_thread_resume() 84 caller_func = DUK_ACT_GET_FUNC(thr->callstack + thr->callstack_top - 2); in duk_bi_thread_resume() 143 duk_err_augment_error_throw(thr); /* in resumer's context */ in duk_bi_thread_resume() 163 thr->heap->lj.type = DUK_LJ_TYPE_RESUME; in duk_bi_thread_resume() [all …]
|
D | duk_api_stack.c | 38 DUK_ASSERT(!(thr->valstack_top >= thr->valstack_end)); \ 42 if (DUK_UNLIKELY(thr->valstack_top >= thr->valstack_end)) { \ 43 DUK_ERROR_API(thr, DUK_STR_PUSH_BEYOND_ALLOC_STACK); \ 51 duk_hthread *thr; in duk__api_coerce_d2i() local 56 thr = (duk_hthread *) ctx; in duk__api_coerce_d2i() 111 DUK_ERROR_REQUIRE_TYPE_INDEX(thr, index, "number", DUK_STR_NOT_NUMBER); in duk__api_coerce_d2i() 118 duk_hthread *thr; in duk__api_coerce_d2ui() local 125 thr = (duk_hthread *) ctx; in duk__api_coerce_d2ui() 168 DUK_ERROR_REQUIRE_TYPE_INDEX(thr, index, "number", DUK_STR_NOT_NUMBER); in duk__api_coerce_d2ui() 184 duk_hthread *thr = (duk_hthread *) ctx; in duk_normalize_index() local [all …]
|
D | duk_js_var.c | 73 DUK_LOCAL void duk__inc_data_inner_refcounts(duk_hthread *thr, duk_hcompiledfunction *f) { in duk__inc_data_inner_refcounts() argument 82 DUK_ASSERT(DUK_HCOMPILEDFUNCTION_GET_DATA(thr->heap, f) != NULL); in duk__inc_data_inner_refcounts() 83 DUK_UNREF(thr); in duk__inc_data_inner_refcounts() 85 tv = DUK_HCOMPILEDFUNCTION_GET_CONSTS_BASE(thr->heap, f); in duk__inc_data_inner_refcounts() 86 tv_end = DUK_HCOMPILEDFUNCTION_GET_CONSTS_END(thr->heap, f); in duk__inc_data_inner_refcounts() 88 DUK_TVAL_INCREF(thr, tv); in duk__inc_data_inner_refcounts() 92 funcs = DUK_HCOMPILEDFUNCTION_GET_FUNCS_BASE(thr->heap, f); in duk__inc_data_inner_refcounts() 93 funcs_end = DUK_HCOMPILEDFUNCTION_GET_FUNCS_END(thr->heap, f); in duk__inc_data_inner_refcounts() 95 DUK_HEAPHDR_INCREF(thr, (duk_heaphdr *) *funcs); in duk__inc_data_inner_refcounts() 118 void duk_js_push_closure(duk_hthread *thr, in duk_js_push_closure() argument [all …]
|
D | duk_hthread_alloc.c | 13 DUK_INTERNAL duk_bool_t duk_hthread_init_stacks(duk_heap *heap, duk_hthread *thr) { in duk_hthread_init_stacks() argument 18 DUK_ASSERT(thr != NULL); in duk_hthread_init_stacks() 19 DUK_ASSERT(thr->valstack == NULL); in duk_hthread_init_stacks() 20 DUK_ASSERT(thr->valstack_end == NULL); in duk_hthread_init_stacks() 21 DUK_ASSERT(thr->valstack_bottom == NULL); in duk_hthread_init_stacks() 22 DUK_ASSERT(thr->valstack_top == NULL); in duk_hthread_init_stacks() 23 DUK_ASSERT(thr->callstack == NULL); in duk_hthread_init_stacks() 24 DUK_ASSERT(thr->catchstack == 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() [all …]
|