Github User Fetcher 1.0.0
C Application with Server and GUI
|
Go to the source code of this file.
#define DUK_ASSERT_VALID_NEGIDX | ( | ctx, | |
idx ) (DUK_ASSERT_EXPR((idx) < 0), DUK_ASSERT_EXPR(duk_is_valid_index((ctx), (idx)))) |
Definition at line 181 of file duktape-1.8.0/src-separate/duk_api_internal.h.
#define DUK_ASSERT_VALID_POSIDX | ( | ctx, | |
idx ) (DUK_ASSERT_EXPR((idx) >= 0), DUK_ASSERT_EXPR(duk_is_valid_index((ctx), (idx)))) |
Definition at line 183 of file duktape-1.8.0/src-separate/duk_api_internal.h.
#define DUK_ERRCODE_FLAG_NOBLAME_FILELINE (1L << 24) |
Definition at line 16 of file duktape-1.8.0/src-separate/duk_api_internal.h.
#define DUK_GET_HOBJECT_NEGIDX | ( | ctx, | |
idx ) (DUK_ASSERT_VALID_NEGIDX((ctx),(idx)), DUK_TVAL_GET_OBJECT(((duk_hthread *) (ctx))->valstack_top + (idx))) |
Definition at line 189 of file duktape-1.8.0/src-separate/duk_api_internal.h.
#define DUK_GET_HOBJECT_POSIDX | ( | ctx, | |
idx ) (DUK_ASSERT_VALID_POSIDX((ctx),(idx)), DUK_TVAL_GET_OBJECT(((duk_hthread *) (ctx))->valstack_bottom + (idx))) |
Definition at line 191 of file duktape-1.8.0/src-separate/duk_api_internal.h.
#define DUK_GET_TVAL_NEGIDX | ( | ctx, | |
idx ) (DUK_ASSERT_VALID_NEGIDX((ctx),(idx)), ((duk_hthread *) (ctx))->valstack_top + (idx)) |
Definition at line 185 of file duktape-1.8.0/src-separate/duk_api_internal.h.
#define DUK_GET_TVAL_POSIDX | ( | ctx, | |
idx ) (DUK_ASSERT_VALID_POSIDX((ctx),(idx)), ((duk_hthread *) (ctx))->valstack_bottom + (idx)) |
Definition at line 187 of file duktape-1.8.0/src-separate/duk_api_internal.h.
#define duk_push_hcompiledfunction | ( | ctx, | |
h ) duk_push_hobject((ctx), (duk_hobject *) (h)) |
Definition at line 128 of file duktape-1.8.0/src-separate/duk_api_internal.h.
#define duk_push_hnativefunction | ( | ctx, | |
h ) duk_push_hobject((ctx), (duk_hobject *) (h)) |
Definition at line 130 of file duktape-1.8.0/src-separate/duk_api_internal.h.
#define duk_push_hthread | ( | ctx, | |
h ) duk_push_hobject((ctx), (duk_hobject *) (h)) |
Definition at line 126 of file duktape-1.8.0/src-separate/duk_api_internal.h.
#define duk_push_i32 | ( | ctx, | |
val ) duk_push_int((ctx), (duk_int_t) (val)) |
Definition at line 65 of file duktape-1.8.0/src-separate/duk_api_internal.h.
#define duk_push_i64 | ( | ctx, | |
val ) duk_push_number((ctx), (duk_double_t) (val)) |
Definition at line 59 of file duktape-1.8.0/src-separate/duk_api_internal.h.
#define duk_push_idx | ( | ctx, | |
val ) duk_push_int((ctx), (duk_int_t) (val)) |
Definition at line 69 of file duktape-1.8.0/src-separate/duk_api_internal.h.
#define duk_push_size_t | ( | ctx, | |
val ) duk_push_uint((ctx), (duk_uint_t) (val)) /* XXX: assumed to fit for now */ |
Definition at line 73 of file duktape-1.8.0/src-separate/duk_api_internal.h.
#define DUK_PUSH_SPRINTF_INITIAL_SIZE 256L |
Definition at line 10 of file duktape-1.8.0/src-separate/duk_api_internal.h.
#define DUK_PUSH_SPRINTF_SANITY_LIMIT (1L * 1024L * 1024L * 1024L) |
Definition at line 11 of file duktape-1.8.0/src-separate/duk_api_internal.h.
#define duk_push_u32 | ( | ctx, | |
val ) duk_push_uint((ctx), (duk_uint_t) (val)) |
Definition at line 63 of file duktape-1.8.0/src-separate/duk_api_internal.h.
#define duk_push_u64 | ( | ctx, | |
val ) duk_push_number((ctx), (duk_double_t) (val)) |
Definition at line 57 of file duktape-1.8.0/src-separate/duk_api_internal.h.
#define duk_push_uarridx | ( | ctx, | |
val ) duk_push_uint((ctx), (duk_uint_t) (val)) |
Definition at line 71 of file duktape-1.8.0/src-separate/duk_api_internal.h.
#define DUK_VSRESIZE_FLAG_COMPACT (1 << 1) |
Definition at line 20 of file duktape-1.8.0/src-separate/duk_api_internal.h.
#define DUK_VSRESIZE_FLAG_SHRINK (1 << 0) |
Definition at line 19 of file duktape-1.8.0/src-separate/duk_api_internal.h.
#define DUK_VSRESIZE_FLAG_THROW (1 << 2) |
Definition at line 21 of file duktape-1.8.0/src-separate/duk_api_internal.h.
#define duk_xdef_prop_index_wec | ( | ctx, | |
obj_index, | |||
arr_index ) duk_xdef_prop_index((ctx), (obj_index), (arr_index), DUK_PROPDESC_FLAGS_WEC) |
Definition at line 168 of file duktape-1.8.0/src-separate/duk_api_internal.h.
#define duk_xdef_prop_stridx_wec | ( | ctx, | |
obj_index, | |||
stridx ) duk_xdef_prop_stridx((ctx), (obj_index), (stridx), DUK_PROPDESC_FLAGS_WEC) |
Definition at line 170 of file duktape-1.8.0/src-separate/duk_api_internal.h.
#define duk_xdef_prop_wec | ( | ctx, | |
obj_index ) duk_xdef_prop((ctx), (obj_index), DUK_PROPDESC_FLAGS_WEC) |
Definition at line 166 of file duktape-1.8.0/src-separate/duk_api_internal.h.
DUK_INTERNAL_DECL duk_bool_t duk_del_prop_stridx | ( | duk_context * | ctx, |
duk_idx_t | obj_index, | ||
duk_small_int_t | stridx ) |
Definition at line 14458 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT, DUK_ASSERT_CTX_VALID, DUK_ASSERT_DISABLE, duk_del_prop(), DUK_HEAP_NUM_STRINGS, DUK_HTHREAD_GET_STRING, duk_push_hstring(), duk_push_string(), duk_require_normalize_index(), DUK_UNREF, and NULL.
Referenced by duk_js_close_environment_record().
DUK_INTERNAL_DECL duk_tval * duk_get_borrowed_this_tval | ( | duk_context * | ctx | ) |
Definition at line 18207 of file duktape-1.5.2/src-noline/duktape.c.
References duk_hthread::callstack_top, DUK_ASSERT, NULL, duk_hthread::valstack, and duk_hthread::valstack_bottom.
Referenced by duk__getrequire_bufobj_this(), and duk_bi_buffer_prototype_tostring_shared().
DUK_INTERNAL_DECL duk_hbuffer * duk_get_hbuffer | ( | duk_context * | ctx, |
duk_idx_t | index ) |
Definition at line 16314 of file duktape-1.5.2/src-noline/duktape.c.
References duk__get_tagged_heaphdr_raw(), DUK_TAG_BUFFER, and index.
Referenced by duk__convert_to_func_template(), duk__init_func_valstack_slots(), duk__js_compile_raw(), duk__load_func(), duk__load_func(), duk__push_arraybuffer_with_length(), duk_bi_arraybuffer_constructor(), duk_bi_buffer_constructor(), duk_bi_buffer_slice_shared(), duk_bi_nodejs_buffer_concat(), duk_bi_nodejs_buffer_constructor(), duk_bw_init_pushbuf(), duk_hobject_pc2line_pack(), duk_hobject_pc2line_query(), and duk_to_buffer_raw().
DUK_INTERNAL_DECL duk_hcompiledfunction * duk_get_hcompiledfunction | ( | duk_context * | ctx, |
duk_idx_t | index ) |
Definition at line 16344 of file duktape-1.5.2/src-noline/duktape.c.
References duk__get_tagged_heaphdr_raw(), DUK_HOBJECT_IS_COMPILEDFUNCTION, DUK_HOBJECT_IS_THREAD, DUK_TAG_OBJECT, index, and NULL.
Referenced by duk__load_func(), duk__load_func(), and duk_js_push_closure().
DUK_INTERNAL_DECL duk_hnativefunction * duk_get_hnativefunction | ( | duk_context * | ctx, |
duk_idx_t | index ) |
Definition at line 16361 of file duktape-1.5.2/src-noline/duktape.c.
References duk__get_tagged_heaphdr_raw(), DUK_HOBJECT_IS_COMPILEDFUNCTION, DUK_HOBJECT_IS_NATIVEFUNCTION, DUK_TAG_OBJECT, index, and NULL.
Referenced by duk_to_object().
DUK_INTERNAL_DECL duk_hobject * duk_get_hobject | ( | duk_context * | ctx, |
duk_idx_t | index ) |
Definition at line 16301 of file duktape-1.5.2/src-noline/duktape.c.
References duk__get_tagged_heaphdr_raw(), DUK_TAG_OBJECT, and index.
Referenced by duk__compact_object_list(), duk__convert_to_func_template(), duk__create_arguments_object(), duk__dec_reviver_walk(), duk__do_compile(), duk__enc_objarr_entry(), duk__enc_objarr_exit(), duk__error_getter_helper(), duk__obj_flag_any_default_false(), duk__protected_compact_object(), duk__push_this_get_timeval_tzoffset(), duk__push_this_number_plain(), duk_bi_arraybuffer_isview(), duk_bi_boolean_constructor(), duk_bi_buffer_constructor(), duk_bi_function_constructor(), duk_bi_function_prototype_bind(), duk_bi_global_object_eval(), duk_bi_json_stringify_helper(), duk_bi_number_constructor(), duk_bi_object_constructor_define_property(), duk_bi_object_prototype_is_prototype_of(), duk_bi_object_setprototype_shared(), duk_bi_regexp_constructor(), duk_bi_thread_constructor(), duk_compact(), duk_err_augment_error_create(), duk_err_augment_error_create(), duk_err_setup_heap_ljstate(), duk_get_error_code(), duk_hobject_get_enumerated_keys(), duk_hobject_getprop(), duk_is_array(), duk_js_close_environment_record(), duk_new(), duk_push_object_helper_proto(), duk_push_this_coercible_to_object(), duk_regexp_create_instance(), duk_set_global_object(), duk_set_length(), duk_set_prototype(), and duk_to_object_class_string_top().
DUK_INTERNAL_DECL duk_hobject * duk_get_hobject_or_lfunc_coerce | ( | duk_context * | ctx, |
duk_idx_t | index ) |
Definition at line 16483 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT, DUK_ASSERT_CTX_VALID, duk_require_hobject(), duk_require_tval(), duk_to_object(), DUK_TVAL_GET_OBJECT, DUK_TVAL_IS_LIGHTFUNC, DUK_TVAL_IS_OBJECT, index, and NULL.
Referenced by duk__enc_value(), duk_def_prop(), duk_hobject_prepare_property_descriptor(), and duk_js_instanceof().
DUK_INTERNAL_DECL duk_hobject * duk_get_hobject_with_class | ( | duk_context * | ctx, |
duk_idx_t | index, | ||
duk_small_uint_t | classnum ) |
Definition at line 16541 of file duktape-1.5.2/src-noline/duktape.c.
References duk__get_tagged_heaphdr_raw(), DUK_ASSERT, DUK_ASSERT_CTX_VALID, DUK_ASSERT_DISABLE, DUK_ERROR_REQUIRE_TYPE_INDEX, DUK_HOBJECT_CLASS_MAX, DUK_HOBJECT_GET_CLASS_NUMBER, duk_require_hobject(), duk_require_tval(), DUK_STR_NOT_OBJECT, DUK_TAG_OBJECT, duk_to_object(), DUK_TVAL_GET_OBJECT, DUK_TVAL_IS_LIGHTFUNC, DUK_TVAL_IS_OBJECT, index, and NULL.
Referenced by duk__to_regexp_helper(), duk_bi_array_constructor_is_array(), duk_bi_array_prototype_concat(), duk_bi_array_prototype_to_string(), duk_bi_string_prototype_replace(), and duk_bi_string_prototype_split().
DUK_INTERNAL_DECL duk_hstring * duk_get_hstring | ( | duk_context * | ctx, |
duk_idx_t | index ) |
Definition at line 16288 of file duktape-1.5.2/src-noline/duktape.c.
References duk__get_tagged_heaphdr_raw(), DUK_TAG_STRING, and index.
Referenced by duk__create_escaped_source(), duk__do_compile(), duk__enc_object(), duk__error_getter_helper(), duk__expr_led(), duk__expr_nud(), duk__init_varmap_and_prologue_for_pass2(), duk__js_compile_raw(), duk__lookup_active_register_binding(), duk__parse_func_like_raw(), duk__parse_stmt(), duk__push_tval_to_hstring_arr_idx(), duk__regexp_match_helper(), duk_bi_global_object_eval(), duk_bi_json_stringify_helper(), duk_bi_object_constructor_define_properties(), duk_bi_regexp_prototype_to_string(), duk_bi_string_prototype_replace(), duk_bi_string_prototype_split(), duk_hobject_delprop(), duk_hthread_create_builtin_objects(), duk_lexer_parse_js_input_element(), duk_push_this_coercible_to_string(), duk_regexp_create_instance(), and duk_to_hstring().
DUK_INTERNAL_DECL duk_hthread * duk_get_hthread | ( | duk_context * | ctx, |
duk_idx_t | index ) |
Definition at line 16327 of file duktape-1.5.2/src-noline/duktape.c.
References duk__get_tagged_heaphdr_raw(), DUK_HOBJECT_IS_THREAD, DUK_TAG_OBJECT, index, and NULL.
Referenced by duk_get_context().
DUK_INTERNAL_DECL duk_bool_t duk_get_prop_stridx | ( | duk_context * | ctx, |
duk_idx_t | obj_index, | ||
duk_small_int_t | stridx ) |
Definition at line 14318 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT, DUK_ASSERT_CTX_VALID, DUK_ASSERT_DISABLE, duk_get_prop(), DUK_HEAP_NUM_STRINGS, DUK_HTHREAD_GET_STRING, duk_push_hstring(), duk_push_string(), duk_require_normalize_index(), DUK_UNREF, and NULL.
Referenced by duk__add_compiler_error_line(), duk__create_arguments_object(), duk__defaultvalue_coerce_attempt(), duk__enc_value(), duk__error_getter_helper(), duk__finalize_helper(), duk__handle_bound_chain_for_call(), duk__js_execute_bytecode_inner(), duk__parse_stmt(), duk__proxy_check_prop(), duk__push_stash(), duk__push_this_get_timeval_tzoffset(), duk__push_this_number_plain(), duk__push_this_obj_len_u32(), duk__push_this_obj_len_u32_limited(), duk__put_prop_shared(), duk__regexp_match_helper(), duk_bi_array_prototype_join_shared(), duk_bi_array_prototype_to_string(), duk_bi_boolean_constructor(), duk_bi_boolean_prototype_tostring_shared(), duk_bi_buffer_slice_shared(), duk_bi_date_prototype_to_json(), duk_bi_duktape_object_fin(), duk_bi_error_prototype_to_string(), duk_bi_function_prototype_apply(), duk_bi_function_prototype_bind(), duk_bi_function_prototype_to_string(), duk_bi_global_object_require(), duk_bi_logger_constructor(), duk_bi_logger_prototype_fmt(), duk_bi_logger_prototype_log_shared(), duk_bi_object_constructor_keys_shared(), duk_bi_object_prototype_is_prototype_of(), duk_bi_object_prototype_to_locale_string(), duk_bi_pointer_prototype_tostring_shared(), duk_bi_regexp_constructor(), duk_bi_regexp_prototype_to_string(), duk_bi_string_prototype_match(), duk_bi_string_prototype_replace(), duk_bi_string_prototype_search(), duk_bi_string_prototype_split(), duk_bi_string_prototype_to_string(), duk_get_finalizer(), duk_get_prop_stridx_boolean(), duk_hobject_enumerator_create(), duk_hobject_enumerator_next(), duk_hobject_pc2line_query(), duk_hobject_prepare_property_descriptor(), duk_hthread_create_builtin_objects(), duk_js_close_environment_record(), duk_js_instanceof(), duk_js_push_closure(), duk_log_va(), duk_new(), and duk_to_defaultvalue().
DUK_INTERNAL_DECL duk_bool_t duk_get_prop_stridx_boolean | ( | duk_context * | ctx, |
duk_idx_t | obj_index, | ||
duk_small_int_t | stridx, | ||
duk_bool_t * | out_has_prop ) |
Definition at line 14331 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT, DUK_ASSERT_CTX_VALID, DUK_ASSERT_DISABLE, duk_get_prop_stridx(), DUK_HEAP_NUM_STRINGS, duk_pop(), and duk_to_boolean().
Referenced by duk_bi_regexp_constructor(), duk_bi_string_prototype_match(), and duk_bi_string_prototype_replace().
DUK_INTERNAL_DECL duk_tval * duk_get_tval | ( | duk_context * | ctx, |
duk_idx_t | index ) |
Definition at line 15121 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT, DUK_ASSERT_CTX_VALID, DUK_ASSERT_DISABLE, DUK_INVALID_INDEX, DUK_LIKELY, index, NULL, duk_hthread::valstack_bottom, and duk_hthread::valstack_top.
Referenced by duk__add_compiler_error_line(), duk__add_traceback(), duk__advance_helper(), duk__api_coerce_d2i(), duk__api_coerce_d2ui(), duk__array_qsort(), duk__array_sort_compare(), duk__call_prop_prep_stack(), duk__concat_and_join_helper(), duk__convert_to_func_template(), duk__dec_array(), duk__dec_number(), duk__dec_object(), duk__dec_reviver_walk(), duk__enc_array(), duk__enc_objarr_entry(), duk__enc_objarr_exit(), duk__enc_object(), duk__enc_value(), duk__error_setter_helper(), duk__get_buffer_data_helper(), duk__get_buffer_helper(), duk__get_own_propdesc_raw(), duk__get_tagged_heaphdr_raw(), duk__handle_bound_chain_for_call(), duk__handle_call_inner(), duk__handle_put_array_length(), duk__init_varmap_and_prologue_for_pass2(), duk__ispec_toregconst_raw(), duk__ivalue_toplain_raw(), duk__ivalue_toregconst_raw(), duk__js_execute_bytecode_inner(), duk__load_func(), duk__load_func(), duk__lookup_active_register_binding(), duk__lookup_arguments_map(), duk__nud_object_literal(), duk__nud_object_literal_key_check(), duk__parse_stmt(), duk__parse_try_stmt(), duk__push_this_number_plain(), duk__regexp_match_helper(), duk__tag_check(), duk_bi_array_prototype_join_shared(), duk_bi_array_prototype_reduce_shared(), duk_bi_array_prototype_to_string(), duk_bi_boolean_prototype_tostring_shared(), duk_bi_buffer_writefield(), duk_bi_duktape_object_info(), duk_bi_function_prototype_apply(), duk_bi_function_prototype_bind(), duk_bi_function_prototype_call(), duk_bi_function_prototype_to_string(), duk_bi_global_object_eval(), duk_bi_global_object_require(), duk_bi_json_parse_helper(), duk_bi_json_stringify_helper(), duk_bi_nodejs_buffer_is_buffer(), duk_bi_object_constructor_create(), duk_bi_object_constructor_define_properties(), duk_bi_object_constructor_define_property(), duk_bi_regexp_constructor(), duk_bi_string_prototype_char_code_at(), duk_bi_thread_resume(), duk_bi_thread_yield(), duk_bi_typedarray_constructor(), duk_dump_function(), duk_equals(), duk_err_create_and_throw(), duk_get_boolean(), duk_get_c_function(), duk_get_heapptr(), duk_get_length(), duk_get_lstring(), duk_get_number(), duk_get_pointer(), duk_get_type(), duk_get_type_mask(), duk_handle_ecma_call_setup(), duk_hobject_define_property_helper(), duk_hobject_define_property_internal(), duk_hobject_define_property_internal_arridx(), duk_hobject_enumerator_create(), duk_hobject_enumerator_next(), duk_hobject_getprop(), duk_hobject_pc2line_pack(), duk_hobject_prototype_chain_contains(), duk_hobject_putprop(), duk_hobject_run_finalizer(), duk_hthread_create_builtin_objects(), duk_is_buffer_data(), duk_is_c_function(), duk_is_dynamic_buffer(), duk_is_external_buffer(), duk_is_fixed_buffer(), duk_is_function(), duk_is_nan(), duk_is_null_or_undefined(), duk_is_number(), duk_js_close_environment_record(), duk_js_push_closure(), duk_new(), duk_numconv_parse(), duk_push_string_readable(), duk_regexp_compile(), duk_require_boolean(), duk_require_heapptr(), duk_require_null(), duk_require_number(), duk_require_pointer(), duk_require_undefined(), duk_set_global_object(), duk_strict_equals(), duk_throw(), and duk_to_int_clamped_raw().
DUK_INTERNAL_DECL duk_bool_t duk_has_prop_stridx | ( | duk_context * | ctx, |
duk_idx_t | obj_index, | ||
duk_small_int_t | stridx ) |
Definition at line 14510 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT, DUK_ASSERT_CTX_VALID, DUK_ASSERT_DISABLE, duk_has_prop(), DUK_HEAP_NUM_STRINGS, DUK_HTHREAD_GET_STRING, duk_push_hstring(), duk_push_string(), duk_require_normalize_index(), DUK_UNREF, and NULL.
Referenced by duk__init_varmap_and_prologue_for_pass2(), and duk_js_push_closure().
DUK_INTERNAL_DECL duk_hbufferobject * duk_push_bufferobject_raw | ( | duk_context * | ctx, |
duk_uint_t | hobject_flags_and_class, | ||
duk_small_int_t | prototype_bidx ) |
Definition at line 18735 of file duktape-1.5.2/src-noline/duktape.c.
References duk_hthread::builtins, DUK_ASSERT, DUK_ASSERT_HBUFFEROBJECT_VALID, DUK_ERROR_ALLOC_DEFMSG, DUK_ERROR_API, duk_hbufferobject_alloc(), DUK_HOBJECT_INCREF, DUK_HOBJECT_SET_PROTOTYPE_UPDREF, DUK_STR_PUSH_BEYOND_ALLOC_STACK, DUK_TVAL_SET_OBJECT, duk_hthread::heap, NULL, duk_hthread::valstack_end, and duk_hthread::valstack_top.
Referenced by duk__push_arraybuffer_with_length(), duk_bi_arraybuffer_constructor(), duk_bi_buffer_constructor(), duk_bi_buffer_slice_shared(), duk_bi_dataview_constructor(), duk_bi_nodejs_buffer_concat(), duk_bi_nodejs_buffer_constructor(), duk_bi_typedarray_constructor(), duk_push_buffer_object(), and duk_to_object().
DUK_INTERNAL_DECL void duk_push_c_function_noconstruct_noexotic | ( | duk_context * | ctx, |
duk_c_function | func, | ||
duk_int_t | nargs ) |
Definition at line 18683 of file duktape-1.5.2/src-noline/duktape.c.
References duk__push_c_function_raw(), DUK_ASSERT_CTX_VALID, DUK_HOBJECT_CLASS_AS_FLAGS, DUK_HOBJECT_CLASS_FUNCTION, DUK_HOBJECT_FLAG_CONSTRUCTABLE, DUK_HOBJECT_FLAG_EXTENSIBLE, DUK_HOBJECT_FLAG_NATIVEFUNCTION, DUK_HOBJECT_FLAG_NEWENV, DUK_HOBJECT_FLAG_NOTAIL, and DUK_HOBJECT_FLAG_STRICT.
Referenced by duk_hthread_create_builtin_objects().
DUK_INTERNAL_DECL void duk_push_c_function_noexotic | ( | duk_context * | ctx, |
duk_c_function | func, | ||
duk_int_t | nargs ) |
Definition at line 18667 of file duktape-1.5.2/src-noline/duktape.c.
References duk__push_c_function_raw(), DUK_ASSERT_CTX_VALID, DUK_HOBJECT_CLASS_AS_FLAGS, DUK_HOBJECT_CLASS_FUNCTION, DUK_HOBJECT_FLAG_CONSTRUCTABLE, DUK_HOBJECT_FLAG_EXOTIC_DUKFUNC, DUK_HOBJECT_FLAG_EXTENSIBLE, DUK_HOBJECT_FLAG_NATIVEFUNCTION, DUK_HOBJECT_FLAG_NEWENV, DUK_HOBJECT_FLAG_NOTAIL, and DUK_HOBJECT_FLAG_STRICT.
Referenced by duk_hthread_create_builtin_objects().
DUK_INTERNAL_DECL duk_idx_t duk_push_compiledfunction | ( | duk_context * | ctx | ) |
Definition at line 18559 of file duktape-1.5.2/src-noline/duktape.c.
References duk_hthread::builtins, DUK_ASSERT_CTX_VALID, DUK_BIDX_FUNCTION_PROTOTYPE, DUK_DDD, DUK_DDDPRINT, DUK_ERROR_ALLOC_DEFMSG, DUK_ERROR_API, duk_hcompiledfunction_alloc(), DUK_HOBJECT_CLASS_AS_FLAGS, DUK_HOBJECT_CLASS_FUNCTION, DUK_HOBJECT_FLAG_COMPILEDFUNCTION, DUK_HOBJECT_FLAG_EXTENSIBLE, DUK_HOBJECT_INCREF, DUK_HOBJECT_SET_PROTOTYPE_UPDREF, DUK_STR_PUSH_BEYOND_ALLOC_STACK, DUK_TVAL_SET_OBJECT, duk_heaphdr::h_flags, duk_hobject::hdr, duk_hthread::heap, duk_hcompiledfunction::obj, duk_hthread::valstack_bottom, duk_hthread::valstack_end, and duk_hthread::valstack_top.
Referenced by duk__convert_to_func_template(), duk__load_func(), duk__load_func(), and duk_js_push_closure().
DUK_INTERNAL_DECL void duk_push_hbuffer | ( | duk_context * | ctx, |
duk_hbuffer * | h ) |
Definition at line 19067 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT, DUK_ASSERT_CTX_VALID, duk_push_tval(), DUK_TVAL_SET_BUFFER, and NULL.
Referenced by duk_bi_buffer_constructor(), duk_bi_buffer_prototype_tostring_shared(), duk_js_tonumber(), and duk_push_heapptr().
DUK_INTERNAL_DECL void duk_push_hobject | ( | duk_context * | ctx, |
duk_hobject * | h ) |
Definition at line 19059 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT, DUK_ASSERT_CTX_VALID, duk_push_tval(), DUK_TVAL_SET_OBJECT, and NULL.
Referenced by duk__compact_object_list(), duk__create_arguments_object(), duk__declvar_helper(), duk__enc_value(), duk__js_execute_bytecode_inner(), duk__proxy_check_prop(), duk_bi_logger_constructor(), duk_bi_object_constructor_define_property(), duk_bi_object_constructor_keys_shared(), duk_bi_object_getprototype_shared(), duk_bi_thread_constructor(), duk_create_activation_environment_record(), duk_get_global_string(), duk_get_prototype(), duk_hobject_delprop(), duk_hobject_enumerator_create(), duk_hobject_enumerator_next(), duk_hobject_get_length(), duk_hobject_getprop(), duk_hobject_hasprop(), duk_hobject_object_get_own_property_descriptor(), duk_hobject_putprop(), duk_hobject_run_finalizer(), duk_hobject_set_length(), duk_js_close_environment_record(), duk_js_push_closure(), duk_push_current_thread(), duk_push_heap_stash(), duk_push_heapptr(), duk_push_hobject_bidx(), duk_push_thread_stash(), duk_put_global_string(), and duk_xdef_prop_stridx_builtin().
DUK_INTERNAL_DECL void duk_push_hobject_bidx | ( | duk_context * | ctx, |
duk_small_int_t | builtin_idx ) |
Definition at line 19075 of file duktape-1.5.2/src-noline/duktape.c.
References duk_hthread::builtins, DUK_ASSERT, DUK_ASSERT_CTX_VALID, DUK_NUM_BUILTINS, duk_push_hobject(), duk_push_tval(), DUK_TVAL_SET_OBJECT, and NULL.
Referenced by duk__js_execute_bytecode_inner(), duk__to_regexp_helper(), duk_bi_global_object_eval(), duk_bi_global_object_require(), duk_bi_object_getprototype_shared(), duk_bi_string_prototype_split(), duk_err_create_and_throw(), duk_log_va(), and duk_push_global_object().
DUK_INTERNAL_DECL void duk_push_hobject_class_string | ( | duk_context * | ctx, |
duk_hobject * | h ) |
Definition at line 17001 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT, DUK_ASSERT_CTX_VALID, DUK_HOBJECT_GET_CLASS_STRING, DUK_HSTRING_GET_DATA, duk_push_sprintf(), DUK_UNREF, duk_hthread::heap, and NULL.
Referenced by duk_push_string_tval_readable().
DUK_INTERNAL_DECL void duk_push_hstring | ( | duk_context * | ctx, |
duk_hstring * | h ) |
Definition at line 19044 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT, DUK_ASSERT_CTX_VALID, duk_push_tval(), DUK_TVAL_SET_STRING, and NULL.
Referenced by duk__add_label(), duk__add_traceback(), duk__convert_to_func_template(), duk__declvar_helper(), duk__expr_led(), duk__expr_nud(), duk__get_own_propdesc_raw(), duk__handle_catch(), duk__js_execute_bytecode_inner(), duk__nud_object_literal(), duk__parse_func_formals(), duk__parse_func_like_raw(), duk__parse_stmt(), duk__parse_try_stmt(), duk__parse_var_decl(), duk__realloc_props(), duk_del_prop_stridx(), duk_get_prop_stridx(), duk_has_prop_stridx(), duk_hobject_enumerator_create(), duk_hobject_enumerator_next(), duk_hobject_get_enumerated_keys(), duk_hobject_getprop(), duk_js_close_environment_record(), duk_js_tonumber(), duk_push_heapptr(), duk_push_hstring_stridx(), duk_put_prop_stridx(), and duk_substring().
DUK_INTERNAL_DECL void duk_push_hstring_stridx | ( | duk_context * | ctx, |
duk_small_int_t | stridx ) |
Definition at line 19052 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT, DUK_HEAP_NUM_STRINGS, DUK_HTHREAD_GET_STRING, duk_push_hstring(), and DUK_UNREF.
Referenced by duk__concat_and_join_helper(), duk__create_escaped_source(), duk__do_compile(), duk__enc_double(), duk__error_getter_helper(), duk__error_setter_helper(), duk__js_compile_raw(), duk__js_execute_bytecode_inner(), duk__push_stridx(), duk__to_string_helper(), duk_bi_array_prototype_join_shared(), duk_bi_function_constructor(), duk_bi_global_object_eval(), duk_bi_global_object_print_helper(), duk_bi_global_object_require(), duk_bi_json_parse_helper(), duk_bi_json_stringify_helper(), duk_bi_logger_prototype_log_shared(), duk_bi_nodejs_buffer_tojson(), duk_bi_string_constructor(), duk_hobject_enumerator_create(), duk_hobject_get_length(), duk_hobject_set_length(), duk_js_push_closure(), duk_numconv_stringify(), duk_push_vsprintf(), duk_safe_to_lstring(), and duk_to_string().
DUK_INTERNAL_DECL void duk_push_lightfunc_name | ( | duk_context * | ctx, |
duk_tval * | tv ) |
Definition at line 19342 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT, duk_concat(), duk_push_sprintf(), duk_push_string_funcptr(), DUK_TVAL_GET_LIGHTFUNC_FLAGS, DUK_TVAL_GET_LIGHTFUNC_FUNCPTR, and DUK_TVAL_IS_LIGHTFUNC.
Referenced by duk_hobject_getprop(), duk_push_lightfunc_tostring(), duk_push_string_funcptr(), and duk_to_object().
DUK_INTERNAL_DECL void duk_push_lightfunc_tostring | ( | duk_context * | ctx, |
duk_tval * | tv ) |
Definition at line 19366 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT, duk_concat(), duk_push_lightfunc_name(), duk_push_string(), and DUK_TVAL_IS_LIGHTFUNC.
Referenced by duk_bi_function_prototype_to_string(), and duk_to_string().
DUK_INTERNAL_DECL duk_idx_t duk_push_object_helper | ( | duk_context * | ctx, |
duk_uint_t | hobject_flags_and_class, | ||
duk_small_int_t | prototype_bidx ) |
Definition at line 18394 of file duktape-1.5.2/src-noline/duktape.c.
References duk_hthread::builtins, DUK_ASSERT, DUK_ASSERT_CTX_VALID, DUK_DDD, DUK_DDDPRINT, DUK_ERROR_ALLOC_DEFMSG, DUK_ERROR_API, duk_hobject_alloc(), DUK_HOBJECT_GET_PROTOTYPE, DUK_HOBJECT_INCREF, DUK_HOBJECT_SET_PROTOTYPE_UPDREF, DUK_NUM_BUILTINS, DUK_STR_PUSH_BEYOND_ALLOC_STACK, DUK_TVAL_SET_OBJECT, duk_heaphdr::h_flags, duk_hobject::hdr, duk_hthread::heap, NULL, duk_hthread::valstack_bottom, duk_hthread::valstack_end, and duk_hthread::valstack_top.
Referenced by duk__create_arguments_object(), duk__js_execute_bytecode_inner(), duk_bi_date_constructor(), duk_bi_error_constructor_shared(), duk_bi_function_prototype_bind(), duk_bi_object_constructor(), duk_bi_pointer_constructor(), duk_bi_string_constructor(), duk_bi_string_constructor_from_char_code(), duk_create_activation_environment_record(), duk_hthread_create_builtin_objects(), duk_push_array(), duk_push_object(), duk_push_object_helper_proto(), duk_push_object_internal(), duk_set_global_object(), and duk_to_object().
DUK_INTERNAL_DECL duk_idx_t duk_push_object_helper_proto | ( | duk_context * | ctx, |
duk_uint_t | hobject_flags_and_class, | ||
duk_hobject * | proto ) |
Definition at line 18434 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT, DUK_ASSERT_CTX_VALID, duk_get_hobject(), DUK_HOBJECT_GET_PROTOTYPE, DUK_HOBJECT_SET_PROTOTYPE_UPDREF, duk_push_object_helper(), duk_hthread::heap, NULL, and proto.
Referenced by duk__handle_catch(), duk__load_func(), duk__load_func(), duk_bi_global_object_eval(), duk_bi_object_constructor_create(), duk_bi_proxy_constructor(), duk_js_push_closure(), and duk_push_error_object_va_raw().
DUK_INTERNAL_DECL duk_idx_t duk_push_object_internal | ( | duk_context * | ctx | ) |
Definition at line 19037 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_HOBJECT_CLASS_AS_FLAGS, DUK_HOBJECT_CLASS_OBJECT, DUK_HOBJECT_FLAG_EXTENSIBLE, and duk_push_object_helper().
Referenced by duk__init_func_valstack_slots(), duk__push_stash(), duk__reset_func_for_pass2(), duk_bi_json_stringify_helper(), and duk_hobject_enumerator_create().
DUK_INTERNAL_DECL void duk_push_string_funcptr | ( | duk_context * | ctx, |
duk_uint8_t * | ptr, | ||
duk_size_t | sz ) |
Definition at line 19382 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT, duk_concat(), duk_lc_digits, duk_push_lightfunc_name(), duk_push_lstring(), duk_push_string(), and DUK_TVAL_IS_LIGHTFUNC.
Referenced by duk_push_lightfunc_name().
DUK_INTERNAL_DECL const char * duk_push_string_readable | ( | duk_context * | ctx, |
duk_idx_t | index ) |
Definition at line 19523 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT_CTX_VALID, duk_get_tval(), duk_push_string_tval_readable(), and index.
Referenced by duk_err_require_type_index().
DUK_INTERNAL_DECL const char * duk_push_string_tval_readable | ( | duk_context * | ctx, |
duk_tval * | tv ) |
Definition at line 19476 of file duktape-1.5.2/src-noline/duktape.c.
References duk__push_hstring_readable_unicode(), DUK_ASSERT, DUK_ASSERT_CTX_VALID, DUK_HBUFFER_GET_SIZE, duk_push_hobject_class_string(), duk_push_sprintf(), duk_push_string(), duk_push_tval(), duk_remove(), DUK_TAG_BUFFER, DUK_TAG_OBJECT, DUK_TAG_POINTER, DUK_TAG_STRING, duk_to_string(), DUK_TVAL_GET_BUFFER, DUK_TVAL_GET_OBJECT, DUK_TVAL_GET_STRING, DUK_TVAL_GET_TAG, DUK_UNREF, and NULL.
Referenced by duk__concat_and_join_helper(), duk__nonbound_func_lookup(), duk_hobject_delprop(), duk_hobject_getprop(), duk_hobject_putprop(), and duk_push_string_readable().
DUK_INTERNAL_DECL void duk_push_this_check_object_coercible | ( | duk_context * | ctx | ) |
Definition at line 18177 of file duktape-1.5.2/src-noline/duktape.c.
References duk__push_this_helper(), and DUK_ASSERT_CTX_VALID.
Referenced by duk_bi_object_setprototype_shared().
DUK_INTERNAL_DECL duk_hobject * duk_push_this_coercible_to_object | ( | duk_context * | ctx | ) |
Definition at line 18183 of file duktape-1.5.2/src-noline/duktape.c.
References duk__push_this_helper(), DUK_ASSERT, DUK_ASSERT_CTX_VALID, duk_get_hobject(), duk_to_object(), and NULL.
Referenced by duk__push_this_obj_len_u32(), duk__push_this_obj_len_u32_limited(), duk_bi_array_prototype_concat(), duk_bi_array_prototype_to_string(), duk_bi_object_getprototype_shared(), duk_bi_object_prototype_is_prototype_of(), duk_bi_object_prototype_to_locale_string(), duk_bi_object_prototype_value_of(), and duk_hobject_object_ownprop_helper().
DUK_INTERNAL_DECL duk_hstring * duk_push_this_coercible_to_string | ( | duk_context * | ctx | ) |
Definition at line 18195 of file duktape-1.5.2/src-noline/duktape.c.
References duk__push_this_helper(), DUK_ASSERT, DUK_ASSERT_CTX_VALID, duk_get_hstring(), duk_to_string(), and NULL.
Referenced by duk_bi_string_prototype_caseconv_shared(), duk_bi_string_prototype_char_at(), duk_bi_string_prototype_char_code_at(), duk_bi_string_prototype_concat(), duk_bi_string_prototype_indexof_shared(), duk_bi_string_prototype_locale_compare(), duk_bi_string_prototype_match(), duk_bi_string_prototype_replace(), duk_bi_string_prototype_search(), duk_bi_string_prototype_slice(), duk_bi_string_prototype_split(), duk_bi_string_prototype_substring(), and duk_bi_string_prototype_trim().
DUK_INTERNAL_DECL void duk_push_tval | ( | duk_context * | ctx, |
duk_tval * | tv ) |
Definition at line 17835 of file duktape-1.5.2/src-noline/duktape.c.
References DUK__CHECK_SPACE, DUK_ASSERT, DUK_ASSERT_CTX_VALID, DUK_ERR_URI_ERROR, DUK_TVAL_INCREF, DUK_TVAL_SET_TVAL, NULL, and duk_hthread::valstack_top.
Referenced by duk__add_traceback(), duk__declvar_helper(), duk__err_augment_user(), duk__get_own_propdesc_raw(), duk__getvar_helper(), duk__handle_catch(), duk__handle_longjmp(), duk__handle_safe_call_error(), duk__js_execute_bytecode_inner(), duk__load_func(), duk__load_func(), duk__push_tval_to_hstring_arr_idx(), duk__putprop_fastpath_bufobj_tval(), duk__vm_arith_add(), duk__vm_arith_binary_op(), duk__vm_bitwise_binary_op(), duk__vm_bitwise_not(), duk_bi_duktape_object_act(), duk_bi_global_object_eval(), duk_hobject_delprop(), duk_hobject_getprop(), duk_hobject_hasprop(), duk_hobject_putprop(), duk_hthread_create_builtin_objects(), duk_js_close_environment_record(), duk_js_compare_helper(), duk_js_equals_helper(), duk_js_in(), duk_js_instanceof(), duk_js_tonumber(), duk_push_c_lightfunc(), duk_push_current_function(), duk_push_current_thread(), duk_push_hbuffer(), duk_push_hobject(), duk_push_hobject_bidx(), duk_push_hstring(), duk_push_string_tval_readable(), duk_suspend(), and duk_to_string().
DUK_INTERNAL_DECL duk_bool_t duk_put_prop_stridx | ( | duk_context * | ctx, |
duk_idx_t | obj_index, | ||
duk_small_int_t | stridx ) |
Definition at line 14404 of file duktape-1.5.2/src-noline/duktape.c.
References duk__put_prop_shared(), DUK_ASSERT, DUK_ASSERT_CTX_VALID, DUK_ASSERT_DISABLE, DUK_HEAP_NUM_STRINGS, DUK_HTHREAD_GET_STRING, duk_push_hstring(), duk_require_normalize_index(), and DUK_UNREF.
Referenced by duk__add_compiler_error_line(), duk__format_parts_iso8601(), duk__js_execute_bytecode_inner(), duk__regexp_match_helper(), duk__reset_labels_to_length(), duk__set_this_timeval_from_dparts(), duk_bi_array_prototype_pop(), duk_bi_array_prototype_push(), duk_bi_array_prototype_shift(), duk_bi_array_prototype_splice(), duk_bi_array_prototype_unshift(), duk_bi_date_prototype_set_time(), duk_bi_duktape_object_fin(), duk_bi_json_parse_helper(), duk_bi_json_stringify_helper(), duk_bi_logger_constructor(), duk_bi_logger_prototype_fmt(), duk_bi_nodejs_buffer_tojson(), duk_bi_string_prototype_match(), duk_bi_string_prototype_replace(), duk_bi_string_prototype_split(), duk_hobject_enumerator_create(), duk_hobject_enumerator_next(), duk_hobject_object_get_own_property_descriptor(), and duk_set_finalizer().
DUK_INTERNAL_DECL duk_hbuffer * duk_require_hbuffer | ( | duk_context * | ctx, |
duk_idx_t | index ) |
Definition at line 16318 of file duktape-1.5.2/src-noline/duktape.c.
References duk__get_tagged_heaphdr_raw(), DUK_ERROR_REQUIRE_TYPE_INDEX, DUK_STR_NOT_BUFFER, DUK_TAG_BUFFER, DUK_TAG_OBJECT, index, and NULL.
Referenced by duk_config_buffer(), duk_push_buffer_object(), duk_resize_buffer(), and duk_steal_buffer().
DUK_INTERNAL_DECL duk_hcompiledfunction * duk_require_hcompiledfunction | ( | duk_context * | ctx, |
duk_idx_t | index ) |
Definition at line 16352 of file duktape-1.5.2/src-noline/duktape.c.
References duk__get_tagged_heaphdr_raw(), DUK_ERROR_REQUIRE_TYPE_INDEX, DUK_HOBJECT_IS_COMPILEDFUNCTION, DUK_HOBJECT_IS_THREAD, DUK_STR_NOT_COMPILEDFUNCTION, DUK_STR_NOT_THREAD, DUK_TAG_OBJECT, index, and NULL.
Referenced by duk_dump_function().
DUK_INTERNAL_DECL duk_hnativefunction * duk_require_hnativefunction | ( | duk_context * | ctx, |
duk_idx_t | index ) |
Definition at line 16369 of file duktape-1.5.2/src-noline/duktape.c.
References duk__get_tagged_heaphdr_raw(), DUK_ERROR_REQUIRE_TYPE_INDEX, DUK_HOBJECT_IS_COMPILEDFUNCTION, DUK_HOBJECT_IS_NATIVEFUNCTION, DUK_STR_NOT_COMPILEDFUNCTION, DUK_STR_NOT_NATIVEFUNCTION, DUK_TAG_OBJECT, index, and NULL.
Referenced by duk_hthread_create_builtin_objects(), and duk_set_magic().
DUK_INTERNAL_DECL duk_hobject * duk_require_hobject | ( | duk_context * | ctx, |
duk_idx_t | index ) |
Definition at line 16305 of file duktape-1.5.2/src-noline/duktape.c.
References duk__get_tagged_heaphdr_raw(), DUK_ERROR_REQUIRE_TYPE_INDEX, DUK_STR_NOT_OBJECT, DUK_TAG_OBJECT, DUK_TAG_STRING, index, and NULL.
Referenced by duk__check_arguments_map_for_delete(), duk__create_arguments_object(), duk__lookup_arguments_map(), duk__regexp_match_helper(), duk_bi_duktape_object_fin(), duk_bi_global_object_eval(), duk_bi_global_object_require(), duk_bi_nodejs_buffer_concat(), duk_bi_object_constructor_define_property(), duk_bi_object_constructor_keys_shared(), duk_bi_typedarray_set(), duk_create_activation_environment_record(), duk_def_prop(), duk_get_hobject_or_lfunc_coerce(), duk_get_hobject_with_class(), duk_get_prototype(), duk_hobject_enumerator_create(), duk_hobject_enumerator_next(), duk_hobject_get_enumerated_keys(), duk_hobject_prepare_property_descriptor(), duk_hthread_copy_builtin_objects(), duk_hthread_create_builtin_objects(), duk_js_close_environment_record(), duk_js_instanceof(), duk_next(), duk_push_array(), duk_require_hobject_or_lfunc_coerce(), duk_set_global_object(), duk_set_prototype(), duk_xdef_prop(), duk_xdef_prop_index(), duk_xdef_prop_stridx(), duk_xdef_prop_stridx_builtin(), and duk_xdef_prop_stridx_thrower().
DUK_INTERNAL_DECL duk_hobject * duk_require_hobject_or_lfunc | ( | duk_context * | ctx, |
duk_idx_t | index ) |
Definition at line 16503 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT, DUK_ASSERT_CTX_VALID, DUK_ERROR_REQUIRE_TYPE_INDEX, duk_require_tval(), DUK_STR_NOT_OBJECT, DUK_TVAL_GET_OBJECT, DUK_TVAL_IS_LIGHTFUNC, DUK_TVAL_IS_OBJECT, index, and NULL.
Referenced by duk_bi_object_constructor_is_extensible(), duk_bi_object_constructor_is_sealed_frozen_shared(), duk_bi_object_constructor_prevent_extensions(), duk_bi_object_constructor_seal_freeze_shared(), duk_bi_object_getprototype_shared(), and duk_to_defaultvalue().
DUK_INTERNAL_DECL duk_hobject * duk_require_hobject_or_lfunc_coerce | ( | duk_context * | ctx, |
duk_idx_t | index ) |
Definition at line 16524 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT_CTX_VALID, DUK_ERROR_REQUIRE_TYPE_INDEX, duk_require_hobject(), duk_require_tval(), DUK_STR_NOT_OBJECT, duk_to_object(), DUK_TVAL_GET_OBJECT, DUK_TVAL_IS_LIGHTFUNC, DUK_TVAL_IS_OBJECT, index, and NULL.
Referenced by duk_bi_error_prototype_to_string(), duk_bi_object_constructor_define_properties(), duk_bi_object_constructor_define_property(), duk_bi_object_constructor_keys_shared(), duk_bi_proxy_constructor(), duk_bi_thread_constructor(), duk_enum(), and duk_hobject_object_get_own_property_descriptor().
DUK_INTERNAL_DECL duk_hobject * duk_require_hobject_with_class | ( | duk_context * | ctx, |
duk_idx_t | index, | ||
duk_small_uint_t | classnum ) |
Definition at line 16555 of file duktape-1.5.2/src-noline/duktape.c.
References duk__get_tagged_heaphdr_raw(), DUK_ASSERT, DUK_ASSERT_CTX_VALID, DUK_ASSERT_DISABLE, DUK_ERROR_REQUIRE_TYPE_INDEX, DUK_HOBJECT_CLASS_MAX, DUK_HOBJECT_CLASS_NUMBER_TO_STRIDX, DUK_HOBJECT_GET_CLASS_NUMBER, DUK_HSTRING_GET_DATA, DUK_HTHREAD_GET_STRING, DUK_STR_UNEXPECTED_TYPE, DUK_TAG_OBJECT, DUK_UNREF, index, and NULL.
Referenced by duk__get_this_regexp(), duk__regexp_match_helper(), and duk_bi_regexp_constructor().
DUK_INTERNAL_DECL duk_hstring * duk_require_hstring | ( | duk_context * | ctx, |
duk_idx_t | index ) |
Definition at line 16292 of file duktape-1.5.2/src-noline/duktape.c.
References duk__get_tagged_heaphdr_raw(), DUK_ERROR_REQUIRE_TYPE_INDEX, DUK_STR_NOT_STRING, DUK_TAG_STRING, index, and NULL.
Referenced by duk__check_arguments_map_for_get(), duk__check_arguments_map_for_put(), duk__concat_and_join_helper(), duk__regexp_match_helper(), duk_bi_duktape_object_dec(), duk_bi_duktape_object_enc(), duk_bi_function_constructor(), duk_bi_object_constructor_define_property(), duk_char_code_at(), duk_decode_string(), duk_def_prop(), duk_get_var(), duk_hobject_define_property_helper(), duk_hobject_object_get_own_property_descriptor(), duk_map_string(), duk_numconv_parse(), duk_put_var(), duk_regexp_compile(), duk_substring(), duk_trim(), and duk_unicode_case_convert_string().
DUK_INTERNAL_DECL duk_hthread * duk_require_hthread | ( | duk_context * | ctx, |
duk_idx_t | index ) |
Definition at line 16335 of file duktape-1.5.2/src-noline/duktape.c.
References duk__get_tagged_heaphdr_raw(), DUK_ERROR_REQUIRE_TYPE_INDEX, DUK_HOBJECT_IS_THREAD, DUK_STR_NOT_BUFFER, DUK_STR_NOT_THREAD, DUK_TAG_BUFFER, DUK_TAG_OBJECT, index, and NULL.
Referenced by duk_bi_thread_resume(), and duk_require_context().
DUK_INTERNAL_DECL duk_tval * duk_require_tval | ( | duk_context * | ctx, |
duk_idx_t | index ) |
Definition at line 15149 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT, DUK_ASSERT_CTX_VALID, DUK_ASSERT_DISABLE, DUK_ERROR_API_INDEX, DUK_INVALID_INDEX, DUK_LIKELY, index, NULL, duk_hthread::valstack_bottom, and duk_hthread::valstack_top.
Referenced by duk__check_arguments_map_for_put(), duk__handle_bound_chain_for_call(), duk__nonbound_func_lookup(), duk__put_prop_shared(), duk__require_bufobj_value(), duk__to_int_uint_helper(), duk_bi_pointer_prototype_tostring_shared(), duk_bi_string_prototype_to_string(), duk_copy(), duk_del_prop(), duk_dup(), duk_dup_top(), duk_get_hobject_or_lfunc_coerce(), duk_get_hobject_with_class(), duk_get_magic(), duk_get_prop(), duk_has_prop(), duk_hobject_define_property_helper(), duk_hobject_define_property_internal(), duk_hobject_define_property_internal_arridx(), duk_hobject_getprop(), duk_hobject_prepare_property_descriptor(), duk_hobject_putprop(), duk_insert(), duk_instanceof(), duk_js_tonumber(), duk_push_array(), duk_put_var(), duk_remove(), duk_replace(), duk_require_heapptr(), duk_require_hobject_or_lfunc(), duk_require_hobject_or_lfunc_coerce(), duk_swap(), duk_to_boolean(), duk_to_int32(), duk_to_int_clamped_raw(), duk_to_null(), duk_to_number(), duk_to_object(), duk_to_pointer(), duk_to_string(), duk_to_uint16(), duk_to_uint32(), duk_to_undefined(), duk_xdef_prop(), and duk_xdef_prop_stridx().
DUK_INTERNAL_DECL void duk_set_length | ( | duk_context * | ctx, |
duk_idx_t | index, | ||
duk_size_t | length ) |
Definition at line 16624 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT_CTX_VALID, duk_get_hobject(), duk_hobject_set_length(), and index.
Referenced by duk__dec_array().
DUK_INTERNAL_DECL duk_hstring * duk_to_hstring | ( | duk_context * | ctx, |
duk_idx_t | index ) |
Definition at line 17177 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT, DUK_ASSERT_CTX_VALID, duk_get_hstring(), duk_to_string(), index, and NULL.
Referenced by duk__array_sort_compare(), duk__concat_and_join_helper(), duk__enc_double(), duk__transform_helper(), duk_bi_json_parse_helper(), duk_bi_string_prototype_indexof_shared(), duk_bi_string_prototype_locale_compare(), duk_bi_string_prototype_replace(), duk_bi_string_prototype_substr(), duk_hobject_define_property_internal_arridx(), duk_hobject_object_ownprop_helper(), and duk_xdef_prop().
DUK_INTERNAL_DECL duk_int_t duk_to_int_check_range | ( | duk_context * | ctx, |
duk_idx_t | index, | ||
duk_int_t | minval, | ||
duk_int_t | maxval ) |
Definition at line 17085 of file duktape-1.5.2/src-noline/duktape.c.
References duk_to_int_clamped_raw(), index, and NULL.
Referenced by duk_bi_number_prototype_to_exponential(), duk_bi_number_prototype_to_fixed(), duk_bi_number_prototype_to_precision(), and duk_bi_number_prototype_to_string().
DUK_INTERNAL_DECL duk_int_t duk_to_int_clamped | ( | duk_context * | ctx, |
duk_idx_t | index, | ||
duk_int_t | minval, | ||
duk_int_t | maxval ) |
Definition at line 17080 of file duktape-1.5.2/src-noline/duktape.c.
References duk_to_int_clamped_raw(), dummy, and index.
Referenced by duk__clamp_startend_nonegidx_noshift(), duk_bi_array_prototype_indexof_shared(), duk_bi_array_prototype_slice(), duk_bi_array_prototype_splice(), duk_bi_json_stringify_helper(), duk_bi_nodejs_buffer_constructor(), duk_bi_string_prototype_indexof_shared(), duk_bi_string_prototype_slice(), duk_bi_string_prototype_substr(), and duk_bi_string_prototype_substring().
DUK_INTERNAL_DECL duk_int_t duk_to_int_clamped_raw | ( | duk_context * | ctx, |
duk_idx_t | index, | ||
duk_int_t | minval, | ||
duk_int_t | maxval, | ||
duk_bool_t * | out_clamped ) |
Definition at line 17017 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT, DUK_ASSERT_CTX_VALID, DUK_ERROR_RANGE, duk_get_tval(), DUK_HOBJECT_GET_CLASS_STRING, DUK_HSTRING_GET_DATA, duk_js_tointeger(), duk_push_sprintf(), duk_require_tval(), DUK_STR_NUMBER_OUTSIDE_RANGE, DUK_TVAL_DECREF, DUK_TVAL_SET_FASTINT, DUK_TVAL_SET_FASTINT_I32, DUK_TVAL_SET_NUMBER, DUK_TVAL_SET_TVAL, DUK_UNREF, duk_hthread::heap, index, and NULL.
Referenced by duk_bi_string_prototype_char_code_at(), duk_to_int_check_range(), and duk_to_int_clamped().
DUK_INTERNAL_DECL void duk_to_object_class_string_top | ( | duk_context * | ctx | ) |
Definition at line 16971 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT, DUK_ASSERT_CTX_VALID, duk_get_hobject(), duk_get_type_mask(), DUK_HOBJECT_GET_CLASS_STRING, DUK_HSTRING_GET_DATA, DUK_HTHREAD_STRING_UC_NULL, DUK_HTHREAD_STRING_UC_UNDEFINED, duk_pop(), duk_push_sprintf(), duk_to_object(), DUK_TYPE_MASK_NULL, DUK_TYPE_MASK_UNDEFINED, DUK_UNREF, duk_hthread::heap, and NULL.
Referenced by duk_bi_object_prototype_to_string().
DUK_INTERNAL_DECL duk_bool_t duk_valstack_resize_raw | ( | duk_context * | ctx, |
duk_size_t | min_new_size, | ||
duk_small_uint_t | flags ) |
Definition at line 15491 of file duktape-1.5.2/src-noline/duktape.c.
References duk__resize_valstack(), DUK_ASSERT, DUK_ASSERT_CTX_VALID, DUK_DD, DUK_DDD, DUK_DDDPRINT, DUK_DDPRINT, DUK_ERROR_ALLOC_DEFMSG, DUK_ERROR_RANGE, DUK_STR_VALSTACK_LIMIT, DUK_VALSTACK_GROW_STEP, DUK_VALSTACK_SHRINK_SPARE, DUK_VALSTACK_SHRINK_THRESHOLD, DUK_VSRESIZE_FLAG_COMPACT, DUK_VSRESIZE_FLAG_SHRINK, DUK_VSRESIZE_FLAG_THROW, NULL, duk_hthread::valstack, duk_hthread::valstack_bottom, duk_hthread::valstack_end, duk_hthread::valstack_max, duk_hthread::valstack_size, and duk_hthread::valstack_top.
Referenced by duk__adjust_valstack_and_top(), duk__handle_call_error(), duk__handle_call_inner(), duk__reconfig_valstack_ecma_catcher(), duk__reconfig_valstack_ecma_return(), duk_check_stack(), duk_check_stack_top(), duk_require_stack(), and duk_require_stack_top().
DUK_INTERNAL_DECL void duk_xdef_prop | ( | duk_context * | ctx, |
duk_idx_t | obj_index, | ||
duk_small_uint_t | desc_flags ) |
Definition at line 14528 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT, DUK_ASSERT_CTX_VALID, duk_hobject_define_property_internal(), duk_pop(), duk_require_hobject(), duk_require_tval(), duk_to_hstring(), and NULL.
Referenced by duk__declvar_helper(), duk__handle_catch(), duk__load_func(), duk__load_func(), duk_hthread_create_builtin_objects(), duk_js_close_environment_record(), and duk_js_push_closure().
DUK_INTERNAL_DECL void duk_xdef_prop_index | ( | duk_context * | ctx, |
duk_idx_t | obj_index, | ||
duk_uarridx_t | arr_index, | ||
duk_small_uint_t | desc_flags ) |
Definition at line 14546 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT, DUK_ASSERT_CTX_VALID, duk_hobject_define_property_internal_arridx(), duk_require_hobject(), and NULL.
DUK_INTERNAL_DECL void duk_xdef_prop_stridx | ( | duk_context * | ctx, |
duk_idx_t | obj_index, | ||
duk_small_int_t | stridx, | ||
duk_small_uint_t | desc_flags ) |
Definition at line 14559 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT, DUK_ASSERT_CTX_VALID, DUK_ASSERT_DISABLE, DUK_HEAP_NUM_STRINGS, duk_hobject_define_property_internal(), DUK_HTHREAD_GET_STRING, duk_require_hobject(), duk_require_tval(), and NULL.
Referenced by duk__add_traceback(), duk__convert_to_func_template(), duk__create_arguments_object(), duk__handle_createargs_for_call(), duk__js_execute_bytecode_inner(), duk__load_func(), duk__load_func(), duk__push_stash(), duk_bi_array_constructor(), duk_bi_array_prototype_concat(), duk_bi_array_prototype_iter_shared(), duk_bi_array_prototype_slice(), duk_bi_array_prototype_splice(), duk_bi_boolean_constructor(), duk_bi_buffer_slice_shared(), duk_bi_dataview_constructor(), duk_bi_date_constructor(), duk_bi_error_constructor_shared(), duk_bi_function_prototype_bind(), duk_bi_global_object_require(), duk_bi_number_constructor(), duk_bi_pointer_constructor(), duk_bi_proxy_constructor(), duk_bi_string_constructor(), duk_bi_string_constructor_from_char_code(), duk_bi_typedarray_constructor(), duk_hthread_create_builtin_objects(), duk_js_push_closure(), duk_push_buffer_object(), duk_push_error_object_va_raw(), duk_regexp_create_instance(), duk_set_global_object(), and duk_to_object().
DUK_INTERNAL_DECL void duk_xdef_prop_stridx_builtin | ( | duk_context * | ctx, |
duk_idx_t | obj_index, | ||
duk_small_int_t | stridx, | ||
duk_small_int_t | builtin_idx, | ||
duk_small_uint_t | desc_flags ) |
Definition at line 14578 of file duktape-1.5.2/src-noline/duktape.c.
References duk_hthread::builtins, DUK_ASSERT, DUK_ASSERT_CTX_VALID, DUK_ASSERT_DISABLE, DUK_HEAP_NUM_STRINGS, duk_hobject_define_property_internal(), DUK_HTHREAD_GET_STRING, DUK_NUM_BUILTINS, duk_push_hobject(), duk_require_hobject(), and NULL.
Referenced by duk_hthread_create_builtin_objects().
DUK_INTERNAL_DECL void duk_xdef_prop_stridx_thrower | ( | duk_context * | ctx, |
duk_idx_t | obj_index, | ||
duk_small_int_t | stridx, | ||
duk_small_uint_t | desc_flags ) |
Definition at line 14604 of file duktape-1.5.2/src-noline/duktape.c.
References duk_hthread::builtins, DUK_BIDX_TYPE_ERROR_THROWER, duk_hobject_define_accessor_internal(), DUK_HTHREAD_GET_STRING, and duk_require_hobject().
Referenced by duk__create_arguments_object(), duk_bi_function_prototype_bind(), and duk_js_push_closure().