Github User Fetcher 1.0.0
C Application with Server and GUI
|
Go to the source code of this file.
Data Structures | |
struct | duk_activation |
struct | duk_catcher |
struct | duk_hthread |
Macros | |
#define | DUK_VALSTACK_GROW_STEP 128 /* roughly 1 kiB */ |
#define | DUK_VALSTACK_SHRINK_THRESHOLD 256 /* roughly 2 kiB */ |
#define | DUK_VALSTACK_SHRINK_SPARE 64 /* roughly 0.5 kiB */ |
#define | DUK_VALSTACK_INITIAL_SIZE 128 /* roughly 1.0 kiB -> but rounds up to DUK_VALSTACK_GROW_STEP in practice */ |
#define | DUK_VALSTACK_INTERNAL_EXTRA |
#define | DUK_VALSTACK_API_ENTRY_MINIMUM DUK_API_ENTRY_STACK |
#define | DUK_VALSTACK_DEFAULT_MAX 1000000L |
#define | DUK_CALLSTACK_GROW_STEP 8 /* roughly 256 bytes */ |
#define | DUK_CALLSTACK_SHRINK_THRESHOLD 16 /* roughly 512 bytes */ |
#define | DUK_CALLSTACK_SHRINK_SPARE 8 /* roughly 256 bytes */ |
#define | DUK_CALLSTACK_INITIAL_SIZE 8 |
#define | DUK_CALLSTACK_DEFAULT_MAX 10000L |
#define | DUK_CATCHSTACK_GROW_STEP 4 /* roughly 64 bytes */ |
#define | DUK_CATCHSTACK_SHRINK_THRESHOLD 8 /* roughly 128 bytes */ |
#define | DUK_CATCHSTACK_SHRINK_SPARE 4 /* roughly 64 bytes */ |
#define | DUK_CATCHSTACK_INITIAL_SIZE 4 |
#define | DUK_CATCHSTACK_DEFAULT_MAX 10000L |
#define | DUK_ACT_FLAG_STRICT (1 << 0) /* function executes in strict mode */ |
#define | DUK_ACT_FLAG_TAILCALLED (1 << 1) /* activation has tail called one or more times */ |
#define | DUK_ACT_FLAG_CONSTRUCT (1 << 2) /* function executes as a constructor (called via "new") */ |
#define | DUK_ACT_FLAG_PREVENT_YIELD (1 << 3) /* activation prevents yield (native call or "new") */ |
#define | DUK_ACT_FLAG_DIRECT_EVAL (1 << 4) /* activation is a direct eval call */ |
#define | DUK_ACT_FLAG_BREAKPOINT_ACTIVE (1 << 5) /* activation has active breakpoint(s) */ |
#define | DUK_ACT_GET_FUNC(act) ((act)->func) |
#define | DUK_TB_FLAG_NOBLAME_FILELINE (1 << 0) /* don't report __FILE__ / __LINE__ as fileName/lineNumber */ |
#define | DUK_CAT_TYPE_MASK 0x0000000fUL |
#define | DUK_CAT_TYPE_BITS 4 |
#define | DUK_CAT_LABEL_MASK 0xffffff00UL |
#define | DUK_CAT_LABEL_BITS 24 |
#define | DUK_CAT_LABEL_SHIFT 8 |
#define | DUK_CAT_FLAG_CATCH_ENABLED (1 << 4) /* catch part will catch */ |
#define | DUK_CAT_FLAG_FINALLY_ENABLED (1 << 5) /* finally part will catch */ |
#define | DUK_CAT_FLAG_CATCH_BINDING_ENABLED (1 << 6) /* request to create catch binding */ |
#define | DUK_CAT_FLAG_LEXENV_ACTIVE (1 << 7) /* catch or with binding is currently active */ |
#define | DUK_CAT_TYPE_UNKNOWN 0 |
#define | DUK_CAT_TYPE_TCF 1 |
#define | DUK_CAT_TYPE_LABEL 2 |
#define | DUK_CAT_GET_TYPE(c) ((c)->flags & DUK_CAT_TYPE_MASK) |
#define | DUK_CAT_GET_LABEL(c) (((c)->flags & DUK_CAT_LABEL_MASK) >> DUK_CAT_LABEL_SHIFT) |
#define | DUK_CAT_HAS_CATCH_ENABLED(c) ((c)->flags & DUK_CAT_FLAG_CATCH_ENABLED) |
#define | DUK_CAT_HAS_FINALLY_ENABLED(c) ((c)->flags & DUK_CAT_FLAG_FINALLY_ENABLED) |
#define | DUK_CAT_HAS_CATCH_BINDING_ENABLED(c) ((c)->flags & DUK_CAT_FLAG_CATCH_BINDING_ENABLED) |
#define | DUK_CAT_HAS_LEXENV_ACTIVE(c) ((c)->flags & DUK_CAT_FLAG_LEXENV_ACTIVE) |
#define | DUK_CAT_SET_CATCH_ENABLED(c) |
#define | DUK_CAT_SET_FINALLY_ENABLED(c) |
#define | DUK_CAT_SET_CATCH_BINDING_ENABLED(c) |
#define | DUK_CAT_SET_LEXENV_ACTIVE(c) |
#define | DUK_CAT_CLEAR_CATCH_ENABLED(c) |
#define | DUK_CAT_CLEAR_FINALLY_ENABLED(c) |
#define | DUK_CAT_CLEAR_CATCH_BINDING_ENABLED(c) |
#define | DUK_CAT_CLEAR_LEXENV_ACTIVE(c) |
#define | DUK_HTHREAD_GET_STRING(thr, idx) ((thr)->strs[(idx)]) |
#define | DUK_HTHREAD_GET_CURRENT_ACTIVATION(thr) (&(thr)->callstack[(thr)->callstack_top - 1]) |
#define | DUK_HTHREAD_STATE_INACTIVE 1 /* thread not currently running */ |
#define | DUK_HTHREAD_STATE_RUNNING 2 /* thread currently running (only one at a time) */ |
#define | DUK_HTHREAD_STATE_RESUMED 3 /* thread resumed another thread (active but not running) */ |
#define | DUK_HTHREAD_STATE_YIELDED 4 /* thread has yielded */ |
#define | DUK_HTHREAD_STATE_TERMINATED 5 /* thread has terminated */ |
#define | DUK_ASSERT_CTX_VSSIZE(ctx) |
#define | DUK_ASSERT_CTX_VALID(ctx) |
#define DUK_ACT_FLAG_BREAKPOINT_ACTIVE (1 << 5) /* activation has active breakpoint(s) */ |
Definition at line 53 of file duktape-1.8.0/src-separate/duk_hthread.h.
#define DUK_ACT_FLAG_CONSTRUCT (1 << 2) /* function executes as a constructor (called via "new") */ |
Definition at line 50 of file duktape-1.8.0/src-separate/duk_hthread.h.
Definition at line 52 of file duktape-1.8.0/src-separate/duk_hthread.h.
#define DUK_ACT_FLAG_PREVENT_YIELD (1 << 3) /* activation prevents yield (native call or "new") */ |
Definition at line 51 of file duktape-1.8.0/src-separate/duk_hthread.h.
#define DUK_ACT_FLAG_STRICT (1 << 0) /* function executes in strict mode */ |
Definition at line 48 of file duktape-1.8.0/src-separate/duk_hthread.h.
#define DUK_ACT_FLAG_TAILCALLED (1 << 1) /* activation has tail called one or more times */ |
Definition at line 49 of file duktape-1.8.0/src-separate/duk_hthread.h.
#define DUK_ACT_GET_FUNC | ( | act | ) | ((act)->func) |
Definition at line 55 of file duktape-1.8.0/src-separate/duk_hthread.h.
#define DUK_ASSERT_CTX_VALID | ( | ctx | ) |
Definition at line 167 of file duktape-1.8.0/src-separate/duk_hthread.h.
#define DUK_ASSERT_CTX_VSSIZE | ( | ctx | ) |
Definition at line 163 of file duktape-1.8.0/src-separate/duk_hthread.h.
#define DUK_CALLSTACK_DEFAULT_MAX 10000L |
Definition at line 36 of file duktape-1.8.0/src-separate/duk_hthread.h.
#define DUK_CALLSTACK_GROW_STEP 8 /* roughly 256 bytes */ |
Definition at line 32 of file duktape-1.8.0/src-separate/duk_hthread.h.
#define DUK_CALLSTACK_INITIAL_SIZE 8 |
Definition at line 35 of file duktape-1.8.0/src-separate/duk_hthread.h.
#define DUK_CALLSTACK_SHRINK_SPARE 8 /* roughly 256 bytes */ |
Definition at line 34 of file duktape-1.8.0/src-separate/duk_hthread.h.
#define DUK_CALLSTACK_SHRINK_THRESHOLD 16 /* roughly 512 bytes */ |
Definition at line 33 of file duktape-1.8.0/src-separate/duk_hthread.h.
#define DUK_CAT_CLEAR_CATCH_BINDING_ENABLED | ( | c | ) |
Definition at line 110 of file duktape-1.8.0/src-separate/duk_hthread.h.
#define DUK_CAT_CLEAR_CATCH_ENABLED | ( | c | ) |
Definition at line 104 of file duktape-1.8.0/src-separate/duk_hthread.h.
#define DUK_CAT_CLEAR_FINALLY_ENABLED | ( | c | ) |
Definition at line 107 of file duktape-1.8.0/src-separate/duk_hthread.h.
#define DUK_CAT_CLEAR_LEXENV_ACTIVE | ( | c | ) |
Definition at line 113 of file duktape-1.8.0/src-separate/duk_hthread.h.
#define DUK_CAT_FLAG_CATCH_BINDING_ENABLED (1 << 6) /* request to create catch binding */ |
Definition at line 76 of file duktape-1.8.0/src-separate/duk_hthread.h.
#define DUK_CAT_FLAG_CATCH_ENABLED (1 << 4) /* catch part will catch */ |
Definition at line 74 of file duktape-1.8.0/src-separate/duk_hthread.h.
#define DUK_CAT_FLAG_FINALLY_ENABLED (1 << 5) /* finally part will catch */ |
Definition at line 75 of file duktape-1.8.0/src-separate/duk_hthread.h.
#define DUK_CAT_FLAG_LEXENV_ACTIVE (1 << 7) /* catch or with binding is currently active */ |
Definition at line 77 of file duktape-1.8.0/src-separate/duk_hthread.h.
#define DUK_CAT_GET_LABEL | ( | c | ) | (((c)->flags & DUK_CAT_LABEL_MASK) >> DUK_CAT_LABEL_SHIFT) |
Definition at line 84 of file duktape-1.8.0/src-separate/duk_hthread.h.
#define DUK_CAT_GET_TYPE | ( | c | ) | ((c)->flags & DUK_CAT_TYPE_MASK) |
Definition at line 83 of file duktape-1.8.0/src-separate/duk_hthread.h.
#define DUK_CAT_HAS_CATCH_BINDING_ENABLED | ( | c | ) | ((c)->flags & DUK_CAT_FLAG_CATCH_BINDING_ENABLED) |
Definition at line 88 of file duktape-1.8.0/src-separate/duk_hthread.h.
#define DUK_CAT_HAS_CATCH_ENABLED | ( | c | ) | ((c)->flags & DUK_CAT_FLAG_CATCH_ENABLED) |
Definition at line 86 of file duktape-1.8.0/src-separate/duk_hthread.h.
#define DUK_CAT_HAS_FINALLY_ENABLED | ( | c | ) | ((c)->flags & DUK_CAT_FLAG_FINALLY_ENABLED) |
Definition at line 87 of file duktape-1.8.0/src-separate/duk_hthread.h.
#define DUK_CAT_HAS_LEXENV_ACTIVE | ( | c | ) | ((c)->flags & DUK_CAT_FLAG_LEXENV_ACTIVE) |
Definition at line 89 of file duktape-1.8.0/src-separate/duk_hthread.h.
#define DUK_CAT_LABEL_BITS 24 |
Definition at line 71 of file duktape-1.8.0/src-separate/duk_hthread.h.
#define DUK_CAT_LABEL_MASK 0xffffff00UL |
Definition at line 70 of file duktape-1.8.0/src-separate/duk_hthread.h.
#define DUK_CAT_LABEL_SHIFT 8 |
Definition at line 72 of file duktape-1.8.0/src-separate/duk_hthread.h.
#define DUK_CAT_SET_CATCH_BINDING_ENABLED | ( | c | ) |
Definition at line 97 of file duktape-1.8.0/src-separate/duk_hthread.h.
#define DUK_CAT_SET_CATCH_ENABLED | ( | c | ) |
Definition at line 91 of file duktape-1.8.0/src-separate/duk_hthread.h.
#define DUK_CAT_SET_FINALLY_ENABLED | ( | c | ) |
Definition at line 94 of file duktape-1.8.0/src-separate/duk_hthread.h.
#define DUK_CAT_SET_LEXENV_ACTIVE | ( | c | ) |
Definition at line 100 of file duktape-1.8.0/src-separate/duk_hthread.h.
#define DUK_CAT_TYPE_BITS 4 |
Definition at line 69 of file duktape-1.8.0/src-separate/duk_hthread.h.
#define DUK_CAT_TYPE_LABEL 2 |
Definition at line 81 of file duktape-1.8.0/src-separate/duk_hthread.h.
#define DUK_CAT_TYPE_MASK 0x0000000fUL |
Definition at line 68 of file duktape-1.8.0/src-separate/duk_hthread.h.
#define DUK_CAT_TYPE_TCF 1 |
Definition at line 80 of file duktape-1.8.0/src-separate/duk_hthread.h.
#define DUK_CAT_TYPE_UNKNOWN 0 |
Definition at line 79 of file duktape-1.8.0/src-separate/duk_hthread.h.
#define DUK_CATCHSTACK_DEFAULT_MAX 10000L |
Definition at line 42 of file duktape-1.8.0/src-separate/duk_hthread.h.
#define DUK_CATCHSTACK_GROW_STEP 4 /* roughly 64 bytes */ |
Definition at line 38 of file duktape-1.8.0/src-separate/duk_hthread.h.
#define DUK_CATCHSTACK_INITIAL_SIZE 4 |
Definition at line 41 of file duktape-1.8.0/src-separate/duk_hthread.h.
#define DUK_CATCHSTACK_SHRINK_SPARE 4 /* roughly 64 bytes */ |
Definition at line 40 of file duktape-1.8.0/src-separate/duk_hthread.h.
#define DUK_CATCHSTACK_SHRINK_THRESHOLD 8 /* roughly 128 bytes */ |
Definition at line 39 of file duktape-1.8.0/src-separate/duk_hthread.h.
#define DUK_HTHREAD_GET_CURRENT_ACTIVATION | ( | thr | ) | (&(thr)->callstack[(thr)->callstack_top - 1]) |
Definition at line 134 of file duktape-1.8.0/src-separate/duk_hthread.h.
#define DUK_HTHREAD_GET_STRING | ( | thr, | |
idx ) ((thr)->strs[(idx)]) |
Definition at line 129 of file duktape-1.8.0/src-separate/duk_hthread.h.
#define DUK_HTHREAD_STATE_INACTIVE 1 /* thread not currently running */ |
Definition at line 137 of file duktape-1.8.0/src-separate/duk_hthread.h.
#define DUK_HTHREAD_STATE_RESUMED 3 /* thread resumed another thread (active but not running) */ |
Definition at line 139 of file duktape-1.8.0/src-separate/duk_hthread.h.
#define DUK_HTHREAD_STATE_RUNNING 2 /* thread currently running (only one at a time) */ |
Definition at line 138 of file duktape-1.8.0/src-separate/duk_hthread.h.
#define DUK_HTHREAD_STATE_TERMINATED 5 /* thread has terminated */ |
Definition at line 141 of file duktape-1.8.0/src-separate/duk_hthread.h.
#define DUK_HTHREAD_STATE_YIELDED 4 /* thread has yielded */ |
Definition at line 140 of file duktape-1.8.0/src-separate/duk_hthread.h.
#define DUK_TB_FLAG_NOBLAME_FILELINE (1 << 0) /* don't report __FILE__ / __LINE__ as fileName/lineNumber */ |
Definition at line 61 of file duktape-1.8.0/src-separate/duk_hthread.h.
#define DUK_VALSTACK_API_ENTRY_MINIMUM DUK_API_ENTRY_STACK |
Definition at line 20 of file duktape-1.8.0/src-separate/duk_hthread.h.
#define DUK_VALSTACK_DEFAULT_MAX 1000000L |
Definition at line 30 of file duktape-1.8.0/src-separate/duk_hthread.h.
#define DUK_VALSTACK_GROW_STEP 128 /* roughly 1 kiB */ |
Definition at line 15 of file duktape-1.8.0/src-separate/duk_hthread.h.
#define DUK_VALSTACK_INITIAL_SIZE 128 /* roughly 1.0 kiB -> but rounds up to DUK_VALSTACK_GROW_STEP in practice */ |
Definition at line 18 of file duktape-1.8.0/src-separate/duk_hthread.h.
#define DUK_VALSTACK_INTERNAL_EXTRA |
Definition at line 19 of file duktape-1.8.0/src-separate/duk_hthread.h.
#define DUK_VALSTACK_SHRINK_SPARE 64 /* roughly 0.5 kiB */ |
Definition at line 17 of file duktape-1.8.0/src-separate/duk_hthread.h.
#define DUK_VALSTACK_SHRINK_THRESHOLD 256 /* roughly 2 kiB */ |
Definition at line 16 of file duktape-1.8.0/src-separate/duk_hthread.h.
DUK_INTERNAL_DECL void duk_hthread_callstack_grow | ( | duk_hthread * | thr | ) |
Definition at line 54177 of file duktape-1.5.2/src-noline/duktape.c.
References duk_hthread::callstack, duk_hthread::callstack_max, duk_hthread::callstack_size, duk_hthread::callstack_top, DUK_ASSERT, DUK_ASSERT_DISABLE, DUK_CALLSTACK_GROW_STEP, DUK_DD, DUK_DDPRINT, DUK_ERROR_ALLOC_DEFMSG, DUK_ERROR_RANGE, duk_hthread_get_callstack_ptr(), DUK_REALLOC_INDIRECT, DUK_STR_CALLSTACK_LIMIT, duk_hthread::heap, and NULL.
Referenced by duk__handle_call_inner(), and duk_handle_ecma_call_setup().
DUK_INTERNAL_DECL void duk_hthread_callstack_shrink_check | ( | duk_hthread * | thr | ) |
Definition at line 54217 of file duktape-1.5.2/src-noline/duktape.c.
References duk_hthread::callstack, duk_hthread::callstack_size, duk_hthread::callstack_top, DUK_ASSERT, DUK_ASSERT_DISABLE, DUK_CALLSTACK_SHRINK_SPARE, DUK_CALLSTACK_SHRINK_THRESHOLD, DUK_D, DUK_DD, DUK_DDPRINT, DUK_DPRINT, duk_hthread_get_callstack_ptr(), DUK_REALLOC_INDIRECT, duk_hthread::heap, and NULL.
Referenced by duk__handle_call_error(), duk__handle_call_inner(), and duk__handle_safe_call_error().
DUK_INTERNAL_DECL void duk_hthread_callstack_unwind | ( | duk_hthread * | thr, |
duk_size_t | new_top ) |
Definition at line 54255 of file duktape-1.5.2/src-noline/duktape.c.
References duk_hthread::callstack, duk_hthread::callstack_preventcount, duk_hthread::callstack_size, duk_hthread::callstack_top, DUK_ACT_FLAG_PREVENT_YIELD, DUK_ACT_GET_FUNC, DUK_ASSERT, DUK_ASSERT_DISABLE, DUK_DD, DUK_DDD, DUK_DDDPRINT, DUK_DDPRINT, DUK_HOBJECT_DECREF, DUK_HOBJECT_DECREF_ALLOWNULL, duk_hobject_find_existing_entry_tval_ptr(), DUK_HOBJECT_HAS_NEWENV, DUK_HOBJECT_HAS_STRICT, DUK_HTHREAD_STRING_CALLER, DUK_HTHREAD_STRING_INT_CALLEE, DUK_HTHREAD_STRING_INT_REGBASE, DUK_HTHREAD_STRING_INT_THREAD, DUK_HTHREAD_STRING_INT_VARMAP, duk_js_close_environment_record(), DUK_TVAL_DECREF, DUK_TVAL_SET_NULL, DUK_TVAL_SET_OBJECT, DUK_TVAL_SET_TVAL, DUK_UNREF, duk_activation::flags, duk_activation::func, duk_hthread::heap, duk_activation::idx_bottom, duk_activation::idx_retval, duk_activation::lex_env, NULL, and duk_activation::var_env.
Referenced by duk__handle_call_error(), duk__handle_call_inner(), duk__handle_catch(), duk__handle_finally(), duk__handle_longjmp(), duk__handle_return(), duk__handle_safe_call_error(), duk__handle_yield(), duk_handle_ecma_call_setup(), and duk_hthread_terminate().
DUK_INTERNAL_DECL void duk_hthread_catchstack_grow | ( | duk_hthread * | thr | ) |
Definition at line 54482 of file duktape-1.5.2/src-noline/duktape.c.
References duk_hthread::catchstack, duk_hthread::catchstack_max, duk_hthread::catchstack_size, duk_hthread::catchstack_top, DUK_ASSERT, DUK_ASSERT_DISABLE, DUK_CATCHSTACK_GROW_STEP, DUK_DD, DUK_DDPRINT, DUK_ERROR_ALLOC_DEFMSG, DUK_ERROR_RANGE, duk_hthread_get_catchstack_ptr(), DUK_REALLOC_INDIRECT, DUK_STR_CATCHSTACK_LIMIT, duk_hthread::heap, duk_activation::idx_retval, and NULL.
Referenced by duk__js_execute_bytecode_inner().
DUK_INTERNAL_DECL void duk_hthread_catchstack_shrink_check | ( | duk_hthread * | thr | ) |
Definition at line 54522 of file duktape-1.5.2/src-noline/duktape.c.
References duk_hthread::catchstack, duk_hthread::catchstack_size, duk_hthread::catchstack_top, DUK_ASSERT, DUK_ASSERT_DISABLE, DUK_CATCHSTACK_SHRINK_SPARE, DUK_CATCHSTACK_SHRINK_THRESHOLD, DUK_D, DUK_DD, DUK_DDPRINT, DUK_DPRINT, duk_hthread_get_catchstack_ptr(), DUK_REALLOC_INDIRECT, duk_hthread::heap, and NULL.
Referenced by duk__handle_call_error(), duk__handle_call_inner(), and duk__handle_safe_call_error().
DUK_INTERNAL_DECL void duk_hthread_catchstack_unwind | ( | duk_hthread * | thr, |
duk_size_t | new_top ) |
Definition at line 54560 of file duktape-1.5.2/src-noline/duktape.c.
References duk_hthread::callstack, duk_catcher::callstack_index, duk_hthread::callstack_top, duk_hthread::catchstack, duk_hthread::catchstack_size, duk_hthread::catchstack_top, DUK_ASSERT, DUK_ASSERT_DISABLE, DUK_CAT_HAS_LEXENV_ACTIVE, DUK_DDD, DUK_DDDPRINT, DUK_HOBJECT_DECREF, DUK_HOBJECT_GET_PROTOTYPE, duk_hthread::heap, duk_activation::lex_env, and NULL.
Referenced by duk__handle_call_error(), duk__handle_call_inner(), duk__handle_catch(), duk__handle_finally(), duk__handle_label(), duk__handle_longjmp(), duk__handle_return(), duk__handle_safe_call_error(), duk__js_execute_bytecode_inner(), duk_handle_ecma_call_setup(), and duk_hthread_terminate().
DUK_INTERNAL_DECL void duk_hthread_copy_builtin_objects | ( | duk_hthread * | thr_from, |
duk_hthread * | thr_to ) |
Definition at line 54036 of file duktape-1.5.2/src-noline/duktape.c.
References duk_hthread::builtins, DUK_DD, DUK_DDPRINT, DUK_HOBJECT_INCREF_ALLOWNULL, DUK_NUM_BUILTINS, and duk_require_hobject().
Referenced by duk_push_thread_raw().
DUK_INTERNAL_DECL void duk_hthread_create_builtin_objects | ( | duk_hthread * | thr | ) |
Definition at line 53417 of file duktape-1.5.2/src-noline/duktape.c.
References duk_hthread::builtins, duk_bitdecoder_ctx::data, DUK__BIDX_BITS, DUK__CLASS_BITS, DUK__LENGTH_PROP_BITS, DUK__MAGIC_BITS, DUK__NARGS_BITS, DUK__NARGS_VARARGS_MARKER, DUK__NATIDX_BITS, DUK__NO_BIDX_MARKER, DUK__NUM_FUNC_PROPS_BITS, DUK__NUM_NORMAL_PROPS_BITS, DUK__PROP_FLAGS_BITS, DUK__PROP_TYPE_ACCESSOR, DUK__PROP_TYPE_BITS, DUK__PROP_TYPE_BOOLEAN_FALSE, DUK__PROP_TYPE_BOOLEAN_TRUE, DUK__PROP_TYPE_BUILTIN, DUK__PROP_TYPE_DOUBLE, DUK__PROP_TYPE_STRIDX, DUK__PROP_TYPE_STRING, DUK__PROP_TYPE_UNDEFINED, duk__push_double(), duk__push_stridx(), duk__push_stridx_or_string(), duk__push_string(), DUK_ASSERT, DUK_ASSERT_TOP, duk_bd_decode(), duk_bd_decode_flag(), duk_bd_decode_flagged(), duk_bi_native_functions, DUK_BIDX_DATE_PROTOTYPE, DUK_BIDX_DOUBLE_ERROR, DUK_BIDX_DUKTAPE, DUK_BIDX_FUNCTION_PROTOTYPE, DUK_BIDX_OBJECT_CONSTRUCTOR, DUK_BIDX_OBJECT_PROTOTYPE, DUK_D, DUK_DD, DUK_DDD, DUK_DDDPRINT, DUK_DDPRINT, DUK_DELPROP_FLAG_THROW, DUK_DPRINT, duk_dup(), duk_eval_string, duk_eval_string_noresult, duk_get_hstring(), duk_get_prop_stridx(), duk_get_tval(), DUK_HOBJECT_CLASS_ARRAY, DUK_HOBJECT_CLASS_FUNCTION, DUK_HOBJECT_CLASS_STRING, DUK_HOBJECT_CLEAR_CONSTRUCTABLE, DUK_HOBJECT_CLEAR_EXTENSIBLE, duk_hobject_compact_props(), duk_hobject_define_accessor_internal(), duk_hobject_delprop_raw(), DUK_HOBJECT_FLAG_EXTENSIBLE, DUK_HOBJECT_HAS_ARRAY_PART, DUK_HOBJECT_HAS_BOUND, DUK_HOBJECT_HAS_COMPILEDFUNCTION, DUK_HOBJECT_HAS_CONSTRUCTABLE, DUK_HOBJECT_HAS_CREATEARGS, DUK_HOBJECT_HAS_ENVRECCLOSED, DUK_HOBJECT_HAS_EXOTIC_ARGUMENTS, DUK_HOBJECT_HAS_EXTENSIBLE, DUK_HOBJECT_HAS_NAMEBINDING, DUK_HOBJECT_HAS_NATIVEFUNCTION, DUK_HOBJECT_HAS_NEWENV, DUK_HOBJECT_HAS_STRICT, DUK_HOBJECT_HAS_THREAD, DUK_HOBJECT_INCREF, DUK_HOBJECT_SET_CLASS_NUMBER, DUK_HOBJECT_SET_EXOTIC_ARRAY, DUK_HOBJECT_SET_EXOTIC_STRINGOBJ, DUK_HOBJECT_SET_PROTOTYPE_UPDREF, DUK_HOBJECT_SET_STRICT, DUK_HTHREAD_STRING___PROTO__, DUK_HTHREAD_STRING_EVAL, DUK_HTHREAD_STRING_REQUIRE, DUK_HTHREAD_STRING_RESUME, DUK_HTHREAD_STRING_SET_PROTOTYPE_OF, DUK_HTHREAD_STRING_YIELD, duk_initjs_data, DUK_LFUNC_FLAGS_PACK, DUK_LFUNC_LENGTH_MAX, DUK_LFUNC_MAGIC_MAX, DUK_LFUNC_MAGIC_MIN, DUK_LFUNC_NARGS_MAX, DUK_LFUNC_NARGS_MIN, DUK_LFUNC_NARGS_VARARGS, DUK_MEMZERO, DUK_NUM_ALL_BUILTINS, DUK_NUM_BUILTINS, duk_pop(), duk_pop_3(), DUK_PROPDESC_FLAG_ACCESSOR, DUK_PROPDESC_FLAG_WRITABLE, DUK_PROPDESC_FLAGS_NONE, DUK_PROPDESC_FLAGS_W, DUK_PROPDESC_FLAGS_WC, duk_push_c_function_noconstruct_noexotic(), duk_push_c_function_noexotic(), duk_push_false(), duk_push_int(), duk_push_object_helper(), duk_push_string(), duk_push_true(), duk_push_tval(), duk_push_undefined(), duk_require_hnativefunction(), duk_require_hobject(), duk_require_stack(), duk_set_top(), DUK_STRIDX_CONSTRUCTOR, DUK_STRIDX_ENV, DUK_STRIDX_LENGTH, DUK_STRIDX_NAME, DUK_STRIDX_PROTOTYPE, DUK_STRIDX_TO_GMT_STRING, DUK_STRIDX_TO_UTC_STRING, DUK_TVAL_SET_LIGHTFUNC, DUK_UNREACHABLE, DUK_UNREF, DUK_USE_ALIGN_BY, DUK_USE_ARCH_STRING, DUK_USE_COMPILER_STRING, DUK_USE_HOBJECT_LAYOUT_2, DUK_USE_OS_STRING, DUK_USE_STRTAB_PROBE, DUK_VARARGS, duk_xdef_prop(), duk_xdef_prop_stridx(), duk_xdef_prop_stridx_builtin(), error(), duk_hobject::hdr, duk_bitdecoder_ctx::length, duk_hnativefunction::magic, and NULL.
Referenced by duk__init_heap_thread(), and duk_push_thread_raw().
DUK_INTERNAL_DECL duk_uint_fast32_t duk_hthread_get_act_prev_pc | ( | duk_hthread * | thr, |
duk_activation * | act ) |
Definition at line 54106 of file duktape-1.5.2/src-noline/duktape.c.
References duk_activation::curr_pc, DUK_ASSERT, DUK_HCOMPILEDFUNCTION_GET_CODE_BASE, DUK_HOBJECT_IS_COMPILEDFUNCTION, DUK_UNREF, duk_activation::func, duk_hthread::heap, and NULL.
Referenced by duk__add_traceback(), and duk_bi_duktape_object_act().
DUK_INTERNAL_DECL void * duk_hthread_get_callstack_ptr | ( | duk_heap * | heap, |
void * | ud ) |
Definition at line 53197 of file duktape-1.5.2/src-noline/duktape.c.
References duk_hthread::callstack, and DUK_UNREF.
Referenced by duk_hthread_callstack_grow(), and duk_hthread_callstack_shrink_check().
DUK_INTERNAL_DECL void * duk_hthread_get_catchstack_ptr | ( | duk_heap * | heap, |
void * | ud ) |
Definition at line 53203 of file duktape-1.5.2/src-noline/duktape.c.
References duk_hthread::catchstack, and DUK_UNREF.
Referenced by duk_hthread_catchstack_grow(), and duk_hthread_catchstack_shrink_check().
DUK_INTERNAL_DECL duk_activation * duk_hthread_get_current_activation | ( | duk_hthread * | thr | ) |
Definition at line 54079 of file duktape-1.5.2/src-noline/duktape.c.
References duk_hthread::callstack, duk_hthread::callstack_top, DUK_ASSERT, and NULL.
Referenced by duk_get_current_magic(), duk_get_var(), duk_is_constructor_call(), duk_is_strict_call(), duk_push_current_function(), duk_push_current_thread(), and duk_put_var().
DUK_INTERNAL_DECL void * duk_hthread_get_valstack_ptr | ( | duk_heap * | heap, |
void * | ud ) |
Definition at line 53191 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_UNREF, and duk_hthread::valstack.
Referenced by duk__resize_valstack().
DUK_INTERNAL_DECL duk_bool_t duk_hthread_init_stacks | ( | duk_heap * | heap, |
duk_hthread * | thr ) |
Definition at line 53125 of file duktape-1.5.2/src-noline/duktape.c.
References duk_hthread::callstack, duk_hthread::callstack_size, duk_hthread::callstack_top, duk_hthread::catchstack, duk_hthread::catchstack_size, duk_hthread::catchstack_top, DUK_ALLOC, DUK_ASSERT, DUK_CALLSTACK_INITIAL_SIZE, DUK_CATCHSTACK_INITIAL_SIZE, DUK_FREE, DUK_MEMZERO, DUK_TVAL_SET_UNDEFINED, DUK_VALSTACK_INITIAL_SIZE, NULL, duk_hthread::valstack, duk_hthread::valstack_bottom, duk_hthread::valstack_end, duk_hthread::valstack_size, and duk_hthread::valstack_top.
Referenced by duk__init_heap_thread(), and duk_push_thread_raw().
DUK_INTERNAL_DECL void duk_hthread_sync_and_null_currpc | ( | duk_hthread * | thr | ) |
Definition at line 54139 of file duktape-1.5.2/src-noline/duktape.c.
References duk_hthread::callstack, duk_hthread::callstack_top, duk_activation::curr_pc, DUK_ASSERT, NULL, and duk_hthread::ptr_curr_pc.
Referenced by duk__handle_call_inner(), duk_err_create_and_throw(), duk_handle_ecma_call_setup(), and duk_throw().
DUK_INTERNAL_DECL void duk_hthread_sync_currpc | ( | duk_hthread * | thr | ) |
Definition at line 54126 of file duktape-1.5.2/src-noline/duktape.c.
References duk_hthread::callstack, duk_hthread::callstack_top, duk_activation::curr_pc, DUK_ASSERT, NULL, and duk_hthread::ptr_curr_pc.
Referenced by duk_new().
DUK_INTERNAL_DECL void duk_hthread_terminate | ( | duk_hthread * | thr | ) |
Definition at line 54050 of file duktape-1.5.2/src-noline/duktape.c.
References duk_hthread::builtins, DUK_ASSERT, DUK_HOBJECT_INCREF_ALLOWNULL, duk_hthread_callstack_unwind(), duk_hthread_catchstack_unwind(), DUK_HTHREAD_STATE_TERMINATED, DUK_NUM_BUILTINS, duk_set_top(), NULL, duk_hthread::state, duk_hthread::valstack, and duk_hthread::valstack_bottom.
Referenced by duk__handle_longjmp(), and duk__handle_return().