Github User Fetcher 1.0.0
C Application with Server and GUI
|
#include "duk_config.h"
Go to the source code of this file.
Data Structures | |
struct | duk_thread_state |
struct | duk_memory_functions |
struct | duk_function_list_entry |
struct | duk_number_list_entry |
union | duk_double_union |
Macros | |
#define | DUK_SINGLE_FILE |
#define | DUK_API_PUBLIC_H_INCLUDED |
#define | DUK_API_NORETURN(decl) DUK_NORETURN(decl) |
#define | DUK_VERSION 10800L |
#define | DUK_GIT_COMMIT "0a70d7e4c5227c84e3fed5209828973117d02849" |
#define | DUK_GIT_DESCRIBE "v1.8.0" |
#define | DUK_GIT_BRANCH "v1.8-maintenance" |
#define | DUK_DEBUG_PROTOCOL_VERSION 1 |
#define | DUK_INVALID_INDEX DUK_IDX_MIN |
#define | DUK_VARARGS ((duk_int_t) (-1)) |
#define | DUK_API_ENTRY_STACK 64 |
#define | DUK_TYPE_MIN 0 |
#define | DUK_TYPE_NONE 0 /* no value, e.g. invalid index */ |
#define | DUK_TYPE_UNDEFINED 1 /* Ecmascript undefined */ |
#define | DUK_TYPE_NULL 2 /* Ecmascript null */ |
#define | DUK_TYPE_BOOLEAN 3 /* Ecmascript boolean: 0 or 1 */ |
#define | DUK_TYPE_NUMBER 4 /* Ecmascript number: double */ |
#define | DUK_TYPE_STRING 5 /* Ecmascript string: CESU-8 / extended UTF-8 encoded */ |
#define | DUK_TYPE_OBJECT 6 /* Ecmascript object: includes objects, arrays, functions, threads */ |
#define | DUK_TYPE_BUFFER 7 /* fixed or dynamic, garbage collected byte buffer */ |
#define | DUK_TYPE_POINTER 8 /* raw void pointer */ |
#define | DUK_TYPE_LIGHTFUNC 9 /* lightweight function pointer */ |
#define | DUK_TYPE_MAX 9 |
#define | DUK_TYPE_MASK_NONE (1 << DUK_TYPE_NONE) |
#define | DUK_TYPE_MASK_UNDEFINED (1 << DUK_TYPE_UNDEFINED) |
#define | DUK_TYPE_MASK_NULL (1 << DUK_TYPE_NULL) |
#define | DUK_TYPE_MASK_BOOLEAN (1 << DUK_TYPE_BOOLEAN) |
#define | DUK_TYPE_MASK_NUMBER (1 << DUK_TYPE_NUMBER) |
#define | DUK_TYPE_MASK_STRING (1 << DUK_TYPE_STRING) |
#define | DUK_TYPE_MASK_OBJECT (1 << DUK_TYPE_OBJECT) |
#define | DUK_TYPE_MASK_BUFFER (1 << DUK_TYPE_BUFFER) |
#define | DUK_TYPE_MASK_POINTER (1 << DUK_TYPE_POINTER) |
#define | DUK_TYPE_MASK_LIGHTFUNC (1 << DUK_TYPE_LIGHTFUNC) |
#define | DUK_TYPE_MASK_THROW (1 << 10) /* internal flag value: throw if mask doesn't match */ |
#define | DUK_HINT_NONE |
#define | DUK_HINT_STRING 1 /* prefer string */ |
#define | DUK_HINT_NUMBER 2 /* prefer number */ |
#define | DUK_ENUM_INCLUDE_NONENUMERABLE (1 << 0) /* enumerate non-numerable properties in addition to enumerable */ |
#define | DUK_ENUM_INCLUDE_INTERNAL (1 << 1) /* enumerate internal properties (regardless of enumerability) */ |
#define | DUK_ENUM_OWN_PROPERTIES_ONLY (1 << 2) /* don't walk prototype chain, only check own properties */ |
#define | DUK_ENUM_ARRAY_INDICES_ONLY (1 << 3) /* only enumerate array indices */ |
#define | DUK_ENUM_SORT_ARRAY_INDICES (1 << 4) /* sort array indices, use with DUK_ENUM_ARRAY_INDICES_ONLY */ |
#define | DUK_ENUM_NO_PROXY_BEHAVIOR (1 << 5) /* enumerate a proxy object itself without invoking proxy behavior */ |
#define | DUK_COMPILE_EVAL (1 << 3) /* compile eval code (instead of global code) */ |
#define | DUK_COMPILE_FUNCTION (1 << 4) /* compile function code (instead of global code) */ |
#define | DUK_COMPILE_STRICT (1 << 5) /* use strict (outer) context for global, eval, or function code */ |
#define | DUK_COMPILE_SAFE (1 << 6) /* (internal) catch compilation errors */ |
#define | DUK_COMPILE_NORESULT (1 << 7) /* (internal) omit eval result */ |
#define | DUK_COMPILE_NOSOURCE (1 << 8) /* (internal) no source string on stack */ |
#define | DUK_COMPILE_STRLEN (1 << 9) /* (internal) take strlen() of src_buffer (avoids double evaluation in macro) */ |
#define | DUK_COMPILE_NOFILENAME (1 << 10) /* (internal) no filename on stack */ |
#define | DUK_DEFPROP_WRITABLE (1 << 0) /* set writable (effective if DUK_DEFPROP_HAVE_WRITABLE set) */ |
#define | DUK_DEFPROP_ENUMERABLE (1 << 1) /* set enumerable (effective if DUK_DEFPROP_HAVE_ENUMERABLE set) */ |
#define | DUK_DEFPROP_CONFIGURABLE (1 << 2) /* set configurable (effective if DUK_DEFPROP_HAVE_CONFIGURABLE set) */ |
#define | DUK_DEFPROP_HAVE_WRITABLE (1 << 3) /* set/clear writable */ |
#define | DUK_DEFPROP_HAVE_ENUMERABLE (1 << 4) /* set/clear enumerable */ |
#define | DUK_DEFPROP_HAVE_CONFIGURABLE (1 << 5) /* set/clear configurable */ |
#define | DUK_DEFPROP_HAVE_VALUE (1 << 6) /* set value (given on value stack) */ |
#define | DUK_DEFPROP_HAVE_GETTER (1 << 7) /* set getter (given on value stack) */ |
#define | DUK_DEFPROP_HAVE_SETTER (1 << 8) /* set setter (given on value stack) */ |
#define | DUK_DEFPROP_FORCE (1 << 9) /* force change if possible, may still fail for e.g. virtual properties */ |
#define | DUK_DEFPROP_SET_WRITABLE (DUK_DEFPROP_HAVE_WRITABLE | DUK_DEFPROP_WRITABLE) |
#define | DUK_DEFPROP_CLEAR_WRITABLE DUK_DEFPROP_HAVE_WRITABLE |
#define | DUK_DEFPROP_SET_ENUMERABLE (DUK_DEFPROP_HAVE_ENUMERABLE | DUK_DEFPROP_ENUMERABLE) |
#define | DUK_DEFPROP_CLEAR_ENUMERABLE DUK_DEFPROP_HAVE_ENUMERABLE |
#define | DUK_DEFPROP_SET_CONFIGURABLE (DUK_DEFPROP_HAVE_CONFIGURABLE | DUK_DEFPROP_CONFIGURABLE) |
#define | DUK_DEFPROP_CLEAR_CONFIGURABLE DUK_DEFPROP_HAVE_CONFIGURABLE |
#define | DUK_THREAD_NEW_GLOBAL_ENV (1 << 0) /* create a new global environment */ |
#define | DUK_STRING_PUSH_SAFE (1 << 0) /* no error if file does not exist */ |
#define | DUK_ERR_NONE 0 /* no error (e.g. from duk_get_error_code()) */ |
#define | DUK_ERR_UNIMPLEMENTED_ERROR 50 /* UnimplementedError */ /* XXX: replace with TypeError? */ |
#define | DUK_ERR_UNSUPPORTED_ERROR 51 /* UnsupportedError */ /* XXX: replace with TypeError? */ |
#define | DUK_ERR_INTERNAL_ERROR 52 /* InternalError */ /* XXX: replace with plain Error? */ |
#define | DUK_ERR_ALLOC_ERROR 53 /* AllocError */ /* XXX: replace with RangeError? */ |
#define | DUK_ERR_ASSERTION_ERROR 54 /* AssertionError */ /* XXX: to be removed? */ |
#define | DUK_ERR_API_ERROR 55 /* APIError */ /* XXX: replace with TypeError? */ |
#define | DUK_ERR_UNCAUGHT_ERROR 56 /* UncaughtError */ /* XXX: to be removed? */ |
#define | DUK_ERR_ERROR 100 /* Error */ |
#define | DUK_ERR_EVAL_ERROR 101 /* EvalError */ |
#define | DUK_ERR_RANGE_ERROR 102 /* RangeError */ |
#define | DUK_ERR_REFERENCE_ERROR 103 /* ReferenceError */ |
#define | DUK_ERR_SYNTAX_ERROR 104 /* SyntaxError */ |
#define | DUK_ERR_TYPE_ERROR 105 /* TypeError */ |
#define | DUK_ERR_URI_ERROR 106 /* URIError */ |
#define | DUK_RET_UNIMPLEMENTED_ERROR (-DUK_ERR_UNIMPLEMENTED_ERROR) |
#define | DUK_RET_UNSUPPORTED_ERROR (-DUK_ERR_UNSUPPORTED_ERROR) |
#define | DUK_RET_INTERNAL_ERROR (-DUK_ERR_INTERNAL_ERROR) |
#define | DUK_RET_ALLOC_ERROR (-DUK_ERR_ALLOC_ERROR) |
#define | DUK_RET_ASSERTION_ERROR (-DUK_ERR_ASSERTION_ERROR) |
#define | DUK_RET_API_ERROR (-DUK_ERR_API_ERROR) |
#define | DUK_RET_UNCAUGHT_ERROR (-DUK_ERR_UNCAUGHT_ERROR) |
#define | DUK_RET_ERROR (-DUK_ERR_ERROR) |
#define | DUK_RET_EVAL_ERROR (-DUK_ERR_EVAL_ERROR) |
#define | DUK_RET_RANGE_ERROR (-DUK_ERR_RANGE_ERROR) |
#define | DUK_RET_REFERENCE_ERROR (-DUK_ERR_REFERENCE_ERROR) |
#define | DUK_RET_SYNTAX_ERROR (-DUK_ERR_SYNTAX_ERROR) |
#define | DUK_RET_TYPE_ERROR (-DUK_ERR_TYPE_ERROR) |
#define | DUK_RET_URI_ERROR (-DUK_ERR_URI_ERROR) |
#define | DUK_EXEC_SUCCESS 0 |
#define | DUK_EXEC_ERROR 1 |
#define | DUK_LOG_TRACE 0 |
#define | DUK_LOG_DEBUG 1 |
#define | DUK_LOG_INFO 2 |
#define | DUK_LOG_WARN 3 |
#define | DUK_LOG_ERROR 4 |
#define | DUK_LOG_FATAL 5 |
#define | duk_create_heap_default() duk_create_heap(NULL, NULL, NULL, NULL, NULL) |
#define | duk_error |
#define | duk_error_va(ctx, err_code, fmt, ap) duk_error_va_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), (fmt), (ap)) |
#define | duk_xmove_top(to_ctx, from_ctx, count) duk_xcopymove_raw((to_ctx), (from_ctx), (count), 0 /*is_copy*/) |
#define | duk_xcopy_top(to_ctx, from_ctx, count) duk_xcopymove_raw((to_ctx), (from_ctx), (count), 1 /*is_copy*/) |
#define | duk_push_string_file(ctx, path) duk_push_string_file_raw((ctx), (path), 0) |
#define | duk_push_thread(ctx) duk_push_thread_raw((ctx), 0 /*flags*/) |
#define | duk_push_thread_new_globalenv(ctx) duk_push_thread_raw((ctx), DUK_THREAD_NEW_GLOBAL_ENV /*flags*/) |
#define | duk_push_error_object |
#define | duk_push_error_object_va(ctx, err_code, fmt, ap) duk_push_error_object_va_raw((ctx), (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), (fmt), (ap)) |
#define | DUK_BUF_FLAG_DYNAMIC (1 << 0) /* internal flag: dynamic buffer */ |
#define | DUK_BUF_FLAG_EXTERNAL (1 << 1) /* internal flag: external buffer */ |
#define | DUK_BUF_FLAG_NOZERO (1 << 2) /* internal flag: don't zero allocated buffer */ |
#define | duk_push_buffer(ctx, size, dynamic) duk_push_buffer_raw((ctx), (size), (dynamic) ? DUK_BUF_FLAG_DYNAMIC : 0) |
#define | duk_push_fixed_buffer(ctx, size) duk_push_buffer_raw((ctx), (size), 0 /*flags*/) |
#define | duk_push_dynamic_buffer(ctx, size) duk_push_buffer_raw((ctx), (size), DUK_BUF_FLAG_DYNAMIC /*flags*/) |
#define | duk_push_external_buffer(ctx) ((void) duk_push_buffer_raw((ctx), 0, DUK_BUF_FLAG_DYNAMIC | DUK_BUF_FLAG_EXTERNAL)) |
#define | DUK_BUFOBJ_CREATE_ARRBUF (1 << 4) /* internal flag: create backing ArrayBuffer; keep in one byte */ |
#define | DUK_BUFOBJ_DUKTAPE_BUFFER 0 |
#define | DUK_BUFOBJ_NODEJS_BUFFER 1 |
#define | DUK_BUFOBJ_ARRAYBUFFER 2 |
#define | DUK_BUFOBJ_DATAVIEW (3 | DUK_BUFOBJ_CREATE_ARRBUF) |
#define | DUK_BUFOBJ_INT8ARRAY (4 | DUK_BUFOBJ_CREATE_ARRBUF) |
#define | DUK_BUFOBJ_UINT8ARRAY (5 | DUK_BUFOBJ_CREATE_ARRBUF) |
#define | DUK_BUFOBJ_UINT8CLAMPEDARRAY (6 | DUK_BUFOBJ_CREATE_ARRBUF) |
#define | DUK_BUFOBJ_INT16ARRAY (7 | DUK_BUFOBJ_CREATE_ARRBUF) |
#define | DUK_BUFOBJ_UINT16ARRAY (8 | DUK_BUFOBJ_CREATE_ARRBUF) |
#define | DUK_BUFOBJ_INT32ARRAY (9 | DUK_BUFOBJ_CREATE_ARRBUF) |
#define | DUK_BUFOBJ_UINT32ARRAY (10 | DUK_BUFOBJ_CREATE_ARRBUF) |
#define | DUK_BUFOBJ_FLOAT32ARRAY (11 | DUK_BUFOBJ_CREATE_ARRBUF) |
#define | DUK_BUFOBJ_FLOAT64ARRAY (12 | DUK_BUFOBJ_CREATE_ARRBUF) |
#define | duk_is_callable(ctx, index) duk_is_function((ctx), (index)) |
#define | duk_is_primitive(ctx, index) |
#define | duk_is_object_coercible(ctx, index) |
#define | duk_is_error(ctx, index) (duk_get_error_code((ctx), (index)) != 0) |
#define | duk_is_eval_error(ctx, index) (duk_get_error_code((ctx), (index)) == DUK_ERR_EVAL_ERROR) |
#define | duk_is_range_error(ctx, index) (duk_get_error_code((ctx), (index)) == DUK_ERR_RANGE_ERROR) |
#define | duk_is_reference_error(ctx, index) (duk_get_error_code((ctx), (index)) == DUK_ERR_REFERENCE_ERROR) |
#define | duk_is_syntax_error(ctx, index) (duk_get_error_code((ctx), (index)) == DUK_ERR_SYNTAX_ERROR) |
#define | duk_is_type_error(ctx, index) (duk_get_error_code((ctx), (index)) == DUK_ERR_TYPE_ERROR) |
#define | duk_is_uri_error(ctx, index) (duk_get_error_code((ctx), (index)) == DUK_ERR_URI_ERROR) |
#define | duk_require_type_mask(ctx, index, mask) ((void) duk_check_type_mask((ctx), (index), (mask) | DUK_TYPE_MASK_THROW)) |
#define | duk_require_callable(ctx, index) duk_require_function((ctx), (index)) |
#define | duk_require_object_coercible(ctx, index) |
#define | DUK_BUF_MODE_FIXED 0 /* internal: request fixed buffer result */ |
#define | DUK_BUF_MODE_DYNAMIC 1 /* internal: request dynamic buffer result */ |
#define | DUK_BUF_MODE_DONTCARE 2 /* internal: don't care about fixed/dynamic nature */ |
#define | duk_to_buffer(ctx, index, out_size) duk_to_buffer_raw((ctx), (index), (out_size), DUK_BUF_MODE_DONTCARE) |
#define | duk_to_fixed_buffer(ctx, index, out_size) duk_to_buffer_raw((ctx), (index), (out_size), DUK_BUF_MODE_FIXED) |
#define | duk_to_dynamic_buffer(ctx, index, out_size) duk_to_buffer_raw((ctx), (index), (out_size), DUK_BUF_MODE_DYNAMIC) |
#define | duk_safe_to_string(ctx, index) duk_safe_to_lstring((ctx), (index), NULL) |
#define | duk_eval(ctx) ((void) duk_eval_raw((ctx), NULL, 0, 2 /*args*/ | DUK_COMPILE_EVAL | DUK_COMPILE_NOFILENAME)) |
#define | duk_eval_noresult(ctx) ((void) duk_eval_raw((ctx), NULL, 0, 2 /*args*/ | DUK_COMPILE_EVAL | DUK_COMPILE_NORESULT | DUK_COMPILE_NOFILENAME)) |
#define | duk_peval(ctx) (duk_eval_raw((ctx), NULL, 0, 2 /*args*/ | DUK_COMPILE_EVAL | DUK_COMPILE_SAFE | DUK_COMPILE_NOFILENAME)) |
#define | duk_peval_noresult(ctx) (duk_eval_raw((ctx), NULL, 0, 2 /*args*/ | DUK_COMPILE_EVAL | DUK_COMPILE_SAFE | DUK_COMPILE_NORESULT | DUK_COMPILE_NOFILENAME)) |
#define | duk_compile(ctx, flags) ((void) duk_compile_raw((ctx), NULL, 0, 3 /*args*/ | (flags))) |
#define | duk_pcompile(ctx, flags) (duk_compile_raw((ctx), NULL, 0, 3 /*args*/ | (flags) | DUK_COMPILE_SAFE)) |
#define | duk_eval_string(ctx, src) ((void) duk_eval_raw((ctx), (src), 0, 1 /*args*/ | DUK_COMPILE_EVAL | DUK_COMPILE_NOSOURCE | DUK_COMPILE_STRLEN | DUK_COMPILE_NOFILENAME)) |
#define | duk_eval_string_noresult(ctx, src) ((void) duk_eval_raw((ctx), (src), 0, 1 /*args*/ | DUK_COMPILE_EVAL | DUK_COMPILE_NOSOURCE | DUK_COMPILE_STRLEN | DUK_COMPILE_NORESULT | DUK_COMPILE_NOFILENAME)) |
#define | duk_peval_string(ctx, src) (duk_eval_raw((ctx), (src), 0, 1 /*args*/ | DUK_COMPILE_EVAL | DUK_COMPILE_SAFE | DUK_COMPILE_NOSOURCE | DUK_COMPILE_STRLEN | DUK_COMPILE_NOFILENAME)) |
#define | duk_peval_string_noresult(ctx, src) (duk_eval_raw((ctx), (src), 0, 1 /*args*/ | DUK_COMPILE_EVAL | DUK_COMPILE_SAFE | DUK_COMPILE_NOSOURCE | DUK_COMPILE_STRLEN | DUK_COMPILE_NORESULT | DUK_COMPILE_NOFILENAME)) |
#define | duk_compile_string(ctx, flags, src) ((void) duk_compile_raw((ctx), (src), 0, 1 /*args*/ | (flags) | DUK_COMPILE_NOSOURCE | DUK_COMPILE_STRLEN | DUK_COMPILE_NOFILENAME)) |
#define | duk_compile_string_filename(ctx, flags, src) ((void) duk_compile_raw((ctx), (src), 0, 2 /*args*/ | (flags) | DUK_COMPILE_NOSOURCE | DUK_COMPILE_STRLEN)) |
#define | duk_pcompile_string(ctx, flags, src) (duk_compile_raw((ctx), (src), 0, 1 /*args*/ | (flags) | DUK_COMPILE_SAFE | DUK_COMPILE_NOSOURCE | DUK_COMPILE_STRLEN | DUK_COMPILE_NOFILENAME)) |
#define | duk_pcompile_string_filename(ctx, flags, src) (duk_compile_raw((ctx), (src), 0, 2 /*args*/ | (flags) | DUK_COMPILE_SAFE | DUK_COMPILE_NOSOURCE | DUK_COMPILE_STRLEN)) |
#define | duk_eval_lstring(ctx, buf, len) ((void) duk_eval_raw((ctx), buf, len, 1 /*args*/ | DUK_COMPILE_EVAL | DUK_COMPILE_NOSOURCE | DUK_COMPILE_NOFILENAME)) |
#define | duk_eval_lstring_noresult(ctx, buf, len) ((void) duk_eval_raw((ctx), buf, len, 1 /*args*/ | DUK_COMPILE_EVAL | DUK_COMPILE_NOSOURCE | DUK_COMPILE_NORESULT | DUK_COMPILE_NOFILENAME)) |
#define | duk_peval_lstring(ctx, buf, len) (duk_eval_raw((ctx), buf, len, 1 /*args*/ | DUK_COMPILE_EVAL | DUK_COMPILE_NOSOURCE | DUK_COMPILE_SAFE | DUK_COMPILE_NOFILENAME)) |
#define | duk_peval_lstring_noresult(ctx, buf, len) (duk_eval_raw((ctx), buf, len, 1 /*args*/ | DUK_COMPILE_EVAL | DUK_COMPILE_SAFE | DUK_COMPILE_NOSOURCE | DUK_COMPILE_NORESULT | DUK_COMPILE_NOFILENAME)) |
#define | duk_compile_lstring(ctx, flags, buf, len) ((void) duk_compile_raw((ctx), buf, len, 1 /*args*/ | (flags) | DUK_COMPILE_NOSOURCE | DUK_COMPILE_NOFILENAME)) |
#define | duk_compile_lstring_filename(ctx, flags, buf, len) ((void) duk_compile_raw((ctx), buf, len, 2 /*args*/ | (flags) | DUK_COMPILE_NOSOURCE)) |
#define | duk_pcompile_lstring(ctx, flags, buf, len) (duk_compile_raw((ctx), buf, len, 1 /*args*/ | (flags) | DUK_COMPILE_SAFE | DUK_COMPILE_NOSOURCE | DUK_COMPILE_NOFILENAME)) |
#define | duk_pcompile_lstring_filename(ctx, flags, buf, len) (duk_compile_raw((ctx), buf, len, 2 /*args*/ | (flags) | DUK_COMPILE_SAFE | DUK_COMPILE_NOSOURCE)) |
#define | duk_eval_file(ctx, path) |
#define | duk_eval_file_noresult(ctx, path) |
#define | duk_peval_file(ctx, path) |
#define | duk_peval_file_noresult(ctx, path) |
#define | duk_compile_file(ctx, flags, path) |
#define | duk_pcompile_file(ctx, flags, path) |
#define | duk_dump_context_filehandle(ctx, fh) |
#define | duk_dump_context_stdout(ctx) duk_dump_context_filehandle((ctx), DUK_STDOUT) |
#define | duk_dump_context_stderr(ctx) duk_dump_context_filehandle((ctx), DUK_STDERR) |
#define | duk_debugger_attach(ctx, read_cb, write_cb, peek_cb, read_flush_cb, write_flush_cb, detached_cb, udata) |
#define | DUK_DATE_MSEC_SECOND 1000L |
#define | DUK_DATE_MSEC_MINUTE (60L * 1000L) |
#define | DUK_DATE_MSEC_HOUR (60L * 60L * 1000L) |
#define | DUK_DATE_MSEC_DAY (24L * 60L * 60L * 1000L) |
#define | DUK_DATE_MSEC_100M_DAYS (8.64e15) |
#define | DUK_DATE_MSEC_100M_DAYS_LEEWAY (8.64e15 + 24 * 3600e3) |
#define | DUK_DATE_MIN_ECMA_YEAR (-271821L) |
#define | DUK_DATE_MAX_ECMA_YEAR 275760L |
#define | DUK_DATE_IDX_YEAR 0 /* year */ |
#define | DUK_DATE_IDX_MONTH 1 /* month: 0 to 11 */ |
#define | DUK_DATE_IDX_DAY 2 /* day within month: 0 to 30 */ |
#define | DUK_DATE_IDX_HOUR 3 |
#define | DUK_DATE_IDX_MINUTE 4 |
#define | DUK_DATE_IDX_SECOND 5 |
#define | DUK_DATE_IDX_MILLISECOND 6 |
#define | DUK_DATE_IDX_WEEKDAY 7 /* weekday: 0 to 6, 0=sunday, 1=monday, etc */ |
#define | DUK_DATE_IDX_NUM_PARTS 8 |
#define | DUK_DATE_FLAG_NAN_TO_ZERO (1 << 0) /* timeval breakdown: internal time value NaN -> zero */ |
#define | DUK_DATE_FLAG_NAN_TO_RANGE_ERROR (1 << 1) /* timeval breakdown: internal time value NaN -> RangeError (toISOString) */ |
#define | DUK_DATE_FLAG_ONEBASED (1 << 2) /* timeval breakdown: convert month and day-of-month parts to one-based (default is zero-based) */ |
#define | DUK_DATE_FLAG_EQUIVYEAR (1 << 3) /* timeval breakdown: replace year with equivalent year in the [1971,2037] range for DST calculations */ |
#define | DUK_DATE_FLAG_LOCALTIME (1 << 4) /* convert time value to local time */ |
#define | DUK_DATE_FLAG_SUB1900 (1 << 5) /* getter: subtract 1900 from year when getting year part */ |
#define | DUK_DATE_FLAG_TOSTRING_DATE (1 << 6) /* include date part in string conversion result */ |
#define | DUK_DATE_FLAG_TOSTRING_TIME (1 << 7) /* include time part in string conversion result */ |
#define | DUK_DATE_FLAG_TOSTRING_LOCALE (1 << 8) /* use locale specific formatting if available */ |
#define | DUK_DATE_FLAG_TIMESETTER (1 << 9) /* setter: call is a time setter (affects hour, min, sec, ms); otherwise date setter (affects year, month, day-in-month) */ |
#define | DUK_DATE_FLAG_YEAR_FIXUP (1 << 10) /* setter: perform 2-digit year fixup (00...99 -> 1900...1999) */ |
#define | DUK_DATE_FLAG_SEP_T (1 << 11) /* string conversion: use 'T' instead of ' ' as a separator */ |
#define | DUK_DATE_FLAG_VALUE_SHIFT 12 /* additional values begin at bit 12 */ |
#define | DUK_DBLUNION_H_INCLUDED |
#define | DUK_DBLUNION_SET_DOUBLE(u, v) |
#define | DUK_DBLUNION_SET_HIGH32(u, v) |
#define | DUK_DBLUNION_SET_HIGH32_ZERO_LOW32(u, v) |
#define | DUK_DBLUNION_SET_LOW32(u, v) |
#define | DUK_DBLUNION_GET_DOUBLE(u) ((u)->d) |
#define | DUK_DBLUNION_GET_HIGH32(u) ((u)->ui[DUK_DBL_IDX_UI0]) |
#define | DUK_DBLUNION_GET_LOW32(u) ((u)->ui[DUK_DBL_IDX_UI1]) |
#define | DUK__DBLUNION_SET_NAN_FULL(u) |
#define | DUK__DBLUNION_SET_NAN_NOTFULL(u) |
#define | DUK__DBLUNION_IS_NAN_FULL(u) |
#define | DUK__DBLUNION_IS_NAN_NOTFULL(u) |
#define | DUK__DBLUNION_IS_NORMALIZED_NAN_FULL(u) |
#define | DUK__DBLUNION_IS_NORMALIZED_NAN_NOTFULL(u) |
#define | DUK__DBLUNION_NORMALIZE_NAN_CHECK_FULL(u) |
#define | DUK__DBLUNION_NORMALIZE_NAN_CHECK_NOTFULL(u) |
#define | DUK_DBLUNION_NORMALIZE_NAN_CHECK(u) /* nop: no need to normalize */ |
#define | DUK_DBLUNION_IS_NAN(u) (DUK_ISNAN((u)->d)) |
#define | DUK_DBLUNION_IS_NORMALIZED_NAN(u) (DUK_ISNAN((u)->d)) |
#define | DUK_DBLUNION_IS_NORMALIZED(u) 1 /* all doubles are considered normalized */ |
#define | DUK_DBLUNION_SET_NAN(u) |
#define | DUK_DBLUNION_BSWAP64(u) |
#define | DUK_DBLUNION_DOUBLE_NTOH(u) DUK_DBLUNION_DOUBLE_HTON((u)) |
Typedefs | |
typedef struct duk_thread_state | duk_thread_state |
typedef struct duk_memory_functions | duk_memory_functions |
typedef struct duk_function_list_entry | duk_function_list_entry |
typedef struct duk_number_list_entry | duk_number_list_entry |
typedef duk_ret_t(* | duk_c_function) (duk_context *ctx) |
typedef void *(* | duk_alloc_function) (void *udata, duk_size_t size) |
typedef void *(* | duk_realloc_function) (void *udata, void *ptr, duk_size_t size) |
typedef void(* | duk_free_function) (void *udata, void *ptr) |
typedef void(* | duk_fatal_function) (duk_context *ctx, duk_errcode_t code, const char *msg) |
typedef void(* | duk_decode_char_function) (void *udata, duk_codepoint_t codepoint) |
typedef duk_codepoint_t(* | duk_map_char_function) (void *udata, duk_codepoint_t codepoint) |
typedef duk_ret_t(* | duk_safe_call_function) (duk_context *ctx) |
typedef duk_size_t(* | duk_debug_read_function) (void *udata, char *buffer, duk_size_t length) |
typedef duk_size_t(* | duk_debug_write_function) (void *udata, const char *buffer, duk_size_t length) |
typedef duk_size_t(* | duk_debug_peek_function) (void *udata) |
typedef void(* | duk_debug_read_flush_function) (void *udata) |
typedef void(* | duk_debug_write_flush_function) (void *udata) |
typedef duk_idx_t(* | duk_debug_request_function) (duk_context *ctx, void *udata, duk_idx_t nvalues) |
typedef void(* | duk_debug_detached_function) (void *udata) |
typedef union duk_double_union | duk_double_union |
Variables | |
DUK_EXTERNAL_DECL const char * | duk_api_global_filename |
DUK_EXTERNAL_DECL duk_int_t | duk_api_global_line |
#define DUK__DBLUNION_IS_NAN_FULL | ( | u | ) |
Definition at line 1458 of file duktape-1.8.0/src/duktape.h.
#define DUK__DBLUNION_IS_NAN_NOTFULL | ( | u | ) |
Definition at line 1465 of file duktape-1.8.0/src/duktape.h.
#define DUK__DBLUNION_IS_NORMALIZED_NAN_FULL | ( | u | ) |
Definition at line 1479 of file duktape-1.8.0/src/duktape.h.
#define DUK__DBLUNION_IS_NORMALIZED_NAN_NOTFULL | ( | u | ) |
Definition at line 1484 of file duktape-1.8.0/src/duktape.h.
#define DUK__DBLUNION_NORMALIZE_NAN_CHECK_FULL | ( | u | ) |
Definition at line 1488 of file duktape-1.8.0/src/duktape.h.
#define DUK__DBLUNION_NORMALIZE_NAN_CHECK_NOTFULL | ( | u | ) |
Definition at line 1494 of file duktape-1.8.0/src/duktape.h.
#define DUK__DBLUNION_SET_NAN_FULL | ( | u | ) |
Definition at line 1435 of file duktape-1.8.0/src/duktape.h.
#define DUK__DBLUNION_SET_NAN_NOTFULL | ( | u | ) |
Definition at line 1441 of file duktape-1.8.0/src/duktape.h.
#define DUK_API_ENTRY_STACK 64 |
Definition at line 259 of file duktape-1.8.0/src/duktape.h.
#define DUK_API_NORETURN | ( | decl | ) | DUK_NORETURN(decl) |
Definition at line 156 of file duktape-1.8.0/src/duktape.h.
#define DUK_API_PUBLIC_H_INCLUDED |
Definition at line 137 of file duktape-1.8.0/src/duktape.h.
#define DUK_BUF_FLAG_DYNAMIC (1 << 0) /* internal flag: dynamic buffer */ |
Definition at line 575 of file duktape-1.8.0/src/duktape.h.
#define DUK_BUF_FLAG_EXTERNAL (1 << 1) /* internal flag: external buffer */ |
Definition at line 576 of file duktape-1.8.0/src/duktape.h.
#define DUK_BUF_FLAG_NOZERO (1 << 2) /* internal flag: don't zero allocated buffer */ |
Definition at line 577 of file duktape-1.8.0/src/duktape.h.
#define DUK_BUF_MODE_DONTCARE 2 /* internal: don't care about fixed/dynamic nature */ |
Definition at line 775 of file duktape-1.8.0/src/duktape.h.
#define DUK_BUF_MODE_DYNAMIC 1 /* internal: request dynamic buffer result */ |
Definition at line 774 of file duktape-1.8.0/src/duktape.h.
#define DUK_BUF_MODE_FIXED 0 /* internal: request fixed buffer result */ |
Definition at line 773 of file duktape-1.8.0/src/duktape.h.
#define DUK_BUFOBJ_ARRAYBUFFER 2 |
Definition at line 593 of file duktape-1.8.0/src/duktape.h.
#define DUK_BUFOBJ_CREATE_ARRBUF (1 << 4) /* internal flag: create backing ArrayBuffer; keep in one byte */ |
Definition at line 590 of file duktape-1.8.0/src/duktape.h.
#define DUK_BUFOBJ_DATAVIEW (3 | DUK_BUFOBJ_CREATE_ARRBUF) |
Definition at line 594 of file duktape-1.8.0/src/duktape.h.
#define DUK_BUFOBJ_DUKTAPE_BUFFER 0 |
Definition at line 591 of file duktape-1.8.0/src/duktape.h.
#define DUK_BUFOBJ_FLOAT32ARRAY (11 | DUK_BUFOBJ_CREATE_ARRBUF) |
Definition at line 602 of file duktape-1.8.0/src/duktape.h.
#define DUK_BUFOBJ_FLOAT64ARRAY (12 | DUK_BUFOBJ_CREATE_ARRBUF) |
Definition at line 603 of file duktape-1.8.0/src/duktape.h.
#define DUK_BUFOBJ_INT16ARRAY (7 | DUK_BUFOBJ_CREATE_ARRBUF) |
Definition at line 598 of file duktape-1.8.0/src/duktape.h.
#define DUK_BUFOBJ_INT32ARRAY (9 | DUK_BUFOBJ_CREATE_ARRBUF) |
Definition at line 600 of file duktape-1.8.0/src/duktape.h.
#define DUK_BUFOBJ_INT8ARRAY (4 | DUK_BUFOBJ_CREATE_ARRBUF) |
Definition at line 595 of file duktape-1.8.0/src/duktape.h.
#define DUK_BUFOBJ_NODEJS_BUFFER 1 |
Definition at line 592 of file duktape-1.8.0/src/duktape.h.
#define DUK_BUFOBJ_UINT16ARRAY (8 | DUK_BUFOBJ_CREATE_ARRBUF) |
Definition at line 599 of file duktape-1.8.0/src/duktape.h.
#define DUK_BUFOBJ_UINT32ARRAY (10 | DUK_BUFOBJ_CREATE_ARRBUF) |
Definition at line 601 of file duktape-1.8.0/src/duktape.h.
#define DUK_BUFOBJ_UINT8ARRAY (5 | DUK_BUFOBJ_CREATE_ARRBUF) |
Definition at line 596 of file duktape-1.8.0/src/duktape.h.
#define DUK_BUFOBJ_UINT8CLAMPEDARRAY (6 | DUK_BUFOBJ_CREATE_ARRBUF) |
Definition at line 597 of file duktape-1.8.0/src/duktape.h.
#define duk_compile | ( | ctx, | |
flags ) ((void) duk_compile_raw((ctx), NULL, 0, 3 /*args*/ | (flags))) |
Definition at line 950 of file duktape-1.8.0/src/duktape.h.
#define DUK_COMPILE_EVAL (1 << 3) /* compile eval code (instead of global code) */ |
Definition at line 306 of file duktape-1.8.0/src/duktape.h.
#define duk_compile_file | ( | ctx, | |
flags, | |||
path ) |
Definition at line 1027 of file duktape-1.8.0/src/duktape.h.
#define DUK_COMPILE_FUNCTION (1 << 4) /* compile function code (instead of global code) */ |
Definition at line 307 of file duktape-1.8.0/src/duktape.h.
#define duk_compile_lstring | ( | ctx, | |
flags, | |||
buf, | |||
len ) ((void) duk_compile_raw((ctx), buf, len, 1 /*args*/ | (flags) | DUK_COMPILE_NOSOURCE | DUK_COMPILE_NOFILENAME)) |
Definition at line 994 of file duktape-1.8.0/src/duktape.h.
#define duk_compile_lstring_filename | ( | ctx, | |
flags, | |||
buf, | |||
len ) ((void) duk_compile_raw((ctx), buf, len, 2 /*args*/ | (flags) | DUK_COMPILE_NOSOURCE)) |
Definition at line 997 of file duktape-1.8.0/src/duktape.h.
#define DUK_COMPILE_NOFILENAME (1 << 10) /* (internal) no filename on stack */ |
Definition at line 313 of file duktape-1.8.0/src/duktape.h.
#define DUK_COMPILE_NORESULT (1 << 7) /* (internal) omit eval result */ |
Definition at line 310 of file duktape-1.8.0/src/duktape.h.
#define DUK_COMPILE_NOSOURCE (1 << 8) /* (internal) no source string on stack */ |
Definition at line 311 of file duktape-1.8.0/src/duktape.h.
#define DUK_COMPILE_SAFE (1 << 6) /* (internal) catch compilation errors */ |
Definition at line 309 of file duktape-1.8.0/src/duktape.h.
#define DUK_COMPILE_STRICT (1 << 5) /* use strict (outer) context for global, eval, or function code */ |
Definition at line 308 of file duktape-1.8.0/src/duktape.h.
#define duk_compile_string | ( | ctx, | |
flags, | |||
src ) ((void) duk_compile_raw((ctx), (src), 0, 1 /*args*/ | (flags) | DUK_COMPILE_NOSOURCE | DUK_COMPILE_STRLEN | DUK_COMPILE_NOFILENAME)) |
Definition at line 969 of file duktape-1.8.0/src/duktape.h.
#define duk_compile_string_filename | ( | ctx, | |
flags, | |||
src ) ((void) duk_compile_raw((ctx), (src), 0, 2 /*args*/ | (flags) | DUK_COMPILE_NOSOURCE | DUK_COMPILE_STRLEN)) |
Definition at line 972 of file duktape-1.8.0/src/duktape.h.
#define DUK_COMPILE_STRLEN (1 << 9) /* (internal) take strlen() of src_buffer (avoids double evaluation in macro) */ |
Definition at line 312 of file duktape-1.8.0/src/duktape.h.
Definition at line 411 of file duktape-1.8.0/src/duktape.h.
#define DUK_DATE_FLAG_EQUIVYEAR (1 << 3) /* timeval breakdown: replace year with equivalent year in the [1971,2037] range for DST calculations */ |
Definition at line 1163 of file duktape-1.8.0/src/duktape.h.
#define DUK_DATE_FLAG_LOCALTIME (1 << 4) /* convert time value to local time */ |
Definition at line 1164 of file duktape-1.8.0/src/duktape.h.
#define DUK_DATE_FLAG_NAN_TO_RANGE_ERROR (1 << 1) /* timeval breakdown: internal time value NaN -> RangeError (toISOString) */ |
Definition at line 1161 of file duktape-1.8.0/src/duktape.h.
#define DUK_DATE_FLAG_NAN_TO_ZERO (1 << 0) /* timeval breakdown: internal time value NaN -> zero */ |
Definition at line 1160 of file duktape-1.8.0/src/duktape.h.
#define DUK_DATE_FLAG_ONEBASED (1 << 2) /* timeval breakdown: convert month and day-of-month parts to one-based (default is zero-based) */ |
Definition at line 1162 of file duktape-1.8.0/src/duktape.h.
#define DUK_DATE_FLAG_SEP_T (1 << 11) /* string conversion: use 'T' instead of ' ' as a separator */ |
Definition at line 1171 of file duktape-1.8.0/src/duktape.h.
#define DUK_DATE_FLAG_SUB1900 (1 << 5) /* getter: subtract 1900 from year when getting year part */ |
Definition at line 1165 of file duktape-1.8.0/src/duktape.h.
#define DUK_DATE_FLAG_TIMESETTER (1 << 9) /* setter: call is a time setter (affects hour, min, sec, ms); otherwise date setter (affects year, month, day-in-month) */ |
Definition at line 1169 of file duktape-1.8.0/src/duktape.h.
#define DUK_DATE_FLAG_TOSTRING_DATE (1 << 6) /* include date part in string conversion result */ |
Definition at line 1166 of file duktape-1.8.0/src/duktape.h.
#define DUK_DATE_FLAG_TOSTRING_LOCALE (1 << 8) /* use locale specific formatting if available */ |
Definition at line 1168 of file duktape-1.8.0/src/duktape.h.
#define DUK_DATE_FLAG_TOSTRING_TIME (1 << 7) /* include time part in string conversion result */ |
Definition at line 1167 of file duktape-1.8.0/src/duktape.h.
#define DUK_DATE_FLAG_VALUE_SHIFT 12 /* additional values begin at bit 12 */ |
Definition at line 1172 of file duktape-1.8.0/src/duktape.h.
#define DUK_DATE_FLAG_YEAR_FIXUP (1 << 10) /* setter: perform 2-digit year fixup (00...99 -> 1900...1999) */ |
Definition at line 1170 of file duktape-1.8.0/src/duktape.h.
#define DUK_DATE_IDX_DAY 2 /* day within month: 0 to 30 */ |
Definition at line 1136 of file duktape-1.8.0/src/duktape.h.
#define DUK_DATE_IDX_HOUR 3 |
Definition at line 1137 of file duktape-1.8.0/src/duktape.h.
#define DUK_DATE_IDX_MILLISECOND 6 |
Definition at line 1140 of file duktape-1.8.0/src/duktape.h.
#define DUK_DATE_IDX_MINUTE 4 |
Definition at line 1138 of file duktape-1.8.0/src/duktape.h.
#define DUK_DATE_IDX_MONTH 1 /* month: 0 to 11 */ |
Definition at line 1135 of file duktape-1.8.0/src/duktape.h.
#define DUK_DATE_IDX_NUM_PARTS 8 |
Definition at line 1142 of file duktape-1.8.0/src/duktape.h.
#define DUK_DATE_IDX_SECOND 5 |
Definition at line 1139 of file duktape-1.8.0/src/duktape.h.
#define DUK_DATE_IDX_WEEKDAY 7 /* weekday: 0 to 6, 0=sunday, 1=monday, etc */ |
Definition at line 1141 of file duktape-1.8.0/src/duktape.h.
#define DUK_DATE_IDX_YEAR 0 /* year */ |
Definition at line 1134 of file duktape-1.8.0/src/duktape.h.
#define DUK_DATE_MAX_ECMA_YEAR 275760L |
Definition at line 1124 of file duktape-1.8.0/src/duktape.h.
#define DUK_DATE_MIN_ECMA_YEAR (-271821L) |
Definition at line 1123 of file duktape-1.8.0/src/duktape.h.
#define DUK_DATE_MSEC_100M_DAYS (8.64e15) |
Definition at line 1114 of file duktape-1.8.0/src/duktape.h.
#define DUK_DATE_MSEC_100M_DAYS_LEEWAY (8.64e15 + 24 * 3600e3) |
Definition at line 1115 of file duktape-1.8.0/src/duktape.h.
#define DUK_DATE_MSEC_DAY (24L * 60L * 60L * 1000L) |
Definition at line 1107 of file duktape-1.8.0/src/duktape.h.
#define DUK_DATE_MSEC_HOUR (60L * 60L * 1000L) |
Definition at line 1106 of file duktape-1.8.0/src/duktape.h.
#define DUK_DATE_MSEC_MINUTE (60L * 1000L) |
Definition at line 1105 of file duktape-1.8.0/src/duktape.h.
#define DUK_DATE_MSEC_SECOND 1000L |
Definition at line 1104 of file duktape-1.8.0/src/duktape.h.
#define DUK_DBLUNION_BSWAP64 | ( | u | ) |
Definition at line 1535 of file duktape-1.8.0/src/duktape.h.
#define DUK_DBLUNION_DOUBLE_NTOH | ( | u | ) | DUK_DBLUNION_DOUBLE_HTON((u)) |
Definition at line 1575 of file duktape-1.8.0/src/duktape.h.
#define DUK_DBLUNION_GET_DOUBLE | ( | u | ) | ((u)->d) |
Definition at line 1375 of file duktape-1.8.0/src/duktape.h.
#define DUK_DBLUNION_GET_HIGH32 | ( | u | ) | ((u)->ui[DUK_DBL_IDX_UI0]) |
Definition at line 1376 of file duktape-1.8.0/src/duktape.h.
#define DUK_DBLUNION_GET_LOW32 | ( | u | ) | ((u)->ui[DUK_DBL_IDX_UI1]) |
Definition at line 1377 of file duktape-1.8.0/src/duktape.h.
#define DUK_DBLUNION_H_INCLUDED |
Definition at line 1251 of file duktape-1.8.0/src/duktape.h.
#define DUK_DBLUNION_IS_NAN | ( | u | ) | (DUK_ISNAN((u)->d)) |
Definition at line 1523 of file duktape-1.8.0/src/duktape.h.
#define DUK_DBLUNION_IS_NORMALIZED | ( | u | ) | 1 /* all doubles are considered normalized */ |
Definition at line 1525 of file duktape-1.8.0/src/duktape.h.
#define DUK_DBLUNION_IS_NORMALIZED_NAN | ( | u | ) | (DUK_ISNAN((u)->d)) |
Definition at line 1524 of file duktape-1.8.0/src/duktape.h.
#define DUK_DBLUNION_NORMALIZE_NAN_CHECK | ( | u | ) | /* nop: no need to normalize */ |
Definition at line 1522 of file duktape-1.8.0/src/duktape.h.
#define DUK_DBLUNION_SET_DOUBLE | ( | u, | |
v ) |
Definition at line 1346 of file duktape-1.8.0/src/duktape.h.
#define DUK_DBLUNION_SET_HIGH32 | ( | u, | |
v ) |
Definition at line 1350 of file duktape-1.8.0/src/duktape.h.
#define DUK_DBLUNION_SET_HIGH32_ZERO_LOW32 | ( | u, | |
v ) |
Definition at line 1365 of file duktape-1.8.0/src/duktape.h.
#define DUK_DBLUNION_SET_LOW32 | ( | u, | |
v ) |
Definition at line 1371 of file duktape-1.8.0/src/duktape.h.
#define DUK_DBLUNION_SET_NAN | ( | u | ) |
Definition at line 1526 of file duktape-1.8.0/src/duktape.h.
#define DUK_DEBUG_PROTOCOL_VERSION 1 |
Definition at line 243 of file duktape-1.8.0/src/duktape.h.
#define duk_debugger_attach | ( | ctx, | |
read_cb, | |||
write_cb, | |||
peek_cb, | |||
read_flush_cb, | |||
write_flush_cb, | |||
detached_cb, | |||
udata ) |
Definition at line 1078 of file duktape-1.8.0/src/duktape.h.
#define DUK_DEFPROP_CLEAR_CONFIGURABLE DUK_DEFPROP_HAVE_CONFIGURABLE |
Definition at line 331 of file duktape-1.8.0/src/duktape.h.
#define DUK_DEFPROP_CLEAR_ENUMERABLE DUK_DEFPROP_HAVE_ENUMERABLE |
Definition at line 329 of file duktape-1.8.0/src/duktape.h.
#define DUK_DEFPROP_CLEAR_WRITABLE DUK_DEFPROP_HAVE_WRITABLE |
Definition at line 327 of file duktape-1.8.0/src/duktape.h.
#define DUK_DEFPROP_CONFIGURABLE (1 << 2) /* set configurable (effective if DUK_DEFPROP_HAVE_CONFIGURABLE set) */ |
Definition at line 318 of file duktape-1.8.0/src/duktape.h.
#define DUK_DEFPROP_ENUMERABLE (1 << 1) /* set enumerable (effective if DUK_DEFPROP_HAVE_ENUMERABLE set) */ |
Definition at line 317 of file duktape-1.8.0/src/duktape.h.
#define DUK_DEFPROP_FORCE (1 << 9) /* force change if possible, may still fail for e.g. virtual properties */ |
Definition at line 325 of file duktape-1.8.0/src/duktape.h.
#define DUK_DEFPROP_HAVE_CONFIGURABLE (1 << 5) /* set/clear configurable */ |
Definition at line 321 of file duktape-1.8.0/src/duktape.h.
#define DUK_DEFPROP_HAVE_ENUMERABLE (1 << 4) /* set/clear enumerable */ |
Definition at line 320 of file duktape-1.8.0/src/duktape.h.
#define DUK_DEFPROP_HAVE_GETTER (1 << 7) /* set getter (given on value stack) */ |
Definition at line 323 of file duktape-1.8.0/src/duktape.h.
#define DUK_DEFPROP_HAVE_SETTER (1 << 8) /* set setter (given on value stack) */ |
Definition at line 324 of file duktape-1.8.0/src/duktape.h.
Definition at line 322 of file duktape-1.8.0/src/duktape.h.
#define DUK_DEFPROP_HAVE_WRITABLE (1 << 3) /* set/clear writable */ |
Definition at line 319 of file duktape-1.8.0/src/duktape.h.
#define DUK_DEFPROP_SET_CONFIGURABLE (DUK_DEFPROP_HAVE_CONFIGURABLE | DUK_DEFPROP_CONFIGURABLE) |
Definition at line 330 of file duktape-1.8.0/src/duktape.h.
#define DUK_DEFPROP_SET_ENUMERABLE (DUK_DEFPROP_HAVE_ENUMERABLE | DUK_DEFPROP_ENUMERABLE) |
Definition at line 328 of file duktape-1.8.0/src/duktape.h.
#define DUK_DEFPROP_SET_WRITABLE (DUK_DEFPROP_HAVE_WRITABLE | DUK_DEFPROP_WRITABLE) |
Definition at line 326 of file duktape-1.8.0/src/duktape.h.
#define DUK_DEFPROP_WRITABLE (1 << 0) /* set writable (effective if DUK_DEFPROP_HAVE_WRITABLE set) */ |
Definition at line 316 of file duktape-1.8.0/src/duktape.h.
#define duk_dump_context_filehandle | ( | ctx, | |
fh ) |
Definition at line 1059 of file duktape-1.8.0/src/duktape.h.
#define duk_dump_context_stderr | ( | ctx | ) | duk_dump_context_filehandle((ctx), DUK_STDERR) |
Definition at line 1067 of file duktape-1.8.0/src/duktape.h.
#define duk_dump_context_stdout | ( | ctx | ) | duk_dump_context_filehandle((ctx), DUK_STDOUT) |
Definition at line 1065 of file duktape-1.8.0/src/duktape.h.
#define DUK_ENUM_ARRAY_INDICES_ONLY (1 << 3) /* only enumerate array indices */ |
Definition at line 297 of file duktape-1.8.0/src/duktape.h.
#define DUK_ENUM_INCLUDE_INTERNAL (1 << 1) /* enumerate internal properties (regardless of enumerability) */ |
Definition at line 295 of file duktape-1.8.0/src/duktape.h.
#define DUK_ENUM_INCLUDE_NONENUMERABLE (1 << 0) /* enumerate non-numerable properties in addition to enumerable */ |
Definition at line 294 of file duktape-1.8.0/src/duktape.h.
#define DUK_ENUM_NO_PROXY_BEHAVIOR (1 << 5) /* enumerate a proxy object itself without invoking proxy behavior */ |
Definition at line 299 of file duktape-1.8.0/src/duktape.h.
#define DUK_ENUM_OWN_PROPERTIES_ONLY (1 << 2) /* don't walk prototype chain, only check own properties */ |
Definition at line 296 of file duktape-1.8.0/src/duktape.h.
#define DUK_ENUM_SORT_ARRAY_INDICES (1 << 4) /* sort array indices, use with DUK_ENUM_ARRAY_INDICES_ONLY */ |
Definition at line 298 of file duktape-1.8.0/src/duktape.h.
#define DUK_ERR_ALLOC_ERROR 53 /* AllocError */ /* XXX: replace with RangeError? */ |
Definition at line 344 of file duktape-1.8.0/src/duktape.h.
#define DUK_ERR_API_ERROR 55 /* APIError */ /* XXX: replace with TypeError? */ |
Definition at line 346 of file duktape-1.8.0/src/duktape.h.
#define DUK_ERR_ASSERTION_ERROR 54 /* AssertionError */ /* XXX: to be removed? */ |
Definition at line 345 of file duktape-1.8.0/src/duktape.h.
#define DUK_ERR_ERROR 100 /* Error */ |
Definition at line 350 of file duktape-1.8.0/src/duktape.h.
#define DUK_ERR_EVAL_ERROR 101 /* EvalError */ |
Definition at line 351 of file duktape-1.8.0/src/duktape.h.
#define DUK_ERR_INTERNAL_ERROR 52 /* InternalError */ /* XXX: replace with plain Error? */ |
Definition at line 343 of file duktape-1.8.0/src/duktape.h.
#define DUK_ERR_NONE 0 /* no error (e.g. from duk_get_error_code()) */ |
Definition at line 340 of file duktape-1.8.0/src/duktape.h.
#define DUK_ERR_RANGE_ERROR 102 /* RangeError */ |
Definition at line 352 of file duktape-1.8.0/src/duktape.h.
#define DUK_ERR_REFERENCE_ERROR 103 /* ReferenceError */ |
Definition at line 353 of file duktape-1.8.0/src/duktape.h.
#define DUK_ERR_SYNTAX_ERROR 104 /* SyntaxError */ |
Definition at line 354 of file duktape-1.8.0/src/duktape.h.
#define DUK_ERR_TYPE_ERROR 105 /* TypeError */ |
Definition at line 355 of file duktape-1.8.0/src/duktape.h.
#define DUK_ERR_UNCAUGHT_ERROR 56 /* UncaughtError */ /* XXX: to be removed? */ |
Definition at line 347 of file duktape-1.8.0/src/duktape.h.
#define DUK_ERR_UNIMPLEMENTED_ERROR 50 /* UnimplementedError */ /* XXX: replace with TypeError? */ |
Definition at line 341 of file duktape-1.8.0/src/duktape.h.
#define DUK_ERR_UNSUPPORTED_ERROR 51 /* UnsupportedError */ /* XXX: replace with TypeError? */ |
Definition at line 342 of file duktape-1.8.0/src/duktape.h.
#define DUK_ERR_URI_ERROR 106 /* URIError */ |
Definition at line 356 of file duktape-1.8.0/src/duktape.h.
#define duk_error |
Definition at line 447 of file duktape-1.8.0/src/duktape.h.
#define duk_error_va | ( | ctx, | |
err_code, | |||
fmt, | |||
ap ) duk_error_va_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), (fmt), (ap)) |
Definition at line 454 of file duktape-1.8.0/src/duktape.h.
#define duk_eval | ( | ctx | ) | ((void) duk_eval_raw((ctx), NULL, 0, 2 /*args*/ | DUK_COMPILE_EVAL | DUK_COMPILE_NOFILENAME)) |
Definition at line 938 of file duktape-1.8.0/src/duktape.h.
#define duk_eval_file | ( | ctx, | |
path ) |
Definition at line 1007 of file duktape-1.8.0/src/duktape.h.
#define duk_eval_file_noresult | ( | ctx, | |
path ) |
Definition at line 1012 of file duktape-1.8.0/src/duktape.h.
#define duk_eval_lstring | ( | ctx, | |
buf, | |||
len ) ((void) duk_eval_raw((ctx), buf, len, 1 /*args*/ | DUK_COMPILE_EVAL | DUK_COMPILE_NOSOURCE | DUK_COMPILE_NOFILENAME)) |
Definition at line 982 of file duktape-1.8.0/src/duktape.h.
#define duk_eval_lstring_noresult | ( | ctx, | |
buf, | |||
len ) ((void) duk_eval_raw((ctx), buf, len, 1 /*args*/ | DUK_COMPILE_EVAL | DUK_COMPILE_NOSOURCE | DUK_COMPILE_NORESULT | DUK_COMPILE_NOFILENAME)) |
Definition at line 985 of file duktape-1.8.0/src/duktape.h.
#define duk_eval_noresult | ( | ctx | ) | ((void) duk_eval_raw((ctx), NULL, 0, 2 /*args*/ | DUK_COMPILE_EVAL | DUK_COMPILE_NORESULT | DUK_COMPILE_NOFILENAME)) |
Definition at line 941 of file duktape-1.8.0/src/duktape.h.
#define duk_eval_string | ( | ctx, | |
src ) ((void) duk_eval_raw((ctx), (src), 0, 1 /*args*/ | DUK_COMPILE_EVAL | DUK_COMPILE_NOSOURCE | DUK_COMPILE_STRLEN | DUK_COMPILE_NOFILENAME)) |
Definition at line 957 of file duktape-1.8.0/src/duktape.h.
#define duk_eval_string_noresult | ( | ctx, | |
src ) ((void) duk_eval_raw((ctx), (src), 0, 1 /*args*/ | DUK_COMPILE_EVAL | DUK_COMPILE_NOSOURCE | DUK_COMPILE_STRLEN | DUK_COMPILE_NORESULT | DUK_COMPILE_NOFILENAME)) |
Definition at line 960 of file duktape-1.8.0/src/duktape.h.
#define DUK_EXEC_ERROR 1 |
Definition at line 376 of file duktape-1.8.0/src/duktape.h.
#define DUK_EXEC_SUCCESS 0 |
Definition at line 375 of file duktape-1.8.0/src/duktape.h.
#define DUK_GIT_BRANCH "v1.8-maintenance" |
Definition at line 240 of file duktape-1.8.0/src/duktape.h.
#define DUK_GIT_COMMIT "0a70d7e4c5227c84e3fed5209828973117d02849" |
Definition at line 238 of file duktape-1.8.0/src/duktape.h.
#define DUK_GIT_DESCRIBE "v1.8.0" |
Definition at line 239 of file duktape-1.8.0/src/duktape.h.
#define DUK_HINT_NONE |
Definition at line 289 of file duktape-1.8.0/src/duktape.h.
#define DUK_HINT_NUMBER 2 /* prefer number */ |
Definition at line 291 of file duktape-1.8.0/src/duktape.h.
#define DUK_HINT_STRING 1 /* prefer string */ |
Definition at line 290 of file duktape-1.8.0/src/duktape.h.
#define DUK_INVALID_INDEX DUK_IDX_MIN |
Definition at line 249 of file duktape-1.8.0/src/duktape.h.
#define duk_is_callable | ( | ctx, | |
index ) duk_is_function((ctx), (index)) |
Definition at line 650 of file duktape-1.8.0/src/duktape.h.
#define duk_is_error | ( | ctx, | |
index ) (duk_get_error_code((ctx), (index)) != 0) |
Definition at line 676 of file duktape-1.8.0/src/duktape.h.
#define duk_is_eval_error | ( | ctx, | |
index ) (duk_get_error_code((ctx), (index)) == DUK_ERR_EVAL_ERROR) |
Definition at line 678 of file duktape-1.8.0/src/duktape.h.
#define duk_is_object_coercible | ( | ctx, | |
index ) |
Definition at line 666 of file duktape-1.8.0/src/duktape.h.
#define duk_is_primitive | ( | ctx, | |
index ) |
Definition at line 656 of file duktape-1.8.0/src/duktape.h.
#define duk_is_range_error | ( | ctx, | |
index ) (duk_get_error_code((ctx), (index)) == DUK_ERR_RANGE_ERROR) |
Definition at line 680 of file duktape-1.8.0/src/duktape.h.
#define duk_is_reference_error | ( | ctx, | |
index ) (duk_get_error_code((ctx), (index)) == DUK_ERR_REFERENCE_ERROR) |
Definition at line 682 of file duktape-1.8.0/src/duktape.h.
#define duk_is_syntax_error | ( | ctx, | |
index ) (duk_get_error_code((ctx), (index)) == DUK_ERR_SYNTAX_ERROR) |
Definition at line 684 of file duktape-1.8.0/src/duktape.h.
#define duk_is_type_error | ( | ctx, | |
index ) (duk_get_error_code((ctx), (index)) == DUK_ERR_TYPE_ERROR) |
Definition at line 686 of file duktape-1.8.0/src/duktape.h.
#define duk_is_uri_error | ( | ctx, | |
index ) (duk_get_error_code((ctx), (index)) == DUK_ERR_URI_ERROR) |
Definition at line 688 of file duktape-1.8.0/src/duktape.h.
#define DUK_LOG_DEBUG 1 |
Definition at line 380 of file duktape-1.8.0/src/duktape.h.
#define DUK_LOG_ERROR 4 |
Definition at line 383 of file duktape-1.8.0/src/duktape.h.
#define DUK_LOG_FATAL 5 |
Definition at line 384 of file duktape-1.8.0/src/duktape.h.
#define DUK_LOG_INFO 2 |
Definition at line 381 of file duktape-1.8.0/src/duktape.h.
#define DUK_LOG_TRACE 0 |
Definition at line 379 of file duktape-1.8.0/src/duktape.h.
#define DUK_LOG_WARN 3 |
Definition at line 382 of file duktape-1.8.0/src/duktape.h.
#define duk_pcompile | ( | ctx, | |
flags ) (duk_compile_raw((ctx), NULL, 0, 3 /*args*/ | (flags) | DUK_COMPILE_SAFE)) |
Definition at line 953 of file duktape-1.8.0/src/duktape.h.
#define duk_pcompile_file | ( | ctx, | |
flags, | |||
path ) |
Definition at line 1032 of file duktape-1.8.0/src/duktape.h.
#define duk_pcompile_lstring | ( | ctx, | |
flags, | |||
buf, | |||
len ) (duk_compile_raw((ctx), buf, len, 1 /*args*/ | (flags) | DUK_COMPILE_SAFE | DUK_COMPILE_NOSOURCE | DUK_COMPILE_NOFILENAME)) |
Definition at line 1000 of file duktape-1.8.0/src/duktape.h.
#define duk_pcompile_lstring_filename | ( | ctx, | |
flags, | |||
buf, | |||
len ) (duk_compile_raw((ctx), buf, len, 2 /*args*/ | (flags) | DUK_COMPILE_SAFE | DUK_COMPILE_NOSOURCE)) |
Definition at line 1003 of file duktape-1.8.0/src/duktape.h.
#define duk_pcompile_string | ( | ctx, | |
flags, | |||
src ) (duk_compile_raw((ctx), (src), 0, 1 /*args*/ | (flags) | DUK_COMPILE_SAFE | DUK_COMPILE_NOSOURCE | DUK_COMPILE_STRLEN | DUK_COMPILE_NOFILENAME)) |
Definition at line 975 of file duktape-1.8.0/src/duktape.h.
#define duk_pcompile_string_filename | ( | ctx, | |
flags, | |||
src ) (duk_compile_raw((ctx), (src), 0, 2 /*args*/ | (flags) | DUK_COMPILE_SAFE | DUK_COMPILE_NOSOURCE | DUK_COMPILE_STRLEN)) |
Definition at line 978 of file duktape-1.8.0/src/duktape.h.
#define duk_peval | ( | ctx | ) | (duk_eval_raw((ctx), NULL, 0, 2 /*args*/ | DUK_COMPILE_EVAL | DUK_COMPILE_SAFE | DUK_COMPILE_NOFILENAME)) |
Definition at line 944 of file duktape-1.8.0/src/duktape.h.
#define duk_peval_file | ( | ctx, | |
path ) |
Definition at line 1017 of file duktape-1.8.0/src/duktape.h.
#define duk_peval_file_noresult | ( | ctx, | |
path ) |
Definition at line 1022 of file duktape-1.8.0/src/duktape.h.
#define duk_peval_lstring | ( | ctx, | |
buf, | |||
len ) (duk_eval_raw((ctx), buf, len, 1 /*args*/ | DUK_COMPILE_EVAL | DUK_COMPILE_NOSOURCE | DUK_COMPILE_SAFE | DUK_COMPILE_NOFILENAME)) |
Definition at line 988 of file duktape-1.8.0/src/duktape.h.
#define duk_peval_lstring_noresult | ( | ctx, | |
buf, | |||
len ) (duk_eval_raw((ctx), buf, len, 1 /*args*/ | DUK_COMPILE_EVAL | DUK_COMPILE_SAFE | DUK_COMPILE_NOSOURCE | DUK_COMPILE_NORESULT | DUK_COMPILE_NOFILENAME)) |
Definition at line 991 of file duktape-1.8.0/src/duktape.h.
#define duk_peval_noresult | ( | ctx | ) | (duk_eval_raw((ctx), NULL, 0, 2 /*args*/ | DUK_COMPILE_EVAL | DUK_COMPILE_SAFE | DUK_COMPILE_NORESULT | DUK_COMPILE_NOFILENAME)) |
Definition at line 947 of file duktape-1.8.0/src/duktape.h.
#define duk_peval_string | ( | ctx, | |
src ) (duk_eval_raw((ctx), (src), 0, 1 /*args*/ | DUK_COMPILE_EVAL | DUK_COMPILE_SAFE | DUK_COMPILE_NOSOURCE | DUK_COMPILE_STRLEN | DUK_COMPILE_NOFILENAME)) |
Definition at line 963 of file duktape-1.8.0/src/duktape.h.
#define duk_peval_string_noresult | ( | ctx, | |
src ) (duk_eval_raw((ctx), (src), 0, 1 /*args*/ | DUK_COMPILE_EVAL | DUK_COMPILE_SAFE | DUK_COMPILE_NOSOURCE | DUK_COMPILE_STRLEN | DUK_COMPILE_NORESULT | DUK_COMPILE_NOFILENAME)) |
Definition at line 966 of file duktape-1.8.0/src/duktape.h.
#define duk_push_buffer | ( | ctx, | |
size, | |||
dynamic ) duk_push_buffer_raw((ctx), (size), (dynamic) ? DUK_BUF_FLAG_DYNAMIC : 0) |
Definition at line 581 of file duktape-1.8.0/src/duktape.h.
#define duk_push_dynamic_buffer | ( | ctx, | |
size ) duk_push_buffer_raw((ctx), (size), DUK_BUF_FLAG_DYNAMIC /*flags*/) |
Definition at line 585 of file duktape-1.8.0/src/duktape.h.
#define duk_push_error_object |
Definition at line 565 of file duktape-1.8.0/src/duktape.h.
#define duk_push_error_object_va | ( | ctx, | |
err_code, | |||
fmt, | |||
ap ) duk_push_error_object_va_raw((ctx), (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), (fmt), (ap)) |
Definition at line 572 of file duktape-1.8.0/src/duktape.h.
#define duk_push_external_buffer | ( | ctx | ) | ((void) duk_push_buffer_raw((ctx), 0, DUK_BUF_FLAG_DYNAMIC | DUK_BUF_FLAG_EXTERNAL)) |
Definition at line 587 of file duktape-1.8.0/src/duktape.h.
#define duk_push_fixed_buffer | ( | ctx, | |
size ) duk_push_buffer_raw((ctx), (size), 0 /*flags*/) |
Definition at line 583 of file duktape-1.8.0/src/duktape.h.
#define duk_push_string_file | ( | ctx, | |
path ) duk_push_string_file_raw((ctx), (path), 0) |
Definition at line 534 of file duktape-1.8.0/src/duktape.h.
#define duk_push_thread | ( | ctx | ) | duk_push_thread_raw((ctx), 0 /*flags*/) |
Definition at line 551 of file duktape-1.8.0/src/duktape.h.
#define duk_push_thread_new_globalenv | ( | ctx | ) | duk_push_thread_raw((ctx), DUK_THREAD_NEW_GLOBAL_ENV /*flags*/) |
Definition at line 554 of file duktape-1.8.0/src/duktape.h.
#define duk_require_callable | ( | ctx, | |
index ) duk_require_function((ctx), (index)) |
Definition at line 735 of file duktape-1.8.0/src/duktape.h.
#define duk_require_object_coercible | ( | ctx, | |
index ) |
Definition at line 739 of file duktape-1.8.0/src/duktape.h.
#define duk_require_type_mask | ( | ctx, | |
index, | |||
mask ) ((void) duk_check_type_mask((ctx), (index), (mask) | DUK_TYPE_MASK_THROW)) |
Definition at line 718 of file duktape-1.8.0/src/duktape.h.
#define DUK_RET_ALLOC_ERROR (-DUK_ERR_ALLOC_ERROR) |
Definition at line 362 of file duktape-1.8.0/src/duktape.h.
#define DUK_RET_API_ERROR (-DUK_ERR_API_ERROR) |
Definition at line 364 of file duktape-1.8.0/src/duktape.h.
#define DUK_RET_ASSERTION_ERROR (-DUK_ERR_ASSERTION_ERROR) |
Definition at line 363 of file duktape-1.8.0/src/duktape.h.
#define DUK_RET_ERROR (-DUK_ERR_ERROR) |
Definition at line 366 of file duktape-1.8.0/src/duktape.h.
#define DUK_RET_EVAL_ERROR (-DUK_ERR_EVAL_ERROR) |
Definition at line 367 of file duktape-1.8.0/src/duktape.h.
#define DUK_RET_INTERNAL_ERROR (-DUK_ERR_INTERNAL_ERROR) |
Definition at line 361 of file duktape-1.8.0/src/duktape.h.
#define DUK_RET_RANGE_ERROR (-DUK_ERR_RANGE_ERROR) |
Definition at line 368 of file duktape-1.8.0/src/duktape.h.
#define DUK_RET_REFERENCE_ERROR (-DUK_ERR_REFERENCE_ERROR) |
Definition at line 369 of file duktape-1.8.0/src/duktape.h.
#define DUK_RET_SYNTAX_ERROR (-DUK_ERR_SYNTAX_ERROR) |
Definition at line 370 of file duktape-1.8.0/src/duktape.h.
#define DUK_RET_TYPE_ERROR (-DUK_ERR_TYPE_ERROR) |
Definition at line 371 of file duktape-1.8.0/src/duktape.h.
#define DUK_RET_UNCAUGHT_ERROR (-DUK_ERR_UNCAUGHT_ERROR) |
Definition at line 365 of file duktape-1.8.0/src/duktape.h.
#define DUK_RET_UNIMPLEMENTED_ERROR (-DUK_ERR_UNIMPLEMENTED_ERROR) |
Definition at line 359 of file duktape-1.8.0/src/duktape.h.
#define DUK_RET_UNSUPPORTED_ERROR (-DUK_ERR_UNSUPPORTED_ERROR) |
Definition at line 360 of file duktape-1.8.0/src/duktape.h.
#define DUK_RET_URI_ERROR (-DUK_ERR_URI_ERROR) |
Definition at line 372 of file duktape-1.8.0/src/duktape.h.
#define duk_safe_to_string | ( | ctx, | |
index ) duk_safe_to_lstring((ctx), (index), NULL) |
Definition at line 786 of file duktape-1.8.0/src/duktape.h.
#define DUK_SINGLE_FILE |
Definition at line 124 of file duktape-1.8.0/src/duktape.h.
#define DUK_STRING_PUSH_SAFE (1 << 0) /* no error if file does not exist */ |
Definition at line 337 of file duktape-1.8.0/src/duktape.h.
#define DUK_THREAD_NEW_GLOBAL_ENV (1 << 0) /* create a new global environment */ |
Definition at line 334 of file duktape-1.8.0/src/duktape.h.
#define duk_to_buffer | ( | ctx, | |
index, | |||
out_size ) duk_to_buffer_raw((ctx), (index), (out_size), DUK_BUF_MODE_DONTCARE) |
Definition at line 777 of file duktape-1.8.0/src/duktape.h.
#define duk_to_dynamic_buffer | ( | ctx, | |
index, | |||
out_size ) duk_to_buffer_raw((ctx), (index), (out_size), DUK_BUF_MODE_DYNAMIC) |
Definition at line 781 of file duktape-1.8.0/src/duktape.h.
#define duk_to_fixed_buffer | ( | ctx, | |
index, | |||
out_size ) duk_to_buffer_raw((ctx), (index), (out_size), DUK_BUF_MODE_FIXED) |
Definition at line 779 of file duktape-1.8.0/src/duktape.h.
#define DUK_TYPE_BOOLEAN 3 /* Ecmascript boolean: 0 or 1 */ |
Definition at line 266 of file duktape-1.8.0/src/duktape.h.
#define DUK_TYPE_BUFFER 7 /* fixed or dynamic, garbage collected byte buffer */ |
Definition at line 270 of file duktape-1.8.0/src/duktape.h.
#define DUK_TYPE_LIGHTFUNC 9 /* lightweight function pointer */ |
Definition at line 272 of file duktape-1.8.0/src/duktape.h.
#define DUK_TYPE_MASK_BOOLEAN (1 << DUK_TYPE_BOOLEAN) |
Definition at line 279 of file duktape-1.8.0/src/duktape.h.
#define DUK_TYPE_MASK_BUFFER (1 << DUK_TYPE_BUFFER) |
Definition at line 283 of file duktape-1.8.0/src/duktape.h.
#define DUK_TYPE_MASK_LIGHTFUNC (1 << DUK_TYPE_LIGHTFUNC) |
Definition at line 285 of file duktape-1.8.0/src/duktape.h.
#define DUK_TYPE_MASK_NONE (1 << DUK_TYPE_NONE) |
Definition at line 276 of file duktape-1.8.0/src/duktape.h.
#define DUK_TYPE_MASK_NULL (1 << DUK_TYPE_NULL) |
Definition at line 278 of file duktape-1.8.0/src/duktape.h.
#define DUK_TYPE_MASK_NUMBER (1 << DUK_TYPE_NUMBER) |
Definition at line 280 of file duktape-1.8.0/src/duktape.h.
#define DUK_TYPE_MASK_OBJECT (1 << DUK_TYPE_OBJECT) |
Definition at line 282 of file duktape-1.8.0/src/duktape.h.
#define DUK_TYPE_MASK_POINTER (1 << DUK_TYPE_POINTER) |
Definition at line 284 of file duktape-1.8.0/src/duktape.h.
#define DUK_TYPE_MASK_STRING (1 << DUK_TYPE_STRING) |
Definition at line 281 of file duktape-1.8.0/src/duktape.h.
Definition at line 286 of file duktape-1.8.0/src/duktape.h.
#define DUK_TYPE_MASK_UNDEFINED (1 << DUK_TYPE_UNDEFINED) |
Definition at line 277 of file duktape-1.8.0/src/duktape.h.
#define DUK_TYPE_MAX 9 |
Definition at line 273 of file duktape-1.8.0/src/duktape.h.
#define DUK_TYPE_MIN 0 |
Definition at line 262 of file duktape-1.8.0/src/duktape.h.
Definition at line 263 of file duktape-1.8.0/src/duktape.h.
#define DUK_TYPE_NULL 2 /* Ecmascript null */ |
Definition at line 265 of file duktape-1.8.0/src/duktape.h.
#define DUK_TYPE_NUMBER 4 /* Ecmascript number: double */ |
Definition at line 267 of file duktape-1.8.0/src/duktape.h.
#define DUK_TYPE_OBJECT 6 /* Ecmascript object: includes objects, arrays, functions, threads */ |
Definition at line 269 of file duktape-1.8.0/src/duktape.h.
#define DUK_TYPE_POINTER 8 /* raw void pointer */ |
Definition at line 271 of file duktape-1.8.0/src/duktape.h.
#define DUK_TYPE_STRING 5 /* Ecmascript string: CESU-8 / extended UTF-8 encoded */ |
Definition at line 268 of file duktape-1.8.0/src/duktape.h.
#define DUK_TYPE_UNDEFINED 1 /* Ecmascript undefined */ |
Definition at line 264 of file duktape-1.8.0/src/duktape.h.
#define DUK_VARARGS ((duk_int_t) (-1)) |
Definition at line 254 of file duktape-1.8.0/src/duktape.h.
#define DUK_VERSION 10800L |
Definition at line 231 of file duktape-1.8.0/src/duktape.h.
#define duk_xcopy_top | ( | to_ctx, | |
from_ctx, | |||
count ) duk_xcopymove_raw((to_ctx), (from_ctx), (count), 1 /*is_copy*/) |
Definition at line 506 of file duktape-1.8.0/src/duktape.h.
#define duk_xmove_top | ( | to_ctx, | |
from_ctx, | |||
count ) duk_xcopymove_raw((to_ctx), (from_ctx), (count), 0 /*is_copy*/) |
Definition at line 504 of file duktape-1.8.0/src/duktape.h.
typedef void *(* duk_alloc_function) (void *udata, duk_size_t size) |
Definition at line 180 of file duktape-1.8.0/src/duktape.h.
typedef duk_ret_t(* duk_c_function) (duk_context *ctx) |
Definition at line 179 of file duktape-1.8.0/src/duktape.h.
typedef void(* duk_debug_detached_function) (void *udata) |
Definition at line 193 of file duktape-1.8.0/src/duktape.h.
typedef duk_size_t(* duk_debug_peek_function) (void *udata) |
Definition at line 189 of file duktape-1.8.0/src/duktape.h.
typedef void(* duk_debug_read_flush_function) (void *udata) |
Definition at line 190 of file duktape-1.8.0/src/duktape.h.
typedef duk_size_t(* duk_debug_read_function) (void *udata, char *buffer, duk_size_t length) |
Definition at line 187 of file duktape-1.8.0/src/duktape.h.
typedef duk_idx_t(* duk_debug_request_function) (duk_context *ctx, void *udata, duk_idx_t nvalues) |
Definition at line 192 of file duktape-1.8.0/src/duktape.h.
typedef void(* duk_debug_write_flush_function) (void *udata) |
Definition at line 191 of file duktape-1.8.0/src/duktape.h.
typedef duk_size_t(* duk_debug_write_function) (void *udata, const char *buffer, duk_size_t length) |
Definition at line 188 of file duktape-1.8.0/src/duktape.h.
typedef void(* duk_decode_char_function) (void *udata, duk_codepoint_t codepoint) |
Definition at line 184 of file duktape-1.8.0/src/duktape.h.
typedef union duk_double_union duk_double_union |
Definition at line 1271 of file duktape-1.8.0/src/duktape.h.
typedef void(* duk_fatal_function) (duk_context *ctx, duk_errcode_t code, const char *msg) |
Definition at line 183 of file duktape-1.8.0/src/duktape.h.
typedef void(* duk_free_function) (void *udata, void *ptr) |
Definition at line 182 of file duktape-1.8.0/src/duktape.h.
typedef struct duk_function_list_entry duk_function_list_entry |
Definition at line 176 of file duktape-1.8.0/src/duktape.h.
typedef duk_codepoint_t(* duk_map_char_function) (void *udata, duk_codepoint_t codepoint) |
Definition at line 185 of file duktape-1.8.0/src/duktape.h.
typedef struct duk_memory_functions duk_memory_functions |
Definition at line 175 of file duktape-1.8.0/src/duktape.h.
typedef struct duk_number_list_entry duk_number_list_entry |
Definition at line 177 of file duktape-1.8.0/src/duktape.h.
typedef void *(* duk_realloc_function) (void *udata, void *ptr, duk_size_t size) |
Definition at line 181 of file duktape-1.8.0/src/duktape.h.
typedef duk_ret_t(* duk_safe_call_function) (duk_context *ctx) |
Definition at line 186 of file duktape-1.8.0/src/duktape.h.
typedef struct duk_thread_state duk_thread_state |
Definition at line 174 of file duktape-1.8.0/src/duktape.h.
DUK_EXTERNAL_DECL void * duk_alloc | ( | duk_context * | ctx, |
duk_size_t | size ) |
Definition at line 14191 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ALLOC, DUK_ASSERT_CTX_VALID, DUK_FREE_RAW, and duk_hthread::heap.
DUK_EXTERNAL_DECL void * duk_alloc_raw | ( | duk_context * | ctx, |
duk_size_t | size ) |
Definition at line 14167 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ALLOC_RAW, DUK_ASSERT_CTX_VALID, duk_log_va(), and duk_hthread::heap.
DUK_API_NORETURN | ( | DUK_EXTERNAL_DECL void | duk_error_rawduk_context *ctx, duk_errcode_t err_code, const char *filename, duk_int_t line, const char *fmt,... | ) |
DUK_API_NORETURN | ( | DUK_EXTERNAL_DECL void | duk_error_stashduk_context *ctx, duk_errcode_t err_code, const char *fmt,... | ) |
DUK_API_NORETURN | ( | DUK_EXTERNAL_DECL void | duk_error_va_rawduk_context *ctx, duk_errcode_t err_code, const char *filename, duk_int_t line, const char *fmt, va_list ap | ) |
DUK_API_NORETURN | ( | DUK_EXTERNAL_DECL void | duk_fatalduk_context *ctx, duk_errcode_t err_code, const char *err_msg | ) |
DUK_API_NORETURN | ( | DUK_EXTERNAL_DECL void | duk_throwduk_context *ctx | ) |
DUK_EXTERNAL_DECL void duk_base64_decode | ( | duk_context * | ctx, |
duk_idx_t | index ) |
Definition at line 13289 of file duktape-1.5.2/src-noline/duktape.c.
References duk__base64_decode_helper(), duk__prep_codec_arg(), DUK_ASSERT_CTX_VALID, DUK_ERROR_TYPE, duk_push_dynamic_buffer, duk_replace(), duk_require_normalize_index(), duk_resize_buffer(), DUK_STR_DECODE_FAILED, and index.
Referenced by duk_bi_duktape_object_dec().
DUK_EXTERNAL_DECL const char * duk_base64_encode | ( | duk_context * | ctx, |
duk_idx_t | index ) |
Definition at line 13249 of file duktape-1.5.2/src-noline/duktape.c.
References duk__base64_encode_helper(), duk__prep_codec_arg(), DUK_ASSERT_CTX_VALID, DUK_ERROR_TYPE, duk_push_fixed_buffer, duk_replace(), duk_require_normalize_index(), DUK_STR_ENCODE_FAILED, duk_to_string(), error(), index, and NULL.
Referenced by duk_bi_duktape_object_enc().
DUK_EXTERNAL_DECL void duk_call | ( | duk_context * | ctx, |
duk_idx_t | nargs ) |
Definition at line 12362 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT, DUK_ASSERT_CTX_VALID, DUK_ERROR_API, duk_get_top(), duk_handle_call_unprotected(), duk_insert(), duk_push_undefined(), DUK_STR_INVALID_CALL_ARGS, and NULL.
Referenced by do_jxpretty(), do_jxpretty(), do_sandbox_test(), do_sandbox_test(), duk__array_sort_compare(), duk__finalize_helper(), duk_bi_array_prototype_reduce_shared(), duk_bi_string_prototype_replace(), and main().
DUK_EXTERNAL_DECL void duk_call_method | ( | duk_context * | ctx, |
duk_idx_t | nargs ) |
Definition at line 12389 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT, DUK_ASSERT_CTX_VALID, DUK_ERROR_API, duk_get_top(), duk_handle_call_unprotected(), DUK_STR_INVALID_CALL_ARGS, and NULL.
Referenced by duk__dec_reviver_walk(), duk__defaultvalue_coerce_attempt(), duk__enc_value(), duk__js_execute_bytecode_inner(), duk__pcall_prop_raw(), duk_bi_array_prototype_iter_shared(), duk_bi_array_prototype_join_shared(), duk_bi_array_prototype_to_string(), duk_bi_date_prototype_to_json(), duk_bi_function_prototype_apply(), duk_bi_function_prototype_call(), duk_bi_global_object_eval(), duk_bi_logger_prototype_fmt(), duk_bi_object_constructor_keys_shared(), duk_bi_object_prototype_is_prototype_of(), duk_bi_object_prototype_to_locale_string(), duk_call_prop(), duk_eval_raw(), duk_hobject_delprop(), duk_hobject_enumerator_create(), duk_hobject_getprop(), duk_hobject_hasprop(), duk_hobject_putprop(), duk_log_va(), duk_pcall(), duk_to_defaultvalue(), wrapped_compile_execute(), and wrapped_compile_execute().
DUK_EXTERNAL_DECL void duk_call_prop | ( | duk_context * | ctx, |
duk_idx_t | obj_index, | ||
duk_idx_t | nargs ) |
Definition at line 12410 of file duktape-1.5.2/src-noline/duktape.c.
References duk__call_prop_prep_stack(), DUK_ASSERT_CTX_VALID, duk_call_method(), DUK_ERROR_API, duk_require_normalize_index(), DUK_STR_INVALID_CALL_ARGS, and DUK_UNLIKELY.
Referenced by duk_bi_logger_prototype_log_shared().
DUK_EXTERNAL_DECL duk_codepoint_t duk_char_code_at | ( | duk_context * | ctx, |
duk_idx_t | index, | ||
duk_size_t | char_offset ) |
Definition at line 19844 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT, DUK_ASSERT_CTX_VALID, DUK_ASSERT_DISABLE, duk_hstring_char_code_at_raw(), DUK_HSTRING_GET_CHARLEN, duk_require_hstring(), DUK_UINT_MAX, index, and NULL.
DUK_EXTERNAL_DECL duk_bool_t duk_check_stack | ( | duk_context * | ctx, |
duk_idx_t | extra ) |
Definition at line 15590 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT, DUK_ASSERT_CTX_VALID, DUK_UNLIKELY, DUK_VALSTACK_INTERNAL_EXTRA, duk_valstack_resize_raw(), NULL, duk_hthread::valstack, and duk_hthread::valstack_top.
Referenced by duk__realloc_props().
DUK_EXTERNAL_DECL duk_bool_t duk_check_stack_top | ( | duk_context * | ctx, |
duk_idx_t | top ) |
Definition at line 15634 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT_CTX_VALID, DUK_UNLIKELY, DUK_VALSTACK_INTERNAL_EXTRA, duk_valstack_resize_raw(), duk_hthread::valstack, and duk_hthread::valstack_bottom.
DUK_EXTERNAL_DECL duk_bool_t duk_check_type | ( | duk_context * | ctx, |
duk_idx_t | index, | ||
duk_int_t | type ) |
Definition at line 17541 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT_CTX_VALID, duk_get_type(), and index.
Referenced by duk__error_getter_helper().
DUK_EXTERNAL_DECL duk_bool_t duk_check_type_mask | ( | duk_context * | ctx, |
duk_idx_t | index, | ||
duk_uint_t | mask ) |
Definition at line 17585 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT_CTX_VALID, DUK_ERROR_TYPE, duk_get_type_mask(), DUK_STR_UNEXPECTED_TYPE, DUK_TYPE_MASK_THROW, DUK_UNREACHABLE, index, and mask.
Referenced by duk__enc_value(), duk__vm_arith_add(), duk_bi_object_constructor(), duk_bi_object_setprototype_shared(), duk_to_boolean(), and duk_to_primitive().
DUK_EXTERNAL_DECL void duk_compact | ( | duk_context * | ctx, |
duk_idx_t | obj_index ) |
Definition at line 14704 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT_CTX_VALID, duk_get_hobject(), and duk_hobject_compact_props().
Referenced by duk__cleanup_varmap(), duk__convert_to_func_template(), duk__load_func(), duk__load_func(), duk_bi_dataview_constructor(), duk_bi_duktape_object_compact(), duk_bi_error_constructor_shared(), duk_bi_global_object_require(), duk_bi_logger_constructor(), duk_bi_typedarray_constructor(), duk_js_push_closure(), and duk_push_buffer_object().
DUK_EXTERNAL_DECL duk_int_t duk_compile_raw | ( | duk_context * | ctx, |
const char * | src_buffer, | ||
duk_size_t | src_length, | ||
duk_uint_t | flags ) |
Definition at line 13668 of file duktape-1.5.2/src-noline/duktape.c.
References duk__do_compile(), DUK_ASSERT, DUK_ASSERT_CTX_VALID, DUK_COMPILE_NOFILENAME, DUK_COMPILE_NOSOURCE, DUK_COMPILE_SAFE, DUK_COMPILE_STRLEN, DUK_EXEC_SUCCESS, duk_push_pointer(), duk_safe_call(), DUK_STRLEN, duk__compile_raw_args::flags, NULL, duk__compile_raw_args::src_buffer, and duk__compile_raw_args::src_length.
Referenced by duk_eval_raw().
DUK_EXTERNAL_DECL void duk_concat | ( | duk_context * | ctx, |
duk_idx_t | count ) |
Definition at line 19640 of file duktape-1.5.2/src-noline/duktape.c.
References duk__concat_and_join_helper(), and DUK_ASSERT_CTX_VALID.
Referenced by do_jxpretty(), do_jxpretty(), do_sandbox_test(), do_sandbox_test(), duk__add_compiler_error_line(), duk__ivalue_toplain_raw(), duk__vm_arith_add(), duk_bi_error_prototype_to_string(), duk_bi_function_constructor(), duk_bi_global_object_print_helper(), duk_bi_global_object_require(), duk_bi_string_prototype_concat(), duk_bi_string_prototype_locale_compare(), duk_push_lightfunc_name(), duk_push_lightfunc_tostring(), duk_push_string_funcptr(), dummy_upper_case(), and dummy_upper_case().
DUK_EXTERNAL_DECL void duk_config_buffer | ( | duk_context * | ctx, |
duk_idx_t | index, | ||
void * | ptr, | ||
duk_size_t | len ) |
Definition at line 11581 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT, DUK_ERROR_TYPE, DUK_HBUFFER_EXTERNAL_SET_DATA_PTR, DUK_HBUFFER_EXTERNAL_SET_SIZE, DUK_HBUFFER_HAS_DYNAMIC, DUK_HBUFFER_HAS_EXTERNAL, duk_require_hbuffer(), DUK_STR_WRONG_BUFFER_TYPE, duk_hthread::heap, index, and NULL.
DUK_EXTERNAL_DECL void duk_copy | ( | duk_context * | ctx, |
duk_idx_t | from_index, | ||
duk_idx_t | to_index ) |
Definition at line 15803 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT, DUK_ASSERT_CTX_VALID, duk_require_tval(), DUK_TVAL_SET_TVAL_UPDREF, DUK_UNREF, and NULL.
Referenced by duk__advance_helper(), duk__copy_ispec(), duk__copy_ivalue(), and duk__expr_led().
DUK_EXTERNAL_DECL duk_context * duk_create_heap | ( | duk_alloc_function | alloc_func, |
duk_realloc_function | realloc_func, | ||
duk_free_function | free_func, | ||
void * | heap_udata, | ||
duk_fatal_function | fatal_handler ) |
Definition at line 13982 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT, DUK_D, duk_default_alloc_function(), duk_default_fatal_handler(), duk_default_free_function(), duk_default_realloc_function(), DUK_DPRINT, duk_heap_alloc(), duk_heap::heap_thread, and NULL.
Referenced by create_duktape_heap(), create_duktape_heap(), and main().
DUK_EXTERNAL_DECL void duk_debugger_attach_custom | ( | duk_context * | ctx, |
duk_debug_read_function | read_cb, | ||
duk_debug_write_function | write_cb, | ||
duk_debug_peek_function | peek_cb, | ||
duk_debug_read_flush_function | read_flush_cb, | ||
duk_debug_write_flush_function | write_flush_cb, | ||
duk_debug_request_function | request_cb, | ||
duk_debug_detached_function | detached_cb, | ||
void * | udata ) |
Definition at line 13920 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT_CTX_VALID, DUK_ERROR_API, and DUK_UNREF.
Referenced by create_duktape_heap(), and create_duktape_heap().
DUK_EXTERNAL_DECL void duk_debugger_cooperate | ( | duk_context * | ctx | ) |
Definition at line 13946 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT_CTX_VALID, and DUK_UNREF.
Referenced by create_duktape_heap(), and create_duktape_heap().
DUK_EXTERNAL_DECL void duk_debugger_detach | ( | duk_context * | ctx | ) |
Definition at line 13941 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT_CTX_VALID, and DUK_ERROR_API.
Referenced by main().
DUK_EXTERNAL_DECL duk_bool_t duk_debugger_notify | ( | duk_context * | ctx, |
duk_idx_t | nvalues ) |
Definition at line 13952 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT_CTX_VALID, DUK_ERROR_API, duk_get_top(), and duk_pop_n().
Referenced by handle_file(), and handle_file().
DUK_EXTERNAL_DECL void duk_debugger_pause | ( | duk_context * | ctx | ) |
Definition at line 13968 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT_CTX_VALID, DUK_ERROR_API, duk_get_top(), duk_pop_n(), and DUK_UNREF.
DUK_EXTERNAL_DECL void duk_decode_string | ( | duk_context * | ctx, |
duk_idx_t | index, | ||
duk_decode_char_function | callback, | ||
void * | udata ) |
Definition at line 19656 of file duktape-1.5.2/src-noline/duktape.c.
References duk__concat_and_join_helper(), DUK_ASSERT, DUK_ASSERT_CTX_VALID, DUK_HSTRING_GET_BYTELEN, DUK_HSTRING_GET_DATA, duk_require_hstring(), duk_unicode_decode_xutf8_checked(), index, and NULL.
DUK_EXTERNAL_DECL void duk_def_prop | ( | duk_context * | ctx, |
duk_idx_t | obj_index, | ||
duk_uint_t | flags ) |
Definition at line 14612 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT_CTX_VALID, DUK_DEFPROP_HAVE_GETTER, DUK_DEFPROP_HAVE_SETTER, DUK_DEFPROP_HAVE_VALUE, DUK_DEFPROP_HAVE_WRITABLE, DUK_ERROR_TYPE, duk_get_hobject_or_lfunc_coerce(), duk_get_top_index(), duk_hobject_define_property_helper(), DUK_HOBJECT_IS_CALLABLE, duk_require_hobject(), duk_require_hstring(), duk_require_type_mask, duk_require_valid_index(), duk_set_top(), DUK_STR_INVALID_DESCRIPTOR, DUK_STR_NOT_CALLABLE, DUK_TYPE_MASK_LIGHTFUNC, DUK_TYPE_MASK_OBJECT, DUK_TYPE_MASK_UNDEFINED, and NULL.
Referenced by duk__error_setter_helper(), and duk_bi_global_object_require().
DUK_EXTERNAL_DECL duk_bool_t duk_del_prop | ( | duk_context * | ctx, |
duk_idx_t | obj_index ) |
Definition at line 14417 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT, DUK_ASSERT_CTX_VALID, duk_hobject_delprop(), duk_is_strict_call(), duk_pop(), and duk_require_tval().
Referenced by delete_timer(), delete_timer(), duk__dec_reviver_walk(), duk__enc_objarr_exit(), duk__parse_try_stmt(), duk_bi_global_object_require(), duk_del_prop_index(), duk_del_prop_stridx(), duk_del_prop_string(), expire_timers(), and expire_timers().
DUK_EXTERNAL_DECL duk_bool_t duk_del_prop_index | ( | duk_context * | ctx, |
duk_idx_t | obj_index, | ||
duk_uarridx_t | arr_index ) |
Definition at line 14450 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT_CTX_VALID, duk_del_prop(), duk_push_uarridx, and duk_require_normalize_index().
Referenced by duk__array_sort_swap(), duk__dec_reviver_walk(), duk_bi_array_prototype_pop(), duk_bi_array_prototype_reverse(), duk_bi_array_prototype_shift(), duk_bi_array_prototype_splice(), and duk_bi_array_prototype_unshift().
DUK_EXTERNAL_DECL duk_bool_t duk_del_prop_string | ( | duk_context * | ctx, |
duk_idx_t | obj_index, | ||
const char * | key ) |
Definition at line 14441 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT, DUK_ASSERT_CTX_VALID, duk_del_prop(), duk_push_string(), duk_require_normalize_index(), and NULL.
DUK_EXTERNAL_DECL duk_bool_t duk_del_var | ( | duk_context * | ctx | ) |
Definition at line 19936 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT_CTX_VALID, DUK_ERROR_UNIMPLEMENTED_DEFMSG, and duk_js_putvar_activation().
DUK_EXTERNAL_DECL void duk_destroy_heap | ( | duk_context * | ctx | ) |
Definition at line 14033 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT, duk_heap_free(), duk_hthread::heap, and NULL.
Referenced by destroy_duktape_heap(), destroy_duktape_heap(), main(), and main().
DUK_EXTERNAL_DECL void duk_dump_function | ( | duk_context * | ctx | ) |
Definition at line 12234 of file duktape-1.5.2/src-noline/duktape.c.
References DUK__BYTECODE_INITIAL_ALLOC, duk__dump_func(), duk__dump_func(), DUK__SER_MARKER, DUK__SER_VERSION, DUK_ASSERT, DUK_BW_COMPACT, DUK_BW_GET_PTR, DUK_BW_INIT_PUSHBUF, DUK_BW_SET_PTR, DUK_DD, DUK_DDPRINT, duk_get_tval(), DUK_HOBJECT_HAS_BOUND, duk_remove(), duk_require_hcompiledfunction(), NULL, and duk_hcompiledfunction::obj.
Referenced by wrapped_compile_execute(), and wrapped_compile_execute().
DUK_EXTERNAL_DECL void duk_dup | ( | duk_context * | ctx, |
duk_idx_t | from_index ) |
Definition at line 15702 of file duktape-1.5.2/src-noline/duktape.c.
References DUK__CHECK_SPACE, DUK_ASSERT, DUK_ASSERT_CTX_VALID, duk_require_tval(), DUK_TVAL_INCREF, DUK_TVAL_SET_TVAL, NULL, and duk_hthread::valstack_top.
Referenced by create_timer(), create_timer(), duk__array_sort_compare(), duk__call_prop_prep_stack(), duk__convert_to_func_template(), duk__create_arguments_object(), duk__dec_reviver_walk(), duk__defaultvalue_coerce_attempt(), duk__enc_object(), duk__enc_value(), duk__error_setter_helper(), duk__expr_led(), duk__expr_nud(), duk__finalize_helper(), duk__handle_put_array_length(), duk__ispec_toregconst_raw(), duk__ivalue_toplain_raw(), duk__js_execute_bytecode_inner(), duk__load_func(), duk__load_func(), duk__nud_object_literal_key_check(), duk__parse_for_stmt(), duk__regexp_match_helper(), duk__to_regexp_helper(), duk__twodigit_year_fixup(), duk_bi_array_constructor(), duk_bi_array_constructor_is_array(), duk_bi_array_prototype_concat(), duk_bi_array_prototype_iter_shared(), duk_bi_array_prototype_join_shared(), duk_bi_array_prototype_push(), duk_bi_array_prototype_reduce_shared(), duk_bi_array_prototype_splice(), duk_bi_array_prototype_unshift(), duk_bi_boolean_constructor(), duk_bi_dataview_constructor(), duk_bi_date_prototype_to_json(), duk_bi_duktape_object_info(), duk_bi_error_constructor_shared(), duk_bi_function_constructor(), duk_bi_function_prototype_bind(), duk_bi_global_object_parse_int(), duk_bi_global_object_require(), duk_bi_json_parse_helper(), duk_bi_json_stringify_helper(), duk_bi_logger_constructor(), duk_bi_logger_prototype_fmt(), duk_bi_logger_prototype_log_shared(), duk_bi_nodejs_buffer_constructor(), duk_bi_number_constructor(), duk_bi_object_constructor_define_properties(), duk_bi_object_prototype_is_prototype_of(), duk_bi_object_prototype_to_locale_string(), duk_bi_pointer_constructor(), duk_bi_proxy_constructor(), duk_bi_regexp_constructor(), duk_bi_string_constructor(), duk_bi_string_constructor_from_char_code(), duk_bi_string_prototype_match(), duk_bi_string_prototype_replace(), duk_bi_string_prototype_search(), duk_bi_string_prototype_split(), duk_bi_typedarray_constructor(), duk_enum(), duk_hobject_define_property_helper(), duk_hobject_delprop(), duk_hobject_enumerator_next(), duk_hobject_getprop(), duk_hobject_object_get_own_property_descriptor(), duk_hobject_putprop(), duk_hthread_create_builtin_objects(), duk_js_push_closure(), duk_lexer_parse_js_input_element(), duk_log_va(), duk_new(), duk_next(), duk_push_context_dump(), duk_safe_to_lstring(), duk_set_global_object(), duk_to_defaultvalue(), duk_to_object(), and eventloop_run().
DUK_EXTERNAL_DECL void duk_dup_top | ( | duk_context * | ctx | ) |
Definition at line 15719 of file duktape-1.5.2/src-noline/duktape.c.
References DUK__CHECK_SPACE, DUK_ASSERT, DUK_ASSERT_CTX_VALID, DUK_ERROR_API_INDEX, duk_require_tval(), DUK_TVAL_INCREF, DUK_TVAL_SET_TVAL, NULL, duk_hthread::valstack_bottom, and duk_hthread::valstack_top.
Referenced by duk__dec_reviver_walk(), duk__enc_objarr_entry(), duk__format_parts_iso8601(), duk__init_varmap_and_prologue_for_pass2(), duk__lookup_lhs(), duk__parse_try_stmt(), duk__parse_var_decl(), duk__push_stash(), duk__set_this_timeval_from_dparts(), duk_bi_array_prototype_push(), duk_bi_array_prototype_unshift(), duk_bi_date_prototype_set_time(), duk_bi_date_prototype_to_json(), duk_new(), poll_poll(), poll_poll(), wrapped_compile_execute(), and wrapped_compile_execute().
DUK_EXTERNAL_DECL void duk_enum | ( | duk_context * | ctx, |
duk_idx_t | obj_index, | ||
duk_uint_t | enum_flags ) |
Definition at line 14719 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT_CTX_VALID, duk_dup(), duk_hobject_enumerator_create(), and duk_require_hobject_or_lfunc_coerce().
Referenced by duk__dec_reviver_walk(), duk_bi_json_stringify_helper(), duk_bi_object_constructor_define_properties(), poll_poll(), and poll_poll().
DUK_EXTERNAL_DECL duk_bool_t duk_equals | ( | duk_context * | ctx, |
duk_idx_t | index1, | ||
duk_idx_t | index2 ) |
Definition at line 19282 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT_CTX_VALID, duk_get_tval(), duk_js_equals, and NULL.
DUK_EXTERNAL_DECL duk_int_t duk_eval_raw | ( | duk_context * | ctx, |
const char * | src_buffer, | ||
duk_size_t | src_length, | ||
duk_uint_t | flags ) |
Definition at line 13532 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT_CTX_VALID, duk_call_method(), DUK_COMPILE_EVAL, DUK_COMPILE_NORESULT, duk_compile_raw(), DUK_COMPILE_SAFE, DUK_EXEC_ERROR, DUK_EXEC_SUCCESS, duk_pcall_method(), duk_pop(), and duk_push_global_object().
Referenced by duk_bi_global_object_require().
DUK_EXTERNAL_DECL void duk_free | ( | duk_context * | ctx, |
void * | ptr ) |
Definition at line 14199 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT_CTX_VALID, DUK_FREE, DUK_REALLOC_RAW, and duk_hthread::heap.
DUK_EXTERNAL_DECL void duk_free_raw | ( | duk_context * | ctx, |
void * | ptr ) |
Definition at line 14175 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT_CTX_VALID, DUK_FREE_RAW, and duk_hthread::heap.
DUK_EXTERNAL_DECL void duk_gc | ( | duk_context * | ctx, |
duk_uint_t | flags ) |
Definition at line 14241 of file duktape-1.5.2/src-noline/duktape.c.
References duk_heap::alloc_func, duk_memory_functions::alloc_func, DUK_ASSERT, DUK_ASSERT_CTX_VALID, DUK_D, DUK_DPRINT, duk_heap_mark_and_sweep(), DUK_UNREF, duk_heap::free_func, duk_memory_functions::free_func, duk_hthread::heap, duk_heap::heap_udata, NULL, duk_heap::realloc_func, duk_memory_functions::realloc_func, and duk_memory_functions::udata.
Referenced by destroy_duktape_heap(), destroy_duktape_heap(), and main().
DUK_EXTERNAL_DECL duk_bool_t duk_get_boolean | ( | duk_context * | ctx, |
duk_idx_t | index ) |
Definition at line 15965 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT, DUK_ASSERT_CTX_VALID, duk_get_tval(), DUK_TVAL_GET_BOOLEAN, DUK_TVAL_IS_BOOLEAN, and index.
Referenced by duk_bi_buffer_constructor().
DUK_EXTERNAL_DECL void * duk_get_buffer | ( | duk_context * | ctx, |
duk_idx_t | index, | ||
duk_size_t * | out_size ) |
Definition at line 16197 of file duktape-1.5.2/src-noline/duktape.c.
References duk__get_buffer_helper(), and index.
Referenced by duk__base64_encode_helper(), duk__prep_codec_arg(), duk__regexp_match_helper(), duk_bi_global_object_print_helper(), and duk_bi_logger_prototype_log_shared().
DUK_EXTERNAL_DECL void * duk_get_buffer_data | ( | duk_context * | ctx, |
duk_idx_t | index, | ||
duk_size_t * | out_size ) |
Definition at line 16259 of file duktape-1.5.2/src-noline/duktape.c.
References duk__get_buffer_data_helper(), index, and duk_hbufferobject::length.
DUK_EXTERNAL_DECL duk_c_function duk_get_c_function | ( | duk_context * | ctx, |
duk_idx_t | index ) |
Definition at line 16378 of file duktape-1.5.2/src-noline/duktape.c.
References duk__get_tagged_heaphdr_raw(), DUK_ASSERT, DUK_ASSERT_CTX_VALID, duk_get_tval(), DUK_HOBJECT_HAS_NATIVEFUNCTION, DUK_HOBJECT_IS_NATIVEFUNCTION, DUK_TAG_OBJECT, DUK_TVAL_GET_OBJECT, DUK_TVAL_IS_OBJECT, duk_hnativefunction::func, index, and NULL.
Referenced by duk_require_c_function().
DUK_EXTERNAL_DECL duk_context * duk_get_context | ( | duk_context * | ctx, |
duk_idx_t | index ) |
Definition at line 16423 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT_CTX_VALID, duk_get_hthread(), and index.
DUK_EXTERNAL_DECL duk_int_t duk_get_current_magic | ( | duk_context * | ctx | ) |
Definition at line 12817 of file duktape-1.5.2/src-noline/duktape.c.
References duk_hthread::callstack_top, DUK_ACT_GET_FUNC, DUK_ASSERT, DUK_ASSERT_CTX_VALID, DUK_ASSERT_DISABLE, DUK_HOBJECT_IS_NATIVEFUNCTION, duk_hthread_get_current_activation(), DUK_LFUNC_FLAGS_GET_MAGIC, DUK_TVAL_GET_LIGHTFUNC_FLAGS, duk_hnativefunction::magic, NULL, and duk_activation::tv_func.
Referenced by duk__date_get_indirect_magic(), duk_bi_array_prototype_indexof_shared(), duk_bi_array_prototype_iter_shared(), duk_bi_array_prototype_join_shared(), duk_bi_array_prototype_reduce_shared(), duk_bi_boolean_prototype_tostring_shared(), duk_bi_buffer_compare_shared(), duk_bi_buffer_prototype_tostring_shared(), duk_bi_buffer_readfield(), duk_bi_buffer_slice_shared(), duk_bi_buffer_writefield(), duk_bi_error_constructor_shared(), duk_bi_global_object_print_helper(), duk_bi_logger_prototype_log_shared(), duk_bi_math_object_onearg_shared(), duk_bi_math_object_twoarg_shared(), duk_bi_object_constructor_is_extensible(), duk_bi_object_constructor_is_sealed_frozen_shared(), duk_bi_object_constructor_keys_shared(), duk_bi_object_constructor_seal_freeze_shared(), duk_bi_object_getprototype_shared(), duk_bi_object_setprototype_shared(), duk_bi_pointer_prototype_tostring_shared(), duk_bi_string_prototype_caseconv_shared(), duk_bi_string_prototype_indexof_shared(), and duk_bi_typedarray_constructor().
DUK_EXTERNAL_DECL duk_errcode_t duk_get_error_code | ( | duk_context * | ctx, |
duk_idx_t | index ) |
Definition at line 17789 of file duktape-1.5.2/src-noline/duktape.c.
References duk_hthread::builtins, DUK_ASSERT_CTX_VALID, DUK_BIDX_ERROR_PROTOTYPE, DUK_BIDX_EVAL_ERROR_PROTOTYPE, DUK_BIDX_RANGE_ERROR_PROTOTYPE, DUK_BIDX_REFERENCE_ERROR_PROTOTYPE, DUK_BIDX_SYNTAX_ERROR_PROTOTYPE, DUK_BIDX_TYPE_ERROR_PROTOTYPE, DUK_BIDX_URI_ERROR_PROTOTYPE, DUK_ERR_ERROR, DUK_ERR_EVAL_ERROR, DUK_ERR_NONE, DUK_ERR_RANGE_ERROR, DUK_ERR_REFERENCE_ERROR, DUK_ERR_SYNTAX_ERROR, DUK_ERR_TYPE_ERROR, DUK_ERR_URI_ERROR, duk_get_hobject(), DUK_HOBJECT_GET_PROTOTYPE, DUK_HOBJECT_PROTOTYPE_CHAIN_SANITY, duk_hthread::heap, and index.
DUK_EXTERNAL_DECL void duk_get_finalizer | ( | duk_context * | ctx, |
duk_idx_t | index ) |
Definition at line 14863 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT_CTX_VALID, duk_get_prop_stridx(), DUK_STRIDX_INT_FINALIZER, and index.
DUK_EXTERNAL_DECL duk_bool_t duk_get_global_string | ( | duk_context * | ctx, |
const char * | key ) |
Definition at line 14773 of file duktape-1.5.2/src-noline/duktape.c.
References duk_hthread::builtins, DUK_ASSERT, DUK_ASSERT_CTX_VALID, DUK_BIDX_GLOBAL, duk_get_prop_string(), duk_push_hobject(), duk_remove(), and NULL.
DUK_EXTERNAL_DECL void * duk_get_heapptr | ( | duk_context * | ctx, |
duk_idx_t | index ) |
Definition at line 16435 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT, DUK_ASSERT_CTX_VALID, DUK_ERROR_REQUIRE_TYPE_INDEX, duk_get_tval(), DUK_STR_NOT_FUNCTION, DUK_TVAL_GET_HEAPHDR, DUK_TVAL_IS_HEAP_ALLOCATED, index, and NULL.
DUK_EXTERNAL_DECL duk_int_t duk_get_int | ( | duk_context * | ctx, |
duk_idx_t | index ) |
Definition at line 16040 of file duktape-1.5.2/src-noline/duktape.c.
References duk__api_coerce_d2i(), DUK_ASSERT_CTX_VALID, and index.
Referenced by duk__parse_try_stmt(), duk__pcall_prop_raw(), duk_bi_buffer_readfield(), duk_bi_buffer_writefield(), duk_bi_global_object_eval(), duk_bi_logger_prototype_log_shared(), duk_bi_string_prototype_match(), duk_bi_string_prototype_replace(), and duk_bi_string_prototype_split().
DUK_EXTERNAL_DECL duk_size_t duk_get_length | ( | duk_context * | ctx, |
duk_idx_t | index ) |
Definition at line 16575 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT, DUK_ASSERT_CTX_VALID, duk_get_tval(), DUK_HBUFFER_GET_SIZE, duk_hobject_get_length(), DUK_HSTRING_GET_CHARLEN, DUK_LFUNC_FLAGS_GET_LENGTH, DUK_TAG_BOOLEAN, DUK_TAG_BUFFER, DUK_TAG_LIGHTFUNC, DUK_TAG_NULL, DUK_TAG_OBJECT, DUK_TAG_POINTER, DUK_TAG_STRING, DUK_TAG_UNDEFINED, DUK_TVAL_GET_BUFFER, DUK_TVAL_GET_LIGHTFUNC_FLAGS, DUK_TVAL_GET_OBJECT, DUK_TVAL_GET_STRING, DUK_TVAL_GET_TAG, DUK_TVAL_IS_NUMBER, DUK_TVAL_IS_UNUSED, DUK_UNREACHABLE, index, and NULL.
Referenced by duk__dec_reviver_walk(), duk__enc_array(), duk__enc_object(), duk__getconst(), duk__init_varmap_and_prologue_for_pass2(), duk__load_func(), duk__load_func(), duk__parse_func_formals(), duk__parse_func_like_fnum(), duk__parse_stmt(), duk__parse_var_decl(), duk_bi_array_prototype_concat(), duk_bi_error_prototype_to_string(), duk_bi_logger_prototype_log_shared(), duk_bi_nodejs_buffer_concat(), duk_bi_object_constructor_keys_shared(), duk_bi_string_prototype_replace(), duk_bi_string_prototype_split(), duk_bi_typedarray_constructor(), duk_bi_typedarray_set(), duk_hobject_enumerator_create(), and duk_js_push_closure().
DUK_EXTERNAL_DECL const char * duk_get_lstring | ( | duk_context * | ctx, |
duk_idx_t | index, | ||
duk_size_t * | out_len ) |
Definition at line 16064 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT, DUK_ASSERT_CTX_VALID, duk_get_tval(), DUK_HSTRING_GET_BYTELEN, DUK_HSTRING_GET_DATA, DUK_TVAL_GET_STRING, DUK_TVAL_IS_STRING, index, and NULL.
Referenced by duk_bi_buffer_constructor(), duk_bi_global_object_print_helper(), duk_bi_logger_prototype_log_shared(), duk_bi_nodejs_buffer_fill(), duk_get_string(), duk_require_lstring(), and duk_safe_to_lstring().
DUK_EXTERNAL_DECL duk_int_t duk_get_magic | ( | duk_context * | ctx, |
duk_idx_t | index ) |
Definition at line 12845 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT, DUK_ASSERT_CTX_VALID, DUK_ERROR_TYPE, DUK_HOBJECT_HAS_NATIVEFUNCTION, DUK_LFUNC_FLAGS_GET_MAGIC, duk_require_tval(), DUK_STR_UNEXPECTED_TYPE, DUK_TVAL_GET_LIGHTFUNC_FLAGS, DUK_TVAL_GET_OBJECT, DUK_TVAL_IS_LIGHTFUNC, DUK_TVAL_IS_OBJECT, index, and NULL.
DUK_EXTERNAL_DECL void duk_get_memory_functions | ( | duk_context * | ctx, |
duk_memory_functions * | out_funcs ) |
Definition at line 14225 of file duktape-1.5.2/src-noline/duktape.c.
References duk_heap::alloc_func, duk_memory_functions::alloc_func, DUK_ASSERT, DUK_ASSERT_CTX_VALID, duk_heap::free_func, duk_memory_functions::free_func, duk_hthread::heap, duk_heap::heap_udata, NULL, duk_heap::realloc_func, duk_memory_functions::realloc_func, and duk_memory_functions::udata.
DUK_EXTERNAL_DECL duk_double_t duk_get_number | ( | duk_context * | ctx, |
duk_idx_t | index ) |
Definition at line 15996 of file duktape-1.5.2/src-noline/duktape.c.
References duk_double_union::d, DUK_ASSERT, DUK_ASSERT_CTX_VALID, DUK_DBLUNION_NORMALIZE_NAN_CHECK, DUK_DOUBLE_NAN, DUK_ERROR_REQUIRE_TYPE_INDEX, duk_get_tval(), DUK_STR_NOT_BOOLEAN, DUK_TVAL_GET_BOOLEAN, DUK_TVAL_GET_NUMBER, DUK_TVAL_IS_BOOLEAN, DUK_TVAL_IS_NUMBER, and index.
Referenced by duk__push_this_number_plain(), duk__regexp_match_helper(), duk__tonumber_string_raw(), duk__twodigit_year_fixup(), duk_bi_array_constructor(), duk_bi_date_prototype_to_json(), and duk_js_close_environment_record().
DUK_EXTERNAL_DECL void * duk_get_pointer | ( | duk_context * | ctx, |
duk_idx_t | index ) |
Definition at line 16121 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT_CTX_VALID, duk_get_tval(), DUK_TVAL_GET_POINTER, DUK_TVAL_IS_POINTER, index, and NULL.
DUK_EXTERNAL_DECL duk_bool_t duk_get_prop | ( | duk_context * | ctx, |
duk_idx_t | obj_index ) |
Definition at line 14278 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT, DUK_ASSERT_CTX_VALID, duk_hobject_getprop(), duk_remove(), and duk_require_tval().
Referenced by duk__call_prop_prep_stack(), duk__dec_reviver_walk(), duk__init_varmap_and_prologue_for_pass2(), duk__lookup_active_register_binding(), duk__nud_object_literal_key_check(), duk__parse_try_stmt(), duk_bi_global_object_require(), duk_get_prop_index(), duk_get_prop_stridx(), duk_get_prop_string(), duk_hobject_enumerator_next(), expire_timers(), expire_timers(), poll_poll(), and poll_poll().
DUK_EXTERNAL_DECL duk_bool_t duk_get_prop_index | ( | duk_context * | ctx, |
duk_idx_t | obj_index, | ||
duk_uarridx_t | arr_index ) |
Definition at line 14310 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT_CTX_VALID, duk_get_prop(), duk_push_uarridx, and duk_require_normalize_index().
Referenced by duk__array_sort_compare(), duk__array_sort_swap(), duk__create_arguments_object(), duk__enc_object(), duk__error_getter_helper(), duk__handle_bound_chain_for_call(), duk__init_varmap_and_prologue_for_pass2(), duk__parse_func_like_fnum(), duk__parse_stmt(), duk_bi_array_prototype_concat(), duk_bi_array_prototype_indexof_shared(), duk_bi_array_prototype_iter_shared(), duk_bi_array_prototype_join_shared(), duk_bi_array_prototype_pop(), duk_bi_array_prototype_reduce_shared(), duk_bi_array_prototype_reverse(), duk_bi_array_prototype_shift(), duk_bi_array_prototype_slice(), duk_bi_array_prototype_splice(), duk_bi_array_prototype_unshift(), duk_bi_function_prototype_apply(), duk_bi_nodejs_buffer_concat(), duk_bi_nodejs_buffer_constructor(), duk_bi_object_constructor_keys_shared(), duk_bi_string_prototype_match(), duk_bi_string_prototype_replace(), duk_bi_string_prototype_split(), duk_bi_typedarray_constructor(), duk_bi_typedarray_set(), and duk_hobject_enumerator_create().
DUK_EXTERNAL_DECL duk_bool_t duk_get_prop_string | ( | duk_context * | ctx, |
duk_idx_t | obj_index, | ||
const char * | key ) |
Definition at line 14301 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT, DUK_ASSERT_CTX_VALID, duk_get_prop(), duk_push_string(), duk_require_normalize_index(), and NULL.
Referenced by create_timer(), create_timer(), delete_timer(), delete_timer(), duk_bi_nodejs_buffer_constructor(), duk_get_global_string(), duk_put_global_string(), eventloop_run(), expire_timers(), expire_timers(), get_stack_raw(), get_stack_raw(), main(), print_error(), and print_error().
DUK_EXTERNAL_DECL void duk_get_prototype | ( | duk_context * | ctx, |
duk_idx_t | index ) |
Definition at line 14808 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT, DUK_ASSERT_CTX_VALID, DUK_HOBJECT_GET_PROTOTYPE, duk_push_hobject(), duk_push_undefined(), duk_require_hobject(), DUK_UNREF, duk_hthread::heap, index, NULL, and proto.
DUK_EXTERNAL_DECL const char * duk_get_string | ( | duk_context * | ctx, |
duk_idx_t | index ) |
Definition at line 16109 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT_CTX_VALID, duk_get_lstring(), index, and NULL.
Referenced by duk__create_arguments_object(), duk__error_getter_helper(), duk_bi_global_object_require(), duk_json_encode(), duk_safe_to_lstring(), main(), print_error(), and print_error().
DUK_EXTERNAL_DECL duk_idx_t duk_get_top | ( | duk_context * | ctx | ) |
Definition at line 15204 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT, DUK_ASSERT_CTX_VALID, DUK_ERROR_API_INDEX, DUK_INVALID_INDEX, duk_normalize_index(), index, duk_hthread::valstack_bottom, and duk_hthread::valstack_top.
Referenced by adder(), do_jxpretty(), do_jxpretty(), do_sandbox_test(), do_sandbox_test(), duk__call_prop_prep_stack(), duk__dec_reviver_walk(), duk__enc_objarr_entry(), duk__enc_objarr_exit(), duk__err_augment_builtin_create(), duk__error_getter_helper(), duk__expr(), duk__handle_call_inner(), duk__handle_createargs_for_call(), duk__handle_safe_call_error(), duk__handle_safe_call_inner(), duk__handle_safe_call_shared(), duk__init_func_valstack_slots(), duk__init_varmap_and_prologue_for_pass2(), duk__js_compile_raw(), duk__js_execute_bytecode_inner(), duk__load_func(), duk__load_func(), duk__math_minmax(), duk__parse_func_like_fnum(), duk__parse_stmts(), duk__parse_try_stmt(), duk__safe_call_adjust_valstack(), duk__set_part_helper(), duk__vm_arith_add(), duk__vm_arith_binary_op(), duk__vm_bitwise_binary_op(), duk__vm_bitwise_not(), duk_bi_array_constructor(), duk_bi_array_prototype_concat(), duk_bi_array_prototype_indexof_shared(), duk_bi_array_prototype_push(), duk_bi_array_prototype_reduce_shared(), duk_bi_array_prototype_splice(), duk_bi_array_prototype_unshift(), duk_bi_date_constructor(), duk_bi_date_constructor_utc(), duk_bi_duktape_object_fin(), duk_bi_duktape_object_info(), duk_bi_function_constructor(), duk_bi_function_prototype_bind(), duk_bi_function_prototype_call(), duk_bi_global_object_eval(), duk_bi_global_object_print_helper(), duk_bi_json_parse_helper(), duk_bi_json_stringify_helper(), duk_bi_logger_constructor(), duk_bi_logger_prototype_log_shared(), duk_bi_nodejs_buffer_is_buffer(), duk_bi_number_constructor(), duk_bi_pointer_constructor(), duk_bi_string_constructor(), duk_bi_string_constructor_from_char_code(), duk_bi_string_prototype_concat(), duk_bi_string_prototype_locale_compare(), duk_bi_string_prototype_replace(), duk_bi_typedarray_set(), duk_call(), duk_call_method(), duk_debugger_notify(), duk_debugger_pause(), duk_handle_call_protected(), duk_handle_safe_call(), duk_hobject_delprop(), duk_hobject_enumerator_create(), duk_hobject_run_finalizer(), duk_json_decode(), duk_json_encode(), duk_new(), duk_pcall(), duk_pcall_method(), duk_push_context_dump(), and duk_safe_call().
DUK_EXTERNAL_DECL duk_idx_t duk_get_top_index | ( | duk_context * | ctx | ) |
Definition at line 15307 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT_CTX_VALID, DUK_INVALID_INDEX, DUK_UNLIKELY, duk_hthread::valstack_bottom, and duk_hthread::valstack_top.
Referenced by duk__error_getter_helper(), duk_def_prop(), duk_hobject_prepare_property_descriptor(), duk_push_context_dump(), and eventloop_run().
DUK_EXTERNAL_DECL duk_int_t duk_get_type | ( | duk_context * | ctx, |
duk_idx_t | index ) |
Definition at line 17478 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT, DUK_ASSERT_CTX_VALID, duk_get_tval(), DUK_TAG_BOOLEAN, DUK_TAG_BUFFER, DUK_TAG_LIGHTFUNC, DUK_TAG_NULL, DUK_TAG_OBJECT, DUK_TAG_POINTER, DUK_TAG_STRING, DUK_TAG_UNDEFINED, DUK_TVAL_GET_TAG, DUK_TVAL_IS_NUMBER, DUK_TVAL_IS_UNUSED, DUK_TYPE_BOOLEAN, DUK_TYPE_BUFFER, DUK_TYPE_LIGHTFUNC, DUK_TYPE_NONE, DUK_TYPE_NULL, DUK_TYPE_NUMBER, DUK_TYPE_OBJECT, DUK_TYPE_POINTER, DUK_TYPE_STRING, DUK_TYPE_UNDEFINED, DUK_UNREACHABLE, and index.
Referenced by duk__error_getter_helper(), duk_bi_buffer_constructor(), duk_bi_duktape_object_info(), duk_bi_nodejs_buffer_constructor(), duk_check_type(), and duk_get_type_mask().
DUK_EXTERNAL_DECL duk_uint_t duk_get_type_mask | ( | duk_context * | ctx, |
duk_idx_t | index ) |
Definition at line 17547 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT, DUK_ASSERT_CTX_VALID, duk_get_tval(), duk_get_type(), DUK_TAG_BOOLEAN, DUK_TAG_BUFFER, DUK_TAG_LIGHTFUNC, DUK_TAG_NULL, DUK_TAG_OBJECT, DUK_TAG_POINTER, DUK_TAG_STRING, DUK_TAG_UNDEFINED, DUK_TVAL_GET_TAG, DUK_TVAL_IS_NUMBER, DUK_TVAL_IS_UNUSED, DUK_TYPE_MASK_BOOLEAN, DUK_TYPE_MASK_BUFFER, DUK_TYPE_MASK_LIGHTFUNC, DUK_TYPE_MASK_NONE, DUK_TYPE_MASK_NULL, DUK_TYPE_MASK_NUMBER, DUK_TYPE_MASK_OBJECT, DUK_TYPE_MASK_POINTER, DUK_TYPE_MASK_STRING, DUK_TYPE_MASK_UNDEFINED, DUK_TYPE_MAX, DUK_TYPE_MIN, DUK_UNREACHABLE, and index.
Referenced by duk_check_type_mask(), and duk_to_object_class_string_top().
DUK_EXTERNAL_DECL duk_uint_t duk_get_uint | ( | duk_context * | ctx, |
duk_idx_t | index ) |
Definition at line 16046 of file duktape-1.5.2/src-noline/duktape.c.
References duk__api_coerce_d2ui(), DUK_ASSERT_CTX_VALID, and index.
Referenced by duk_bi_duktape_object_gc(), and duk_bi_string_prototype_replace().
DUK_EXTERNAL_DECL void duk_get_var | ( | duk_context * | ctx | ) |
Definition at line 19869 of file duktape-1.5.2/src-noline/duktape.c.
References duk_hthread::builtins, DUK_ASSERT, DUK_ASSERT_CTX_VALID, DUK_BIDX_GLOBAL_ENV, duk_hthread_get_current_activation(), duk_js_getvar_activation(), duk_js_getvar_envrec(), duk_pop(), duk_remove(), duk_require_hstring(), and NULL.
DUK_EXTERNAL_DECL duk_bool_t duk_has_prop | ( | duk_context * | ctx, |
duk_idx_t | obj_index ) |
Definition at line 14471 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT, DUK_ASSERT_CTX_VALID, duk_hobject_hasprop(), duk_pop(), and duk_require_tval().
Referenced by duk__create_arguments_object(), duk__enc_objarr_entry(), duk__init_varmap_and_prologue_for_pass2(), duk_has_prop_index(), duk_has_prop_stridx(), and duk_has_prop_string().
DUK_EXTERNAL_DECL duk_bool_t duk_has_prop_index | ( | duk_context * | ctx, |
duk_idx_t | obj_index, | ||
duk_uarridx_t | arr_index ) |
Definition at line 14502 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT_CTX_VALID, duk_has_prop(), duk_push_uarridx, and duk_require_normalize_index().
Referenced by duk_bi_array_prototype_reduce_shared().
DUK_EXTERNAL_DECL duk_bool_t duk_has_prop_string | ( | duk_context * | ctx, |
duk_idx_t | obj_index, | ||
const char * | key ) |
Definition at line 14493 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT, DUK_ASSERT_CTX_VALID, duk_has_prop(), duk_push_string(), duk_require_normalize_index(), and NULL.
Referenced by get_stack_raw(), get_stack_raw(), print_error(), and print_error().
DUK_EXTERNAL_DECL duk_bool_t duk_has_var | ( | duk_context * | ctx | ) |
Definition at line 19943 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT_CTX_VALID, and DUK_ERROR_UNIMPLEMENTED_DEFMSG.
DUK_EXTERNAL_DECL void duk_hex_decode | ( | duk_context * | ctx, |
duk_idx_t | index ) |
Definition at line 13389 of file duktape-1.5.2/src-noline/duktape.c.
References duk__prep_codec_arg(), DUK_ASSERT, DUK_ASSERT_CTX_VALID, DUK_BUF_FLAG_NOZERO, DUK_ERROR_TYPE, duk_hex_dectab, duk_hex_dectab_shift4, duk_push_buffer_raw(), duk_replace(), duk_require_normalize_index(), DUK_STR_DECODE_FAILED, DUK_UNLIKELY, index, and NULL.
Referenced by duk__dec_buffer(), and duk_bi_duktape_object_dec().
DUK_EXTERNAL_DECL const char * duk_hex_encode | ( | duk_context * | ctx, |
duk_idx_t | index ) |
Definition at line 13333 of file duktape-1.5.2/src-noline/duktape.c.
References duk__prep_codec_arg(), DUK_ASSERT, DUK_ASSERT_CTX_VALID, DUK_BUF_FLAG_NOZERO, duk_hex_enctab, duk_lc_digits, duk_push_buffer_raw(), duk_replace(), duk_require_normalize_index(), duk_to_string(), index, and NULL.
Referenced by duk_bi_duktape_object_enc().
DUK_EXTERNAL_DECL void duk_insert | ( | duk_context * | ctx, |
duk_idx_t | to_index ) |
Definition at line 15740 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT, DUK_ASSERT_CTX_VALID, DUK_DDD, DUK_DDDPRINT, DUK_MEMMOVE, duk_require_tval(), DUK_TVAL_SET_TVAL, and NULL.
Referenced by do_jxpretty(), do_jxpretty(), do_sandbox_test(), do_sandbox_test(), duk__array_sort_compare(), duk__call_prop_prep_stack(), duk__dec_reviver_walk(), duk__err_augment_user(), duk__get_this_regexp(), duk__getvar_helper(), duk__handle_bound_chain_for_call(), duk__proxy_check_prop(), duk__regexp_match_helper(), duk__safe_call_adjust_valstack(), duk_bi_array_prototype_concat(), duk_bi_array_prototype_join_shared(), duk_bi_array_prototype_to_string(), duk_bi_error_prototype_to_string(), duk_bi_function_constructor(), duk_bi_function_prototype_apply(), duk_bi_function_prototype_call(), duk_bi_global_object_eval(), duk_bi_global_object_print_helper(), duk_bi_object_constructor_keys_shared(), duk_bi_object_getprototype_shared(), duk_bi_object_setprototype_shared(), duk_bi_regexp_constructor(), duk_bi_string_prototype_concat(), duk_bi_string_prototype_locale_compare(), duk_call(), duk_hobject_define_property_internal_arridx(), duk_hobject_enumerator_create(), duk_new(), duk_pcall(), duk_put_global_string(), duk_regexp_create_instance(), and wrapped_compile_execute().
DUK_EXTERNAL_DECL duk_bool_t duk_instanceof | ( | duk_context * | ctx, |
duk_idx_t | index1, | ||
duk_idx_t | index2 ) |
Definition at line 19319 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT, DUK_ASSERT_CTX_VALID, duk_js_instanceof(), duk_require_tval(), and NULL.
DUK_EXTERNAL_DECL duk_bool_t duk_is_array | ( | duk_context * | ctx, |
duk_idx_t | index ) |
Definition at line 17691 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT_CTX_VALID, duk_get_hobject(), DUK_HOBJECT_CLASS_ARRAY, DUK_HOBJECT_GET_CLASS_NUMBER, duk_is_buffer(), and index.
Referenced by duk_bi_array_prototype_iter_shared().
DUK_EXTERNAL_DECL duk_bool_t duk_is_boolean | ( | duk_context * | ctx, |
duk_idx_t | index ) |
Definition at line 17624 of file duktape-1.5.2/src-noline/duktape.c.
References duk__tag_check(), DUK_ASSERT_CTX_VALID, DUK_TAG_BOOLEAN, and index.
Referenced by duk_bi_boolean_constructor(), and duk_bi_boolean_prototype_tostring_shared().
DUK_EXTERNAL_DECL duk_bool_t duk_is_bound_function | ( | duk_context * | ctx, |
duk_idx_t | index ) |
Definition at line 17733 of file duktape-1.5.2/src-noline/duktape.c.
References duk__obj_flag_any_default_false(), DUK_ASSERT_CTX_VALID, DUK_HOBJECT_FLAG_BOUND, and index.
DUK_EXTERNAL_DECL duk_bool_t duk_is_buffer | ( | duk_context * | ctx, |
duk_idx_t | index ) |
Definition at line 17676 of file duktape-1.5.2/src-noline/duktape.c.
References duk__tag_check(), DUK_ASSERT_CTX_VALID, DUK_TAG_BUFFER, and index.
Referenced by duk__base64_encode_helper(), duk__prep_codec_arg(), duk_bi_arraybuffer_constructor(), duk_bi_buffer_constructor(), duk_bi_global_object_print_helper(), duk_bi_nodejs_buffer_constructor(), and duk_is_array().
DUK_EXTERNAL_DECL duk_bool_t duk_is_buffer_data | ( | duk_context * | ctx, |
duk_idx_t | idx ) |
Definition at line 17762 of file duktape-1.8.0/src-noline/duktape.c.
References duk__tag_check(), DUK_ASSERT, DUK_ASSERT_CTX_VALID, duk_get_tval(), DUK_HOBJECT_IS_BUFFEROBJECT, DUK_TAG_STRING, DUK_TVAL_GET_OBJECT, DUK_TVAL_IS_BUFFER, DUK_TVAL_IS_OBJECT, index, and NULL.
DUK_EXTERNAL_DECL duk_bool_t duk_is_c_function | ( | duk_context * | ctx, |
duk_idx_t | index ) |
Definition at line 17719 of file duktape-1.5.2/src-noline/duktape.c.
References duk__obj_flag_any_default_false(), DUK_ASSERT_CTX_VALID, duk_get_tval(), DUK_HOBJECT_FLAG_NATIVEFUNCTION, and index.
DUK_EXTERNAL_DECL duk_bool_t duk_is_constructor_call | ( | duk_context * | ctx | ) |
Definition at line 12775 of file duktape-1.5.2/src-noline/duktape.c.
References duk_hthread::callstack_top, DUK_ACT_FLAG_CONSTRUCT, DUK_ASSERT, DUK_ASSERT_CTX_VALID, DUK_ASSERT_DISABLE, DUK_ERROR_API, duk_hthread_get_current_activation(), DUK_STR_INVALID_CALL_ARGS, duk_activation::flags, and NULL.
Referenced by duk_bi_arraybuffer_constructor(), duk_bi_boolean_constructor(), duk_bi_buffer_constructor(), duk_bi_dataview_constructor(), duk_bi_date_constructor(), duk_bi_error_constructor_shared(), duk_bi_logger_constructor(), duk_bi_number_constructor(), duk_bi_object_constructor(), duk_bi_pointer_constructor(), duk_bi_proxy_constructor(), duk_bi_regexp_constructor(), duk_bi_string_constructor(), and duk_bi_typedarray_constructor().
DUK_EXTERNAL_DECL duk_bool_t duk_is_dynamic_buffer | ( | duk_context * | ctx, |
duk_idx_t | index ) |
Definition at line 17761 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT, DUK_ASSERT_CTX_VALID, duk_get_tval(), DUK_HBUFFER_HAS_DYNAMIC, DUK_HBUFFER_HAS_EXTERNAL, DUK_TVAL_GET_BUFFER, DUK_TVAL_IS_BUFFER, index, and NULL.
DUK_EXTERNAL_DECL duk_bool_t duk_is_ecmascript_function | ( | duk_context * | ctx, |
duk_idx_t | index ) |
Definition at line 17726 of file duktape-1.5.2/src-noline/duktape.c.
References duk__obj_flag_any_default_false(), DUK_ASSERT_CTX_VALID, DUK_HOBJECT_FLAG_COMPILEDFUNCTION, and index.
DUK_EXTERNAL_DECL duk_bool_t duk_is_external_buffer | ( | duk_context * | ctx, |
duk_idx_t | index ) |
Definition at line 17775 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT, DUK_ASSERT_CTX_VALID, duk_get_tval(), DUK_HBUFFER_HAS_DYNAMIC, DUK_HBUFFER_HAS_EXTERNAL, DUK_TVAL_GET_BUFFER, DUK_TVAL_IS_BUFFER, index, and NULL.
DUK_EXTERNAL_DECL duk_bool_t duk_is_fixed_buffer | ( | duk_context * | ctx, |
duk_idx_t | index ) |
Definition at line 17747 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT, DUK_ASSERT_CTX_VALID, duk_get_tval(), DUK_HBUFFER_HAS_DYNAMIC, DUK_TVAL_GET_BUFFER, DUK_TVAL_IS_BUFFER, index, and NULL.
DUK_EXTERNAL_DECL duk_bool_t duk_is_function | ( | duk_context * | ctx, |
duk_idx_t | index ) |
Definition at line 17703 of file duktape-1.5.2/src-noline/duktape.c.
References duk__obj_flag_any_default_false(), duk__tag_check(), DUK_ASSERT_CTX_VALID, duk_get_tval(), DUK_HOBJECT_FLAG_BOUND, DUK_HOBJECT_FLAG_COMPILEDFUNCTION, DUK_HOBJECT_FLAG_NATIVEFUNCTION, DUK_TAG_LIGHTFUNC, DUK_TVAL_IS_LIGHTFUNC, and index.
Referenced by duk_bi_string_prototype_replace(), and duk_require_function().
DUK_EXTERNAL_DECL duk_bool_t duk_is_lightfunc | ( | duk_context * | ctx, |
duk_idx_t | index ) |
Definition at line 17686 of file duktape-1.5.2/src-noline/duktape.c.
References duk__tag_check(), DUK_ASSERT_CTX_VALID, DUK_TAG_LIGHTFUNC, and index.
Referenced by duk_bi_object_setprototype_shared(), and duk_new().
DUK_EXTERNAL_DECL duk_bool_t duk_is_nan | ( | duk_context * | ctx, |
duk_idx_t | index ) |
Definition at line 17648 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT_CTX_VALID, duk_get_tval(), DUK_ISNAN, DUK_TVAL_GET_NUMBER, DUK_TVAL_IS_NUMBER, and index.
Referenced by duk__dec_number(), duk__twodigit_year_fixup(), and duk_bi_string_prototype_indexof_shared().
DUK_EXTERNAL_DECL duk_bool_t duk_is_null | ( | duk_context * | ctx, |
duk_idx_t | index ) |
Definition at line 17605 of file duktape-1.5.2/src-noline/duktape.c.
References duk__tag_check(), DUK_ASSERT_CTX_VALID, DUK_TAG_NULL, and index.
Referenced by duk__js_execute_bytecode_inner(), duk__parse_try_stmt(), and duk_bi_regexp_prototype_test().
DUK_EXTERNAL_DECL duk_bool_t duk_is_null_or_undefined | ( | duk_context * | ctx, |
duk_idx_t | index ) |
Definition at line 17610 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT_CTX_VALID, DUK_ERROR_TYPE, duk_get_tval(), DUK_STR_UNEXPECTED_TYPE, DUK_TAG_NULL, DUK_TAG_UNDEFINED, DUK_TVAL_GET_TAG, DUK_UNREACHABLE, and index.
Referenced by duk__js_execute_bytecode_inner(), duk_bi_array_prototype_join_shared(), duk_bi_function_prototype_apply(), and duk_bi_object_constructor().
DUK_EXTERNAL_DECL duk_bool_t duk_is_number | ( | duk_context * | ctx, |
duk_idx_t | index ) |
Definition at line 17629 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT_CTX_VALID, duk_get_tval(), DUK_TVAL_IS_NUMBER, and index.
Referenced by duk__dec_number(), duk__expr_nud(), duk__lookup_active_register_binding(), duk__parse_try_stmt(), duk__push_this_number_plain(), duk__putprop_fastpath_bufobj_tval(), duk__vm_arith_add(), duk__vm_arith_binary_op(), duk_bi_array_constructor(), duk_bi_date_prototype_to_json(), duk_bi_global_object_eval(), duk_bi_json_stringify_helper(), duk_bi_string_prototype_match(), duk_bi_string_prototype_replace(), duk_bi_string_prototype_search(), duk_bi_string_prototype_split(), and duk_js_close_environment_record().
DUK_EXTERNAL_DECL duk_bool_t duk_is_object | ( | duk_context * | ctx, |
duk_idx_t | index ) |
Definition at line 17671 of file duktape-1.5.2/src-noline/duktape.c.
References duk__tag_check(), DUK_ASSERT_CTX_VALID, DUK_TAG_OBJECT, and index.
Referenced by duk__add_compiler_error_line(), duk__js_execute_bytecode_inner(), duk_bi_function_prototype_apply(), duk_bi_logger_prototype_log_shared(), duk_bi_object_constructor(), duk_bi_string_prototype_match(), duk_bi_string_prototype_replace(), duk_bi_string_prototype_search(), duk_bi_string_prototype_split(), duk_js_close_environment_record(), duk_new(), get_stack_raw(), get_stack_raw(), print_error(), and print_error().
DUK_EXTERNAL_DECL duk_bool_t duk_is_pointer | ( | duk_context * | ctx, |
duk_idx_t | index ) |
Definition at line 17681 of file duktape-1.5.2/src-noline/duktape.c.
References duk__tag_check(), DUK_ASSERT_CTX_VALID, DUK_TAG_POINTER, and index.
Referenced by duk_bi_pointer_constructor().
DUK_EXTERNAL_DECL duk_bool_t duk_is_strict_call | ( | duk_context * | ctx | ) |
Definition at line 12788 of file duktape-1.5.2/src-noline/duktape.c.
References duk_hthread::callstack_top, DUK_ACT_FLAG_STRICT, DUK_ASSERT, DUK_ASSERT_CTX_VALID, DUK_ASSERT_DISABLE, duk_hthread_get_current_activation(), duk_activation::flags, and NULL.
Referenced by duk__put_prop_shared(), duk_del_prop(), and duk_put_var().
DUK_EXTERNAL_DECL duk_bool_t duk_is_string | ( | duk_context * | ctx, |
duk_idx_t | index ) |
Definition at line 17666 of file duktape-1.5.2/src-noline/duktape.c.
References duk__tag_check(), DUK_ASSERT_CTX_VALID, DUK_TAG_STRING, and index.
Referenced by duk__create_arguments_object(), duk__error_getter_helper(), duk__js_execute_bytecode_inner(), duk__lookup_arguments_map(), duk__nud_object_literal(), duk__nud_object_literal_key_check(), duk_bi_date_constructor(), duk_bi_global_object_require(), duk_bi_json_stringify_helper(), duk_bi_logger_constructor(), duk_bi_logger_prototype_log_shared(), duk_bi_nodejs_buffer_fill(), duk_bi_nodejs_buffer_is_encoding(), duk_bi_object_constructor_keys_shared(), duk_bi_string_constructor(), duk_bi_string_prototype_replace(), duk_bi_string_prototype_to_string(), duk_hobject_enumerator_create(), duk_js_push_closure(), duk_json_encode(), duk_push_context_dump(), duk_safe_to_lstring(), print_error(), print_error(), wrapped_compile_execute(), and wrapped_compile_execute().
DUK_EXTERNAL_DECL duk_bool_t duk_is_thread | ( | duk_context * | ctx, |
duk_idx_t | index ) |
Definition at line 17740 of file duktape-1.5.2/src-noline/duktape.c.
References duk__obj_flag_any_default_false(), DUK_ASSERT_CTX_VALID, DUK_HOBJECT_FLAG_THREAD, and index.
DUK_EXTERNAL_DECL duk_bool_t duk_is_undefined | ( | duk_context * | ctx, |
duk_idx_t | index ) |
Definition at line 17600 of file duktape-1.5.2/src-noline/duktape.c.
References duk__tag_check(), DUK_ASSERT_CTX_VALID, DUK_TAG_UNDEFINED, and index.
Referenced by duk__array_sort_compare(), duk__clamp_startend_negidx_shifted(), duk__clamp_startend_nonegidx_noshift(), duk__dec_reviver_walk(), duk__parse_try_stmt(), duk__resolve_offset_opt_length(), duk_bi_array_prototype_join_shared(), duk_bi_array_prototype_slice(), duk_bi_error_constructor_shared(), duk_bi_error_prototype_to_string(), duk_bi_function_prototype_to_string(), duk_bi_nodejs_buffer_concat(), duk_bi_nodejs_buffer_copy(), duk_bi_number_prototype_to_exponential(), duk_bi_number_prototype_to_precision(), duk_bi_number_prototype_to_string(), duk_bi_object_constructor_create(), duk_bi_regexp_constructor(), duk_bi_string_prototype_slice(), duk_bi_string_prototype_split(), duk_bi_string_prototype_substr(), duk_bi_string_prototype_substring(), duk_bi_typedarray_constructor(), and duk_hobject_getprop().
DUK_EXTERNAL_DECL duk_bool_t duk_is_valid_index | ( | duk_context * | ctx, |
duk_idx_t | index ) |
Definition at line 15180 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT, DUK_ASSERT_CTX_VALID, DUK_INVALID_INDEX, duk_normalize_index(), and index.
Referenced by duk__base64_encode_helper(), duk__handle_put_array_length(), duk__js_execute_bytecode_inner(), duk__prep_codec_arg(), and duk_hobject_define_property_internal().
DUK_EXTERNAL_DECL void duk_join | ( | duk_context * | ctx, |
duk_idx_t | count ) |
Definition at line 19646 of file duktape-1.5.2/src-noline/duktape.c.
References duk__concat_and_join_helper(), and DUK_ASSERT_CTX_VALID.
Referenced by duk__error_getter_helper(), duk_bi_array_prototype_join_shared(), duk_bi_function_constructor(), and duk_bi_global_object_print_helper().
DUK_EXTERNAL_DECL void duk_json_decode | ( | duk_context * | ctx, |
duk_idx_t | index ) |
Definition at line 13499 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT, DUK_ASSERT_CTX_VALID, duk_bi_json_parse_helper(), duk_get_top(), DUK_INVALID_INDEX, duk_replace(), duk_require_normalize_index(), and index.
DUK_EXTERNAL_DECL const char * duk_json_encode | ( | duk_context * | ctx, |
duk_idx_t | index ) |
Definition at line 13473 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT, DUK_ASSERT_CTX_VALID, duk_bi_json_stringify_helper(), duk_get_string(), duk_get_top(), DUK_INVALID_INDEX, duk_is_string(), duk_replace(), duk_require_normalize_index(), and index.
DUK_EXTERNAL_DECL void duk_load_function | ( | duk_context * | ctx | ) |
Definition at line 12268 of file duktape-1.5.2/src-noline/duktape.c.
References duk__load_func(), duk__load_func(), DUK__SER_MARKER, DUK__SER_VERSION, DUK_ASSERT, DUK_ERROR_TYPE, duk_remove(), duk_require_buffer(), DUK_STR_DECODE_FAILED, DUK_UNREF, and NULL.
Referenced by wrapped_compile_execute(), and wrapped_compile_execute().
DUK_EXTERNAL_DECL void duk_log | ( | duk_context * | ctx, |
duk_int_t | level, | ||
const char * | fmt, | ||
... ) |
Definition at line 14152 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT_CTX_VALID, and duk_log_va().
DUK_EXTERNAL_DECL void duk_log_va | ( | duk_context * | ctx, |
duk_int_t | level, | ||
const char * | fmt, | ||
va_list | ap ) |
Definition at line 14119 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT_CTX_VALID, DUK_BIDX_LOGGER_CONSTRUCTOR, duk_call_method(), duk_dup(), duk_get_prop_stridx(), duk_pop_3(), duk_push_hobject_bidx(), duk_push_vsprintf(), DUK_STRIDX_CLOG, DUK_STRIDX_LC_DEBUG, DUK_STRIDX_LC_ERROR, DUK_STRIDX_LC_FATAL, DUK_STRIDX_LC_INFO, DUK_STRIDX_LC_TRACE, and DUK_STRIDX_LC_WARN.
Referenced by duk_alloc_raw(), and duk_log().
DUK_EXTERNAL_DECL void duk_map_string | ( | duk_context * | ctx, |
duk_idx_t | index, | ||
duk_map_char_function | callback, | ||
void * | udata ) |
Definition at line 19680 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT, DUK_ASSERT_CTX_VALID, DUK_BW_COMPACT, DUK_BW_INIT_PUSHBUF, DUK_BW_WRITE_ENSURE_XUTF8, DUK_HSTRING_GET_BYTELEN, DUK_HSTRING_GET_DATA, duk_normalize_index(), duk_replace(), duk_require_hstring(), duk_to_string(), duk_unicode_decode_xutf8_checked(), index, and NULL.
DUK_EXTERNAL_DECL void duk_new | ( | duk_context * | ctx, |
duk_idx_t | nargs ) |
Definition at line 12549 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT, DUK_ASSERT_CTX_VALID, DUK_CALL_FLAG_CONSTRUCTOR_CALL, DUK_DDD, DUK_DDDPRINT, duk_dup(), duk_dup_top(), duk_err_augment_error_create(), DUK_ERROR_TYPE, duk_get_hobject(), duk_get_prop_stridx(), duk_get_top(), duk_get_tval(), DUK_GET_TVAL_NEGIDX, duk_handle_call_unprotected(), DUK_HOBJECT_HAS_BOUND, DUK_HOBJECT_HAS_CONSTRUCTABLE, DUK_HOBJECT_IS_CALLABLE, DUK_HOBJECT_SET_PROTOTYPE_UPDREF, duk_hthread_sync_currpc(), duk_insert(), duk_is_callable, duk_is_lightfunc(), duk_is_object(), duk_pop(), duk_push_object(), duk_remove(), duk_require_normalize_index(), DUK_STR_NOT_CONSTRUCTABLE, DUK_STRIDX_INT_TARGET, DUK_STRIDX_PROTOTYPE, DUK_TVAL_GET_OBJECT, DUK_TVAL_IS_LIGHTFUNC, DUK_TVAL_IS_OBJECT, NULL, and proto.
Referenced by duk__js_execute_bytecode_inner(), duk__pnew_helper(), duk__to_regexp_helper(), and duk_bi_string_prototype_split().
DUK_EXTERNAL_DECL duk_bool_t duk_next | ( | duk_context * | ctx, |
duk_idx_t | enum_index, | ||
duk_bool_t | get_value ) |
Definition at line 14727 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT_CTX_VALID, duk_dup(), duk_hobject_enumerator_next(), and duk_require_hobject().
Referenced by duk__dec_reviver_walk(), duk_bi_json_stringify_helper(), duk_bi_object_constructor_define_properties(), poll_poll(), and poll_poll().
DUK_EXTERNAL_DECL duk_idx_t duk_normalize_index | ( | duk_context * | ctx, |
duk_idx_t | index ) |
Definition at line 15056 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT, DUK_ASSERT_CTX_VALID, DUK_ASSERT_DISABLE, DUK_ERROR_REQUIRE_TYPE_INDEX, DUK_INVALID_INDEX, DUK_LIKELY, DUK_STR_NOT_NUMBER, index, duk_hthread::valstack_bottom, and duk_hthread::valstack_top.
Referenced by duk_get_top(), duk_handle_ecma_call_setup(), duk_is_valid_index(), duk_map_string(), duk_put_prop_string(), and duk_require_valid_index().
DUK_EXTERNAL_DECL duk_int_t duk_pcall | ( | duk_context * | ctx, |
duk_idx_t | nargs ) |
Definition at line 12427 of file duktape-1.5.2/src-noline/duktape.c.
References duk__call_prop_prep_stack(), DUK_ASSERT, DUK_ASSERT_CTX_VALID, duk_call_method(), DUK_ERROR_API, DUK_EXEC_ERROR, duk_get_top(), duk_handle_call_protected(), duk_insert(), duk_push_undefined(), duk_require_normalize_index(), DUK_STR_INVALID_CALL_ARGS, and NULL.
Referenced by duk_bi_global_object_require(), expire_timers(), expire_timers(), main(), and main().
DUK_EXTERNAL_DECL duk_int_t duk_pcall_method | ( | duk_context * | ctx, |
duk_idx_t | nargs ) |
Definition at line 12465 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT, DUK_ASSERT_CTX_VALID, DUK_ERROR_API, DUK_EXEC_ERROR, duk_get_top(), duk_handle_call_protected(), DUK_STR_INVALID_CALL_ARGS, and NULL.
Referenced by duk_bi_global_object_require(), duk_eval_raw(), and eventloop_run().
DUK_EXTERNAL_DECL duk_int_t duk_pcall_prop | ( | duk_context * | ctx, |
duk_idx_t | obj_index, | ||
duk_idx_t | nargs ) |
Definition at line 12510 of file duktape-1.5.2/src-noline/duktape.c.
References duk__pcall_prop_raw(), DUK_ASSERT_CTX_VALID, DUK_ERROR_API, duk_push_idx, duk_safe_call(), DUK_STR_INVALID_CALL_ARGS, and DUK_UNLIKELY.
Referenced by duk_bi_logger_prototype_log_shared().
DUK_EXTERNAL_DECL duk_int_t duk_pnew | ( | duk_context * | ctx, |
duk_idx_t | nargs ) |
Definition at line 12757 of file duktape-1.5.2/src-noline/duktape.c.
References duk__pnew_helper(), DUK_ASSERT_CTX_VALID, DUK_ERROR_API, duk_push_uint(), duk_safe_call(), DUK_STR_INVALID_CALL_ARGS, and DUK_UNLIKELY.
DUK_EXTERNAL_DECL void duk_pop | ( | duk_context * | ctx | ) |
Definition at line 19146 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT, DUK_ASSERT_CTX_VALID, DUK_ERROR_API, DUK_STR_POP_TOO_MANY, DUK_TVAL_SET_UNDEFINED, DUK_TVAL_SET_UNDEFINED_UPDREF, DUK_UNLIKELY, duk_hthread::valstack_bottom, and duk_hthread::valstack_top.
Referenced by duk__add_compiler_error_line(), duk__array_sort_compare(), duk__array_sort_swap(), duk__check_arguments_map_for_delete(), duk__check_arguments_map_for_get(), duk__check_arguments_map_for_put(), duk__convert_to_func_template(), duk__create_arguments_object(), duk__dec_reviver_walk(), duk__declvar_helper(), duk__defaultvalue_coerce_attempt(), duk__do_compile(), duk__enc_value(), duk__error_getter_helper(), duk__getconst(), duk__handle_bound_chain_for_call(), duk__handle_call_inner(), duk__handle_catch(), duk__init_varmap_and_prologue_for_pass2(), duk__js_execute_bytecode_inner(), duk__load_func(), duk__load_func(), duk__lookup_active_register_binding(), duk__lookup_arguments_map(), duk__lookup_lhs(), duk__match_regexp(), duk__nud_object_literal(), duk__nud_object_literal_key_check(), duk__parse_func_like_fnum(), duk__parse_try_stmt(), duk__parse_var_decl(), duk__pnew_helper(), duk__push_stash(), duk__push_this_get_timeval_tzoffset(), duk__put_prop_shared(), duk__putprop_fastpath_bufobj_tval(), duk__realloc_props(), duk__regexp_match_helper(), duk__to_new_array_length_checked(), duk__to_regexp_helper(), duk__tonumber_string_raw(), duk__twodigit_year_fixup(), duk__vm_bitwise_not(), duk_bi_array_prototype_concat(), duk_bi_array_prototype_indexof_shared(), duk_bi_array_prototype_iter_shared(), duk_bi_array_prototype_join_shared(), duk_bi_array_prototype_reverse(), duk_bi_array_prototype_shift(), duk_bi_array_prototype_slice(), duk_bi_array_prototype_sort(), duk_bi_array_prototype_splice(), duk_bi_array_prototype_unshift(), duk_bi_buffer_slice_shared(), duk_bi_date_constructor(), duk_bi_date_prototype_to_json(), duk_bi_error_prototype_to_string(), duk_bi_function_prototype_apply(), duk_bi_function_prototype_bind(), duk_bi_global_object_require(), duk_bi_json_stringify_helper(), duk_bi_logger_prototype_fmt(), duk_bi_nodejs_buffer_concat(), duk_bi_nodejs_buffer_constructor(), duk_bi_object_constructor_keys_shared(), duk_bi_string_prototype_match(), duk_bi_string_prototype_replace(), duk_bi_string_prototype_split(), duk_bi_typedarray_constructor(), duk_bi_typedarray_set(), duk_del_prop(), duk_err_setup_heap_ljstate(), duk_eval_raw(), duk_get_prop_stridx_boolean(), duk_get_var(), duk_handle_ecma_call_setup(), duk_has_prop(), duk_hobject_define_property_helper(), duk_hobject_define_property_internal(), duk_hobject_define_property_internal_arridx(), duk_hobject_delprop(), duk_hobject_enumerator_create(), duk_hobject_enumerator_next(), duk_hobject_getprop(), duk_hobject_hasprop(), duk_hobject_pc2line_query(), duk_hobject_prepare_property_descriptor(), duk_hobject_putprop(), duk_hthread_create_builtin_objects(), duk_js_close_environment_record(), duk_js_equals_helper(), duk_js_init_activation_environment_records_delayed(), duk_js_instanceof(), duk_js_push_closure(), duk_js_tonumber(), duk_new(), duk_numconv_parse(), duk_numconv_stringify(), duk_push_context_dump(), duk_put_global_string(), duk_safe_to_lstring(), duk_set_prototype(), duk_to_defaultvalue(), duk_to_object_class_string_top(), duk_xdef_prop(), eventloop_register(), eventloop_run(), expire_timers(), expire_timers(), fileio_register(), handle_eval(), handle_eval(), handle_fh(), handle_fh(), handle_fh(), handle_interactive(), handle_interactive(), main(), main(), ncurses_register(), poll_poll(), poll_poll(), poll_register(), print_error(), print_error(), print_pop_error(), print_pop_error(), socket_register(), and wrapped_compile_execute().
DUK_EXTERNAL_DECL void duk_pop_2 | ( | duk_context * | ctx | ) |
Definition at line 19167 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT_CTX_VALID, and duk_pop_n().
Referenced by duk__array_sort_compare(), duk__create_arguments_object(), duk__enc_value(), duk__error_getter_helper(), duk__expr(), duk__js_execute_bytecode_inner(), duk__parse_stmts(), duk__pcall_prop_raw(), duk__proxy_check_prop(), duk__put_prop_shared(), duk__vm_arith_add(), duk__vm_arith_binary_op(), duk__vm_bitwise_binary_op(), duk_bi_array_prototype_iter_shared(), duk_bi_buffer_slice_shared(), duk_bi_json_stringify_helper(), duk_bi_object_constructor_keys_shared(), duk_hobject_enumerator_create(), duk_hobject_getprop(), duk_hobject_hasprop(), duk_hobject_putprop(), duk_hobject_run_finalizer(), duk_js_close_environment_record(), duk_js_compare_helper(), duk_js_equals_helper(), duk_js_in(), duk_js_instanceof(), duk_js_push_closure(), duk_put_var(), duk_resume(), duk_set_global_object(), expire_timers(), expire_timers(), print_error(), and print_error().
DUK_EXTERNAL_DECL void duk_pop_3 | ( | duk_context * | ctx | ) |
Definition at line 19172 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT_CTX_VALID, and duk_pop_n().
Referenced by duk_hthread_create_builtin_objects(), and duk_log_va().
DUK_EXTERNAL_DECL void duk_pop_n | ( | duk_context * | ctx, |
duk_idx_t | count ) |
Definition at line 19088 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT, DUK_ASSERT_CTX_VALID, DUK_ERROR_API, DUK_STR_INVALID_COUNT, DUK_STR_POP_TOO_MANY, DUK_TVAL_SET_UNDEFINED, DUK_TVAL_SET_UNDEFINED_UPDREF, DUK_UNLIKELY, duk_hthread::valstack_bottom, and duk_hthread::valstack_top.
Referenced by duk__concat_and_join_helper(), duk__error_getter_helper(), duk__parse_stmt(), duk__realloc_props(), duk__regexp_match_helper(), duk_debugger_notify(), duk_debugger_pause(), duk_hobject_get_length(), duk_hobject_getprop(), duk_hobject_putprop(), duk_hobject_set_length(), duk_pop_2(), duk_pop_3(), eventloop_run(), poll_poll(), and poll_poll().
DUK_EXTERNAL_DECL duk_idx_t duk_push_array | ( | duk_context * | ctx | ) |
Definition at line 18458 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT, DUK_ASSERT_CTX_VALID, DUK_BIDX_ARRAY_PROTOTYPE, DUK_HOBJECT_CLASS_ARRAY, DUK_HOBJECT_CLASS_AS_FLAGS, duk_hobject_define_property_internal(), DUK_HOBJECT_FLAG_ARRAY_PART, DUK_HOBJECT_FLAG_EXTENSIBLE, DUK_HOBJECT_SET_EXOTIC_ARRAY, DUK_HTHREAD_STRING_LENGTH, DUK_PROPDESC_FLAGS_W, duk_push_int(), duk_push_object_helper(), duk_require_hobject(), and duk_require_tval().
Referenced by duk__add_traceback(), duk__dec_array(), duk__init_func_valstack_slots(), duk__js_execute_bytecode_inner(), duk__load_func(), duk__load_func(), duk__regexp_match_helper(), 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_duktape_object_info(), duk_bi_function_prototype_bind(), duk_bi_json_stringify_helper(), duk_bi_nodejs_buffer_tojson(), duk_bi_object_constructor_keys_shared(), duk_bi_string_prototype_match(), duk_bi_string_prototype_split(), duk_hobject_get_enumerated_keys(), duk_push_context_dump(), ncurses_getmaxyx(), ncurses_getmaxyx(), poll_poll(), and poll_poll().
DUK_EXTERNAL_DECL void duk_push_boolean | ( | duk_context * | ctx, |
duk_bool_t | val ) |
Definition at line 17873 of file duktape-1.5.2/src-noline/duktape.c.
References DUK__CHECK_SPACE, DUK_ASSERT_CTX_VALID, DUK_TVAL_SET_BOOLEAN, and duk_hthread::valstack_top.
Referenced by delete_timer(), delete_timer(), duk__finalize_helper(), duk__js_execute_bytecode_inner(), duk_bi_array_constructor_is_array(), duk_bi_array_prototype_to_string(), duk_bi_arraybuffer_isview(), duk_bi_buffer_compare_shared(), duk_bi_duktape_object_gc(), duk_bi_global_object_decode_uri(), duk_bi_global_object_is_finite(), duk_bi_global_object_is_nan(), duk_bi_nodejs_buffer_is_buffer(), duk_bi_nodejs_buffer_is_encoding(), duk_bi_object_constructor_is_extensible(), duk_bi_object_constructor_is_sealed_frozen_shared(), duk_bi_object_prototype_is_prototype_of(), duk_bi_regexp_prototype_test(), duk_hobject_object_get_own_property_descriptor(), duk_hobject_object_ownprop_helper(), and duk_regexp_create_instance().
DUK_EXTERNAL_DECL void duk_push_buffer_object | ( | duk_context * | ctx, |
duk_idx_t | idx_buffer, | ||
duk_size_t | byte_offset, | ||
duk_size_t | byte_length, | ||
duk_uint_t | flags ) |
Definition at line 18794 of file duktape-1.5.2/src-noline/duktape.c.
References duk_hbufferobject::buf, duk__bufobj_flags_lookup, duk__bufobj_flags_lookup, DUK_ASSERT, DUK_ASSERT_CTX_VALID, DUK_ASSERT_DISABLE, DUK_ASSERT_HBUFFEROBJECT_VALID, DUK_BIDX_ARRAYBUFFER_PROTOTYPE, DUK_BUFOBJ_CREATE_ARRBUF, duk_compact(), DUK_ERROR_RANGE, DUK_ERROR_TYPE, DUK_HBUFFER_INCREF, DUK_HBUFFEROBJECT_ELEM_UINT8, DUK_HOBJECT_CLASS_ARRAYBUFFER, DUK_HOBJECT_CLASS_AS_FLAGS, DUK_HOBJECT_FLAG_BUFFEROBJECT, DUK_HOBJECT_FLAG_EXTENSIBLE, DUK_PROPDESC_FLAGS_NONE, duk_push_bufferobject_raw(), duk_require_hbuffer(), DUK_STR_INVALID_CALL_ARGS, DUK_STRIDX_LC_BUFFER, DUK_UNREF, duk_xdef_prop_stridx(), duk_hbufferobject::elem_type, duk_hbufferobject::is_view, duk_hbufferobject::length, NULL, duk_hbufferobject::offset, and duk_hbufferobject::shift.
DUK_EXTERNAL_DECL void * duk_push_buffer_raw | ( | duk_context * | ctx, |
duk_size_t | size, | ||
duk_small_uint_t | flags ) |
Definition at line 18974 of file duktape-1.5.2/src-noline/duktape.c.
References duk_api_global_filename, duk_api_global_line, DUK_ASSERT_CTX_VALID, DUK_ERROR_ALLOC_DEFMSG, DUK_ERROR_API, DUK_ERROR_RANGE, duk_hbuffer_alloc(), DUK_HBUFFER_INCREF, DUK_HBUFFER_MAX_BYTELEN, duk_push_error_object_va_raw(), DUK_STR_BUFFER_TOO_LONG, DUK_STR_PUSH_BEYOND_ALLOC_STACK, DUK_TVAL_SET_BUFFER, duk_hthread::heap, NULL, duk_hthread::valstack_end, and duk_hthread::valstack_top.
Referenced by duk_hex_decode(), and duk_hex_encode().
DUK_EXTERNAL_DECL duk_idx_t duk_push_c_function | ( | duk_context * | ctx, |
duk_c_function | func, | ||
duk_idx_t | nargs ) |
Definition at line 18650 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 create_duktape_heap(), create_duktape_heap(), duk_bi_global_object_require(), duk_put_function_list(), duk_put_number_list(), main(), and main().
DUK_EXTERNAL_DECL duk_idx_t duk_push_c_lightfunc | ( | duk_context * | ctx, |
duk_c_function | func, | ||
duk_idx_t | nargs, | ||
duk_idx_t | length, | ||
duk_int_t | magic ) |
Definition at line 18698 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT, DUK_ASSERT_CTX_VALID, DUK_ERROR_API, DUK_LFUNC_FLAGS_PACK, DUK_LFUNC_LENGTH_MAX, DUK_LFUNC_LENGTH_MIN, DUK_LFUNC_MAGIC_MAX, DUK_LFUNC_MAGIC_MIN, DUK_LFUNC_NARGS_MAX, DUK_LFUNC_NARGS_MIN, DUK_LFUNC_NARGS_VARARGS, duk_push_tval(), DUK_STR_INVALID_CALL_ARGS, DUK_STR_PUSH_BEYOND_ALLOC_STACK, DUK_TVAL_SET_LIGHTFUNC, DUK_VARARGS, duk_hthread::valstack_bottom, duk_hthread::valstack_end, and duk_hthread::valstack_top.
DUK_EXTERNAL_DECL void duk_push_context_dump | ( | duk_context * | ctx | ) |
Definition at line 13718 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT, DUK_ASSERT_CTX_VALID, duk_bi_json_stringify_helper(), duk_dup(), duk_get_top(), duk_get_top_index(), DUK_INVALID_INDEX, duk_is_string(), DUK_JSON_FLAG_ASCII_ONLY, DUK_JSON_FLAG_AVOID_KEY_QUOTES, DUK_JSON_FLAG_EXT_CUSTOM, duk_pop(), duk_push_array(), duk_push_sprintf(), duk_put_prop_index(), duk_replace(), and duk_safe_to_string.
DUK_EXTERNAL_DECL void duk_push_current_function | ( | duk_context * | ctx | ) |
Definition at line 18220 of file duktape-1.5.2/src-noline/duktape.c.
References duk_hthread::callstack_size, duk_hthread::callstack_top, DUK_ASSERT, DUK_ASSERT_CTX_VALID, DUK_ASSERT_DISABLE, duk_hthread_get_current_activation(), duk_push_tval(), duk_push_undefined(), NULL, and duk_activation::tv_func.
Referenced by duk_bi_global_object_require().
DUK_EXTERNAL_DECL void duk_push_current_thread | ( | duk_context * | ctx | ) |
Definition at line 18237 of file duktape-1.5.2/src-noline/duktape.c.
References duk_hthread::callstack_size, duk_hthread::callstack_top, duk_heap::curr_thread, DUK_ASSERT, DUK_ASSERT_CTX_VALID, DUK_ASSERT_DISABLE, duk_hthread_get_current_activation(), duk_push_hobject(), duk_push_tval(), duk_push_undefined(), duk_hthread::heap, NULL, and duk_activation::tv_func.
Referenced by duk_bi_thread_current().
DUK_EXTERNAL_DECL duk_idx_t duk_push_error_object_raw | ( | duk_context * | ctx, |
duk_errcode_t | err_code, | ||
const char * | filename, | ||
duk_int_t | line, | ||
const char * | fmt, | ||
... ) |
Definition at line 18944 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT_CTX_VALID, and duk_push_error_object_va_raw().
Referenced by duk_err_create_and_throw().
DUK_EXTERNAL_DECL duk_idx_t duk_push_error_object_stash | ( | duk_context * | ctx, |
duk_errcode_t | err_code, | ||
const char * | fmt, | ||
... ) |
Definition at line 18957 of file duktape-1.5.2/src-noline/duktape.c.
References duk_api_global_filename, duk_api_global_line, DUK_ASSERT_CTX_VALID, duk_push_error_object_va_raw(), and NULL.
DUK_EXTERNAL_DECL duk_idx_t duk_push_error_object_va_raw | ( | duk_context * | ctx, |
duk_errcode_t | err_code, | ||
const char * | filename, | ||
duk_int_t | line, | ||
const char * | fmt, | ||
va_list | ap ) |
Definition at line 18892 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT, DUK_ASSERT_CTX_VALID, duk_err_augment_error_create(), DUK_ERRCODE_FLAG_NOBLAME_FILELINE, duk_error_prototype_from_code(), DUK_HOBJECT_CLASS_AS_FLAGS, DUK_HOBJECT_CLASS_ERROR, DUK_HOBJECT_FLAG_EXTENSIBLE, DUK_PROPDESC_FLAGS_WC, duk_push_int(), duk_push_object_helper_proto(), duk_push_vsprintf(), DUK_STRIDX_MESSAGE, DUK_UNREF, duk_xdef_prop_stridx(), NULL, and proto.
Referenced by duk_error_raw(), duk_error_stash(), duk_error_va_raw(), duk_push_buffer_raw(), duk_push_error_object_raw(), and duk_push_error_object_stash().
DUK_EXTERNAL_DECL void duk_push_false | ( | duk_context * | ctx | ) |
Definition at line 17897 of file duktape-1.5.2/src-noline/duktape.c.
References DUK__CHECK_SPACE, DUK_ASSERT_CTX_VALID, DUK_TVAL_SET_BOOLEAN_FALSE, and duk_hthread::valstack_top.
Referenced by duk__dec_value(), duk__expr_nud(), duk_bi_array_prototype_iter_shared(), duk_bi_object_constructor_is_extensible(), duk_bi_object_prototype_is_prototype_of(), duk_hthread_create_builtin_objects(), native_prime_check(), and native_prime_check().
DUK_EXTERNAL_DECL void duk_push_global_object | ( | duk_context * | ctx | ) |
Definition at line 18250 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT_CTX_VALID, DUK_BIDX_GLOBAL, and duk_push_hobject_bidx().
Referenced by duk_eval_raw(), duk_push_global_stash(), eventloop_register(), eventloop_run(), fileio_register(), main(), main(), ncurses_register(), poll_register(), socket_register(), wrapped_compile_execute(), wrapped_compile_execute(), and wrapped_compile_execute().
DUK_EXTERNAL_DECL void duk_push_global_stash | ( | duk_context * | ctx | ) |
Definition at line 18279 of file duktape-1.5.2/src-noline/duktape.c.
References duk__push_stash(), DUK_ASSERT_CTX_VALID, and duk_push_global_object().
Referenced by create_timer(), create_timer(), delete_timer(), delete_timer(), eventloop_register(), expire_timers(), and expire_timers().
DUK_EXTERNAL_DECL void duk_push_heap_stash | ( | duk_context * | ctx | ) |
Definition at line 18269 of file duktape-1.5.2/src-noline/duktape.c.
References duk__push_stash(), DUK_ASSERT, DUK_ASSERT_CTX_VALID, duk_push_hobject(), duk_hthread::heap, duk_heap::heap_object, and NULL.
DUK_EXTERNAL_DECL duk_idx_t duk_push_heapptr | ( | duk_context * | ctx, |
void * | ptr ) |
Definition at line 19005 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT_CTX_VALID, DUK_ERROR_RANGE, DUK_HEAPHDR_GET_TYPE, DUK_HTYPE_BUFFER, DUK_HTYPE_OBJECT, DUK_HTYPE_STRING, duk_push_hbuffer(), duk_push_hobject(), duk_push_hstring(), duk_push_undefined(), DUK_STR_BUFFER_TOO_LONG, NULL, duk_hthread::valstack_bottom, and duk_hthread::valstack_top.
DUK_EXTERNAL_DECL void duk_push_int | ( | duk_context * | ctx, |
duk_int_t | val ) |
Definition at line 17923 of file duktape-1.5.2/src-noline/duktape.c.
References DUK__CHECK_SPACE, DUK_ASSERT_CTX_VALID, DUK_TVAL_SET_FASTINT, DUK_TVAL_SET_FASTINT_I32, DUK_TVAL_SET_NUMBER, and duk_hthread::valstack_top.
Referenced by duk__create_arguments_object(), duk__error_getter_helper(), duk__get_own_propdesc_raw(), duk__get_part_helper(), duk__init_varmap_and_prologue_for_pass2(), duk__nud_object_literal_key_check(), duk__parse_func_like_fnum(), duk__parse_stmt(), duk__parse_try_stmt(), duk__parse_var_decl(), duk__regexp_match_helper(), duk__reset_labels_to_length(), duk_bi_array_prototype_indexof_shared(), duk_bi_array_prototype_pop(), duk_bi_array_prototype_shift(), duk_bi_buffer_compare_shared(), duk_bi_buffer_readfield(), duk_bi_date_prototype_get_timezone_offset(), duk_bi_duktape_object_info(), duk_bi_function_prototype_bind(), duk_bi_number_constructor(), 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_split(), duk_err_create_and_throw(), duk_hbufferobject_push_validated_read(), duk_hobject_enumerator_create(), duk_hobject_getprop(), duk_hthread_create_builtin_objects(), duk_js_equals_helper(), duk_push_array(), duk_push_error_object_va_raw(), duk_regexp_create_instance(), duk_to_object(), eventloop_run(), ncurses_endwin(), ncurses_endwin(), ncurses_getch(), ncurses_getch(), ncurses_getmaxyx(), ncurses_getmaxyx(), ncurses_mvprintw(), ncurses_mvprintw(), ncurses_printw(), ncurses_printw(), ncurses_refresh(), ncurses_refresh(), poll_poll(), poll_poll(), socket_accept(), socket_accept(), socket_connect(), socket_connect(), socket_create_server_socket(), socket_create_server_socket(), socket_write(), and socket_write().
DUK_EXTERNAL_DECL const char * duk_push_lstring | ( | duk_context * | ctx, |
const char * | str, | ||
duk_size_t | len ) |
Definition at line 18004 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT, DUK_ASSERT_CTX_VALID, DUK_ERROR_API, DUK_ERROR_RANGE, duk_heap_string_intern_checked(), DUK_HSTRING_GET_DATA, DUK_HSTRING_INCREF, DUK_HSTRING_MAX_BYTELEN, DUK_STR_PUSH_BEYOND_ALLOC_STACK, DUK_STR_STRING_TOO_LONG, DUK_TVAL_SET_STRING, NULL, duk_hthread::valstack_end, and duk_hthread::valstack_top.
Referenced by do_jxpretty(), do_jxpretty(), do_sandbox_test(), do_sandbox_test(), duk__bi_global_resolve_module_id(), duk__dec_number(), duk__dec_plain_string(), duk__dragon4_convert_and_push(), duk__load_string_raw(), duk__push_hstring_readable_unicode(), duk__regexp_match_helper(), duk_bi_json_stringify_helper(), duk_bi_string_prototype_split(), duk_decode_string_codepage(), duk_numconv_stringify(), duk_push_string(), duk_push_string_file_raw(), duk_push_string_funcptr(), duk_push_vsprintf(), duk_to_string(), duk_trim(), dummy_upper_case(), dummy_upper_case(), handle_fh(), wrapped_compile_execute(), and wrapped_compile_execute().
DUK_EXTERNAL_DECL void duk_push_nan | ( | duk_context * | ctx | ) |
Definition at line 17990 of file duktape-1.5.2/src-noline/duktape.c.
References duk_double_union::d, DUK__CHECK_SPACE, DUK_ASSERT, DUK_ASSERT_CTX_VALID, DUK_DBLUNION_IS_NORMALIZED, DUK_DBLUNION_SET_NAN, DUK_TVAL_SET_NUMBER, and duk_hthread::valstack_top.
Referenced by duk__dec_value(), duk__get_part_helper(), duk__parse_string(), duk__set_part_helper(), duk_bi_buffer_readfield(), duk_bi_date_constructor_now(), duk_bi_date_constructor_utc(), duk_bi_date_prototype_get_timezone_offset(), duk_bi_global_object_parse_int(), and duk_numconv_parse().
DUK_EXTERNAL_DECL void duk_push_null | ( | duk_context * | ctx | ) |
Definition at line 17862 of file duktape-1.5.2/src-noline/duktape.c.
References DUK__CHECK_SPACE, DUK_ASSERT_CTX_VALID, DUK_TVAL_SET_NULL, and duk_hthread::valstack_top.
Referenced by duk__dec_value(), duk__expr_nud(), duk__init_varmap_and_prologue_for_pass2(), duk__js_execute_bytecode_inner(), duk__parse_try_stmt(), duk__regexp_match_helper(), duk_bi_date_prototype_to_json(), duk_bi_nodejs_buffer_tojson(), duk_bi_object_getprototype_shared(), duk_bi_string_prototype_match(), duk_js_push_closure(), duk_push_string(), and duk_push_string_file_raw().
DUK_EXTERNAL_DECL void duk_push_number | ( | duk_context * | ctx, |
duk_double_t | val ) |
Definition at line 17909 of file duktape-1.5.2/src-noline/duktape.c.
References duk_double_union::d, DUK__CHECK_SPACE, DUK_ASSERT_CTX_VALID, DUK_DBLUNION_NORMALIZE_NAN_CHECK, DUK_TVAL_SET_NUMBER, and duk_hthread::valstack_top.
Referenced by adder(), create_timer(), create_timer(), delete_timer(), delete_timer(), duk__add_traceback(), duk__dec_value(), duk__expr_nud(), duk__format_parts_iso8601(), duk__js_execute_bytecode_inner(), duk__math_minmax(), duk__nud_object_literal(), duk__parse_func_like_raw(), duk__parse_string_iso8601_subset(), duk__push_double(), duk__set_this_timeval_from_dparts(), duk__twodigit_year_fixup(), duk__vm_arith_add(), duk_bi_buffer_readfield(), duk_bi_date_constructor(), duk_bi_date_constructor_now(), duk_bi_date_constructor_utc(), duk_bi_date_prototype_set_time(), duk_bi_date_prototype_value_of(), duk_bi_math_object_onearg_shared(), duk_bi_math_object_random(), duk_bi_math_object_twoarg_shared(), duk_bi_string_prototype_char_code_at(), duk_bi_string_prototype_substring(), duk_hbufferobject_push_validated_read(), duk_numconv_parse(), duk_put_number_list(), expire_timers(), and expire_timers().
DUK_EXTERNAL_DECL duk_idx_t duk_push_object | ( | duk_context * | ctx | ) |
Definition at line 18449 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT_CTX_VALID, DUK_BIDX_OBJECT_PROTOTYPE, DUK_HOBJECT_CLASS_AS_FLAGS, DUK_HOBJECT_CLASS_OBJECT, DUK_HOBJECT_FLAG_EXTENSIBLE, and duk_push_object_helper().
Referenced by duk__dec_object(), duk__js_execute_bytecode_inner(), duk__load_func(), duk__load_func(), duk__nud_object_literal(), duk_bi_duktape_object_act(), duk_bi_global_object_require(), duk_bi_json_parse_helper(), duk_bi_json_stringify_helper(), duk_bi_nodejs_buffer_tojson(), duk_hobject_object_get_own_property_descriptor(), duk_js_push_closure(), duk_new(), duk_regexp_create_instance(), eventloop_register(), fileio_register(), ncurses_register(), poll_register(), socket_accept(), socket_accept(), and socket_register().
DUK_EXTERNAL_DECL void duk_push_pointer | ( | duk_context * | ctx, |
void * | p ) |
Definition at line 18121 of file duktape-1.5.2/src-noline/duktape.c.
References DUK__CHECK_SPACE, DUK_ASSERT, DUK_ASSERT_CTX_VALID, duk_push_undefined(), DUK_STRING_PUSH_SAFE, DUK_TVAL_SET_POINTER, DUK_UNREF, and duk_hthread::valstack_top.
Referenced by duk__dec_pointer(), duk_bi_duktape_object_info(), duk_bi_json_stringify_helper(), duk_bi_pointer_constructor(), duk_compile_raw(), duk_js_compile(), duk_to_pointer(), handle_eval(), handle_eval(), handle_fh(), handle_fh(), handle_interactive(), handle_interactive(), ncurses_initscr(), and ncurses_initscr().
DUK_EXTERNAL_DECL const char * duk_push_sprintf | ( | duk_context * | ctx, |
const char * | fmt, | ||
... ) |
Definition at line 18380 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT_CTX_VALID, DUK_ERROR_API, duk_push_vsprintf(), and DUK_STR_SPRINTF_TOO_LONG.
Referenced by duk__add_compiler_error_line(), duk__enc_objarr_entry(), duk__enc_objarr_exit(), duk__error_getter_helper(), duk_bi_function_prototype_to_string(), duk_bi_regexp_constructor(), duk_bi_regexp_prototype_to_string(), duk_push_context_dump(), duk_push_hobject_class_string(), duk_push_lightfunc_name(), duk_push_string_tval_readable(), duk_to_int_clamped_raw(), duk_to_object_class_string_top(), duk_to_string(), socket_accept(), and socket_accept().
DUK_EXTERNAL_DECL const char * duk_push_string | ( | duk_context * | ctx, |
const char * | str ) |
Definition at line 18040 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT_CTX_VALID, duk_push_lstring(), duk_push_null(), DUK_STRLEN, and NULL.
Referenced by duk__add_traceback(), duk__convert_to_func_template(), duk__to_string_helper(), duk_bi_error_prototype_to_string(), duk_bi_function_constructor(), duk_bi_global_object_print_helper(), duk_bi_global_object_require(), duk_bi_nodejs_buffer_tostring(), duk_bi_regexp_constructor(), duk_del_prop_stridx(), duk_del_prop_string(), duk_get_prop_stridx(), duk_get_prop_string(), duk_has_prop_stridx(), duk_has_prop_string(), duk_hthread_create_builtin_objects(), duk_push_lightfunc_tostring(), duk_push_string_funcptr(), duk_push_string_tval_readable(), duk_put_prop_string(), handle_eval(), handle_eval(), handle_fh(), handle_fh(), handle_fh(), handle_file(), handle_file(), handle_interactive(), handle_interactive(), main(), main(), poll_poll(), poll_poll(), socket_accept(), and socket_accept().
DUK_EXTERNAL_DECL const char * duk_push_string_file_raw | ( | duk_context * | ctx, |
const char * | path, | ||
duk_uint_t | flags ) |
Definition at line 18056 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT, DUK_ASSERT_CTX_VALID, DUK_ERROR_TYPE, DUK_FCLOSE, DUK_FOPEN, DUK_FREAD, DUK_FSEEK, DUK_FTELL, duk_push_fixed_buffer, duk_push_lstring(), duk_push_null(), duk_push_undefined(), DUK_STRING_PUSH_SAFE, DUK_STRLEN, duk_to_string(), and NULL.
DUK_EXTERNAL_DECL void duk_push_this | ( | duk_context * | ctx | ) |
Definition at line 18171 of file duktape-1.5.2/src-noline/duktape.c.
References duk__push_this_helper(), and DUK_ASSERT_CTX_VALID.
Referenced by duk__error_getter_helper(), duk__error_setter_helper(), duk__get_this_regexp(), duk__push_this_get_timeval_tzoffset(), duk__push_this_number_plain(), duk_bi_boolean_constructor(), duk_bi_boolean_prototype_tostring_shared(), duk_bi_buffer_slice_shared(), duk_bi_date_prototype_to_json(), duk_bi_error_prototype_to_string(), duk_bi_function_prototype_apply(), duk_bi_function_prototype_bind(), duk_bi_function_prototype_call(), duk_bi_function_prototype_to_string(), duk_bi_logger_constructor(), duk_bi_logger_prototype_log_shared(), duk_bi_nodejs_buffer_fill(), duk_bi_number_constructor(), duk_bi_object_prototype_to_string(), duk_bi_pointer_prototype_tostring_shared(), duk_bi_regexp_constructor(), duk_bi_string_prototype_substr(), duk_bi_string_prototype_to_string(), and duk_bi_typedarray_set().
DUK_EXTERNAL_DECL duk_idx_t duk_push_thread_raw | ( | duk_context * | ctx, |
duk_uint_t | flags ) |
Definition at line 18496 of file duktape-1.5.2/src-noline/duktape.c.
References duk_hthread::builtins, DUK_ASSERT, DUK_ASSERT_CTX_VALID, DUK_BIDX_THREAD_PROTOTYPE, DUK_DDD, DUK_DDDPRINT, DUK_ERROR_ALLOC_DEFMSG, DUK_ERROR_API, DUK_HOBJECT_CLASS_AS_FLAGS, DUK_HOBJECT_CLASS_THREAD, DUK_HOBJECT_FLAG_EXTENSIBLE, DUK_HOBJECT_FLAG_THREAD, DUK_HOBJECT_SET_PROTOTYPE_UPDREF, duk_hthread_alloc(), duk_hthread_copy_builtin_objects(), duk_hthread_create_builtin_objects(), DUK_HTHREAD_INCREF, duk_hthread_init_stacks(), DUK_HTHREAD_STATE_INACTIVE, DUK_STR_PUSH_BEYOND_ALLOC_STACK, DUK_THREAD_NEW_GLOBAL_ENV, DUK_TVAL_SET_OBJECT, DUK_VALSTACK_API_ENTRY_MINIMUM, DUK_VALSTACK_INITIAL_SIZE, DUK_VALSTACK_INTERNAL_EXTRA, duk_heaphdr::h_flags, duk_hobject::hdr, duk_hthread::heap, duk_hthread::obj, duk_hthread::state, duk_hthread::strs, duk_hthread::valstack_bottom, duk_hthread::valstack_end, and duk_hthread::valstack_top.
DUK_EXTERNAL_DECL void duk_push_thread_stash | ( | duk_context * | ctx, |
duk_context * | target_ctx ) |
Definition at line 18285 of file duktape-1.5.2/src-noline/duktape.c.
References duk__push_stash(), DUK_ASSERT, DUK_ASSERT_CTX_VALID, DUK_ERROR_API, duk_push_hobject(), DUK_STR_INVALID_CALL_ARGS, duk_hthread::heap, duk_heap::heap_object, and NULL.
DUK_EXTERNAL_DECL void duk_push_true | ( | duk_context * | ctx | ) |
Definition at line 17886 of file duktape-1.5.2/src-noline/duktape.c.
References DUK__CHECK_SPACE, DUK_ASSERT_CTX_VALID, DUK_TVAL_SET_BOOLEAN_TRUE, and duk_hthread::valstack_top.
Referenced by delete_timer(), delete_timer(), duk__dec_value(), duk__enc_objarr_entry(), duk__expr_nud(), duk__js_execute_bytecode_inner(), duk_bi_array_prototype_iter_shared(), duk_bi_object_constructor_is_extensible(), duk_bi_object_constructor_is_sealed_frozen_shared(), duk_hobject_enumerator_create(), duk_hthread_create_builtin_objects(), native_prime_check(), and native_prime_check().
DUK_EXTERNAL_DECL void duk_push_uint | ( | duk_context * | ctx, |
duk_uint_t | val ) |
Definition at line 17956 of file duktape-1.5.2/src-noline/duktape.c.
References DUK__CHECK_SPACE, DUK_ASSERT_CTX_VALID, DUK_TVAL_SET_FASTINT, DUK_TVAL_SET_FASTINT_U32, DUK_TVAL_SET_NUMBER, and duk_hthread::valstack_top.
Referenced by duk__add_traceback(), duk__create_arguments_object(), duk__dec_reviver_walk(), duk__enc_array(), duk__get_own_propdesc_raw(), duk__getprop_fastpath_bufobj_tval(), duk_bi_buffer_readfield(), duk_bi_buffer_writefield(), duk_bi_duktape_object_act(), duk_bi_duktape_object_info(), duk_bi_nodejs_buffer_copy(), duk_bi_nodejs_buffer_tojson(), duk_bi_nodejs_buffer_write(), duk_hbufferobject_push_validated_read(), duk_hobject_define_property_internal_arridx(), duk_hobject_getprop(), duk_js_push_closure(), duk_pnew(), handle_eval(), handle_eval(), handle_fh(), handle_fh(), handle_interactive(), and handle_interactive().
DUK_EXTERNAL_DECL void duk_push_undefined | ( | duk_context * | ctx | ) |
Definition at line 17848 of file duktape-1.5.2/src-noline/duktape.c.
References DUK__CHECK_SPACE, DUK_ASSERT, DUK_ASSERT_CTX_VALID, DUK_TVAL_IS_UNDEFINED, DUK_TVAL_SET_TVAL, NULL, and duk_hthread::valstack_top.
Referenced by duk__dec_value(), duk__err_augment_user(), duk__expr(), duk__expr_nud(), duk__get_own_propdesc_raw(), duk__getvar_helper(), duk__handle_longjmp(), duk__js_compile_raw(), duk__js_execute_bytecode_inner(), duk__parse_stmts(), duk__regexp_match_helper(), duk__safe_call_adjust_valstack(), duk_bi_array_prototype_iter_shared(), duk_bi_duktape_object_info(), duk_bi_function_prototype_bind(), duk_bi_function_prototype_call(), duk_bi_json_stringify_helper(), duk_call(), duk_get_prototype(), duk_hobject_define_accessor_internal(), duk_hobject_object_get_own_property_descriptor(), duk_hthread_create_builtin_objects(), duk_pcall(), duk_push_current_function(), duk_push_current_thread(), duk_push_heapptr(), duk_push_pointer(), and duk_push_string_file_raw().
DUK_EXTERNAL_DECL const char * duk_push_vsprintf | ( | duk_context * | ctx, |
const char * | fmt, | ||
va_list | ap ) |
Definition at line 18314 of file duktape-1.5.2/src-noline/duktape.c.
References duk__try_push_vsprintf(), DUK_ASSERT, DUK_ASSERT_CTX_VALID, DUK_ERROR_API, DUK_HSTRING_GET_DATA, DUK_HTHREAD_STRING_EMPTY_STRING, duk_push_dynamic_buffer, duk_push_hstring_stridx(), duk_push_lstring(), DUK_PUSH_SPRINTF_INITIAL_SIZE, DUK_PUSH_SPRINTF_SANITY_LIMIT, duk_remove(), duk_resize_buffer(), DUK_STR_SPRINTF_TOO_LONG, DUK_STRIDX_EMPTY_STRING, DUK_STRLEN, DUK_UNREF, DUK_VA_COPY, DUK_VSNPRINTF, and NULL.
Referenced by duk_log_va(), duk_push_error_object_va_raw(), and duk_push_sprintf().
DUK_EXTERNAL_DECL void duk_put_function_list | ( | duk_context * | ctx, |
duk_idx_t | obj_index, | ||
const duk_function_list_entry * | funcs ) |
Definition at line 14739 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT_CTX_VALID, duk_push_c_function(), duk_put_prop_string(), duk_require_normalize_index(), funcs, duk_function_list_entry::key, duk_function_list_entry::nargs, NULL, and duk_function_list_entry::value.
Referenced by eventloop_register(), fileio_register(), ncurses_register(), poll_register(), and socket_register().
DUK_EXTERNAL_DECL duk_bool_t duk_put_global_string | ( | duk_context * | ctx, |
const char * | key ) |
Definition at line 14788 of file duktape-1.5.2/src-noline/duktape.c.
References duk_hthread::builtins, DUK_ASSERT, DUK_ASSERT_CTX_VALID, DUK_BIDX_GLOBAL, duk_get_prop_string(), duk_insert(), duk_pop(), duk_push_hobject(), duk_put_prop_string(), duk_remove(), and NULL.
Referenced by create_duktape_heap(), create_duktape_heap(), and main().
DUK_EXTERNAL_DECL void duk_put_number_list | ( | duk_context * | ctx, |
duk_idx_t | obj_index, | ||
const duk_number_list_entry * | numbers ) |
Definition at line 14754 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT_CTX_VALID, duk_push_c_function(), duk_push_number(), duk_put_prop_string(), duk_require_normalize_index(), funcs, duk_function_list_entry::key, duk_number_list_entry::key, duk_function_list_entry::nargs, NULL, duk_function_list_entry::value, and duk_number_list_entry::value.
Referenced by poll_register().
DUK_EXTERNAL_DECL duk_bool_t duk_put_prop | ( | duk_context * | ctx, |
duk_idx_t | obj_index ) |
Definition at line 14378 of file duktape-1.5.2/src-noline/duktape.c.
References duk__put_prop_shared(), and DUK_ASSERT_CTX_VALID.
Referenced by create_timer(), create_timer(), duk__dec_reviver_walk(), duk__enc_objarr_entry(), duk__init_varmap_and_prologue_for_pass2(), duk__load_func(), duk__load_func(), duk__nud_object_literal_key_check(), duk__parse_try_stmt(), duk_bi_global_object_require(), duk_hobject_enumerator_create(), poll_poll(), poll_poll(), socket_accept(), and socket_accept().
DUK_EXTERNAL_DECL duk_bool_t duk_put_prop_index | ( | duk_context * | ctx, |
duk_idx_t | obj_index, | ||
duk_uarridx_t | arr_index ) |
Definition at line 14396 of file duktape-1.5.2/src-noline/duktape.c.
References duk__put_prop_shared(), DUK_ASSERT_CTX_VALID, duk_push_uarridx, and duk_require_normalize_index().
Referenced by duk__add_label(), duk__array_sort_swap(), duk__dec_reviver_walk(), duk__getconst(), duk__load_func(), duk__load_func(), duk__parse_func_formals(), duk__parse_func_like_fnum(), duk__parse_stmt(), duk__parse_var_decl(), duk__regexp_match_helper(), duk_bi_array_prototype_push(), duk_bi_array_prototype_reverse(), duk_bi_array_prototype_shift(), duk_bi_array_prototype_splice(), duk_bi_array_prototype_unshift(), duk_bi_duktape_object_info(), duk_bi_function_prototype_bind(), duk_bi_json_stringify_helper(), duk_bi_nodejs_buffer_tojson(), duk_bi_object_constructor_keys_shared(), duk_bi_string_prototype_match(), duk_bi_string_prototype_split(), duk_bi_typedarray_constructor(), duk_bi_typedarray_set(), duk_hobject_get_enumerated_keys(), duk_push_context_dump(), ncurses_getmaxyx(), ncurses_getmaxyx(), poll_poll(), and poll_poll().
DUK_EXTERNAL_DECL duk_bool_t duk_put_prop_string | ( | duk_context * | ctx, |
duk_idx_t | obj_index, | ||
const char * | key ) |
Definition at line 14383 of file duktape-1.5.2/src-noline/duktape.c.
References duk__put_prop_shared(), DUK_ASSERT, DUK_ASSERT_CTX_VALID, duk_normalize_index(), duk_push_string(), and NULL.
Referenced by duk_put_function_list(), duk_put_global_string(), duk_put_number_list(), eventloop_register(), fileio_register(), main(), main(), ncurses_register(), poll_register(), socket_register(), and wrapped_compile_execute().
DUK_EXTERNAL_DECL void duk_put_var | ( | duk_context * | ctx | ) |
Definition at line 19902 of file duktape-1.5.2/src-noline/duktape.c.
References duk_hthread::builtins, DUK_ASSERT, DUK_ASSERT_CTX_VALID, DUK_BIDX_GLOBAL_ENV, duk_hthread_get_current_activation(), duk_is_strict_call(), duk_js_putvar_activation(), duk_js_putvar_envrec(), duk_pop_2(), duk_require_hstring(), duk_require_tval(), and NULL.
DUK_EXTERNAL_DECL void * duk_realloc | ( | duk_context * | ctx, |
void * | ptr, | ||
duk_size_t | size ) |
Definition at line 14207 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ALLOC, DUK_ASSERT_CTX_VALID, DUK_REALLOC, and duk_hthread::heap.
DUK_EXTERNAL_DECL void * duk_realloc_raw | ( | duk_context * | ctx, |
void * | ptr, | ||
duk_size_t | size ) |
Definition at line 14183 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ALLOC_RAW, DUK_ASSERT_CTX_VALID, DUK_REALLOC_RAW, and duk_hthread::heap.
DUK_EXTERNAL_DECL void duk_remove | ( | duk_context * | ctx, |
duk_idx_t | index ) |
Definition at line 15820 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT, DUK_ASSERT_CTX_VALID, DUK_MEMMOVE, duk_require_tval(), DUK_TVAL_DECREF, DUK_TVAL_SET_TVAL, DUK_TVAL_SET_TVAL_UPDREF, DUK_TVAL_SET_UNDEFINED, DUK_UNREF, index, NULL, and duk_hthread::valstack_top.
Referenced by duk__create_arguments_object(), duk__do_compile(), duk__enc_value(), duk__get_own_propdesc_raw(), duk__push_stash(), duk__push_this_number_plain(), duk__safe_call_adjust_valstack(), duk_bi_function_prototype_apply(), duk_bi_json_parse_helper(), duk_decode_string_codepage(), duk_dump_function(), duk_get_global_string(), duk_get_prop(), duk_get_var(), duk_handle_ecma_call_setup(), duk_hobject_enumerator_create(), duk_hobject_enumerator_next(), duk_hobject_get_enumerated_keys(), duk_hobject_getprop(), duk_load_function(), duk_new(), duk_push_string_tval_readable(), duk_push_vsprintf(), duk_put_global_string(), duk_regexp_compile(), duk_unicode_case_convert_string(), get_stack_raw(), and get_stack_raw().
DUK_EXTERNAL_DECL void duk_replace | ( | duk_context * | ctx, |
duk_idx_t | to_index ) |
Definition at line 15780 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT, DUK_ASSERT_CTX_VALID, duk_require_tval(), DUK_TVAL_DECREF, DUK_TVAL_SET_TVAL, DUK_TVAL_SET_UNDEFINED, NULL, and duk_hthread::valstack_top.
Referenced by duk__call_prop_prep_stack(), duk__concat_and_join_helper(), duk__defaultvalue_coerce_attempt(), duk__error_getter_helper(), duk__expr(), duk__expr_led(), duk__expr_nud(), duk__handle_bound_chain_for_call(), duk__internbuffer(), duk__ivalue_toplain_raw(), duk__js_execute_bytecode_inner(), duk__reset_func_for_pass2(), duk__to_regexp_helper(), duk__twodigit_year_fixup(), duk__vm_arith_add(), duk_base64_decode(), duk_base64_encode(), duk_bi_array_prototype_reduce_shared(), duk_bi_date_constructor(), duk_bi_json_stringify_helper(), duk_bi_logger_constructor(), duk_bi_logger_prototype_log_shared(), duk_bi_object_constructor_create(), duk_bi_object_constructor_keys_shared(), duk_bi_string_prototype_split(), duk_hex_decode(), duk_hex_encode(), duk_hobject_define_property_helper(), duk_js_instanceof(), duk_json_decode(), duk_json_encode(), duk_lexer_initctx(), duk_lexer_parse_js_input_element(), duk_map_string(), duk_push_context_dump(), duk_safe_to_lstring(), duk_substring(), duk_to_buffer_raw(), duk_to_defaultvalue(), duk_to_object(), duk_to_pointer(), duk_to_string(), and duk_trim().
DUK_EXTERNAL_DECL duk_bool_t duk_require_boolean | ( | duk_context * | ctx, |
duk_idx_t | index ) |
Definition at line 15980 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT, DUK_ASSERT_CTX_VALID, DUK_ERROR_REQUIRE_TYPE_INDEX, duk_get_tval(), DUK_STR_NOT_BOOLEAN, DUK_TVAL_GET_BOOLEAN, DUK_TVAL_IS_BOOLEAN, and index.
Referenced by create_timer(), and create_timer().
DUK_EXTERNAL_DECL void * duk_require_buffer | ( | duk_context * | ctx, |
duk_idx_t | index, | ||
duk_size_t * | out_size ) |
Definition at line 16201 of file duktape-1.5.2/src-noline/duktape.c.
References duk__get_buffer_helper(), and index.
Referenced by duk_bi_logger_prototype_raw(), duk_load_function(), wrapped_compile_execute(), and wrapped_compile_execute().
DUK_EXTERNAL_DECL void * duk_require_buffer_data | ( | duk_context * | ctx, |
duk_idx_t | index, | ||
duk_size_t * | out_size ) |
Definition at line 16263 of file duktape-1.5.2/src-noline/duktape.c.
References duk__get_buffer_data_helper(), and index.
DUK_EXTERNAL_DECL duk_c_function duk_require_c_function | ( | duk_context * | ctx, |
duk_idx_t | index ) |
Definition at line 16404 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT_CTX_VALID, DUK_ERROR_REQUIRE_TYPE_INDEX, duk_get_c_function(), DUK_STR_NOT_NATIVEFUNCTION, and index.
DUK_EXTERNAL_DECL duk_context * duk_require_context | ( | duk_context * | ctx, |
duk_idx_t | index ) |
Definition at line 16429 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT_CTX_VALID, duk_require_hthread(), and index.
DUK_EXTERNAL_DECL void duk_require_function | ( | duk_context * | ctx, |
duk_idx_t | index ) |
Definition at line 16417 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ERROR_REQUIRE_TYPE_INDEX, duk_is_function(), DUK_STR_NOT_FUNCTION, and index.
DUK_EXTERNAL_DECL void * duk_require_heapptr | ( | duk_context * | ctx, |
duk_idx_t | index ) |
Definition at line 16451 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT, DUK_ASSERT_CTX_VALID, DUK_ERROR_REQUIRE_TYPE_INDEX, duk_get_tval(), duk_require_tval(), DUK_STR_UNEXPECTED_TYPE, DUK_TVAL_GET_HEAPHDR, DUK_TVAL_IS_HEAP_ALLOCATED, index, and NULL.
DUK_EXTERNAL_DECL duk_int_t duk_require_int | ( | duk_context * | ctx, |
duk_idx_t | index ) |
Definition at line 16052 of file duktape-1.5.2/src-noline/duktape.c.
References duk__api_coerce_d2i(), DUK_ASSERT_CTX_VALID, and index.
Referenced by duk__create_arguments_object(), duk__handle_bound_chain_for_call(), listen_fd(), listen_fd(), native_prime_check(), and native_prime_check().
DUK_EXTERNAL_DECL const char * duk_require_lstring | ( | duk_context * | ctx, |
duk_idx_t | index, | ||
duk_size_t * | out_len ) |
Definition at line 16092 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT_CTX_VALID, DUK_ERROR_REQUIRE_TYPE_INDEX, duk_get_lstring(), DUK_STR_NOT_STRING, index, and NULL.
Referenced by duk_bi_nodejs_buffer_write(), duk_require_string(), duk_to_lstring(), dummy_upper_case(), and dummy_upper_case().
DUK_EXTERNAL_DECL duk_idx_t duk_require_normalize_index | ( | duk_context * | ctx, |
duk_idx_t | index ) |
Definition at line 15092 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, duk_hthread::valstack_bottom, and duk_hthread::valstack_top.
Referenced by duk__enc_object(), duk__pcall_prop_raw(), duk_base64_decode(), duk_base64_encode(), duk_call_prop(), duk_del_prop_index(), duk_del_prop_stridx(), duk_del_prop_string(), duk_get_prop_index(), duk_get_prop_stridx(), duk_get_prop_string(), duk_has_prop_index(), duk_has_prop_stridx(), duk_has_prop_string(), duk_hex_decode(), duk_hex_encode(), duk_hobject_prepare_property_descriptor(), duk_json_decode(), duk_json_encode(), duk_new(), duk_pcall(), duk_put_function_list(), duk_put_number_list(), duk_put_prop_index(), duk_put_prop_stridx(), duk_safe_to_lstring(), duk_substring(), duk_to_boolean(), duk_to_buffer_raw(), duk_to_defaultvalue(), duk_to_object(), duk_to_pointer(), duk_to_primitive(), duk_to_string(), and duk_trim().
DUK_EXTERNAL_DECL void duk_require_null | ( | duk_context * | ctx, |
duk_idx_t | index ) |
Definition at line 15951 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT_CTX_VALID, DUK_ERROR_REQUIRE_TYPE_INDEX, duk_get_tval(), DUK_STR_NOT_NULL, DUK_STR_NOT_UNDEFINED, DUK_TVAL_IS_NULL, DUK_TVAL_IS_UNDEFINED, and index.
DUK_EXTERNAL_DECL duk_double_t duk_require_number | ( | duk_context * | ctx, |
duk_idx_t | index ) |
Definition at line 16017 of file duktape-1.5.2/src-noline/duktape.c.
References duk_double_union::d, DUK_ASSERT_CTX_VALID, DUK_DBLUNION_NORMALIZE_NAN_CHECK, DUK_DOUBLE_NAN, DUK_ERROR_REQUIRE_TYPE_INDEX, duk_get_tval(), DUK_STR_NOT_NUMBER, DUK_TVAL_GET_NUMBER, DUK_TVAL_IS_NUMBER, and index.
Referenced by create_timer(), create_timer(), delete_timer(), delete_timer(), duk_js_equals_helper(), and duk_numconv_stringify().
DUK_EXTERNAL_DECL void * duk_require_pointer | ( | duk_context * | ctx, |
duk_idx_t | index ) |
Definition at line 16135 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT_CTX_VALID, DUK_ERROR_REQUIRE_TYPE_INDEX, duk_get_tval(), DUK_STR_NOT_POINTER, DUK_TVAL_GET_POINTER, DUK_TVAL_IS_POINTER, index, and NULL.
Referenced by duk__do_compile(), duk__js_compile_raw(), wrapped_compile_execute(), and wrapped_compile_execute().
DUK_EXTERNAL_DECL void duk_require_stack | ( | duk_context * | ctx, |
duk_idx_t | extra ) |
Definition at line 15612 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT, DUK_ASSERT_CTX_VALID, DUK_UNLIKELY, DUK_VALSTACK_INTERNAL_EXTRA, duk_valstack_resize_raw(), DUK_VSRESIZE_FLAG_THROW, NULL, duk_hthread::valstack, and duk_hthread::valstack_top.
Referenced by do_jxpretty(), do_jxpretty(), duk__dec_objarr_entry(), duk__enc_objarr_entry(), duk__error_getter_helper(), duk__expr(), duk__handle_bound_chain_for_call(), duk__handle_safe_call_error(), duk__handle_safe_call_inner(), duk__init_func_valstack_slots(), duk__js_compile_raw(), duk__js_execute_bytecode_inner(), duk__load_func(), duk__load_func(), duk__match_regexp(), duk__parse_func_body(), duk__parse_stmts(), duk__proxy_check_prop(), duk_bi_array_prototype_join_shared(), duk_bi_function_prototype_apply(), duk_bi_string_prototype_replace(), duk_err_create_and_throw(), duk_hthread_create_builtin_objects(), dummy_upper_case(), and dummy_upper_case().
DUK_EXTERNAL_DECL void duk_require_stack_top | ( | duk_context * | ctx, |
duk_idx_t | top ) |
Definition at line 15654 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT_CTX_VALID, DUK_UNLIKELY, DUK_VALSTACK_INTERNAL_EXTRA, duk_valstack_resize_raw(), DUK_VSRESIZE_FLAG_THROW, duk_hthread::valstack, and duk_hthread::valstack_bottom.
Referenced by duk__handle_safe_call_error(), and duk__safe_call_adjust_valstack().
DUK_EXTERNAL_DECL const char * duk_require_string | ( | duk_context * | ctx, |
duk_idx_t | index ) |
Definition at line 16115 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT_CTX_VALID, duk_require_lstring(), index, and NULL.
Referenced by do_sandbox_test(), do_sandbox_test(), duk_bi_global_object_require(), duk_bi_regexp_prototype_to_string(), duk_js_close_environment_record(), duk_to_string(), wrapped_compile_execute(), and wrapped_compile_execute().
DUK_EXTERNAL_DECL duk_idx_t duk_require_top_index | ( | duk_context * | ctx | ) |
Definition at line 15324 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT_CTX_VALID, DUK_ERROR_API_INDEX, DUK_INVALID_INDEX, DUK_UNLIKELY, duk_hthread::valstack_bottom, and duk_hthread::valstack_top.
Referenced by duk__create_arguments_object().
DUK_EXTERNAL_DECL duk_uint_t duk_require_uint | ( | duk_context * | ctx, |
duk_idx_t | index ) |
Definition at line 16058 of file duktape-1.5.2/src-noline/duktape.c.
References duk__api_coerce_d2ui(), DUK_ASSERT_CTX_VALID, and index.
Referenced by duk_hobject_enumerator_next(), wrapped_compile_execute(), and wrapped_compile_execute().
DUK_EXTERNAL_DECL void duk_require_undefined | ( | duk_context * | ctx, |
duk_idx_t | index ) |
Definition at line 15937 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT_CTX_VALID, DUK_ERROR_REQUIRE_TYPE_INDEX, duk_get_tval(), DUK_STR_NOT_UNDEFINED, DUK_TVAL_IS_UNDEFINED, DUK_TVAL_SET_UNDEFINED, and index.
DUK_EXTERNAL_DECL void duk_require_valid_index | ( | duk_context * | ctx, |
duk_idx_t | index ) |
Definition at line 15188 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT, DUK_ASSERT_CTX_VALID, DUK_ERROR_API_INDEX, DUK_INVALID_INDEX, duk_normalize_index(), index, and duk_hthread::valstack_bottom.
Referenced by duk_bi_duktape_object_dec(), duk_bi_duktape_object_enc(), and duk_def_prop().
DUK_EXTERNAL_DECL void * duk_resize_buffer | ( | duk_context * | ctx, |
duk_idx_t | index, | ||
duk_size_t | new_size ) |
Definition at line 11531 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT, DUK_ASSERT_CTX_VALID, DUK_ERROR_TYPE, DUK_HBUFFER_DYNAMIC_GET_DATA_PTR, DUK_HBUFFER_HAS_DYNAMIC, DUK_HBUFFER_HAS_EXTERNAL, duk_hbuffer_resize(), duk_require_hbuffer(), DUK_STR_WRONG_BUFFER_TYPE, duk_hthread::heap, index, and NULL.
Referenced by duk_base64_decode(), and duk_push_vsprintf().
DUK_EXTERNAL_DECL void duk_resume | ( | duk_context * | ctx, |
const duk_thread_state * | state ) |
Definition at line 14102 of file duktape-1.8.0/src-noline/duktape.c.
References duk_heap::call_recursion_depth, duk_internal_thread_state::call_recursion_depth, duk_heap::curr_thread, duk_internal_thread_state::curr_thread, DUK_ASSERT, DUK_ASSERT_CTX_VALID, DUK_MEMCPY, duk_pop_2(), duk_heap::handling_error, duk_internal_thread_state::handling_error, duk_hthread::heap, duk_heap::lj, duk_internal_thread_state::lj, and NULL.
DUK_EXTERNAL_DECL duk_int_t duk_safe_call | ( | duk_context * | ctx, |
duk_safe_call_function | func, | ||
duk_idx_t | nargs, | ||
duk_idx_t | nrets ) |
Definition at line 12528 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT, DUK_ASSERT_CTX_VALID, DUK_ERROR_API, DUK_EXEC_ERROR, duk_get_top(), duk_handle_safe_call(), DUK_STR_INVALID_CALL_ARGS, and NULL.
Referenced by duk__compact_object_list(), duk_bi_json_stringify_helper(), duk_compile_raw(), duk_hobject_run_finalizer(), duk_js_compile(), duk_pcall_prop(), duk_pnew(), duk_safe_to_lstring(), handle_eval(), handle_eval(), handle_fh(), handle_fh(), handle_fh(), handle_interactive(), handle_interactive(), main(), print_pop_error(), print_pop_error(), and wrapped_compile_execute().
DUK_EXTERNAL_DECL const char * duk_safe_to_lstring | ( | duk_context * | ctx, |
duk_idx_t | index, | ||
duk_size_t * | out_len ) |
Definition at line 16929 of file duktape-1.5.2/src-noline/duktape.c.
References duk__safe_to_string_raw(), DUK_ASSERT, DUK_ASSERT_CTX_VALID, duk_dup(), duk_get_lstring(), duk_get_string(), duk_is_string(), duk_pop(), duk_push_hstring_stridx(), duk_replace(), duk_require_normalize_index(), duk_safe_call(), DUK_STRIDX_UC_ERROR, index, and NULL.
DUK_EXTERNAL_DECL void duk_set_finalizer | ( | duk_context * | ctx, |
duk_idx_t | index ) |
Definition at line 14869 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT_CTX_VALID, duk_put_prop_stridx(), DUK_STRIDX_INT_FINALIZER, and index.
DUK_EXTERNAL_DECL void duk_set_global_object | ( | duk_context * | ctx | ) |
Definition at line 14047 of file duktape-1.5.2/src-noline/duktape.c.
References duk_hthread::builtins, DUK_ASSERT, DUK_BIDX_GLOBAL, DUK_BIDX_GLOBAL_ENV, DUK_D, DUK_DPRINT, duk_dup(), duk_get_hobject(), duk_get_tval(), DUK_HOBJECT_CLASS_AS_FLAGS, DUK_HOBJECT_CLASS_OBJENV, DUK_HOBJECT_DECREF_ALLOWNULL, DUK_HOBJECT_FLAG_EXTENSIBLE, DUK_HOBJECT_INCREF, duk_pop_2(), DUK_PROPDESC_FLAGS_NONE, duk_push_object_helper(), duk_require_hobject(), DUK_STRIDX_INT_TARGET, DUK_STRIDX_INT_THIS, DUK_UNREF, duk_xdef_prop_stridx(), and NULL.
Referenced by do_sandbox_test(), and do_sandbox_test().
DUK_EXTERNAL_DECL void duk_set_magic | ( | duk_context * | ctx, |
duk_idx_t | index, | ||
duk_int_t | magic ) |
Definition at line 12871 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT, DUK_ASSERT_CTX_VALID, duk_require_hnativefunction(), index, duk_hnativefunction::magic, and NULL.
DUK_EXTERNAL_DECL void duk_set_prototype | ( | duk_context * | ctx, |
duk_idx_t | index ) |
Definition at line 14828 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT, DUK_ASSERT_CTX_VALID, DUK_ERROR_TYPE, duk_get_hobject(), DUK_HEAPHDR_HAS_READONLY, DUK_HOBJECT_SET_PROTOTYPE_UPDREF, duk_pop(), duk_require_hobject(), duk_require_type_mask, DUK_STR_NOT_CONFIGURABLE, DUK_TYPE_MASK_OBJECT, DUK_TYPE_MASK_UNDEFINED, index, NULL, and proto.
DUK_EXTERNAL_DECL void duk_set_top | ( | duk_context * | ctx, |
duk_idx_t | index ) |
Definition at line 15216 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT, DUK_ASSERT_CTX_VALID, DUK_ERROR_API_INDEX, DUK_INVALID_INDEX, DUK_TVAL_IS_UNDEFINED, DUK_TVAL_SET_UNDEFINED, DUK_TVAL_SET_UNDEFINED_UPDREF, DUK_UNLIKELY, DUK_UNREF, index, duk_hthread::valstack_bottom, duk_hthread::valstack_end, and duk_hthread::valstack_top.
Referenced by duk__adjust_valstack_and_top(), duk__enc_objarr_exit(), duk__handle_call_error(), duk__handle_call_inner(), duk__js_execute_bytecode_inner(), duk__load_func(), duk__load_func(), duk__parse_func_like_fnum(), duk__reconfig_valstack_ecma_catcher(), duk__reconfig_valstack_ecma_return(), duk__safe_call_adjust_valstack(), duk_bi_array_prototype_indexof_shared(), duk_bi_array_prototype_join_shared(), duk_bi_array_prototype_reduce_shared(), duk_bi_array_prototype_splice(), duk_bi_array_prototype_to_string(), duk_bi_buffer_constructor(), duk_bi_duktape_object_dec(), duk_bi_duktape_object_enc(), duk_bi_duktape_object_fin(), duk_bi_json_stringify_helper(), duk_bi_logger_constructor(), duk_bi_nodejs_buffer_constructor(), duk_bi_number_constructor(), duk_bi_object_constructor_define_properties(), duk_bi_object_setprototype_shared(), duk_bi_pointer_constructor(), duk_bi_string_constructor(), duk_bi_thread_resume(), duk_bi_thread_yield(), duk_def_prop(), duk_hobject_delprop(), duk_hthread_create_builtin_objects(), and duk_hthread_terminate().
DUK_EXTERNAL_DECL void * duk_steal_buffer | ( | duk_context * | ctx, |
duk_idx_t | index, | ||
duk_size_t * | out_size ) |
Definition at line 11550 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT, DUK_ERROR_TYPE, DUK_HBUFFER_DYNAMIC_GET_DATA_PTR, DUK_HBUFFER_DYNAMIC_GET_SIZE, DUK_HBUFFER_DYNAMIC_SET_DATA_PTR_NULL, DUK_HBUFFER_DYNAMIC_SET_SIZE, DUK_HBUFFER_HAS_DYNAMIC, DUK_HBUFFER_HAS_EXTERNAL, duk_require_hbuffer(), DUK_STR_WRONG_BUFFER_TYPE, duk_hthread::heap, index, and NULL.
Referenced by duk__realloc_props().
DUK_EXTERNAL_DECL duk_bool_t duk_strict_equals | ( | duk_context * | ctx, |
duk_idx_t | index1, | ||
duk_idx_t | index2 ) |
Definition at line 19300 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT_CTX_VALID, duk_get_tval(), duk_js_strict_equals, and NULL.
Referenced by duk_bi_array_prototype_indexof_shared().
DUK_EXTERNAL_DECL void duk_substring | ( | duk_context * | ctx, |
duk_idx_t | index, | ||
duk_size_t | start_char_offset, | ||
duk_size_t | end_char_offset ) |
Definition at line 19721 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT, DUK_ASSERT_CTX_VALID, DUK_ASSERT_DISABLE, duk_heap_strcache_offset_char2byte(), duk_heap_string_intern_checked(), DUK_HSTRING_GET_CHARLEN, DUK_HSTRING_GET_DATA, duk_push_hstring(), duk_replace(), duk_require_hstring(), duk_require_normalize_index(), DUK_UINT32_MAX, index, and NULL.
Referenced by duk__get_own_propdesc_raw(), duk_bi_json_stringify_helper(), duk_bi_string_prototype_char_at(), duk_bi_string_prototype_slice(), duk_bi_string_prototype_substr(), duk_bi_string_prototype_substring(), and duk_hobject_getprop().
DUK_EXTERNAL_DECL void duk_suspend | ( | duk_context * | ctx, |
duk_thread_state * | state ) |
Definition at line 14071 of file duktape-1.8.0/src-noline/duktape.c.
References duk_heap::call_recursion_depth, duk_internal_thread_state::call_recursion_depth, duk_heap::curr_thread, duk_internal_thread_state::curr_thread, DUK_ASSERT, DUK_ASSERT_CTX_VALID, DUK_LJ_TYPE_UNKNOWN, DUK_MEMCPY, duk_push_tval(), DUK_TVAL_SET_UNDEFINED, duk_heap::handling_error, duk_internal_thread_state::handling_error, duk_hthread::heap, duk_ljstate::jmpbuf_ptr, duk_heap::lj, duk_internal_thread_state::lj, NULL, duk_ljstate::type, duk_ljstate::value1, and duk_ljstate::value2.
DUK_EXTERNAL_DECL void duk_swap | ( | duk_context * | ctx, |
duk_idx_t | index1, | ||
duk_idx_t | index2 ) |
Definition at line 15678 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT, DUK_ASSERT_CTX_VALID, duk_require_tval(), DUK_TVAL_SET_TVAL, and NULL.
Referenced by duk_bi_buffer_writefield(), and duk_swap_top().
DUK_EXTERNAL_DECL void duk_swap_top | ( | duk_context * | ctx, |
duk_idx_t | index ) |
Definition at line 15696 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT_CTX_VALID, duk_swap(), and index.
DUK_EXTERNAL_DECL duk_bool_t duk_to_boolean | ( | duk_context * | ctx, |
duk_idx_t | index ) |
Definition at line 16744 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT, DUK_ASSERT_CTX_VALID, duk_check_type_mask(), DUK_HINT_NONE, DUK_HINT_NUMBER, DUK_HINT_STRING, duk_js_toboolean(), duk_require_normalize_index(), duk_require_tval(), duk_to_defaultvalue(), DUK_TVAL_SET_BOOLEAN_UPDREF, DUK_TYPE_MASK_LIGHTFUNC, DUK_TYPE_MASK_OBJECT, DUK_UNREF, index, and NULL.
Referenced by duk__put_prop_shared(), duk_bi_array_prototype_iter_shared(), duk_bi_boolean_constructor(), duk_bi_buffer_readfield(), duk_bi_buffer_writefield(), duk_bi_thread_resume(), duk_bi_thread_yield(), duk_get_prop_stridx_boolean(), duk_hobject_delprop(), duk_hobject_hasprop(), duk_hobject_prepare_property_descriptor(), and duk_hobject_putprop().
DUK_EXTERNAL_DECL void * duk_to_buffer_raw | ( | duk_context * | ctx, |
duk_idx_t | index, | ||
duk_size_t * | out_size, | ||
duk_uint_t | flags ) |
Definition at line 17186 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT_CTX_VALID, DUK_BUF_MODE_DONTCARE, DUK_BUF_MODE_DYNAMIC, DUK_BUF_MODE_FIXED, duk_get_hbuffer(), DUK_HBUFFER_GET_DATA_PTR, DUK_HBUFFER_GET_SIZE, DUK_HBUFFER_HAS_DYNAMIC, DUK_HBUFFER_HAS_EXTERNAL, DUK_LIKELY, DUK_MEMCPY, duk_push_buffer, duk_replace(), duk_require_normalize_index(), duk_to_lstring(), DUK_UNREF, duk_hthread::heap, index, and NULL.
DUK_EXTERNAL_DECL void duk_to_defaultvalue | ( | duk_context * | ctx, |
duk_idx_t | index, | ||
duk_int_t | hint ) |
Definition at line 16665 of file duktape-1.5.2/src-noline/duktape.c.
References duk__defaultvalue_coerce_attempt(), DUK_ASSERT, DUK_ASSERT_CTX_VALID, duk_call_method(), duk_dup(), DUK_ERROR_TYPE, duk_get_prop_stridx(), DUK_HINT_NONE, DUK_HINT_NUMBER, DUK_HINT_STRING, DUK_HOBJECT_CLASS_DATE, DUK_HOBJECT_GET_CLASS_NUMBER, duk_is_callable, duk_is_primitive, duk_pop(), duk_replace(), duk_require_hobject_or_lfunc(), duk_require_normalize_index(), DUK_STR_DEFAULTVALUE_COERCE_FAILED, DUK_STRIDX_TO_STRING, DUK_STRIDX_VALUE_OF, index, and NULL.
Referenced by duk_js_tonumber(), duk_to_boolean(), and duk_to_primitive().
DUK_EXTERNAL_DECL duk_int_t duk_to_int | ( | duk_context * | ctx, |
duk_idx_t | index ) |
Definition at line 16809 of file duktape-1.5.2/src-noline/duktape.c.
References duk__api_coerce_d2i(), duk__to_int_uint_helper(), DUK_ASSERT_CTX_VALID, duk_js_tointeger(), and index.
Referenced by duk__clamp_startend_negidx_shifted(), duk__init_varmap_and_prologue_for_pass2(), duk__lookup_active_register_binding(), duk__nud_object_literal_key_check(), duk__parse_func_like_fnum(), duk__regexp_match_helper(), duk__resolve_offset_opt_length(), duk__twodigit_year_fixup(), duk_bi_arraybuffer_constructor(), duk_bi_buffer_constructor(), duk_bi_buffer_readfield(), duk_bi_buffer_writefield(), duk_bi_duktape_object_act(), duk_bi_function_prototype_bind(), duk_bi_nodejs_buffer_concat(), duk_bi_nodejs_buffer_copy(), duk_bi_number_prototype_to_exponential(), duk_bi_number_prototype_to_precision(), duk_bi_string_prototype_char_at(), duk_bi_typedarray_constructor(), duk_bi_typedarray_set(), ncurses_mvprintw(), ncurses_mvprintw(), poll_poll(), poll_poll(), socket_accept(), socket_accept(), socket_close(), socket_close(), socket_connect(), socket_connect(), socket_create_server_socket(), socket_create_server_socket(), socket_read(), socket_read(), socket_write(), and socket_write().
DUK_EXTERNAL_DECL duk_int32_t duk_to_int32 | ( | duk_context * | ctx, |
duk_idx_t | index ) |
Definition at line 16827 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT, DUK_ASSERT_CTX_VALID, duk_js_toint32(), duk_require_tval(), DUK_TVAL_SET_FASTINT_I32_UPDREF, index, and NULL.
Referenced by duk__vm_bitwise_binary_op(), duk__vm_bitwise_not(), duk_bi_global_object_parse_int(), and duk_hbufferobject_validated_write().
DUK_EXTERNAL_DECL const char * duk_to_lstring | ( | duk_context * | ctx, |
duk_idx_t | index, | ||
duk_size_t * | out_len ) |
Definition at line 16915 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT_CTX_VALID, duk_require_lstring(), duk_to_string(), and index.
Referenced by duk__base64_encode_helper(), duk__prep_codec_arg(), duk_bi_global_object_print_helper(), duk_bi_logger_prototype_log_shared(), duk_bi_nodejs_buffer_byte_length(), and duk_to_buffer_raw().
DUK_EXTERNAL_DECL void duk_to_null | ( | duk_context * | ctx, |
duk_idx_t | index ) |
Definition at line 16716 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT, DUK_ASSERT_CTX_VALID, duk_require_tval(), DUK_TVAL_SET_NULL_UPDREF, DUK_UNREF, index, and NULL.
DUK_EXTERNAL_DECL duk_double_t duk_to_number | ( | duk_context * | ctx, |
duk_idx_t | index ) |
Definition at line 16766 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT, DUK_ASSERT_CTX_VALID, duk_js_tonumber(), duk_require_tval(), DUK_TVAL_SET_NUMBER_UPDREF, index, and NULL.
Referenced by adder(), duk__array_sort_compare(), duk__enc_value(), duk__error_getter_helper(), duk__fmin_fixed(), duk__js_execute_bytecode_inner(), duk__math_minmax(), duk__push_this_get_timeval_tzoffset(), duk__set_part_helper(), duk__set_parts_from_args(), duk__to_new_array_length_checked(), duk__twodigit_year_fixup(), duk__vm_arith_add(), duk__vm_arith_binary_op(), duk__vm_arith_unary_op(), duk_bi_buffer_writefield(), duk_bi_date_constructor(), duk_bi_date_prototype_set_time(), duk_bi_global_object_decode_uri(), duk_bi_global_object_is_finite(), duk_bi_global_object_is_nan(), duk_bi_json_stringify_helper(), duk_bi_math_object_onearg_shared(), duk_bi_math_object_twoarg_shared(), duk_bi_number_constructor(), duk_bi_string_prototype_indexof_shared(), duk_hbufferobject_validated_write(), duk_hobject_get_length(), duk_hobject_putprop(), duk_js_compare_helper(), duk_js_equals_helper(), duk_lexer_parse_js_input_element(), and duk_to_uint8clamped().
DUK_EXTERNAL_DECL void duk_to_object | ( | duk_context * | ctx, |
duk_idx_t | index ) |
Definition at line 17299 of file duktape-1.5.2/src-noline/duktape.c.
References duk_hbufferobject::buf, duk__push_c_function_raw(), DUK_ASSERT, DUK_ASSERT_CTX_VALID, DUK_ASSERT_HBUFFEROBJECT_VALID, DUK_BIDX_BOOLEAN_PROTOTYPE, DUK_BIDX_BUFFER_PROTOTYPE, DUK_BIDX_NUMBER_PROTOTYPE, DUK_BIDX_POINTER_PROTOTYPE, DUK_BIDX_STRING_PROTOTYPE, duk_dup(), DUK_ERROR_TYPE, duk_get_hnativefunction(), DUK_HBUFFER_GET_SIZE, DUK_HBUFFER_INCREF, DUK_HBUFFEROBJECT_ELEM_UINT8, DUK_HOBJECT_CLASS_AS_FLAGS, DUK_HOBJECT_CLASS_BOOLEAN, DUK_HOBJECT_CLASS_BUFFER, DUK_HOBJECT_CLASS_FUNCTION, DUK_HOBJECT_CLASS_NUMBER, DUK_HOBJECT_CLASS_POINTER, DUK_HOBJECT_CLASS_STRING, DUK_HOBJECT_FLAG_BUFFEROBJECT, DUK_HOBJECT_FLAG_CONSTRUCTABLE, DUK_HOBJECT_FLAG_EXOTIC_STRINGOBJ, DUK_HOBJECT_FLAG_EXTENSIBLE, DUK_HOBJECT_FLAG_NATIVEFUNCTION, DUK_HOBJECT_FLAG_NEWENV, DUK_HOBJECT_FLAG_NOTAIL, DUK_HOBJECT_FLAG_STRICT, DUK_HOBJECT_HAS_EXTENSIBLE, DUK_HOBJECT_IS_BUFFEROBJECT, DUK_HOBJECT_SET_EXOTIC_DUKFUNC, DUK_LFUNC_FLAGS_GET_LENGTH, DUK_LFUNC_FLAGS_GET_MAGIC, DUK_LFUNC_FLAGS_GET_NARGS, DUK_LFUNC_NARGS_VARARGS, DUK_PROPDESC_FLAGS_NONE, duk_push_bufferobject_raw(), duk_push_int(), duk_push_lightfunc_name(), duk_push_object_helper(), duk_replace(), duk_require_normalize_index(), duk_require_tval(), DUK_STR_NOT_OBJECT_COERCIBLE, DUK_STRIDX_INT_VALUE, DUK_STRIDX_LENGTH, DUK_STRIDX_NAME, DUK_TAG_BOOLEAN, DUK_TAG_BUFFER, DUK_TAG_LIGHTFUNC, DUK_TAG_NULL, DUK_TAG_OBJECT, DUK_TAG_POINTER, DUK_TAG_STRING, DUK_TAG_UNDEFINED, DUK_TVAL_GET_BUFFER, DUK_TVAL_GET_LIGHTFUNC, DUK_TVAL_GET_TAG, DUK_TVAL_IS_NUMBER, DUK_TVAL_IS_UNUSED, DUK_VARARGS, duk_xdef_prop_stridx(), duk_hbufferobject::elem_type, index, duk_hbufferobject::length, duk_hnativefunction::magic, NULL, duk_hbufferobject::offset, proto, and duk_hbufferobject::shift.
Referenced by duk__coerce_effective_this_binding(), duk__js_execute_bytecode_inner(), duk_bi_array_prototype_join_shared(), duk_bi_date_prototype_to_json(), duk_bi_object_constructor(), duk_bi_object_constructor_define_properties(), duk_bi_object_getprototype_shared(), duk_get_hobject_or_lfunc_coerce(), duk_get_hobject_with_class(), duk_push_this_coercible_to_object(), duk_require_hobject_or_lfunc_coerce(), and duk_to_object_class_string_top().
DUK_EXTERNAL_DECL void * duk_to_pointer | ( | duk_context * | ctx, |
duk_idx_t | index ) |
Definition at line 17248 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT, DUK_ASSERT_CTX_VALID, DUK_MEMCPY, duk_push_pointer(), duk_replace(), duk_require_normalize_index(), duk_require_tval(), DUK_TAG_BOOLEAN, DUK_TAG_BUFFER, DUK_TAG_LIGHTFUNC, DUK_TAG_NULL, DUK_TAG_OBJECT, DUK_TAG_POINTER, DUK_TAG_STRING, DUK_TAG_UNDEFINED, DUK_TVAL_GET_HEAPHDR, DUK_TVAL_GET_POINTER, DUK_TVAL_GET_TAG, DUK_TVAL_IS_NUMBER, DUK_TVAL_IS_UNUSED, index, and NULL.
Referenced by duk_bi_pointer_constructor().
DUK_EXTERNAL_DECL void duk_to_primitive | ( | duk_context * | ctx, |
duk_idx_t | index, | ||
duk_int_t | hint ) |
Definition at line 16729 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT, DUK_ASSERT_CTX_VALID, duk_check_type_mask(), DUK_HINT_NONE, DUK_HINT_NUMBER, DUK_HINT_STRING, duk_require_normalize_index(), duk_to_defaultvalue(), DUK_TYPE_MASK_LIGHTFUNC, DUK_TYPE_MASK_OBJECT, and index.
Referenced by duk__vm_arith_add(), duk_bi_date_constructor(), duk_bi_date_prototype_to_json(), duk_js_compare_helper(), duk_js_equals_helper(), and duk_to_string().
DUK_EXTERNAL_DECL const char * duk_to_string | ( | duk_context * | ctx, |
duk_idx_t | index ) |
Definition at line 17089 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT, DUK_ASSERT_CTX_VALID, DUK_ERROR_RANGE, DUK_HBUFFER_GET_DATA_PTR, DUK_HBUFFER_GET_SIZE, DUK_HINT_STRING, duk_numconv_stringify(), duk_push_hstring_stridx(), duk_push_lightfunc_tostring(), duk_push_lstring(), duk_push_sprintf(), duk_push_tval(), duk_replace(), duk_require_normalize_index(), duk_require_string(), duk_require_tval(), DUK_STR_FMT_PTR, DUK_STR_NUMBER_OUTSIDE_RANGE, DUK_STRIDX_FALSE, DUK_STRIDX_LC_NULL, DUK_STRIDX_LC_UNDEFINED, DUK_STRIDX_TRUE, DUK_TAG_BOOLEAN, DUK_TAG_BUFFER, DUK_TAG_LIGHTFUNC, DUK_TAG_NULL, DUK_TAG_OBJECT, DUK_TAG_POINTER, DUK_TAG_STRING, DUK_TAG_UNDEFINED, duk_to_primitive(), duk_to_string(), DUK_TVAL_GET_BOOLEAN, DUK_TVAL_GET_BUFFER, DUK_TVAL_GET_POINTER, DUK_TVAL_GET_TAG, DUK_TVAL_IS_NUMBER, DUK_TVAL_IS_UNUSED, DUK_UNREF, duk_hthread::heap, index, and NULL.
Referenced by duk__concat_and_join_helper(), duk__create_arguments_object(), duk__create_escaped_source(), duk__dec_reviver_walk(), duk__dec_string(), duk__enc_array(), duk__enc_value(), duk__nud_object_literal(), duk__parse_func_like_raw(), duk__push_string(), duk__push_tval_to_hstring_arr_idx(), duk__regexp_match_helper(), duk__safe_to_string_raw(), duk__transform_helper(), duk__vm_arith_add(), duk_base64_encode(), duk_bi_array_prototype_join_shared(), duk_bi_boolean_prototype_tostring_shared(), duk_bi_buffer_prototype_tostring_shared(), duk_bi_date_constructor(), duk_bi_date_constructor_parse(), duk_bi_error_constructor_shared(), duk_bi_error_prototype_to_string(), duk_bi_function_constructor(), duk_bi_function_prototype_to_string(), duk_bi_global_object_parse_float(), duk_bi_global_object_parse_int(), duk_bi_json_stringify_helper(), duk_bi_logger_prototype_fmt(), duk_bi_logger_prototype_log_shared(), duk_bi_nodejs_buffer_is_encoding(), duk_bi_nodejs_buffer_tostring(), duk_bi_number_prototype_to_exponential(), duk_bi_number_prototype_to_fixed(), duk_bi_number_prototype_to_precision(), duk_bi_object_constructor_define_property(), duk_bi_pointer_prototype_tostring_shared(), duk_bi_proxy_constructor(), duk_bi_regexp_constructor(), duk_bi_string_constructor(), duk_bi_string_constructor_from_char_code(), duk_bi_string_prototype_replace(), duk_bi_string_prototype_split(), duk_hex_encode(), duk_hobject_delprop(), duk_hobject_object_get_own_property_descriptor(), duk_js_equals_helper(), duk_js_in(), duk_js_tonumber(), duk_map_string(), duk_push_string_file_raw(), duk_push_string_tval_readable(), duk_push_this_coercible_to_string(), duk_regexp_compile(), duk_to_hstring(), duk_to_lstring(), duk_to_string(), duk_unicode_case_convert_string(), eventloop_run(), expire_timers(), expire_timers(), fileio_readfile(), fileio_readfile(), main(), ncurses_mvprintw(), ncurses_mvprintw(), ncurses_printw(), ncurses_printw(), print_error(), print_error(), socket_connect(), socket_connect(), socket_create_server_socket(), socket_create_server_socket(), tostring_raw(), tostring_raw(), wrapped_compile_execute(), wrapped_compile_execute(), and wrapped_compile_execute().
DUK_EXTERNAL_DECL duk_uint_t duk_to_uint | ( | duk_context * | ctx, |
duk_idx_t | index ) |
Definition at line 16818 of file duktape-1.5.2/src-noline/duktape.c.
References duk__api_coerce_d2ui(), duk__to_int_uint_helper(), DUK_ASSERT_CTX_VALID, duk_js_tointeger(), and index.
Referenced by duk__pnew_helper().
DUK_EXTERNAL_DECL duk_uint16_t duk_to_uint16 | ( | duk_context * | ctx, |
duk_idx_t | index ) |
Definition at line 16861 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT, DUK_ASSERT_CTX_VALID, duk_js_touint16(), duk_js_touint32(), duk_require_tval(), DUK_TVAL_SET_FASTINT_U32_UPDREF, index, and NULL.
Referenced by duk_bi_string_constructor_from_char_code().
DUK_EXTERNAL_DECL duk_uint32_t duk_to_uint32 | ( | duk_context * | ctx, |
duk_idx_t | index ) |
Definition at line 16844 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT, DUK_ASSERT_CTX_VALID, duk_js_toint32(), duk_js_touint32(), duk_require_tval(), DUK_TVAL_SET_FASTINT_I32_UPDREF, DUK_TVAL_SET_FASTINT_U32_UPDREF, index, and NULL.
Referenced by duk__push_this_obj_len_u32(), duk__push_this_obj_len_u32_limited(), duk_bi_array_constructor(), duk_bi_buffer_writefield(), duk_bi_function_prototype_apply(), duk_bi_nodejs_buffer_constructor(), duk_bi_nodejs_buffer_fill(), duk_bi_string_constructor_from_char_code(), duk_bi_string_prototype_split(), duk_hbufferobject_validated_write(), and duk_hobject_putprop().
DUK_EXTERNAL_DECL void duk_to_undefined | ( | duk_context * | ctx, |
duk_idx_t | index ) |
Definition at line 16704 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT, DUK_ASSERT_CTX_VALID, duk_require_tval(), DUK_STRIDX_TO_STRING, DUK_STRIDX_VALUE_OF, DUK_TVAL_SET_UNDEFINED_UPDREF, DUK_UNREF, index, and NULL.
Referenced by duk__js_execute_bytecode_inner(), duk_hobject_getprop(), and duk_lexer_parse_js_input_element().
DUK_EXTERNAL_DECL void duk_trim | ( | duk_context * | ctx, |
duk_idx_t | index ) |
Definition at line 19768 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT, DUK_ASSERT_CTX_VALID, DUK_DDD, DUK_DDDPRINT, DUK_HSTRING_GET_BYTELEN, DUK_HSTRING_GET_DATA, duk_push_lstring(), duk_replace(), duk_require_hstring(), duk_require_normalize_index(), duk_unicode_decode_xutf8_checked(), duk_unicode_is_line_terminator(), duk_unicode_is_whitespace(), index, and NULL.
Referenced by duk_bi_string_prototype_trim(), and duk_numconv_parse().
DUK_EXTERNAL_DECL void duk_xcopymove_raw | ( | duk_context * | to_ctx, |
duk_context * | from_ctx, | ||
duk_idx_t | count, | ||
duk_bool_t | is_copy ) |
Definition at line 15864 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT, DUK_ASSERT_CTX_VALID, DUK_ERROR_API, DUK_MEMCPY, DUK_STR_INVALID_CONTEXT, DUK_STR_INVALID_COUNT, DUK_STR_PUSH_BEYOND_ALLOC_STACK, DUK_TVAL_INCREF, DUK_TVAL_SET_UNDEFINED, NULL, duk_hthread::valstack_bottom, duk_hthread::valstack_end, duk_hthread::valstack_max, and duk_hthread::valstack_top.
DUK_EXTERNAL_DECL const char* duk_api_global_filename |
Definition at line 392 of file duktape-1.8.0/src/duktape.h.
DUK_EXTERNAL_DECL duk_int_t duk_api_global_line |
Definition at line 393 of file duktape-1.8.0/src/duktape.h.