/civetweb-2.7.6/src/third_party/duktape-1.5.2/src-separate/ |
D | duk_js_call.c | 44 duk_safe_call_function func, 110 duk_hobject *func, in duk__create_arguments_object() argument 128 (duk_heaphdr *) func, (duk_heaphdr *) varenv, in duk__create_arguments_object() 132 DUK_ASSERT(func != NULL); in duk__create_arguments_object() 133 DUK_ASSERT(DUK_HOBJECT_IS_NONBOUND_FUNCTION(func)); in duk__create_arguments_object() 143 duk_push_hobject(ctx, func); in duk__create_arguments_object() 159 (duk_heaphdr *) func, (duk_heaphdr *) formals, in duk__create_arguments_object() 225 if (!DUK_HOBJECT_HAS_STRICT(func) && idx < n_formals) { in duk__create_arguments_object() 276 DUK_ASSERT(!DUK_HOBJECT_HAS_STRICT(func)); in duk__create_arguments_object() 295 if (DUK_HOBJECT_HAS_STRICT(func)) { in duk__create_arguments_object() [all …]
|
D | duk_api_bytecode.c | 84 …duk_hthread *thr, duk_uint8_t *p, duk_bufwriter_ctx *bw_ctx, duk_hobject *func, duk_small_uint_t s… in duk__dump_string_prop() argument 88 …tv = duk_hobject_find_existing_entry_tval_ptr(thr->heap, (duk_hobject *) func, DUK_HTHREAD_GET_STR… in duk__dump_string_prop() 102 …duk_hthread *thr, duk_uint8_t *p, duk_bufwriter_ctx *bw_ctx, duk_hobject *func, duk_small_uint_t s… in duk__dump_buffer_prop() argument 105 …tv = duk_hobject_find_existing_entry_tval_ptr(thr->heap, (duk_hobject *) func, DUK_HTHREAD_GET_STR… in duk__dump_buffer_prop() 120 …duk_hthread *thr, duk_uint8_t *p, duk_bufwriter_ctx *bw_ctx, duk_hobject *func, duk_small_uint_t s… in duk__dump_uint32_prop() argument 124 …tv = duk_hobject_find_existing_entry_tval_ptr(thr->heap, (duk_hobject *) func, DUK_HTHREAD_GET_STR… in duk__dump_uint32_prop() 135 …*duk__dump_varmap(duk_hthread *thr, duk_uint8_t *p, duk_bufwriter_ctx *bw_ctx, duk_hobject *func) { in duk__dump_varmap() argument 138 …tv = duk_hobject_find_existing_entry_tval_ptr(thr->heap, (duk_hobject *) func, DUK_HTHREAD_STRING_… in duk__dump_varmap() 181 …duk__dump_formals(duk_hthread *thr, duk_uint8_t *p, duk_bufwriter_ctx *bw_ctx, duk_hobject *func) { in duk__dump_formals() argument 184 …tv = duk_hobject_find_existing_entry_tval_ptr(thr->heap, (duk_hobject *) func, DUK_HTHREAD_STRING_… in duk__dump_formals() [all …]
|
D | duk_js_var.c | 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() [all …]
|
D | duk_js_compiler.c | 489 duk_compiler_func *func = &comp_ctx->curr_func; in duk__init_func_valstack_slots() local 496 DUK_MEMZERO(func, sizeof(*func)); /* intentional overlap with earlier memzero */ in duk__init_func_valstack_slots() 498 func->h_name = NULL; in duk__init_func_valstack_slots() 499 func->h_consts = NULL; in duk__init_func_valstack_slots() 500 func->h_funcs = NULL; in duk__init_func_valstack_slots() 501 func->h_decls = NULL; in duk__init_func_valstack_slots() 502 func->h_labelnames = NULL; in duk__init_func_valstack_slots() 503 func->h_labelinfos = NULL; in duk__init_func_valstack_slots() 504 func->h_argnames = NULL; in duk__init_func_valstack_slots() 505 func->h_varmap = NULL; in duk__init_func_valstack_slots() [all …]
|
D | duk_hthread_misc.c | 55 if (act->func && DUK_HOBJECT_IS_COMPILEDFUNCTION(act->func)) { in duk_hthread_get_act_curr_pc() 56 bcode = DUK_HCOMPILEDFUNCTION_GET_CODE_BASE(thr->heap, (duk_hcompiledfunction *) (act->func)); in duk_hthread_get_act_curr_pc() 71 if (act->func && DUK_HOBJECT_IS_COMPILEDFUNCTION(act->func)) { in duk_hthread_get_act_prev_pc() 72 bcode = DUK_HCOMPILEDFUNCTION_GET_CODE_BASE(thr->heap, (duk_hcompiledfunction *) (act->func)); in duk_hthread_get_act_prev_pc()
|
D | duk_bi_thread.c | 13 duk_hobject *func; in duk_bi_thread_constructor() local 19 func = duk_require_hobject_or_lfunc_coerce(ctx, 0); in duk_bi_thread_constructor() 20 DUK_ASSERT(func != NULL); in duk_bi_thread_constructor() 30 duk_push_hobject((duk_context *) new_thr, func); in duk_bi_thread_constructor() 54 duk_hobject *func; in duk_bi_thread_resume() local 121 func = DUK_TVAL_GET_OBJECT(tv); in duk_bi_thread_resume() 122 DUK_ASSERT(func != NULL); in duk_bi_thread_resume() 123 if (!DUK_HOBJECT_IS_COMPILEDFUNCTION(func)) { in duk_bi_thread_resume()
|
/civetweb-2.7.6/src/third_party/duktape-1.8.0/src-separate/ |
D | duk_js_call.c | 44 duk_safe_call_function func, 110 duk_hobject *func, in duk__create_arguments_object() argument 128 (duk_heaphdr *) func, (duk_heaphdr *) varenv, in duk__create_arguments_object() 132 DUK_ASSERT(func != NULL); in duk__create_arguments_object() 133 DUK_ASSERT(DUK_HOBJECT_IS_NONBOUND_FUNCTION(func)); in duk__create_arguments_object() 143 duk_push_hobject(ctx, func); in duk__create_arguments_object() 159 (duk_heaphdr *) func, (duk_heaphdr *) formals, in duk__create_arguments_object() 225 if (!DUK_HOBJECT_HAS_STRICT(func) && idx < n_formals) { in duk__create_arguments_object() 276 DUK_ASSERT(!DUK_HOBJECT_HAS_STRICT(func)); in duk__create_arguments_object() 295 if (DUK_HOBJECT_HAS_STRICT(func)) { in duk__create_arguments_object() [all …]
|
D | duk_api_bytecode.c | 84 …duk_hthread *thr, duk_uint8_t *p, duk_bufwriter_ctx *bw_ctx, duk_hobject *func, duk_small_uint_t s… in duk__dump_string_prop() argument 88 …tv = duk_hobject_find_existing_entry_tval_ptr(thr->heap, (duk_hobject *) func, DUK_HTHREAD_GET_STR… in duk__dump_string_prop() 102 …duk_hthread *thr, duk_uint8_t *p, duk_bufwriter_ctx *bw_ctx, duk_hobject *func, duk_small_uint_t s… in duk__dump_buffer_prop() argument 105 …tv = duk_hobject_find_existing_entry_tval_ptr(thr->heap, (duk_hobject *) func, DUK_HTHREAD_GET_STR… in duk__dump_buffer_prop() 120 …duk_hthread *thr, duk_uint8_t *p, duk_bufwriter_ctx *bw_ctx, duk_hobject *func, duk_small_uint_t s… in duk__dump_uint32_prop() argument 124 …tv = duk_hobject_find_existing_entry_tval_ptr(thr->heap, (duk_hobject *) func, DUK_HTHREAD_GET_STR… in duk__dump_uint32_prop() 135 …*duk__dump_varmap(duk_hthread *thr, duk_uint8_t *p, duk_bufwriter_ctx *bw_ctx, duk_hobject *func) { in duk__dump_varmap() argument 138 …tv = duk_hobject_find_existing_entry_tval_ptr(thr->heap, (duk_hobject *) func, DUK_HTHREAD_STRING_… in duk__dump_varmap() 181 …duk__dump_formals(duk_hthread *thr, duk_uint8_t *p, duk_bufwriter_ctx *bw_ctx, duk_hobject *func) { in duk__dump_formals() argument 184 …tv = duk_hobject_find_existing_entry_tval_ptr(thr->heap, (duk_hobject *) func, DUK_HTHREAD_STRING_… in duk__dump_formals() [all …]
|
D | duk_js_var.c | 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 538 func = DUK_ACT_GET_FUNC(act); in duk_js_init_activation_environment_records_delayed() 539 DUK_ASSERT(func != NULL); in duk_js_init_activation_environment_records_delayed() 540 DUK_ASSERT(!DUK_HOBJECT_HAS_BOUND(func)); /* bound functions are never in act 'func' */ in duk_js_init_activation_environment_records_delayed() 546 DUK_ASSERT(DUK_HOBJECT_HAS_NEWENV(func)); in duk_js_init_activation_environment_records_delayed() [all …]
|
D | duk_js_compiler.c | 489 duk_compiler_func *func = &comp_ctx->curr_func; in duk__init_func_valstack_slots() local 496 DUK_MEMZERO(func, sizeof(*func)); /* intentional overlap with earlier memzero */ in duk__init_func_valstack_slots() 498 func->h_name = NULL; in duk__init_func_valstack_slots() 499 func->h_consts = NULL; in duk__init_func_valstack_slots() 500 func->h_funcs = NULL; in duk__init_func_valstack_slots() 501 func->h_decls = NULL; in duk__init_func_valstack_slots() 502 func->h_labelnames = NULL; in duk__init_func_valstack_slots() 503 func->h_labelinfos = NULL; in duk__init_func_valstack_slots() 504 func->h_argnames = NULL; in duk__init_func_valstack_slots() 505 func->h_varmap = NULL; in duk__init_func_valstack_slots() [all …]
|
D | duk_hthread_misc.c | 55 if (act->func && DUK_HOBJECT_IS_COMPILEDFUNCTION(act->func)) { in duk_hthread_get_act_curr_pc() 56 bcode = DUK_HCOMPILEDFUNCTION_GET_CODE_BASE(thr->heap, (duk_hcompiledfunction *) (act->func)); in duk_hthread_get_act_curr_pc() 71 if (act->func && DUK_HOBJECT_IS_COMPILEDFUNCTION(act->func)) { in duk_hthread_get_act_prev_pc() 72 bcode = DUK_HCOMPILEDFUNCTION_GET_CODE_BASE(thr->heap, (duk_hcompiledfunction *) (act->func)); in duk_hthread_get_act_prev_pc()
|
D | duk_bi_thread.c | 13 duk_hobject *func; in duk_bi_thread_constructor() local 19 func = duk_require_hobject_or_lfunc_coerce(ctx, 0); in duk_bi_thread_constructor() 20 DUK_ASSERT(func != NULL); in duk_bi_thread_constructor() 30 duk_push_hobject((duk_context *) new_thr, func); in duk_bi_thread_constructor() 54 duk_hobject *func; in duk_bi_thread_resume() local 121 func = DUK_TVAL_GET_OBJECT(tv); in duk_bi_thread_resume() 122 DUK_ASSERT(func != NULL); in duk_bi_thread_resume() 123 if (!DUK_HOBJECT_IS_COMPILEDFUNCTION(func)) { in duk_bi_thread_resume()
|
/civetweb-2.7.6/src/third_party/duktape-1.5.2/examples/eventloop/ |
D | c_eventloop.js | 14 function setTimeout(func, delay) { argument 23 if (typeof func === 'string') { 25 cb_func = eval.bind(this, func); 26 } else if (typeof func !== 'function') { 32 cb_func = func.bind.apply(func, bind_args); 35 cb_func = func; 50 function setInterval(func, delay) { argument 59 if (typeof func === 'string') { 61 cb_func = eval.bind(this, func); 62 } else if (typeof func !== 'function') { [all …]
|
D | ecma_eventloop.js | 367 function setTimeout(func, delay) { argument 378 if (typeof func === 'string') { 380 cb_func = eval.bind(this, func); 381 } else if (typeof func !== 'function') { 387 cb_func = func.bind.apply(func, bind_args); 390 cb_func = func; 415 function setInterval(func, delay) { argument 426 if (typeof func === 'string') { 428 cb_func = eval.bind(this, func); 429 } else if (typeof func !== 'function') { [all …]
|
/civetweb-2.7.6/src/third_party/duktape-1.8.0/examples/eventloop/ |
D | c_eventloop.js | 14 function setTimeout(func, delay) { argument 23 if (typeof func === 'string') { 25 cb_func = eval.bind(this, func); 26 } else if (typeof func !== 'function') { 32 cb_func = func.bind.apply(func, bind_args); 35 cb_func = func; 50 function setInterval(func, delay) { argument 59 if (typeof func === 'string') { 61 cb_func = eval.bind(this, func); 62 } else if (typeof func !== 'function') { [all …]
|
D | ecma_eventloop.js | 367 function setTimeout(func, delay) { argument 378 if (typeof func === 'string') { 380 cb_func = eval.bind(this, func); 381 } else if (typeof func !== 'function') { 387 cb_func = func.bind.apply(func, bind_args); 390 cb_func = func; 415 function setInterval(func, delay) { argument 426 if (typeof func === 'string') { 428 cb_func = eval.bind(this, func); 429 } else if (typeof func !== 'function') { [all …]
|
/civetweb-2.7.6/src/third_party/lua-5.1.5/src/ |
D | ldo.c | 135 ci->func = (ci->func - oldstack) + L->stack; in correctstack() 244 static StkId tryfuncTM (lua_State *L, StkId func) { in tryfuncTM() argument 245 const TValue *tm = luaT_gettmbyobj(L, func, TM_CALL); in tryfuncTM() 247 ptrdiff_t funcr = savestack(L, func); in tryfuncTM() 249 luaG_typeerror(L, func, "call"); in tryfuncTM() 251 for (p = L->top; p > func; p--) setobjs2s(L, p, p-1); in tryfuncTM() 253 func = restorestack(L, funcr); /* previous call may change stack */ in tryfuncTM() 254 setobj2s(L, func, tm); /* tag method is the new function to be called */ in tryfuncTM() 255 return func; in tryfuncTM() 265 int luaD_precall (lua_State *L, StkId func, int nresults) { in luaD_precall() argument [all …]
|
D | lapi.c | 63 Closure *func = curr_func(L); in index2adr() local 64 sethvalue(L, &L->env, func->c.env); in index2adr() 69 Closure *func = curr_func(L); in index2adr() local 71 return (idx <= func->c.nupvalues) in index2adr() 72 ? &func->c.upvalue[idx-1] in index2adr() 83 Closure *func = curr_func(L); in getcurrenv() local 84 return func->c.env; in getcurrenv() 213 Closure *func = curr_func(L); in lua_replace() local 215 func->c.env = hvalue(L->top - 1); in lua_replace() 216 luaC_barrier(L, func, L->top - 1); in lua_replace() [all …]
|
/civetweb-2.7.6/src/third_party/lua-5.2.4/src/ |
D | ldo.c | 150 ci->func = (ci->func - oldstack) + L->stack; in correctstack() 274 static StkId tryfuncTM (lua_State *L, StkId func) { in tryfuncTM() argument 275 const TValue *tm = luaT_gettmbyobj(L, func, TM_CALL); in tryfuncTM() 277 ptrdiff_t funcr = savestack(L, func); in tryfuncTM() 279 luaG_typeerror(L, func, "call"); in tryfuncTM() 281 for (p = L->top; p > func; p--) setobjs2s(L, p, p-1); in tryfuncTM() 283 func = restorestack(L, funcr); /* previous call may change stack */ in tryfuncTM() 284 setobj2s(L, func, tm); /* tag method is the new function to be called */ in tryfuncTM() 285 return func; in tryfuncTM() 296 int luaD_precall (lua_State *L, StkId func, int nresults) { in luaD_precall() argument [all …]
|
D | ldebug.c | 53 StkId temp = ci->func; /* exchange its 'func' and 'extra' values */ in swapextra() 54 ci->func = restorestack(L, ci->extra); in swapextra() 63 LUA_API int lua_sethook (lua_State *L, lua_Hook func, int mask, int count) { in lua_sethook() argument 64 if (func == NULL || mask == 0) { /* turn off hooks? */ in lua_sethook() 66 func = NULL; in lua_sethook() 70 L->hook = func; in lua_sethook() 118 int nparams = clLvalue(ci->func)->p->numparams; in findvararg() 119 if (n >= ci->u.l.base - ci->func - nparams) in findvararg() 122 *pos = ci->func + nparams + n; in findvararg() 141 base = ci->func + 1; in findlocal() [all …]
|
D | lapi.c | 58 TValue *o = ci->func + idx; in index2addr() 59 api_check(L, idx <= ci->top - (ci->func + 1), "unacceptable index"); in index2addr() 64 api_check(L, idx != 0 && -idx <= L->top - (ci->func + 1), "invalid index"); in index2addr() 72 if (ttislcf(ci->func)) /* light C function? */ in index2addr() 75 CClosure *func = clCvalue(ci->func); in index2addr() local 76 return (idx <= func->nupvalues) ? &func->upvalue[idx-1] : NONVALIDVALUE; in index2addr() 156 : cast_int(L->top - L->ci->func + idx); in lua_absindex() 161 return cast_int(L->top - (L->ci->func + 1)); in lua_gettop() 166 StkId func = L->ci->func; in lua_settop() local 169 api_check(L, idx <= L->stack_last - (func + 1), "new top too large"); in lua_settop() [all …]
|
/civetweb-2.7.6/src/third_party/lua-5.3.5/src/ |
D | ldo.c | 166 ci->func = (ci->func - oldstack) + L->stack; in correctstack() 315 static void tryfuncTM (lua_State *L, StkId func) { in tryfuncTM() argument 316 const TValue *tm = luaT_gettmbyobj(L, func, TM_CALL); in tryfuncTM() 319 luaG_typeerror(L, func, "call"); in tryfuncTM() 321 for (p = L->top; p > func; p--) in tryfuncTM() 324 setobj2s(L, func, tm); /* tag method is the new function to be called */ in tryfuncTM() 387 res = ci->func; /* res == final position of 1st result */ in luaD_poscall() 413 int luaD_precall (lua_State *L, StkId func, int nresults) { in luaD_precall() argument 416 switch (ttype(func)) { in luaD_precall() 418 f = clCvalue(func)->f; in luaD_precall() [all …]
|
D | ldebug.c | 38 #define ci_func(ci) (clLvalue((ci)->func)) 65 StkId temp = ci->func; /* exchange its 'func' and 'extra' values */ in swapextra() 66 ci->func = restorestack(L, ci->extra); in swapextra() 81 LUA_API void lua_sethook (lua_State *L, lua_Hook func, int mask, int count) { in lua_sethook() argument 82 if (func == NULL || mask == 0) { /* turn off hooks? */ in lua_sethook() 84 func = NULL; in lua_sethook() 88 L->hook = func; in lua_sethook() 135 int nparams = clLvalue(ci->func)->p->numparams; in findvararg() 136 if (n >= cast_int(ci->u.l.base - ci->func) - nparams) in findvararg() 139 *pos = ci->func + nparams + n; in findvararg() [all …]
|
D | lapi.c | 63 TValue *o = ci->func + idx; in index2addr() 64 api_check(L, idx <= ci->top - (ci->func + 1), "unacceptable index"); in index2addr() 69 api_check(L, idx != 0 && -idx <= L->top - (ci->func + 1), "invalid index"); in index2addr() 77 if (ttislcf(ci->func)) /* light C function? */ in index2addr() 80 CClosure *func = clCvalue(ci->func); in index2addr() local 81 return (idx <= func->nupvalues) ? &func->upvalue[idx-1] : NONVALIDVALUE; in index2addr() 163 : cast_int(L->top - L->ci->func) + idx; in lua_absindex() 168 return cast_int(L->top - (L->ci->func + 1)); in lua_gettop() 173 StkId func = L->ci->func; in lua_settop() local 176 api_check(L, idx <= L->stack_last - (func + 1), "new top too large"); in lua_settop() [all …]
|
/civetweb-2.7.6/src/third_party/ |
D | lsqlite3.c | 96 sdb_func *func; /* top SQL function being called */ member 623 db->func = NULL; in newdb() 653 sdb_func *func; in cleanupdb() local 701 func = db->func; in cleanupdb() 702 while (func) { in cleanupdb() 703 func_next = func->next; in cleanupdb() 704 luaL_unref(L, LUA_REGISTRYINDEX, func->fn_step); in cleanupdb() 705 luaL_unref(L, LUA_REGISTRYINDEX, func->fn_finalize); in cleanupdb() 706 luaL_unref(L, LUA_REGISTRYINDEX, func->udata); in cleanupdb() 707 free(func); in cleanupdb() [all …]
|