libgpac
Documentation of the core library of GPAC
quickjs.c File Reference
#include <stdlib.h>
#include <stdio.h>
#include <stdarg.h>
#include <inttypes.h>
#include <string.h>
#include <assert.h>
#include <sys/time.h>
#include <time.h>
#include <fenv.h>
#include <math.h>
#include "cutils.h"
#include "list.h"
#include "quickjs.h"
#include "libregexp.h"
#include <pthread.h>
#include <stdatomic.h>
#include <errno.h>
#include "quickjs-atom.h"
#include "quickjs-opcode.h"
+ Include dependency graph for quickjs.c:

Data Structures

struct  JSRuntime
 
struct  JSClass
 
struct  JSStackFrame
 
struct  JSGCObjectHeader
 
struct  JSVarRef
 
struct  JSContext
 
union  JSFloat64Union
 
struct  JSAtomStruct
 
struct  JSClosureVar
 
struct  JSVarScope
 
struct  JSVarDef
 
struct  JSFunctionBytecode
 
struct  JSBoundFunction
 
struct  JSForInIterator
 
struct  JSRegExp
 
struct  JSProxyData
 
struct  JSArrayBuffer
 
struct  JSTypedArray
 
struct  JSAsyncFunctionState
 
struct  JSAsyncFunctionData
 
struct  JSBinaryOperatorDefEntry
 
struct  JSBinaryOperatorDef
 
struct  JSOperatorSetData
 
struct  JSReqModuleEntry
 
struct  JSExportEntry
 
struct  JSStarExportEntry
 
struct  JSImportEntry
 
struct  JSModuleDef
 
struct  JSJobEntry
 
struct  JSProperty
 
struct  JSShapeProperty
 
struct  JSShape
 
struct  JSObject
 
struct  JSClassShortDef
 
struct  StringBuffer
 
struct  JSCFunctionDataRecord
 
struct  JSMemoryUsage_helper
 
struct  JSGeneratorData
 
struct  JSAsyncGeneratorRequest
 
struct  JSAsyncGeneratorData
 
struct  BlockEnv
 
struct  JSGlobalVar
 
struct  RelocEntry
 
struct  JumpSlot
 
struct  LabelSlot
 
struct  LineNumberSlot
 
struct  JSFunctionDef
 
struct  JSToken
 
struct  JSParseState
 
struct  JSOpCode
 
struct  JSParsePos
 
struct  ClassFieldsDef
 
struct  JSResolveEntry
 
struct  JSResolveState
 
struct  ExportedNameEntry
 
struct  GetExportNamesState
 
struct  CodeContext
 
struct  StackSizeState
 
struct  JSObjectListEntry
 
struct  JSObjectList
 
struct  BCWriterState
 
struct  BCReaderState
 
struct  ValueSlot
 
struct  array_sort_context
 
struct  JSArrayIteratorData
 
struct  JSRegExpStringIteratorData
 
struct  ValueBuffer
 
struct  JSONStringifyContext
 
struct  JSMapRecord
 
struct  JSMapState
 
struct  JSMapIteratorData
 
struct  JSPromiseData
 
struct  JSPromiseFunctionDataResolved
 
struct  JSPromiseFunctionData
 
struct  JSPromiseReactionData
 
struct  JSAsyncFromSyncIteratorData
 
struct  TA_sort_context
 
struct  JSAtomicsWaiter
 
union  JSVarRef.__unnamed396__
 
struct  JSVarRef.__unnamed396__.__unnamed398__
 
union  JSString.u
 
struct  JSFunctionBytecode.debug
 
union  JSExportEntry.u
 
struct  JSExportEntry.u.local
 
union  JSProperty.u
 
struct  JSProperty.u.getset
 
struct  JSProperty.u.init
 
union  JSObject.__unnamed407__
 
struct  JSObject.__unnamed407__.__unnamed410__
 
union  JSObject.u
 
struct  JSObject.u.func
 
struct  JSObject.u.cfunc
 
struct  JSObject.u.array
 
union  JSObject.u.array.u1
 
union  JSObject.u.array.u
 
union  JSToken.u
 
struct  JSToken.u.str
 
struct  JSToken.u.num
 
struct  JSToken.u.ident
 
struct  JSToken.u.regexp
 
union  ExportedNameEntry.u
 

Macros

#define OPTIMIZE   1
 
#define SHORT_OPCODES   1
 
#define DIRECT_DISPATCH   1
 
#define MALLOC_OVERHEAD   8
 
#define CONFIG_PRINTF_RNDN
 
#define CONFIG_ATOMICS
 
#define DUMP_LEAKS   1
 
#define CONFIG_VERSION   "2020-11-08-rc2"
 
#define JS_TYPED_ARRAY_COUNT   (JS_CLASS_FLOAT64_ARRAY - JS_CLASS_UINT8C_ARRAY + 1)
 
#define typed_array_size_log2(classid)   (typed_array_size_log2[(classid)- JS_CLASS_UINT8C_ARRAY])
 
#define JS_MAX_LOCAL_VARS   65536
 
#define JS_STACK_SIZE_MAX   65534
 
#define JS_STRING_LEN_MAX   ((1 << 30) - 1)
 
#define __exception   __attribute__((warn_unused_result))
 
#define JS_MODE_STRICT   (1 << 0)
 
#define JS_MODE_STRIP   (1 << 1)
 
#define JS_MODE_MATH   (1 << 2)
 
#define JS_INTERRUPT_COUNTER_INIT   10000
 
#define JS_ATOM_HASH_MASK   ((1 << 30) - 1)
 
#define ARG_SCOPE_INDEX   1
 
#define ARG_SCOPE_END   (-2)
 
#define PC2LINE_BASE   (-1)
 
#define PC2LINE_RANGE   5
 
#define PC2LINE_OP_FIRST   1
 
#define PC2LINE_DIFF_PC_MAX   ((255 - PC2LINE_OP_FIRST) / PC2LINE_RANGE)
 
#define JS_PROP_INITIAL_SIZE   2
 
#define JS_PROP_INITIAL_HASH_SIZE   4 /* must be a power of two */
 
#define JS_ARRAY_INITIAL_SIZE   2
 
#define DEF(name, str)   JS_ATOM_ ## name,
 
#define JS_ATOM_LAST_KEYWORD   JS_ATOM_super
 
#define JS_ATOM_LAST_STRICT_KEYWORD   JS_ATOM_yield
 
#define DEF(name, str)   str "\0"
 
#define FMT(f)   OP_FMT_ ## f,
 
#define DEF(id, size, n_pop, n_push, f)
 
#define FMT(f)
 
#define DEF(id, size, n_pop, n_push, f)   OP_ ## id,
 
#define def(id, size, n_pop, n_push, f)
 
#define FMT(f)
 
#define DEF(id, size, n_pop, n_push, f)
 
#define def(id, size, n_pop, n_push, f)   OP_ ## id,
 
#define malloc(s)   malloc_is_forbidden(s)
 
#define free(p)   free_is_forbidden(p)
 
#define realloc(p, s)   realloc_is_forbidden(p,s)
 
#define JS_ATOM_TAG_INT   (1U << 31)
 
#define JS_ATOM_MAX_INT   (JS_ATOM_TAG_INT - 1)
 
#define JS_ATOM_MAX   ((1U << 30) - 1)
 
#define JS_ATOM_COUNT_RESIZE(n)   ((n) * 2)
 
#define ATOM_GET_STR_BUF_SIZE   64
 
#define JS_BACKTRACE_FLAG_SKIP_FIRST_LEVEL   (1 << 0)
 
#define JS_BACKTRACE_FLAG_SINGLE_LEVEL   (1 << 1)
 
#define JS_ThrowTypeErrorAtom(ctx, fmt, atom)   __JS_ThrowTypeErrorAtom(ctx, atom, fmt, "")
 
#define JS_ThrowSyntaxErrorAtom(ctx, fmt, atom)   __JS_ThrowSyntaxErrorAtom(ctx, atom, fmt, "")
 
#define DEFINE_GLOBAL_LEX_VAR   (1 << 7)
 
#define DEFINE_GLOBAL_FUNC_VAR   (1 << 6)
 
#define HINT_STRING   0
 
#define HINT_NUMBER   1
 
#define HINT_NONE   2
 
#define HINT_FORCE_ORDINARY   (1 << 4)
 
#define ATOD_INT_ONLY   (1 << 0)
 
#define ATOD_ACCEPT_BIN_OCT   (1 << 2)
 
#define ATOD_ACCEPT_LEGACY_OCTAL   (1 << 4)
 
#define ATOD_ACCEPT_UNDERSCORES   (1 << 5)
 
#define ATOD_ACCEPT_SUFFIX   (1 << 6)
 
#define ATOD_TYPE_MASK   (3 << 7)
 
#define ATOD_TYPE_FLOAT64   (0 << 7)
 
#define ATOD_TYPE_BIG_INT   (1 << 7)
 
#define ATOD_TYPE_BIG_FLOAT   (2 << 7)
 
#define ATOD_TYPE_BIG_DECIMAL   (3 << 7)
 
#define ATOD_MODE_BIGINT   (1 << 9)
 
#define ATOD_ACCEPT_PREFIX_AFTER_SIGN   (1 << 10)
 
#define MAX_SAFE_INTEGER   (((int64_t)1 << 53) - 1)
 
#define JS_DTOA_BUF_SIZE   128
 
#define JS_DTOA_VAR_FORMAT   (0 << 0)
 
#define JS_DTOA_FIXED_FORMAT   (1 << 0)
 
#define JS_DTOA_FRAC_FORMAT   (2 << 0)
 
#define JS_DTOA_FORCE_EXP   (1 << 2)
 
#define GLOBAL_VAR_OFFSET   0x40000000
 
#define ARGUMENT_VAR_OFFSET   0x20000000
 
#define JS_DEFINE_CLASS_HAS_HERITAGE   (1 << 0)
 
#define JS_CALL_FLAG_COPY_ARGV   (1 << 1)
 
#define JS_CALL_FLAG_GENERATOR   (1 << 2)
 
#define FUNC_RET_AWAIT   0
 
#define FUNC_RET_YIELD   1
 
#define FUNC_RET_YIELD_STAR   2
 
#define DEF(id, size, n_pop, n_push, f)   && case_OP_ ## id,
 
#define def(id, size, n_pop, n_push, f)
 
#define SWITCH(pc)   goto *dispatch_table[opcode = *pc++];
 
#define CASE(op)   case_ ## op
 
#define DEFAULT   case_default
 
#define BREAK   SWITCH(pc)
 
#define JS_THROW_VAR_RO   0
 
#define JS_THROW_VAR_REDECL   1
 
#define JS_THROW_VAR_UNINITIALIZED   2
 
#define JS_THROW_ERROR_DELETE_SUPER   3
 
#define JS_THROW_ERROR_ITERATOR_THROW   4
 
#define OP_DEFINE_METHOD_METHOD   0
 
#define OP_DEFINE_METHOD_GETTER   1
 
#define OP_DEFINE_METHOD_SETTER   2
 
#define OP_DEFINE_METHOD_ENUMERABLE   4
 
#define OP_CMP(opcode, binary_op, slow_call)
 
#define GEN_MAGIC_NEXT   0
 
#define GEN_MAGIC_RETURN   1
 
#define GEN_MAGIC_THROW   2
 
#define TOK_FIRST_KEYWORD   TOK_NULL
 
#define TOK_LAST_KEYWORD   TOK_AWAIT
 
#define CP_NBSP   0x00a0
 
#define CP_BOM   0xfeff
 
#define CP_LS   0x2028
 
#define CP_PS   0x2029
 
#define FMT(f)
 
#define DEF(id, size, n_pop, n_push, f)   { size, n_pop, n_push, OP_FMT_ ## f },
 
#define short_opcode_info(op)
 
#define PROP_TYPE_IDENT   0
 
#define PROP_TYPE_VAR   1
 
#define PROP_TYPE_GET   2
 
#define PROP_TYPE_SET   3
 
#define PROP_TYPE_STAR   4
 
#define PROP_TYPE_ASYNC   5
 
#define PROP_TYPE_ASYNC_STAR   6
 
#define PROP_TYPE_PRIVATE   (1 << 4)
 
#define SKIP_HAS_SEMI   (1 << 0)
 
#define SKIP_HAS_ELLIPSIS   (1 << 1)
 
#define SKIP_HAS_ASSIGNMENT   (1 << 2)
 
#define PF_IN_ACCEPTED   (1 << 0)
 
#define PF_POSTFIX_CALL   (1 << 1)
 
#define PF_ARROW_FUNC   (1 << 2)
 
#define PF_POW_ALLOWED   (1 << 3)
 
#define PF_POW_FORBIDDEN   (1 << 4)
 
#define DECL_MASK_FUNC   (1 << 0) /* allow normal function declaration */
 
#define DECL_MASK_FUNC_WITH_LABEL   (1 << 1)
 
#define DECL_MASK_OTHER   (1 << 2) /* all other declarations */
 
#define DECL_MASK_ALL   (DECL_MASK_FUNC | DECL_MASK_FUNC_WITH_LABEL | DECL_MASK_OTHER)
 
#define M2(op1, op2)   ((op1) | (((uint32_t) op2) << 8))
 
#define M3(op1, op2, op3)   ((op1) | (((uint32_t) op2) << 8) | (((uint32_t) op3) << 16))
 
#define M4(op1, op2, op3, op4)   ((op1) | (((uint32_t) op2) << 8) | (((uint32_t) op3) << 16) | (((uint32_t) op4) << 24))
 
#define BC_BASE_VERSION   1
 
#define BC_BE_VERSION   0x40
 
#define BC_VERSION   BC_BASE_VERSION
 
#define bc_read_trace(...)
 
#define special_every   0
 
#define special_some   1
 
#define special_forEach   2
 
#define special_map   3
 
#define special_filter   4
 
#define special_TA   8
 
#define special_reduce   0
 
#define special_reduceRight   1
 
#define MAGIC_SET   (1 << 0)
 
#define MAGIC_WEAK   (1 << 1)
 
#define PROMISE_MAGIC_all   0
 
#define PROMISE_MAGIC_allSettled   1
 
#define PROMISE_MAGIC_any   2
 
#define special_indexOf   0
 
#define special_lastIndexOf   1
 
#define special_includes   -1
 
#define OP(op_name, func_name)
 

Typedefs

typedef enum OPCodeEnum OPCodeEnum
 
typedef JSValue JSAutoInitFunc(JSContext *ctx, JSObject *p, JSAtom atom, void *opaque)
 

Enumerations

enum  {
  JS_CLASS_OBJECT = 1 , JS_CLASS_ARRAY , JS_CLASS_ERROR , JS_CLASS_NUMBER ,
  JS_CLASS_STRING , JS_CLASS_BOOLEAN , JS_CLASS_SYMBOL , JS_CLASS_ARGUMENTS ,
  JS_CLASS_MAPPED_ARGUMENTS , JS_CLASS_DATE , JS_CLASS_MODULE_NS , JS_CLASS_C_FUNCTION ,
  JS_CLASS_BYTECODE_FUNCTION , JS_CLASS_BOUND_FUNCTION , JS_CLASS_C_FUNCTION_DATA , JS_CLASS_GENERATOR_FUNCTION ,
  JS_CLASS_FOR_IN_ITERATOR , JS_CLASS_REGEXP , JS_CLASS_ARRAY_BUFFER , JS_CLASS_SHARED_ARRAY_BUFFER ,
  JS_CLASS_UINT8C_ARRAY , JS_CLASS_INT8_ARRAY , JS_CLASS_UINT8_ARRAY , JS_CLASS_INT16_ARRAY ,
  JS_CLASS_UINT16_ARRAY , JS_CLASS_INT32_ARRAY , JS_CLASS_UINT32_ARRAY , JS_CLASS_FLOAT32_ARRAY ,
  JS_CLASS_FLOAT64_ARRAY , JS_CLASS_DATAVIEW , JS_CLASS_MAP , JS_CLASS_SET ,
  JS_CLASS_WEAKMAP , JS_CLASS_WEAKSET , JS_CLASS_MAP_ITERATOR , JS_CLASS_SET_ITERATOR ,
  JS_CLASS_ARRAY_ITERATOR , JS_CLASS_STRING_ITERATOR , JS_CLASS_REGEXP_STRING_ITERATOR , JS_CLASS_GENERATOR ,
  JS_CLASS_PROXY , JS_CLASS_PROMISE , JS_CLASS_PROMISE_RESOLVE_FUNCTION , JS_CLASS_PROMISE_REJECT_FUNCTION ,
  JS_CLASS_ASYNC_FUNCTION , JS_CLASS_ASYNC_FUNCTION_RESOLVE , JS_CLASS_ASYNC_FUNCTION_REJECT , JS_CLASS_ASYNC_FROM_SYNC_ITERATOR ,
  JS_CLASS_ASYNC_GENERATOR_FUNCTION , JS_CLASS_ASYNC_GENERATOR , JS_CLASS_INIT_COUNT
}
 
enum  JSErrorEnum {
  JS_EVAL_ERROR , JS_RANGE_ERROR , JS_REFERENCE_ERROR , JS_SYNTAX_ERROR ,
  JS_TYPE_ERROR , JS_URI_ERROR , JS_INTERNAL_ERROR , JS_AGGREGATE_ERROR ,
  JS_NATIVE_ERROR_COUNT
}
 
enum  JSGCPhaseEnum { JS_GC_PHASE_NONE , JS_GC_PHASE_DECREF , JS_GC_PHASE_REMOVE_CYCLES }
 
enum  JSGCObjectTypeEnum {
  JS_GC_OBJ_TYPE_JS_OBJECT , JS_GC_OBJ_TYPE_FUNCTION_BYTECODE , JS_GC_OBJ_TYPE_SHAPE , JS_GC_OBJ_TYPE_VAR_REF ,
  JS_GC_OBJ_TYPE_ASYNC_FUNCTION , JS_GC_OBJ_TYPE_JS_CONTEXT
}
 
enum  JSAutoInitIDEnum { JS_AUTOINIT_ID_PROTOTYPE , JS_AUTOINIT_ID_MODULE_NS , JS_AUTOINIT_ID_PROP }
 
enum  { JS_ATOM_TYPE_STRING = 1 , JS_ATOM_TYPE_GLOBAL_SYMBOL , JS_ATOM_TYPE_SYMBOL , JS_ATOM_TYPE_PRIVATE }
 
enum  { JS_ATOM_HASH_SYMBOL , JS_ATOM_HASH_PRIVATE }
 
enum  JSAtomKindEnum { JS_ATOM_KIND_STRING , JS_ATOM_KIND_SYMBOL , JS_ATOM_KIND_PRIVATE }
 
enum  JSVarKindEnum {
  JS_VAR_NORMAL , JS_VAR_FUNCTION_DECL , JS_VAR_NEW_FUNCTION_DECL , JS_VAR_CATCH ,
  JS_VAR_FUNCTION_NAME , JS_VAR_PRIVATE_FIELD , JS_VAR_PRIVATE_METHOD , JS_VAR_PRIVATE_GETTER ,
  JS_VAR_PRIVATE_SETTER , JS_VAR_PRIVATE_GETTER_SETTER
}
 
enum  JSFunctionKindEnum { JS_FUNC_NORMAL = 0 , JS_FUNC_GENERATOR = (1 << 0) , JS_FUNC_ASYNC = (1 << 1) , JS_FUNC_ASYNC_GENERATOR = (JS_FUNC_GENERATOR | JS_FUNC_ASYNC) }
 
enum  JSIteratorKindEnum { JS_ITERATOR_KIND_KEY , JS_ITERATOR_KIND_VALUE , JS_ITERATOR_KIND_KEY_AND_VALUE }
 
enum  JSOverloadableOperatorEnum {
  JS_OVOP_ADD , JS_OVOP_SUB , JS_OVOP_MUL , JS_OVOP_DIV ,
  JS_OVOP_MOD , JS_OVOP_POW , JS_OVOP_OR , JS_OVOP_AND ,
  JS_OVOP_XOR , JS_OVOP_SHL , JS_OVOP_SAR , JS_OVOP_SHR ,
  JS_OVOP_EQ , JS_OVOP_LESS , JS_OVOP_BINARY_COUNT , JS_OVOP_POS = JS_OVOP_BINARY_COUNT ,
  JS_OVOP_NEG , JS_OVOP_INC , JS_OVOP_DEC , JS_OVOP_NOT ,
  JS_OVOP_COUNT
}
 
enum  JSExportTypeEnum { JS_EXPORT_TYPE_LOCAL , JS_EXPORT_TYPE_INDIRECT }
 
enum  { __JS_ATOM_NULL = JS_ATOM_NULL , JS_ATOM_END }
 
enum  OPCodeFormat
 
enum  OPCodeEnum { OP_COUNT , OP_TEMP_START = OP_nop + 1 , OP___dummy = OP_TEMP_START - 1 , OP_TEMP_END }
 
enum  JSFreeModuleEnum { JS_FREE_MODULE_ALL , JS_FREE_MODULE_NOT_RESOLVED , JS_FREE_MODULE_NOT_EVALUATED }
 
enum  JSToNumberHintEnum { TON_FLAG_NUMBER , TON_FLAG_NUMERIC }
 
enum  OPSpecialObjectEnum {
  OP_SPECIAL_OBJECT_ARGUMENTS , OP_SPECIAL_OBJECT_MAPPED_ARGUMENTS , OP_SPECIAL_OBJECT_THIS_FUNC , OP_SPECIAL_OBJECT_NEW_TARGET ,
  OP_SPECIAL_OBJECT_HOME_OBJECT , OP_SPECIAL_OBJECT_VAR_OBJECT , OP_SPECIAL_OBJECT_IMPORT_META
}
 
enum  JSGeneratorStateEnum {
  JS_GENERATOR_STATE_SUSPENDED_START , JS_GENERATOR_STATE_SUSPENDED_YIELD , JS_GENERATOR_STATE_SUSPENDED_YIELD_STAR , JS_GENERATOR_STATE_EXECUTING ,
  JS_GENERATOR_STATE_COMPLETED
}
 
enum  JSAsyncGeneratorStateEnum {
  JS_ASYNC_GENERATOR_STATE_SUSPENDED_START , JS_ASYNC_GENERATOR_STATE_SUSPENDED_YIELD , JS_ASYNC_GENERATOR_STATE_SUSPENDED_YIELD_STAR , JS_ASYNC_GENERATOR_STATE_EXECUTING ,
  JS_ASYNC_GENERATOR_STATE_AWAITING_RETURN , JS_ASYNC_GENERATOR_STATE_COMPLETED
}
 
enum  {
  TOK_NUMBER = -128 , TOK_STRING , TOK_TEMPLATE , TOK_IDENT ,
  TOK_REGEXP , TOK_MUL_ASSIGN , TOK_DIV_ASSIGN , TOK_MOD_ASSIGN ,
  TOK_PLUS_ASSIGN , TOK_MINUS_ASSIGN , TOK_SHL_ASSIGN , TOK_SAR_ASSIGN ,
  TOK_SHR_ASSIGN , TOK_AND_ASSIGN , TOK_XOR_ASSIGN , TOK_OR_ASSIGN ,
  TOK_POW_ASSIGN , TOK_LAND_ASSIGN , TOK_LOR_ASSIGN , TOK_DOUBLE_QUESTION_MARK_ASSIGN ,
  TOK_DEC , TOK_INC , TOK_SHL , TOK_SAR ,
  TOK_SHR , TOK_LT , TOK_LTE , TOK_GT ,
  TOK_GTE , TOK_EQ , TOK_STRICT_EQ , TOK_NEQ ,
  TOK_STRICT_NEQ , TOK_LAND , TOK_LOR , TOK_POW ,
  TOK_ARROW , TOK_ELLIPSIS , TOK_DOUBLE_QUESTION_MARK , TOK_QUESTION_MARK_DOT ,
  TOK_ERROR , TOK_PRIVATE_NAME , TOK_EOF , TOK_NULL ,
  TOK_FALSE , TOK_TRUE , TOK_IF , TOK_ELSE ,
  TOK_RETURN , TOK_VAR , TOK_THIS , TOK_DELETE ,
  TOK_VOID , TOK_TYPEOF , TOK_NEW , TOK_IN ,
  TOK_INSTANCEOF , TOK_DO , TOK_WHILE , TOK_FOR ,
  TOK_BREAK , TOK_CONTINUE , TOK_SWITCH , TOK_CASE ,
  TOK_DEFAULT , TOK_THROW , TOK_TRY , TOK_CATCH ,
  TOK_FINALLY , TOK_FUNCTION , TOK_DEBUGGER , TOK_WITH ,
  TOK_CLASS , TOK_CONST , TOK_ENUM , TOK_EXPORT ,
  TOK_EXTENDS , TOK_IMPORT , TOK_SUPER , TOK_IMPLEMENTS ,
  TOK_INTERFACE , TOK_LET , TOK_PACKAGE , TOK_PRIVATE ,
  TOK_PROTECTED , TOK_PUBLIC , TOK_STATIC , TOK_YIELD ,
  TOK_AWAIT , TOK_OF
}
 
enum  JSParseFunctionEnum {
  JS_PARSE_FUNC_STATEMENT , JS_PARSE_FUNC_VAR , JS_PARSE_FUNC_EXPR , JS_PARSE_FUNC_ARROW ,
  JS_PARSE_FUNC_GETTER , JS_PARSE_FUNC_SETTER , JS_PARSE_FUNC_METHOD , JS_PARSE_FUNC_CLASS_CONSTRUCTOR ,
  JS_PARSE_FUNC_DERIVED_CLASS_CONSTRUCTOR
}
 
enum  JSParseExportEnum { JS_PARSE_EXPORT_NONE , JS_PARSE_EXPORT_NAMED , JS_PARSE_EXPORT_DEFAULT }
 
enum  JSVarDefEnum {
  JS_VAR_DEF_WITH , JS_VAR_DEF_LET , JS_VAR_DEF_CONST , JS_VAR_DEF_FUNCTION_DECL ,
  JS_VAR_DEF_NEW_FUNCTION_DECL , JS_VAR_DEF_CATCH , JS_VAR_DEF_VAR
}
 
enum  PutLValueEnum {
  PUT_LVALUE_NOKEEP , PUT_LVALUE_NOKEEP_DEPTH , PUT_LVALUE_KEEP_TOP , PUT_LVALUE_KEEP_SECOND ,
  PUT_LVALUE_NOKEEP_BOTTOM
}
 
enum  FuncCallType { FUNC_CALL_NORMAL , FUNC_CALL_NEW , FUNC_CALL_SUPER_CTOR , FUNC_CALL_TEMPLATE }
 
enum  JSResolveResultEnum {
  JS_RESOLVE_RES_EXCEPTION = -1 , JS_RESOLVE_RES_FOUND = 0 , JS_RESOLVE_RES_NOT_FOUND , JS_RESOLVE_RES_CIRCULAR ,
  JS_RESOLVE_RES_AMBIGUOUS
}
 
enum  ExportedNameEntryEnum { EXPORTED_NAME_AMBIGUOUS , EXPORTED_NAME_NORMAL , EXPORTED_NAME_NS }
 
enum  BCTagEnum {
  BC_TAG_NULL = 1 , BC_TAG_UNDEFINED , BC_TAG_BOOL_FALSE , BC_TAG_BOOL_TRUE ,
  BC_TAG_INT32 , BC_TAG_FLOAT64 , BC_TAG_STRING , BC_TAG_OBJECT ,
  BC_TAG_ARRAY , BC_TAG_BIG_INT , BC_TAG_BIG_FLOAT , BC_TAG_BIG_DECIMAL ,
  BC_TAG_TEMPLATE_OBJECT , BC_TAG_FUNCTION_BYTECODE , BC_TAG_MODULE , BC_TAG_TYPED_ARRAY ,
  BC_TAG_ARRAY_BUFFER , BC_TAG_SHARED_ARRAY_BUFFER , BC_TAG_DATE , BC_TAG_OBJECT_VALUE ,
  BC_TAG_OBJECT_REFERENCE
}
 
enum  {
  magic_string_anchor , magic_string_big , magic_string_blink , magic_string_bold ,
  magic_string_fixed , magic_string_fontcolor , magic_string_fontsize , magic_string_italics ,
  magic_string_link , magic_string_small , magic_string_strike , magic_string_sub ,
  magic_string_sup
}
 
enum  JSPromiseStateEnum { JS_PROMISE_PENDING , JS_PROMISE_FULFILLED , JS_PROMISE_REJECTED }
 
enum  AtomicsOpEnum {
  ATOMICS_OP_ADD , ATOMICS_OP_AND , ATOMICS_OP_OR , ATOMICS_OP_SUB ,
  ATOMICS_OP_XOR , ATOMICS_OP_EXCHANGE , ATOMICS_OP_COMPARE_EXCHANGE , ATOMICS_OP_LOAD
}
 

Functions

static int JS_InitAtoms (JSRuntime *rt)
 
static JSAtom __JS_NewAtomInit (JSRuntime *rt, const char *str, int len, int atom_type)
 
static void JS_FreeAtomStruct (JSRuntime *rt, JSAtomStruct *p)
 
static void free_function_bytecode (JSRuntime *rt, JSFunctionBytecode *b)
 
static JSValue js_call_c_function (JSContext *ctx, JSValueConst func_obj, JSValueConst this_obj, int argc, JSValueConst *argv, int flags)
 
static JSValue js_call_bound_function (JSContext *ctx, JSValueConst func_obj, JSValueConst this_obj, int argc, JSValueConst *argv, int flags)
 
static JSValue JS_CallInternal (JSContext *ctx, JSValueConst func_obj, JSValueConst this_obj, JSValueConst new_target, int argc, JSValue *argv, int flags)
 
static JSValue JS_CallConstructorInternal (JSContext *ctx, JSValueConst func_obj, JSValueConst new_target, int argc, JSValue *argv, int flags)
 
static JSValue JS_CallFree (JSContext *ctx, JSValue func_obj, JSValueConst this_obj, int argc, JSValueConst *argv)
 
static JSValue JS_InvokeFree (JSContext *ctx, JSValue this_val, JSAtom atom, int argc, JSValueConst *argv)
 
static __exception int JS_ToArrayLengthFree (JSContext *ctx, uint32_t *plen, JSValue val, BOOL is_array_ctor)
 
static JSValue JS_EvalObject (JSContext *ctx, JSValueConst this_obj, JSValueConst val, int flags, int scope_idx)
 
JSValue __attribute__ ((format(printf, 2, 3)))
 
static BOOL js_strict_eq2 (JSContext *ctx, JSValue op1, JSValue op2, JSStrictEqModeEnum eq_mode)
 
static BOOL js_strict_eq (JSContext *ctx, JSValue op1, JSValue op2)
 
static BOOL js_same_value (JSContext *ctx, JSValueConst op1, JSValueConst op2)
 
static BOOL js_same_value_zero (JSContext *ctx, JSValueConst op1, JSValueConst op2)
 
static JSValue JS_ToObject (JSContext *ctx, JSValueConst val)
 
static JSValue JS_ToObjectFree (JSContext *ctx, JSValue val)
 
static JSPropertyadd_property (JSContext *ctx, JSObject *p, JSAtom prop, int prop_flags)
 
JSValue JS_ThrowOutOfMemory (JSContext *ctx)
 
static JSValue JS_ThrowTypeErrorRevokedProxy (JSContext *ctx)
 
static JSValue js_proxy_getPrototypeOf (JSContext *ctx, JSValueConst obj)
 
static int js_proxy_setPrototypeOf (JSContext *ctx, JSValueConst obj, JSValueConst proto_val, BOOL throw_flag)
 
static int js_proxy_isExtensible (JSContext *ctx, JSValueConst obj)
 
static int js_proxy_preventExtensions (JSContext *ctx, JSValueConst obj)
 
static int js_proxy_isArray (JSContext *ctx, JSValueConst obj)
 
static int JS_CreateProperty (JSContext *ctx, JSObject *p, JSAtom prop, JSValueConst val, JSValueConst getter, JSValueConst setter, int flags)
 
static int js_string_memcmp (const JSString *p1, const JSString *p2, int len)
 
static void reset_weak_ref (JSRuntime *rt, JSObject *p)
 
static JSValue js_array_buffer_constructor3 (JSContext *ctx, JSValueConst new_target, uint64_t len, JSClassID class_id, uint8_t *buf, JSFreeArrayBufferDataFunc *free_func, void *opaque, BOOL alloc_flag)
 
static JSArrayBufferjs_get_array_buffer (JSContext *ctx, JSValueConst obj)
 
static JSValue js_typed_array_constructor (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv, int classid)
 
static BOOL typed_array_is_detached (JSContext *ctx, JSObject *p)
 
static uint32_t typed_array_get_length (JSContext *ctx, JSObject *p)
 
static JSValue JS_ThrowTypeErrorDetachedArrayBuffer (JSContext *ctx)
 
static JSVarRefget_var_ref (JSContext *ctx, JSStackFrame *sf, int var_idx, BOOL is_arg)
 
static JSValue js_generator_function_call (JSContext *ctx, JSValueConst func_obj, JSValueConst this_obj, int argc, JSValueConst *argv, int flags)
 
static void js_async_function_resolve_finalizer (JSRuntime *rt, JSValue val)
 
static void js_async_function_resolve_mark (JSRuntime *rt, JSValueConst val, JS_MarkFunc *mark_func)
 
static JSValue JS_EvalInternal (JSContext *ctx, JSValueConst this_obj, const char *input, size_t input_len, const char *filename, int flags, int scope_idx)
 
static void js_free_module_def (JSContext *ctx, JSModuleDef *m)
 
static void js_mark_module_def (JSRuntime *rt, JSModuleDef *m, JS_MarkFunc *mark_func)
 
static JSValue js_import_meta (JSContext *ctx)
 
static JSValue js_dynamic_import (JSContext *ctx, JSValueConst specifier)
 
static void free_var_ref (JSRuntime *rt, JSVarRef *var_ref)
 
static JSValue js_new_promise_capability (JSContext *ctx, JSValue *resolving_funcs, JSValueConst ctor)
 
static __exception int perform_promise_then (JSContext *ctx, JSValueConst promise, JSValueConst *resolve_reject, JSValueConst *cap_resolving_funcs)
 
static JSValue js_promise_resolve (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv, int magic)
 
static int js_string_compare (JSContext *ctx, const JSString *p1, const JSString *p2)
 
static JSValue JS_ToNumber (JSContext *ctx, JSValueConst val)
 
static int JS_SetPropertyValue (JSContext *ctx, JSValueConst this_obj, JSValue prop, JSValue val, int flags)
 
static int JS_NumberIsInteger (JSContext *ctx, JSValueConst val)
 
static BOOL JS_NumberIsNegativeOrMinusZero (JSContext *ctx, JSValueConst val)
 
static JSValue JS_ToNumberFree (JSContext *ctx, JSValue val)
 
static int JS_GetOwnPropertyInternal (JSContext *ctx, JSPropertyDescriptor *desc, JSObject *p, JSAtom prop)
 
static void js_free_desc (JSContext *ctx, JSPropertyDescriptor *desc)
 
static void async_func_mark (JSRuntime *rt, JSAsyncFunctionState *s, JS_MarkFunc *mark_func)
 
static void JS_AddIntrinsicBasicObjects (JSContext *ctx)
 
static void js_free_shape (JSRuntime *rt, JSShape *sh)
 
static void js_free_shape_null (JSRuntime *rt, JSShape *sh)
 
static int js_shape_prepare_update (JSContext *ctx, JSObject *p, JSShapeProperty **pprs)
 
static int init_shape_hash (JSRuntime *rt)
 
static __exception int js_get_length32 (JSContext *ctx, uint32_t *pres, JSValueConst obj)
 
static __exception int js_get_length64 (JSContext *ctx, int64_t *pres, JSValueConst obj)
 
static void free_arg_list (JSContext *ctx, JSValue *tab, uint32_t len)
 
static JSValuebuild_arg_list (JSContext *ctx, uint32_t *plen, JSValueConst array_arg)
 
static BOOL js_get_fast_array (JSContext *ctx, JSValueConst obj, JSValue **arrpp, uint32_t *countp)
 
static JSValue JS_CreateAsyncFromSyncIterator (JSContext *ctx, JSValueConst sync_iter)
 
static void js_c_function_data_finalizer (JSRuntime *rt, JSValue val)
 
static void js_c_function_data_mark (JSRuntime *rt, JSValueConst val, JS_MarkFunc *mark_func)
 
static JSValue js_c_function_data_call (JSContext *ctx, JSValueConst func_obj, JSValueConst this_val, int argc, JSValueConst *argv, int flags)
 
static JSAtom js_symbol_to_atom (JSContext *ctx, JSValue val)
 
static void add_gc_object (JSRuntime *rt, JSGCObjectHeader *h, JSGCObjectTypeEnum type)
 
static void remove_gc_object (JSGCObjectHeader *h)
 
static void js_async_function_free0 (JSRuntime *rt, JSAsyncFunctionData *s)
 
static JSValue js_instantiate_prototype (JSContext *ctx, JSObject *p, JSAtom atom, void *opaque)
 
static JSValue js_module_ns_autoinit (JSContext *ctx, JSObject *p, JSAtom atom, void *opaque)
 
static JSValue JS_InstantiateFunctionListItem2 (JSContext *ctx, JSObject *p, JSAtom atom, void *opaque)
 
void JS_SetUncatchableError (JSContext *ctx, JSValueConst val, BOOL flag)
 
static void js_trigger_gc (JSRuntime *rt, size_t size)
 
static size_t js_malloc_usable_size_unknown (const void *ptr)
 
void * js_malloc_rt (JSRuntime *rt, size_t size)
 
void js_free_rt (JSRuntime *rt, void *ptr)
 
void * js_realloc_rt (JSRuntime *rt, void *ptr, size_t size)
 
size_t js_malloc_usable_size_rt (JSRuntime *rt, const void *ptr)
 
void * js_mallocz_rt (JSRuntime *rt, size_t size)
 
void * js_malloc (JSContext *ctx, size_t size)
 
void * js_mallocz (JSContext *ctx, size_t size)
 
void js_free (JSContext *ctx, void *ptr)
 
void * js_realloc (JSContext *ctx, void *ptr, size_t size)
 
void * js_realloc2 (JSContext *ctx, void *ptr, size_t size, size_t *pslack)
 
size_t js_malloc_usable_size (JSContext *ctx, const void *ptr)
 
char * js_strndup (JSContext *ctx, const char *s, size_t n)
 
char * js_strdup (JSContext *ctx, const char *str)
 
static no_inline int js_realloc_array (JSContext *ctx, void **parray, int elem_size, int *psize, int req_size)
 
static int js_resize_array (JSContext *ctx, void **parray, int elem_size, int *psize, int req_size)
 
static void js_dbuf_init (JSContext *ctx, DynBuf *s)
 
static int is_digit (int c)
 
static int init_class_range (JSRuntime *rt, JSClassShortDef const *tab, int start, int count)
 
static uintptr_t js_get_stack_pointer (void)
 
static BOOL js_check_stack_overflow (JSRuntime *rt, size_t alloca_size)
 
JSRuntimeJS_NewRuntime2 (const JSMallocFunctions *mf, void *opaque)
 
void * JS_GetRuntimeOpaque (JSRuntime *rt)
 
void JS_SetRuntimeOpaque (JSRuntime *rt, void *opaque)
 
static size_t js_def_malloc_usable_size (void *ptr)
 
static void * js_def_malloc (JSMallocState *s, size_t size)
 
static void js_def_free (JSMallocState *s, void *ptr)
 
static void * js_def_realloc (JSMallocState *s, void *ptr, size_t size)
 
JSRuntimeJS_NewRuntime (void)
 
void JS_SetMemoryLimit (JSRuntime *rt, size_t limit)
 
void JS_SetGCThreshold (JSRuntime *rt, size_t gc_threshold)
 
void JS_SetInterruptHandler (JSRuntime *rt, JSInterruptHandler *cb, void *opaque)
 
void JS_SetCanBlock (JSRuntime *rt, BOOL can_block)
 
void JS_SetSharedArrayBufferFunctions (JSRuntime *rt, const JSSharedArrayBufferFunctions *sf)
 
int JS_EnqueueJob (JSContext *ctx, JSJobFunc *job_func, int argc, JSValueConst *argv)
 
BOOL JS_IsJobPending (JSRuntime *rt)
 
int JS_ExecutePendingJob (JSRuntime *rt, JSContext **pctx)
 
static uint32_t atom_get_free (const JSAtomStruct *p)
 
static BOOL atom_is_free (const JSAtomStruct *p)
 
static JSAtomStruct * atom_set_free (uint32_t v)
 
static JSStringjs_alloc_string_rt (JSRuntime *rt, int max_len, int is_wide_char)
 
static JSStringjs_alloc_string (JSContext *ctx, int max_len, int is_wide_char)
 
static void js_free_string (JSRuntime *rt, JSString *str)
 
void JS_SetRuntimeInfo (JSRuntime *rt, const char *s)
 
void JS_FreeRuntime (JSRuntime *rt)
 
JSContextJS_NewContextRaw (JSRuntime *rt)
 
JSContextJS_NewContext (JSRuntime *rt)
 
void * JS_GetContextOpaque (JSContext *ctx)
 
void JS_SetContextOpaque (JSContext *ctx, void *opaque)
 
static void set_value (JSContext *ctx, JSValue *pval, JSValue new_val)
 
void JS_SetClassProto (JSContext *ctx, JSClassID class_id, JSValue obj)
 
JSValue JS_GetClassProto (JSContext *ctx, JSClassID class_id)
 
static void js_free_modules (JSContext *ctx, JSFreeModuleEnum flag)
 
JSContextJS_DupContext (JSContext *ctx)
 
static void JS_MarkContext (JSRuntime *rt, JSContext *ctx, JS_MarkFunc *mark_func)
 
void JS_FreeContext (JSContext *ctx)
 
JSRuntimeJS_GetRuntime (JSContext *ctx)
 
static void update_stack_limit (JSRuntime *rt)
 
void JS_SetMaxStackSize (JSRuntime *rt, size_t stack_size)
 
void JS_UpdateStackTop (JSRuntime *rt)
 
static BOOL is_strict_mode (JSContext *ctx)
 
static BOOL __JS_AtomIsConst (JSAtom v)
 
static BOOL __JS_AtomIsTaggedInt (JSAtom v)
 
static JSAtom __JS_AtomFromUInt32 (uint32_t v)
 
static uint32_t __JS_AtomToUInt32 (JSAtom atom)
 
static int is_num (int c)
 
static BOOL is_num_string (uint32_t *pval, const JSString *p)
 
static uint32_t hash_string8 (const uint8_t *str, size_t len, uint32_t h)
 
static uint32_t hash_string16 (const uint16_t *str, size_t len, uint32_t h)
 
static uint32_t hash_string (const JSString *str, uint32_t h)
 
static __maybe_unused void JS_DumpString (JSRuntime *rt, const JSString *p)
 
static __maybe_unused void JS_DumpAtoms (JSRuntime *rt)
 
static int JS_ResizeAtomHash (JSRuntime *rt, int new_hash_size)
 
static JSAtom JS_DupAtomRT (JSRuntime *rt, JSAtom v)
 
JSAtom JS_DupAtom (JSContext *ctx, JSAtom v)
 
static JSAtomKindEnum JS_AtomGetKind (JSContext *ctx, JSAtom v)
 
static BOOL JS_AtomIsString (JSContext *ctx, JSAtom v)
 
static JSAtom js_get_atom_index (JSRuntime *rt, JSAtomStruct *p)
 
static JSAtom __JS_NewAtom (JSRuntime *rt, JSString *str, int atom_type)
 
static JSAtom __JS_FindAtom (JSRuntime *rt, const char *str, size_t len, int atom_type)
 
static void __JS_FreeAtom (JSRuntime *rt, uint32_t i)
 
static JSAtom JS_NewAtomStr (JSContext *ctx, JSString *p)
 
JSAtom JS_NewAtomLen (JSContext *ctx, const char *str, size_t len)
 
JSAtom JS_NewAtom (JSContext *ctx, const char *str)
 
JSAtom JS_NewAtomUInt32 (JSContext *ctx, uint32_t n)
 
static JSAtom JS_NewAtomInt64 (JSContext *ctx, int64_t n)
 
static JSValue JS_NewSymbol (JSContext *ctx, JSString *p, int atom_type)
 
static JSValue JS_NewSymbolFromAtom (JSContext *ctx, JSAtom descr, int atom_type)
 
static const char * JS_AtomGetStrRT (JSRuntime *rt, char *buf, int buf_size, JSAtom atom)
 
static const char * JS_AtomGetStr (JSContext *ctx, char *buf, int buf_size, JSAtom atom)
 
static JSValue __JS_AtomToValue (JSContext *ctx, JSAtom atom, BOOL force_string)
 
JSValue JS_AtomToValue (JSContext *ctx, JSAtom atom)
 
JSValue JS_AtomToString (JSContext *ctx, JSAtom atom)
 
BOOL JS_AtomIsArrayIndex (JSContext *ctx, uint32_t *pval, JSAtom atom)
 
static JSValue JS_AtomIsNumericIndex1 (JSContext *ctx, JSAtom atom)
 
static int JS_AtomIsNumericIndex (JSContext *ctx, JSAtom atom)
 
void JS_FreeAtom (JSContext *ctx, JSAtom v)
 
void JS_FreeAtomRT (JSRuntime *rt, JSAtom v)
 
static BOOL JS_AtomSymbolHasDescription (JSContext *ctx, JSAtom v)
 
static __maybe_unused void print_atom (JSContext *ctx, JSAtom atom)
 
const char * JS_AtomToCString (JSContext *ctx, JSAtom atom)
 
static JSAtom js_atom_concat_str (JSContext *ctx, JSAtom name, const char *str1)
 
static JSAtom js_atom_concat_num (JSContext *ctx, JSAtom name, uint32_t n)
 
static BOOL JS_IsEmptyString (JSValueConst v)
 
JSClassID JS_NewClassID (JSClassID *pclass_id)
 
BOOL JS_IsRegisteredClass (JSRuntime *rt, JSClassID class_id)
 
static int JS_NewClass1 (JSRuntime *rt, JSClassID class_id, const JSClassDef *class_def, JSAtom name)
 
int JS_NewClass (JSRuntime *rt, JSClassID class_id, const JSClassDef *class_def)
 
static JSValue js_new_string8 (JSContext *ctx, const uint8_t *buf, int len)
 
static JSValue js_new_string16 (JSContext *ctx, const uint16_t *buf, int len)
 
static JSValue js_new_string_char (JSContext *ctx, uint16_t c)
 
static JSValue js_sub_string (JSContext *ctx, JSString *p, int start, int end)
 
static int string_buffer_init2 (JSContext *ctx, StringBuffer *s, int size, int is_wide)
 
static int string_buffer_init (JSContext *ctx, StringBuffer *s, int size)
 
static void string_buffer_free (StringBuffer *s)
 
static int string_buffer_set_error (StringBuffer *s)
 
static no_inline int string_buffer_widen (StringBuffer *s, int size)
 
static no_inline int string_buffer_realloc (StringBuffer *s, int new_len, int c)
 
static no_inline int string_buffer_putc_slow (StringBuffer *s, uint32_t c)
 
static int string_buffer_putc8 (StringBuffer *s, uint32_t c)
 
static int string_buffer_putc16 (StringBuffer *s, uint32_t c)
 
static int string_buffer_putc (StringBuffer *s, uint32_t c)
 
static int string_get (const JSString *p, int idx)
 
static int string_getc (const JSString *p, int *pidx)
 
static int string_buffer_write8 (StringBuffer *s, const uint8_t *p, int len)
 
static int string_buffer_write16 (StringBuffer *s, const uint16_t *p, int len)
 
static int string_buffer_puts8 (StringBuffer *s, const char *str)
 
static int string_buffer_concat (StringBuffer *s, const JSString *p, uint32_t from, uint32_t to)
 
static int string_buffer_concat_value (StringBuffer *s, JSValueConst v)
 
static int string_buffer_concat_value_free (StringBuffer *s, JSValue v)
 
static int string_buffer_fill (StringBuffer *s, int c, int count)
 
static JSValue string_buffer_end (StringBuffer *s)
 
JSValue JS_NewStringLen (JSContext *ctx, const char *buf, size_t buf_len)
 
static JSValue JS_ConcatString3 (JSContext *ctx, const char *str1, JSValue str2, const char *str3)
 
JSValue JS_NewString (JSContext *ctx, const char *str)
 
JSValue JS_NewAtomString (JSContext *ctx, const char *str)
 
const char * JS_ToCStringLen2 (JSContext *ctx, size_t *plen, JSValueConst val1, BOOL cesu8)
 
void JS_FreeCString (JSContext *ctx, const char *ptr)
 
static int memcmp16_8 (const uint16_t *src1, const uint8_t *src2, int len)
 
static int memcmp16 (const uint16_t *src1, const uint16_t *src2, int len)
 
static void copy_str16 (uint16_t *dst, const JSString *p, int offset, int len)
 
static JSValue JS_ConcatString1 (JSContext *ctx, const JSString *p1, const JSString *p2)
 
static JSValue JS_ConcatString (JSContext *ctx, JSValue op1, JSValue op2)
 
static size_t get_shape_size (size_t hash_size, size_t prop_size)
 
static JSShapeget_shape_from_alloc (void *sh_alloc, size_t hash_size)
 
static uint32_tprop_hash_end (JSShape *sh)
 
static void * get_alloc_from_shape (JSShape *sh)
 
static JSShapePropertyget_shape_prop (JSShape *sh)
 
static uint32_t shape_hash (uint32_t h, uint32_t val)
 
static uint32_t get_shape_hash (uint32_t h, int hash_bits)
 
static uint32_t shape_initial_hash (JSObject *proto)
 
static int resize_shape_hash (JSRuntime *rt, int new_shape_hash_bits)
 
static void js_shape_hash_link (JSRuntime *rt, JSShape *sh)
 
static void js_shape_hash_unlink (JSRuntime *rt, JSShape *sh)
 
static no_inline JSShapejs_new_shape2 (JSContext *ctx, JSObject *proto, int hash_size, int prop_size)
 
static JSShapejs_new_shape (JSContext *ctx, JSObject *proto)
 
static JSShapejs_clone_shape (JSContext *ctx, JSShape *sh1)
 
static JSShapejs_dup_shape (JSShape *sh)
 
static void js_free_shape0 (JSRuntime *rt, JSShape *sh)
 
static no_inline int resize_properties (JSContext *ctx, JSShape **psh, JSObject *p, uint32_t count)
 
static int compact_properties (JSContext *ctx, JSObject *p)
 
static int add_shape_property (JSContext *ctx, JSShape **psh, JSObject *p, JSAtom atom, int prop_flags)
 
static JSShapefind_hashed_shape_proto (JSRuntime *rt, JSObject *proto)
 
static JSShapefind_hashed_shape_prop (JSRuntime *rt, JSShape *sh, JSAtom atom, int prop_flags)
 
static __maybe_unused void JS_DumpShape (JSRuntime *rt, int i, JSShape *sh)
 
static __maybe_unused void JS_DumpShapes (JSRuntime *rt)
 
static JSValue JS_NewObjectFromShape (JSContext *ctx, JSShape *sh, JSClassID class_id)
 
static JSObjectget_proto_obj (JSValueConst proto_val)
 
JSValue JS_NewObjectProtoClass (JSContext *ctx, JSValueConst proto_val, JSClassID class_id)
 
static int JS_SetObjectData (JSContext *ctx, JSValueConst obj, JSValue val)
 
JSValue JS_NewObjectClass (JSContext *ctx, int class_id)
 
JSValue JS_NewObjectProto (JSContext *ctx, JSValueConst proto)
 
JSValue JS_NewArray (JSContext *ctx)
 
JSValue JS_NewObject (JSContext *ctx)
 
static void js_function_set_properties (JSContext *ctx, JSValueConst func_obj, JSAtom name, int len)
 
static BOOL js_class_has_bytecode (JSClassID class_id)
 
static JSFunctionBytecodeJS_GetFunctionBytecode (JSValueConst val)
 
static void js_method_set_home_object (JSContext *ctx, JSValueConst func_obj, JSValueConst home_obj)
 
static JSValue js_get_function_name (JSContext *ctx, JSAtom name)
 
static int js_method_set_properties (JSContext *ctx, JSValueConst func_obj, JSAtom name, int flags, JSValueConst home_obj)
 
static JSValue JS_NewCFunction3 (JSContext *ctx, JSCFunction *func, const char *name, int length, JSCFunctionEnum cproto, int magic, JSValueConst proto_val)
 
JSValue JS_NewCFunction2 (JSContext *ctx, JSCFunction *func, const char *name, int length, JSCFunctionEnum cproto, int magic)
 
JSValue JS_NewCFunctionData (JSContext *ctx, JSCFunctionData *func, int length, int magic, int data_len, JSValueConst *data)
 
static JSContextjs_autoinit_get_realm (JSProperty *pr)
 
static JSAutoInitIDEnum js_autoinit_get_id (JSProperty *pr)
 
static void js_autoinit_free (JSRuntime *rt, JSProperty *pr)
 
static void js_autoinit_mark (JSRuntime *rt, JSProperty *pr, JS_MarkFunc *mark_func)
 
static void free_property (JSRuntime *rt, JSProperty *pr, int prop_flags)
 
static force_inline JSShapePropertyfind_own_property1 (JSObject *p, JSAtom atom)
 
static force_inline JSShapePropertyfind_own_property (JSProperty **ppr, JSObject *p, JSAtom atom)
 
static void set_cycle_flag (JSContext *ctx, JSValueConst obj)
 
static void js_array_finalizer (JSRuntime *rt, JSValue val)
 
static void js_array_mark (JSRuntime *rt, JSValueConst val, JS_MarkFunc *mark_func)
 
static void js_object_data_finalizer (JSRuntime *rt, JSValue val)
 
static void js_object_data_mark (JSRuntime *rt, JSValueConst val, JS_MarkFunc *mark_func)
 
static void js_c_function_finalizer (JSRuntime *rt, JSValue val)
 
static void js_c_function_mark (JSRuntime *rt, JSValueConst val, JS_MarkFunc *mark_func)
 
static void js_bytecode_function_finalizer (JSRuntime *rt, JSValue val)
 
static void js_bytecode_function_mark (JSRuntime *rt, JSValueConst val, JS_MarkFunc *mark_func)
 
static void js_bound_function_finalizer (JSRuntime *rt, JSValue val)
 
static void js_bound_function_mark (JSRuntime *rt, JSValueConst val, JS_MarkFunc *mark_func)
 
static void js_for_in_iterator_finalizer (JSRuntime *rt, JSValue val)
 
static void js_for_in_iterator_mark (JSRuntime *rt, JSValueConst val, JS_MarkFunc *mark_func)
 
static void free_object (JSRuntime *rt, JSObject *p)
 
static void free_gc_object (JSRuntime *rt, JSGCObjectHeader *gp)
 
static void free_zero_refcount (JSRuntime *rt)
 
void __JS_FreeValueRT (JSRuntime *rt, JSValue v)
 
void __JS_FreeValue (JSContext *ctx, JSValue v)
 
void JS_MarkValue (JSRuntime *rt, JSValueConst val, JS_MarkFunc *mark_func)
 
static void mark_children (JSRuntime *rt, JSGCObjectHeader *gp, JS_MarkFunc *mark_func)
 
static void gc_decref_child (JSRuntime *rt, JSGCObjectHeader *p)
 
static void gc_decref (JSRuntime *rt)
 
static void gc_scan_incref_child (JSRuntime *rt, JSGCObjectHeader *p)
 
static void gc_scan_incref_child2 (JSRuntime *rt, JSGCObjectHeader *p)
 
static void gc_scan (JSRuntime *rt)
 
static void gc_free_cycles (JSRuntime *rt)
 
void JS_RunGC (JSRuntime *rt)
 
BOOL JS_IsLiveObject (JSRuntime *rt, JSValueConst obj)
 
static void compute_value_size (JSValueConst val, JSMemoryUsage_helper *hp)
 
static void compute_jsstring_size (JSString *str, JSMemoryUsage_helper *hp)
 
static void compute_bytecode_size (JSFunctionBytecode *b, JSMemoryUsage_helper *hp)
 
void JS_ComputeMemoryUsage (JSRuntime *rt, JSMemoryUsage *s)
 
void JS_DumpMemoryUsage (FILE *fp, const JSMemoryUsage *s, JSRuntime *rt)
 
JSValue JS_GetGlobalObject (JSContext *ctx)
 
JSValue JS_Throw (JSContext *ctx, JSValue obj)
 
JSValue JS_GetException (JSContext *ctx)
 
static void dbuf_put_leb128 (DynBuf *s, uint32_t v)
 
static void dbuf_put_sleb128 (DynBuf *s, int32_t v1)
 
static int get_leb128 (uint32_t *pval, const uint8_t *buf, const uint8_t *buf_end)
 
static int get_sleb128 (int32_t *pval, const uint8_t *buf, const uint8_t *buf_end)
 
static int find_line_num (JSContext *ctx, JSFunctionBytecode *b, uint32_t pc_value)
 
static const char * get_func_name (JSContext *ctx, JSValueConst func)
 
static void build_backtrace (JSContext *ctx, JSValueConst error_obj, const char *filename, int line_num, int backtrace_flags)
 
static BOOL is_backtrace_needed (JSContext *ctx, JSValueConst obj)
 
JSValue JS_NewError (JSContext *ctx)
 
static JSValue JS_ThrowError2 (JSContext *ctx, JSErrorEnum error_num, const char *fmt, va_list ap, BOOL add_backtrace)
 
static JSValue JS_ThrowError (JSContext *ctx, JSErrorEnum error_num, const char *fmt, va_list ap)
 
static int __attribute__ ((format(printf, 3, 4)))
 
static int JS_ThrowTypeErrorReadOnly (JSContext *ctx, int flags, JSAtom atom)
 
static JSValue JS_ThrowStackOverflow (JSContext *ctx)
 
static JSValue JS_ThrowTypeErrorNotAnObject (JSContext *ctx)
 
static JSValue JS_ThrowTypeErrorNotASymbol (JSContext *ctx)
 
static JSValue JS_ThrowReferenceErrorNotDefined (JSContext *ctx, JSAtom name)
 
static JSValue JS_ThrowReferenceErrorUninitialized (JSContext *ctx, JSAtom name)
 
static JSValue JS_ThrowReferenceErrorUninitialized2 (JSContext *ctx, JSFunctionBytecode *b, int idx, BOOL is_ref)
 
static JSValue JS_ThrowTypeErrorInvalidClass (JSContext *ctx, int class_id)
 
static no_inline __exception int __js_poll_interrupts (JSContext *ctx)
 
static __exception int js_poll_interrupts (JSContext *ctx)
 
static int JS_SetPrototypeInternal (JSContext *ctx, JSValueConst obj, JSValueConst proto_val, BOOL throw_flag)
 
int JS_SetPrototype (JSContext *ctx, JSValueConst obj, JSValueConst proto_val)
 
static JSValueConst JS_GetPrototypePrimitive (JSContext *ctx, JSValueConst val)
 
JSValue JS_GetPrototype (JSContext *ctx, JSValueConst obj)
 
static JSValue JS_GetPrototypeFree (JSContext *ctx, JSValue obj)
 
static int JS_OrdinaryIsInstanceOf (JSContext *ctx, JSValueConst val, JSValueConst obj)
 
int JS_IsInstanceOf (JSContext *ctx, JSValueConst val, JSValueConst obj)
 
static int JS_AutoInitProperty (JSContext *ctx, JSObject *p, JSAtom prop, JSProperty *pr, JSShapeProperty *prs)
 
JSValue JS_GetPropertyInternal (JSContext *ctx, JSValueConst obj, JSAtom prop, JSValueConst this_obj, BOOL throw_ref_error)
 
static JSValue JS_ThrowTypeErrorPrivateNotFound (JSContext *ctx, JSAtom atom)
 
static int JS_DefinePrivateField (JSContext *ctx, JSValueConst obj, JSValueConst name, JSValue val)
 
static JSValue JS_GetPrivateField (JSContext *ctx, JSValueConst obj, JSValueConst name)
 
static int JS_SetPrivateField (JSContext *ctx, JSValueConst obj, JSValueConst name, JSValue val)
 
static int JS_AddBrand (JSContext *ctx, JSValueConst obj, JSValueConst home_obj)
 
static int JS_CheckBrand (JSContext *ctx, JSValueConst obj, JSValueConst func)
 
static uint32_t js_string_obj_get_length (JSContext *ctx, JSValueConst obj)
 
static int num_keys_cmp (const void *p1, const void *p2, void *opaque)
 
static void js_free_prop_enum (JSContext *ctx, JSPropertyEnum *tab, uint32_t len)
 
static int __exception JS_GetOwnPropertyNamesInternal (JSContext *ctx, JSPropertyEnum **ptab, uint32_t *plen, JSObject *p, int flags)
 
int JS_GetOwnPropertyNames (JSContext *ctx, JSPropertyEnum **ptab, uint32_t *plen, JSValueConst obj, int flags)
 
int JS_GetOwnProperty (JSContext *ctx, JSPropertyDescriptor *desc, JSValueConst obj, JSAtom prop)
 
int JS_IsExtensible (JSContext *ctx, JSValueConst obj)
 
int JS_PreventExtensions (JSContext *ctx, JSValueConst obj)
 
int JS_HasProperty (JSContext *ctx, JSValueConst obj, JSAtom prop)
 
JSAtom JS_ValueToAtom (JSContext *ctx, JSValueConst val)
 
static JSValue JS_GetPropertyValue (JSContext *ctx, JSValueConst this_obj, JSValue prop)
 
JSValue JS_GetPropertyUint32 (JSContext *ctx, JSValueConst this_obj, uint32_t idx)
 
static int JS_TryGetPropertyInt64 (JSContext *ctx, JSValueConst obj, int64_t idx, JSValue *pval)
 
static JSValue JS_GetPropertyInt64 (JSContext *ctx, JSValueConst obj, int64_t idx)
 
JSValue JS_GetPropertyStr (JSContext *ctx, JSValueConst this_obj, const char *prop)
 
static no_inline __exception int convert_fast_array_to_array (JSContext *ctx, JSObject *p)
 
static int delete_property (JSContext *ctx, JSObject *p, JSAtom atom)
 
static int call_setter (JSContext *ctx, JSObject *setter, JSValueConst this_obj, JSValue val, int flags)
 
static int set_array_length (JSContext *ctx, JSObject *p, JSValue val, int flags)
 
static int expand_fast_array (JSContext *ctx, JSObject *p, uint32_t new_len)
 
static int add_fast_array_element (JSContext *ctx, JSObject *p, JSValue val, int flags)
 
static int JS_SetPropertyGeneric (JSContext *ctx, JSValueConst obj, JSAtom prop, JSValue val, JSValueConst this_obj, int flags)
 
int JS_SetPropertyInternal (JSContext *ctx, JSValueConst this_obj, JSAtom prop, JSValue val, int flags)
 
int JS_SetPropertyUint32 (JSContext *ctx, JSValueConst this_obj, uint32_t idx, JSValue val)
 
int JS_SetPropertyInt64 (JSContext *ctx, JSValueConst this_obj, int64_t idx, JSValue val)
 
int JS_SetPropertyStr (JSContext *ctx, JSValueConst this_obj, const char *prop, JSValue val)
 
static int get_prop_flags (int flags, int def_flags)
 
static BOOL check_define_prop_flags (int prop_flags, int flags)
 
static int js_update_property_flags (JSContext *ctx, JSObject *p, JSShapeProperty **pprs, int flags)
 
int JS_DefineProperty (JSContext *ctx, JSValueConst this_obj, JSAtom prop, JSValueConst val, JSValueConst getter, JSValueConst setter, int flags)
 
static int JS_DefineAutoInitProperty (JSContext *ctx, JSValueConst this_obj, JSAtom prop, JSAutoInitIDEnum id, void *opaque, int flags)
 
int JS_DefinePropertyValue (JSContext *ctx, JSValueConst this_obj, JSAtom prop, JSValue val, int flags)
 
int JS_DefinePropertyValueValue (JSContext *ctx, JSValueConst this_obj, JSValue prop, JSValue val, int flags)
 
int JS_DefinePropertyValueUint32 (JSContext *ctx, JSValueConst this_obj, uint32_t idx, JSValue val, int flags)
 
int JS_DefinePropertyValueInt64 (JSContext *ctx, JSValueConst this_obj, int64_t idx, JSValue val, int flags)
 
int JS_DefinePropertyValueStr (JSContext *ctx, JSValueConst this_obj, const char *prop, JSValue val, int flags)
 
int JS_DefinePropertyGetSet (JSContext *ctx, JSValueConst this_obj, JSAtom prop, JSValue getter, JSValue setter, int flags)
 
static int JS_CreateDataPropertyUint32 (JSContext *ctx, JSValueConst this_obj, int64_t idx, JSValue val, int flags)
 
static BOOL js_object_has_name (JSContext *ctx, JSValueConst obj)
 
static int JS_DefineObjectName (JSContext *ctx, JSValueConst obj, JSAtom name, int flags)
 
static int JS_DefineObjectNameComputed (JSContext *ctx, JSValueConst obj, JSValueConst str, int flags)
 
static JSValue JS_ThrowSyntaxErrorVarRedeclaration (JSContext *ctx, JSAtom prop)
 
static int JS_CheckDefineGlobalVar (JSContext *ctx, JSAtom prop, int flags)
 
static int JS_DefineGlobalVar (JSContext *ctx, JSAtom prop, int def_flags)
 
static int JS_DefineGlobalFunction (JSContext *ctx, JSAtom prop, JSValueConst func, int def_flags)
 
static JSValue JS_GetGlobalVar (JSContext *ctx, JSAtom prop, BOOL throw_ref_error)
 
static int JS_GetGlobalVarRef (JSContext *ctx, JSAtom prop, JSValue *sp)
 
static int JS_CheckGlobalVar (JSContext *ctx, JSAtom prop)
 
static int JS_SetGlobalVar (JSContext *ctx, JSAtom prop, JSValue val, int flag)
 
int JS_DeleteProperty (JSContext *ctx, JSValueConst obj, JSAtom prop, int flags)
 
int JS_DeletePropertyInt64 (JSContext *ctx, JSValueConst obj, int64_t idx, int flags)
 
BOOL JS_IsFunction (JSContext *ctx, JSValueConst val)
 
BOOL JS_IsCFunction (JSContext *ctx, JSValueConst val, JSCFunction *func, int magic)
 
BOOL JS_IsConstructor (JSContext *ctx, JSValueConst val)
 
BOOL JS_SetConstructorBit (JSContext *ctx, JSValueConst func_obj, BOOL val)
 
BOOL JS_IsError (JSContext *ctx, JSValueConst val)
 
BOOL JS_IsUncatchableError (JSContext *ctx, JSValueConst val)
 
void JS_ResetUncatchableError (JSContext *ctx)
 
void JS_SetOpaque (JSValue obj, void *opaque)
 
void * JS_GetOpaque (JSValueConst obj, JSClassID class_id)
 
void * JS_GetOpaque2 (JSContext *ctx, JSValueConst obj, JSClassID class_id)
 
void * JS_GetOpaque_Nocheck (JSValueConst obj)
 
static JSValue JS_ToPrimitiveFree (JSContext *ctx, JSValue val, int hint)
 
static JSValue JS_ToPrimitive (JSContext *ctx, JSValueConst val, int hint)
 
void JS_SetIsHTMLDDA (JSContext *ctx, JSValueConst obj)
 
static BOOL JS_IsHTMLDDA (JSContext *ctx, JSValueConst obj)
 
static int JS_ToBoolFree (JSContext *ctx, JSValue val)
 
int JS_ToBool (JSContext *ctx, JSValueConst val)
 
static int skip_spaces (const char *pc)
 
static int to_digit (int c)
 
static double js_strtod (const char *p, int radix, BOOL is_float)
 
static JSValue js_atof (JSContext *ctx, const char *str, const char **pp, int radix, int flags)
 
static JSValue JS_ToNumberHintFree (JSContext *ctx, JSValue val, JSToNumberHintEnum flag)
 
static JSValue JS_ToNumericFree (JSContext *ctx, JSValue val)
 
static JSValue JS_ToNumeric (JSContext *ctx, JSValueConst val)
 
static __exception int __JS_ToFloat64Free (JSContext *ctx, double *pres, JSValue val)
 
static int JS_ToFloat64Free (JSContext *ctx, double *pres, JSValue val)
 
int JS_ToFloat64 (JSContext *ctx, double *pres, JSValueConst val)
 
static __maybe_unused JSValue JS_ToIntegerFree (JSContext *ctx, JSValue val)
 
static int JS_ToInt32SatFree (JSContext *ctx, int *pres, JSValue val)
 
int JS_ToInt32Sat (JSContext *ctx, int *pres, JSValueConst val)
 
int JS_ToInt32Clamp (JSContext *ctx, int *pres, JSValueConst val, int min, int max, int min_offset)
 
static int JS_ToInt64SatFree (JSContext *ctx, int64_t *pres, JSValue val)
 
int JS_ToInt64Sat (JSContext *ctx, int64_t *pres, JSValueConst val)
 
int JS_ToInt64Clamp (JSContext *ctx, int64_t *pres, JSValueConst val, int64_t min, int64_t max, int64_t neg_offset)
 
static int JS_ToInt64Free (JSContext *ctx, int64_t *pres, JSValue val)
 
int JS_ToInt64 (JSContext *ctx, int64_t *pres, JSValueConst val)
 
int JS_ToInt64Ext (JSContext *ctx, int64_t *pres, JSValueConst val)
 
static int JS_ToInt32Free (JSContext *ctx, int32_t *pres, JSValue val)
 
int JS_ToInt32 (JSContext *ctx, int32_t *pres, JSValueConst val)
 
static int JS_ToUint32Free (JSContext *ctx, uint32_t *pres, JSValue val)
 
static int JS_ToUint8ClampFree (JSContext *ctx, int32_t *pres, JSValue val)
 
static BOOL is_safe_integer (double d)
 
int JS_ToIndex (JSContext *ctx, uint64_t *plen, JSValueConst val)
 
static __exception int JS_ToLengthFree (JSContext *ctx, int64_t *plen, JSValue val)
 
static char * i64toa (char *buf_end, int64_t n, unsigned int base)
 
static void js_ecvt1 (double d, int n_digits, int *decpt, int *sign, char *buf, int rounding_mode, char *buf1, int buf1_size)
 
static int js_ecvt (double d, int n_digits, int *decpt, int *sign, char *buf, BOOL is_fixed)
 
static int js_fcvt1 (char *buf, int buf_size, double d, int n_digits, int rounding_mode)
 
static void js_fcvt (char *buf, int buf_size, double d, int n_digits)
 
static void js_dtoa1 (char *buf, double d, int radix, int n_digits, int flags)
 
static JSValue js_dtoa (JSContext *ctx, double d, int radix, int n_digits, int flags)
 
JSValue JS_ToStringInternal (JSContext *ctx, JSValueConst val, BOOL is_ToPropertyKey)
 
JSValue JS_ToString (JSContext *ctx, JSValueConst val)
 
static JSValue JS_ToStringFree (JSContext *ctx, JSValue val)
 
static JSValue JS_ToLocaleStringFree (JSContext *ctx, JSValue val)
 
JSValue JS_ToPropertyKey (JSContext *ctx, JSValueConst val)
 
static JSValue JS_ToStringCheckObject (JSContext *ctx, JSValueConst val)
 
static JSValue JS_ToQuotedString (JSContext *ctx, JSValueConst val1)
 
static __maybe_unused void JS_DumpObjectHeader (JSRuntime *rt)
 
static __maybe_unused void JS_DumpObject (JSRuntime *rt, JSObject *p)
 
static __maybe_unused void JS_DumpGCObject (JSRuntime *rt, JSGCObjectHeader *p)
 
static __maybe_unused void JS_DumpValueShort (JSRuntime *rt, JSValueConst val)
 
static __maybe_unused void JS_DumpValue (JSContext *ctx, JSValueConst val)
 
static __maybe_unused void JS_PrintValue (JSContext *ctx, const char *str, JSValueConst val)
 
int JS_IsArray (JSContext *ctx, JSValueConst val)
 
static double js_pow (double a, double b)
 
static JSValue JS_ThrowUnsupportedBigint (JSContext *ctx)
 
JSValue JS_NewBigInt64 (JSContext *ctx, int64_t v)
 
JSValue JS_NewBigUint64 (JSContext *ctx, uint64_t v)
 
int JS_ToBigInt64 (JSContext *ctx, int64_t *pres, JSValueConst val)
 
static no_inline __exception int js_unary_arith_slow (JSContext *ctx, JSValue *sp, OPCodeEnum op)
 
static __exception int js_post_inc_slow (JSContext *ctx, JSValue *sp, OPCodeEnum op)
 
static no_inline __exception int js_binary_arith_slow (JSContext *ctx, JSValue *sp, OPCodeEnum op)
 
static no_inline __exception int js_add_slow (JSContext *ctx, JSValue *sp)
 
static no_inline __exception int js_binary_logic_slow (JSContext *ctx, JSValue *sp, OPCodeEnum op)
 
static no_inline int js_not_slow (JSContext *ctx, JSValue *sp)
 
static no_inline int js_relational_slow (JSContext *ctx, JSValue *sp, OPCodeEnum op)
 
static no_inline __exception int js_eq_slow (JSContext *ctx, JSValue *sp, BOOL is_neq)
 
static no_inline int js_shr_slow (JSContext *ctx, JSValue *sp)
 
static no_inline int js_strict_eq_slow (JSContext *ctx, JSValue *sp, BOOL is_neq)
 
static __exception int js_operator_in (JSContext *ctx, JSValue *sp)
 
static __exception int js_has_unscopable (JSContext *ctx, JSValueConst obj, JSAtom atom)
 
static __exception int js_operator_instanceof (JSContext *ctx, JSValue *sp)
 
static __exception int js_operator_typeof (JSContext *ctx, JSValueConst op1)
 
static __exception int js_operator_delete (JSContext *ctx, JSValue *sp)
 
static JSValue js_throw_type_error (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue js_function_proto_caller (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue js_function_proto_fileName (JSContext *ctx, JSValueConst this_val)
 
static JSValue js_function_proto_lineNumber (JSContext *ctx, JSValueConst this_val)
 
static int js_arguments_define_own_property (JSContext *ctx, JSValueConst this_obj, JSAtom prop, JSValueConst val, JSValueConst getter, JSValueConst setter, int flags)
 
static JSValue js_build_arguments (JSContext *ctx, int argc, JSValueConst *argv)
 
static JSValue js_build_mapped_arguments (JSContext *ctx, int argc, JSValueConst *argv, JSStackFrame *sf, int arg_count)
 
static JSValue js_build_rest (JSContext *ctx, int first, int argc, JSValueConst *argv)
 
static JSValue build_for_in_iterator (JSContext *ctx, JSValue obj)
 
static __exception int js_for_in_start (JSContext *ctx, JSValue *sp)
 
static __exception int js_for_in_next (JSContext *ctx, JSValue *sp)
 
static JSValue JS_GetIterator2 (JSContext *ctx, JSValueConst obj, JSValueConst method)
 
static JSValue JS_GetIterator (JSContext *ctx, JSValueConst obj, BOOL is_async)
 
static JSValue JS_IteratorNext2 (JSContext *ctx, JSValueConst enum_obj, JSValueConst method, int argc, JSValueConst *argv, int *pdone)
 
static JSValue JS_IteratorNext (JSContext *ctx, JSValueConst enum_obj, JSValueConst method, int argc, JSValueConst *argv, BOOL *pdone)
 
static int JS_IteratorClose (JSContext *ctx, JSValueConst enum_obj, BOOL is_exception_pending)
 
static __exception int js_for_of_start (JSContext *ctx, JSValue *sp, BOOL is_async)
 
static __exception int js_for_of_next (JSContext *ctx, JSValue *sp, int offset)
 
static JSValue JS_IteratorGetCompleteValue (JSContext *ctx, JSValueConst obj, BOOL *pdone)
 
static __exception int js_iterator_get_value_done (JSContext *ctx, JSValue *sp)
 
static JSValue js_create_iterator_result (JSContext *ctx, JSValue val, BOOL done)
 
static JSValue js_array_iterator_next (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv, BOOL *pdone, int magic)
 
static JSValue js_create_array_iterator (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv, int magic)
 
static BOOL js_is_fast_array (JSContext *ctx, JSValueConst obj)
 
static __exception int js_append_enumerate (JSContext *ctx, JSValue *sp)
 
static __exception int JS_CopyDataProperties (JSContext *ctx, JSValueConst target, JSValueConst source, JSValueConst excluded, BOOL setprop)
 
static JSValueConst JS_GetActiveFunction (JSContext *ctx)
 
static JSValue js_closure2 (JSContext *ctx, JSValue func_obj, JSFunctionBytecode *b, JSVarRef **cur_var_refs, JSStackFrame *sf)
 
static JSValue js_closure (JSContext *ctx, JSValue bfunc, JSVarRef **cur_var_refs, JSStackFrame *sf)
 
static int js_op_define_class (JSContext *ctx, JSValue *sp, JSAtom class_name, int class_flags, JSVarRef **cur_var_refs, JSStackFrame *sf, BOOL is_computed_name)
 
static void close_var_refs (JSRuntime *rt, JSStackFrame *sf)
 
static void close_lexical_var (JSContext *ctx, JSStackFrame *sf, int idx, int is_arg)
 
JSValue JS_Call (JSContext *ctx, JSValueConst func_obj, JSValueConst this_obj, int argc, JSValueConst *argv)
 
static JSContextJS_GetFunctionRealm (JSContext *ctx, JSValueConst func_obj)
 
static JSValue js_create_from_ctor (JSContext *ctx, JSValueConst ctor, int class_id)
 
JSValue JS_CallConstructor2 (JSContext *ctx, JSValueConst func_obj, JSValueConst new_target, int argc, JSValueConst *argv)
 
JSValue JS_CallConstructor (JSContext *ctx, JSValueConst func_obj, int argc, JSValueConst *argv)
 
JSValue JS_Invoke (JSContext *ctx, JSValueConst this_val, JSAtom atom, int argc, JSValueConst *argv)
 
static __exception int async_func_init (JSContext *ctx, JSAsyncFunctionState *s, JSValueConst func_obj, JSValueConst this_obj, int argc, JSValueConst *argv)
 
static void async_func_free (JSRuntime *rt, JSAsyncFunctionState *s)
 
static JSValue async_func_resume (JSContext *ctx, JSAsyncFunctionState *s)
 
static void free_generator_stack_rt (JSRuntime *rt, JSGeneratorData *s)
 
static void js_generator_finalizer (JSRuntime *rt, JSValue obj)
 
static void free_generator_stack (JSContext *ctx, JSGeneratorData *s)
 
static void js_generator_mark (JSRuntime *rt, JSValueConst val, JS_MarkFunc *mark_func)
 
static JSValue js_generator_next (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv, BOOL *pdone, int magic)
 
static void js_async_function_terminate (JSRuntime *rt, JSAsyncFunctionData *s)
 
static void js_async_function_free (JSRuntime *rt, JSAsyncFunctionData *s)
 
static int js_async_function_resolve_create (JSContext *ctx, JSAsyncFunctionData *s, JSValue *resolving_funcs)
 
static void js_async_function_resume (JSContext *ctx, JSAsyncFunctionData *s)
 
static JSValue js_async_function_resolve_call (JSContext *ctx, JSValueConst func_obj, JSValueConst this_obj, int argc, JSValueConst *argv, int flags)
 
static JSValue js_async_function_call (JSContext *ctx, JSValueConst func_obj, JSValueConst this_obj, int argc, JSValueConst *argv, int flags)
 
static void js_async_generator_free (JSRuntime *rt, JSAsyncGeneratorData *s)
 
static void js_async_generator_finalizer (JSRuntime *rt, JSValue obj)
 
static void js_async_generator_mark (JSRuntime *rt, JSValueConst val, JS_MarkFunc *mark_func)
 
static JSValue js_async_generator_resolve_function (JSContext *ctx, JSValueConst this_obj, int argc, JSValueConst *argv, int magic, JSValue *func_data)
 
static int js_async_generator_resolve_function_create (JSContext *ctx, JSValueConst generator, JSValue *resolving_funcs, BOOL is_resume_next)
 
static int js_async_generator_await (JSContext *ctx, JSAsyncGeneratorData *s, JSValueConst value)
 
static void js_async_generator_resolve_or_reject (JSContext *ctx, JSAsyncGeneratorData *s, JSValueConst result, int is_reject)
 
static void js_async_generator_resolve (JSContext *ctx, JSAsyncGeneratorData *s, JSValueConst value, BOOL done)
 
static void js_async_generator_reject (JSContext *ctx, JSAsyncGeneratorData *s, JSValueConst exception)
 
static void js_async_generator_complete (JSContext *ctx, JSAsyncGeneratorData *s)
 
static int js_async_generator_completed_return (JSContext *ctx, JSAsyncGeneratorData *s, JSValueConst value)
 
static void js_async_generator_resume_next (JSContext *ctx, JSAsyncGeneratorData *s)
 
static JSValue js_async_generator_next (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv, int magic)
 
static JSValue js_async_generator_function_call (JSContext *ctx, JSValueConst func_obj, JSValueConst this_obj, int argc, JSValueConst *argv, int flags)
 
static __exception int next_token (JSParseState *s)
 
static void free_token (JSParseState *s, JSToken *token)
 
static void __maybe_unused dump_token (JSParseState *s, const JSToken *token)
 
static int js_parse_expect (JSParseState *s, int tok)
 
static int js_parse_expect_semi (JSParseState *s)
 
static int js_parse_error_reserved_identifier (JSParseState *s)
 
static __exception int js_parse_template_part (JSParseState *s, const uint8_t *p)
 
static __exception int js_parse_string (JSParseState *s, int sep, BOOL do_throw, const uint8_t *p, JSToken *token, const uint8_t **pp)
 
static BOOL token_is_pseudo_keyword (JSParseState *s, JSAtom atom)
 
static __exception int js_parse_regexp (JSParseState *s)
 
static __exception int ident_realloc (JSContext *ctx, char **pbuf, size_t *psize, char *static_buf)
 
static JSAtom parse_ident (JSParseState *s, const uint8_t **pp, BOOL *pident_has_escape, int c, BOOL is_private)
 
static JSAtom json_parse_ident (JSParseState *s, const uint8_t **pp, int c)
 
static __exception int json_next_token (JSParseState *s)
 
static int simple_next_token (const uint8_t **pp, BOOL no_line_terminator)
 
static int peek_token (JSParseState *s, BOOL no_line_terminator)
 
BOOL JS_DetectModule (const char *input, size_t input_len)
 
static int get_prev_opcode (JSFunctionDef *fd)
 
static BOOL js_is_live_code (JSParseState *s)
 
static void emit_u8 (JSParseState *s, uint8_t val)
 
static void emit_u16 (JSParseState *s, uint16_t val)
 
static void emit_u32 (JSParseState *s, uint32_t val)
 
static void emit_op (JSParseState *s, uint8_t val)
 
static void emit_atom (JSParseState *s, JSAtom name)
 
static int update_label (JSFunctionDef *s, int label, int delta)
 
static int new_label_fd (JSFunctionDef *fd, int label)
 
static int new_label (JSParseState *s)
 
static int emit_label (JSParseState *s, int label)
 
static int emit_goto (JSParseState *s, int opcode, int label)
 
static int cpool_add (JSParseState *s, JSValue val)
 
static __exception int emit_push_const (JSParseState *s, JSValueConst val, BOOL as_atom)
 
static int find_arg (JSContext *ctx, JSFunctionDef *fd, JSAtom name)
 
static int find_var (JSContext *ctx, JSFunctionDef *fd, JSAtom name)
 
static int find_var_in_scope (JSContext *ctx, JSFunctionDef *fd, JSAtom name, int scope_level)
 
static BOOL is_child_scope (JSContext *ctx, JSFunctionDef *fd, int scope, int parent_scope)
 
static int find_var_in_child_scope (JSContext *ctx, JSFunctionDef *fd, JSAtom name, int scope_level)
 
static JSGlobalVarfind_global_var (JSFunctionDef *fd, JSAtom name)
 
static JSGlobalVarfind_lexical_global_var (JSFunctionDef *fd, JSAtom name)
 
static int find_lexical_decl (JSContext *ctx, JSFunctionDef *fd, JSAtom name, int scope_idx, BOOL check_catch_var)
 
static int push_scope (JSParseState *s)
 
static int get_first_lexical_var (JSFunctionDef *fd, int scope)
 
static void pop_scope (JSParseState *s)
 
static void close_scopes (JSParseState *s, int scope, int scope_stop)
 
static int add_var (JSContext *ctx, JSFunctionDef *fd, JSAtom name)
 
static int add_scope_var (JSContext *ctx, JSFunctionDef *fd, JSAtom name, JSVarKindEnum var_kind)
 
static int add_func_var (JSContext *ctx, JSFunctionDef *fd, JSAtom name)
 
static int add_arguments_var (JSContext *ctx, JSFunctionDef *fd)
 
static int add_arguments_arg (JSContext *ctx, JSFunctionDef *fd)
 
static int add_arg (JSContext *ctx, JSFunctionDef *fd, JSAtom name)
 
static JSGlobalVaradd_global_var (JSContext *ctx, JSFunctionDef *s, JSAtom name)
 
static int define_var (JSParseState *s, JSFunctionDef *fd, JSAtom name, JSVarDefEnum var_def_type)
 
static int add_private_class_field (JSParseState *s, JSFunctionDef *fd, JSAtom name, JSVarKindEnum var_kind)
 
static __exception int js_parse_expr (JSParseState *s)
 
static __exception int js_parse_function_decl (JSParseState *s, JSParseFunctionEnum func_type, JSFunctionKindEnum func_kind, JSAtom func_name, const uint8_t *ptr, int start_line)
 
static JSFunctionDefjs_parse_function_class_fields_init (JSParseState *s)
 
static __exception int js_parse_function_decl2 (JSParseState *s, JSParseFunctionEnum func_type, JSFunctionKindEnum func_kind, JSAtom func_name, const uint8_t *ptr, int function_line_num, JSParseExportEnum export_flag, JSFunctionDef **pfd)
 
static __exception int js_parse_assign_expr2 (JSParseState *s, int parse_flags)
 
static __exception int js_parse_assign_expr (JSParseState *s)
 
static __exception int js_parse_unary (JSParseState *s, int parse_flags)
 
static void push_break_entry (JSFunctionDef *fd, BlockEnv *be, JSAtom label_name, int label_break, int label_cont, int drop_count)
 
static void pop_break_entry (JSFunctionDef *fd)
 
static JSExportEntryadd_export_entry (JSParseState *s, JSModuleDef *m, JSAtom local_name, JSAtom export_name, JSExportTypeEnum export_type)
 
static int seal_template_obj (JSContext *ctx, JSValueConst obj)
 
static __exception int js_parse_template (JSParseState *s, int call, int *argc)
 
static BOOL token_is_ident (int tok)
 
static int __exception js_parse_property_name (JSParseState *s, JSAtom *pname, BOOL allow_method, BOOL allow_var, BOOL allow_private)
 
static int js_parse_get_pos (JSParseState *s, JSParsePos *sp)
 
static __exception int js_parse_seek_token (JSParseState *s, const JSParsePos *sp)
 
static BOOL is_regexp_allowed (int tok)
 
static int js_parse_skip_parens_token (JSParseState *s, int *pbits, BOOL no_line_terminator)
 
static void set_object_name (JSParseState *s, JSAtom name)
 
static void set_object_name_computed (JSParseState *s)
 
static __exception int js_parse_object_literal (JSParseState *s)
 
static __exception int js_parse_postfix_expr (JSParseState *s, int parse_flags)
 
static __exception int js_parse_left_hand_side_expr (JSParseState *s)
 
static __exception int js_parse_class_default_ctor (JSParseState *s, BOOL has_super, JSFunctionDef **pfd)
 
static int find_private_class_field (JSContext *ctx, JSFunctionDef *fd, JSAtom name, int scope_level)
 
static void emit_class_field_init (JSParseState *s)
 
static JSAtom get_private_setter_name (JSContext *ctx, JSAtom name)
 
static __exception int emit_class_init_start (JSParseState *s, ClassFieldsDef *cf)
 
static __exception int add_brand (JSParseState *s, ClassFieldsDef *cf)
 
static void emit_class_init_end (JSParseState *s, ClassFieldsDef *cf)
 
static __exception int js_parse_class (JSParseState *s, BOOL is_class_expr, JSParseExportEnum export_flag)
 
static __exception int js_parse_array_literal (JSParseState *s)
 
static BOOL has_with_scope (JSFunctionDef *s, int scope_level)
 
static __exception int get_lvalue (JSParseState *s, int *popcode, int *pscope, JSAtom *pname, int *plabel, int *pdepth, BOOL keep, int tok)
 
static void put_lvalue (JSParseState *s, int opcode, int scope, JSAtom name, int label, PutLValueEnum special, BOOL is_let)
 
static __exception int js_parse_expr_paren (JSParseState *s)
 
static int js_unsupported_keyword (JSParseState *s, JSAtom atom)
 
static __exception int js_define_var (JSParseState *s, JSAtom name, int tok)
 
static void js_emit_spread_code (JSParseState *s, int depth)
 
static int js_parse_check_duplicate_parameter (JSParseState *s, JSAtom name)
 
static JSAtom js_parse_destructuring_var (JSParseState *s, int tok, int is_arg)
 
static int js_parse_destructuring_element (JSParseState *s, int tok, int is_arg, int hasval, int has_ellipsis, BOOL allow_initializer)
 
static void optional_chain_test (JSParseState *s, int *poptional_chaining_label, int drop_count)
 
static __exception int js_parse_delete (JSParseState *s)
 
static __exception int js_parse_expr_binary (JSParseState *s, int level, int parse_flags)
 
static __exception int js_parse_logical_and_or (JSParseState *s, int op, int parse_flags)
 
static __exception int js_parse_coalesce_expr (JSParseState *s, int parse_flags)
 
static __exception int js_parse_cond_expr (JSParseState *s, int parse_flags)
 
static void emit_return (JSParseState *s, BOOL hasval)
 
static __exception int js_parse_expr2 (JSParseState *s, int parse_flags)
 
static __exception int emit_break (JSParseState *s, JSAtom name, int is_cont)
 
static __exception int js_parse_statement_or_decl (JSParseState *s, int decl_mask)
 
static __exception int js_parse_statement (JSParseState *s)
 
static __exception int js_parse_block (JSParseState *s)
 
static __exception int js_parse_var (JSParseState *s, int parse_flags, int tok, BOOL export_flag)
 
static BOOL is_label (JSParseState *s)
 
static int is_let (JSParseState *s, int decl_mask)
 
static __exception int js_parse_for_in_of (JSParseState *s, int label_name, BOOL is_async)
 
static void set_eval_ret_undefined (JSParseState *s)
 
static JSModuleDefjs_new_module_def (JSContext *ctx, JSAtom name)
 
static int add_req_module_entry (JSContext *ctx, JSModuleDef *m, JSAtom module_name)
 
static JSExportEntryfind_export_entry (JSContext *ctx, JSModuleDef *m, JSAtom export_name)
 
static JSExportEntryadd_export_entry2 (JSContext *ctx, JSParseState *s, JSModuleDef *m, JSAtom local_name, JSAtom export_name, JSExportTypeEnum export_type)
 
static int add_star_export_entry (JSContext *ctx, JSModuleDef *m, int req_module_idx)
 
JSModuleDefJS_NewCModule (JSContext *ctx, const char *name_str, JSModuleInitFunc *func)
 
int JS_AddModuleExport (JSContext *ctx, JSModuleDef *m, const char *export_name)
 
int JS_SetModuleExport (JSContext *ctx, JSModuleDef *m, const char *export_name, JSValue val)
 
void JS_SetModuleLoaderFunc (JSRuntime *rt, JSModuleNormalizeFunc *module_normalize, JSModuleLoaderFunc *module_loader, void *opaque)
 
static char * js_default_module_normalize_name (JSContext *ctx, const char *base_name, const char *name)
 
static JSModuleDefjs_find_loaded_module (JSContext *ctx, JSAtom name)
 
static JSModuleDefjs_host_resolve_imported_module (JSContext *ctx, const char *base_cname, const char *cname1)
 
static JSModuleDefjs_host_resolve_imported_module_atom (JSContext *ctx, JSAtom base_module_name, JSAtom module_name1)
 
static int find_resolve_entry (JSResolveState *s, JSModuleDef *m, JSAtom name)
 
static int add_resolve_entry (JSContext *ctx, JSResolveState *s, JSModuleDef *m, JSAtom name)
 
static JSResolveResultEnum js_resolve_export1 (JSContext *ctx, JSModuleDef **pmodule, JSExportEntry **pme, JSModuleDef *m, JSAtom export_name, JSResolveState *s)
 
static JSResolveResultEnum js_resolve_export (JSContext *ctx, JSModuleDef **pmodule, JSExportEntry **pme, JSModuleDef *m, JSAtom export_name)
 
static void js_resolve_export_throw_error (JSContext *ctx, JSResolveResultEnum res, JSModuleDef *m, JSAtom export_name)
 
static int find_exported_name (GetExportNamesState *s, JSAtom name)
 
static __exception int get_exported_names (JSContext *ctx, GetExportNamesState *s, JSModuleDef *m, BOOL from_star)
 
static int js_module_ns_has (JSContext *ctx, JSValueConst obj, JSAtom atom)
 
static int exported_names_cmp (const void *p1, const void *p2, void *opaque)
 
static JSValue js_get_module_ns (JSContext *ctx, JSModuleDef *m)
 
static JSValue js_build_module_ns (JSContext *ctx, JSModuleDef *m)
 
static int js_resolve_module (JSContext *ctx, JSModuleDef *m)
 
static JSVarRefjs_create_module_var (JSContext *ctx, BOOL is_lexical)
 
static int js_create_module_bytecode_function (JSContext *ctx, JSModuleDef *m)
 
static int js_create_module_function (JSContext *ctx, JSModuleDef *m)
 
static int js_link_module (JSContext *ctx, JSModuleDef *m)
 
JSAtom JS_GetScriptOrModuleName (JSContext *ctx, int n_stack_levels)
 
JSAtom JS_GetModuleName (JSContext *ctx, JSModuleDef *m)
 
JSValue JS_GetImportMeta (JSContext *ctx, JSModuleDef *m)
 
JSModuleDefJS_RunModule (JSContext *ctx, const char *basename, const char *filename)
 
static JSValue js_dynamic_import_job (JSContext *ctx, int argc, JSValueConst *argv)
 
static JSValue js_evaluate_module (JSContext *ctx, JSModuleDef *m)
 
static __exception JSAtom js_parse_from_clause (JSParseState *s)
 
static __exception int js_parse_export (JSParseState *s)
 
static int add_closure_var (JSContext *ctx, JSFunctionDef *s, BOOL is_local, BOOL is_arg, int var_idx, JSAtom var_name, BOOL is_const, BOOL is_lexical, JSVarKindEnum var_kind)
 
static int add_import (JSParseState *s, JSModuleDef *m, JSAtom local_name, JSAtom import_name)
 
static __exception int js_parse_import (JSParseState *s)
 
static __exception int js_parse_source_element (JSParseState *s)
 
static JSFunctionDefjs_new_function_def (JSContext *ctx, JSFunctionDef *parent, BOOL is_eval, BOOL is_func_expr, const char *filename, int line_num)
 
static void free_bytecode_atoms (JSRuntime *rt, const uint8_t *bc_buf, int bc_len, BOOL use_short_opcodes)
 
static void js_free_function_def (JSContext *ctx, JSFunctionDef *fd)
 
static int find_closure_var (JSContext *ctx, JSFunctionDef *s, JSAtom var_name)
 
static int get_closure_var2 (JSContext *ctx, JSFunctionDef *s, JSFunctionDef *fd, BOOL is_local, BOOL is_arg, int var_idx, JSAtom var_name, BOOL is_const, BOOL is_lexical, JSVarKindEnum var_kind)
 
static int get_closure_var (JSContext *ctx, JSFunctionDef *s, JSFunctionDef *fd, BOOL is_arg, int var_idx, JSAtom var_name, BOOL is_const, BOOL is_lexical, JSVarKindEnum var_kind)
 
static int get_with_scope_opcode (int op)
 
static BOOL can_opt_put_ref_value (const uint8_t *bc_buf, int pos)
 
static BOOL can_opt_put_global_ref_value (const uint8_t *bc_buf, int pos)
 
static int optimize_scope_make_ref (JSContext *ctx, JSFunctionDef *s, DynBuf *bc, uint8_t *bc_buf, LabelSlot *ls, int pos_next, int get_op, int var_idx)
 
static int optimize_scope_make_global_ref (JSContext *ctx, JSFunctionDef *s, DynBuf *bc, uint8_t *bc_buf, LabelSlot *ls, int pos_next, JSAtom var_name)
 
static int add_var_this (JSContext *ctx, JSFunctionDef *fd)
 
static int resolve_pseudo_var (JSContext *ctx, JSFunctionDef *s, JSAtom var_name)
 
static void var_object_test (JSContext *ctx, JSFunctionDef *s, JSAtom var_name, int op, DynBuf *bc, int *plabel_done, BOOL is_with)
 
static int resolve_scope_var (JSContext *ctx, JSFunctionDef *s, JSAtom var_name, int scope_level, int op, DynBuf *bc, uint8_t *bc_buf, LabelSlot *ls, int pos_next)
 
static int find_private_class_field_all (JSContext *ctx, JSFunctionDef *fd, JSAtom name, int scope_level)
 
static void get_loc_or_ref (DynBuf *bc, BOOL is_ref, int idx)
 
static int resolve_scope_private_field1 (JSContext *ctx, BOOL *pis_ref, int *pvar_kind, JSFunctionDef *s, JSAtom var_name, int scope_level)
 
static int resolve_scope_private_field (JSContext *ctx, JSFunctionDef *s, JSAtom var_name, int scope_level, int op, DynBuf *bc)
 
static void mark_eval_captured_variables (JSContext *ctx, JSFunctionDef *s, int scope_level)
 
static BOOL is_var_in_arg_scope (const JSVarDef *vd)
 
static void add_eval_variables (JSContext *ctx, JSFunctionDef *s)
 
static void set_closure_from_var (JSContext *ctx, JSClosureVar *cv, JSVarDef *vd, int var_idx)
 
static __exception int add_closure_variables (JSContext *ctx, JSFunctionDef *s, JSFunctionBytecode *b, int scope_idx)
 
static BOOL code_match (CodeContext *s, int pos,...)
 
static void instantiate_hoisted_definitions (JSContext *ctx, JSFunctionDef *s, DynBuf *bc)
 
static int skip_dead_code (JSFunctionDef *s, const uint8_t *bc_buf, int bc_len, int pos, int *linep)
 
static int get_label_pos (JSFunctionDef *s, int label)
 
static __exception int resolve_variables (JSContext *ctx, JSFunctionDef *s)
 
static void add_pc2line_info (JSFunctionDef *s, uint32_t pc, int line_num)
 
static void compute_pc2line_info (JSFunctionDef *s)
 
static RelocEntryadd_reloc (JSContext *ctx, LabelSlot *ls, uint32_t addr, int size)
 
static BOOL code_has_label (CodeContext *s, int pos, int label)
 
static int find_jump_target (JSFunctionDef *s, int label, int *pop, int *pline)
 
static void push_short_int (DynBuf *bc_out, int val)
 
static void put_short_code (DynBuf *bc_out, int op, int idx)
 
static __exception int resolve_labels (JSContext *ctx, JSFunctionDef *s)
 
static __exception int ss_check (JSContext *ctx, StackSizeState *s, int pos, int op, int stack_len)
 
static __exception int compute_stack_size (JSContext *ctx, JSFunctionDef *fd, int *pstack_size)
 
static int add_module_variables (JSContext *ctx, JSFunctionDef *fd)
 
static JSValue js_create_function (JSContext *ctx, JSFunctionDef *fd)
 
static __exception int js_parse_directives (JSParseState *s)
 
static int js_parse_function_check_names (JSParseState *s, JSFunctionDef *fd, JSAtom func_name)
 
static __exception int js_parse_program (JSParseState *s)
 
static void js_parse_init (JSContext *ctx, JSParseState *s, const char *input, size_t input_len, const char *filename)
 
static JSValue JS_EvalFunctionInternal (JSContext *ctx, JSValue fun_obj, JSValueConst this_obj, JSVarRef **var_refs, JSStackFrame *sf)
 
JSValue JS_EvalFunction (JSContext *ctx, JSValue fun_obj)
 
static void skip_shebang (JSParseState *s)
 
static JSValue __JS_EvalInternal (JSContext *ctx, JSValueConst this_obj, const char *input, size_t input_len, const char *filename, int flags, int scope_idx)
 
JSValue JS_EvalThis (JSContext *ctx, JSValueConst this_obj, const char *input, size_t input_len, const char *filename, int eval_flags)
 
JSValue JS_Eval (JSContext *ctx, const char *input, size_t input_len, const char *filename, int eval_flags)
 
int JS_ResolveModule (JSContext *ctx, JSValueConst obj)
 
static void js_object_list_init (JSObjectList *s)
 
static uint32_t js_object_list_get_hash (JSObject *p, uint32_t hash_size)
 
static int js_object_list_resize_hash (JSContext *ctx, JSObjectList *s, uint32_t new_hash_size)
 
static int js_object_list_add (JSContext *ctx, JSObjectList *s, JSObject *obj)
 
static int js_object_list_find (JSContext *ctx, JSObjectList *s, JSObject *obj)
 
static void js_object_list_end (JSContext *ctx, JSObjectList *s)
 
static void bc_put_u8 (BCWriterState *s, uint8_t v)
 
static void bc_put_u16 (BCWriterState *s, uint16_t v)
 
static __maybe_unused void bc_put_u32 (BCWriterState *s, uint32_t v)
 
static void bc_put_u64 (BCWriterState *s, uint64_t v)
 
static void bc_put_leb128 (BCWriterState *s, uint32_t v)
 
static void bc_put_sleb128 (BCWriterState *s, int32_t v)
 
static void bc_set_flags (uint32_t *pflags, int *pidx, uint32_t val, int n)
 
static int bc_atom_to_idx (BCWriterState *s, uint32_t *pres, JSAtom atom)
 
static int bc_put_atom (BCWriterState *s, JSAtom atom)
 
static void bc_byte_swap (uint8_t *bc_buf, int bc_len)
 
static int JS_WriteFunctionBytecode (BCWriterState *s, const uint8_t *bc_buf1, int bc_len)
 
static void JS_WriteString (BCWriterState *s, JSString *p)
 
static int JS_WriteObjectRec (BCWriterState *s, JSValueConst obj)
 
static int JS_WriteFunctionTag (BCWriterState *s, JSValueConst obj)
 
static int JS_WriteModule (BCWriterState *s, JSValueConst obj)
 
static int JS_WriteArray (BCWriterState *s, JSValueConst obj)
 
static int JS_WriteObjectTag (BCWriterState *s, JSValueConst obj)
 
static int JS_WriteTypedArray (BCWriterState *s, JSValueConst obj)
 
static int JS_WriteArrayBuffer (BCWriterState *s, JSValueConst obj)
 
static int JS_WriteSharedArrayBuffer (BCWriterState *s, JSValueConst obj)
 
static int JS_WriteObjectAtoms (BCWriterState *s)
 
uint8_tJS_WriteObject2 (JSContext *ctx, size_t *psize, JSValueConst obj, int flags, uint8_t ***psab_tab, size_t *psab_tab_len)
 
uint8_tJS_WriteObject (JSContext *ctx, size_t *psize, JSValueConst obj, int flags)
 
static int bc_read_error_end (BCReaderState *s)
 
static int bc_get_u8 (BCReaderState *s, uint8_t *pval)
 
static int bc_get_u16 (BCReaderState *s, uint16_t *pval)
 
static __maybe_unused int bc_get_u32 (BCReaderState *s, uint32_t *pval)
 
static int bc_get_u64 (BCReaderState *s, uint64_t *pval)
 
static int bc_get_leb128 (BCReaderState *s, uint32_t *pval)
 
static int bc_get_sleb128 (BCReaderState *s, int32_t *pval)
 
static int bc_get_leb128_int (BCReaderState *s, int *pval)
 
static int bc_get_leb128_u16 (BCReaderState *s, uint16_t *pval)
 
static int bc_get_buf (BCReaderState *s, uint8_t *buf, uint32_t buf_len)
 
static int bc_idx_to_atom (BCReaderState *s, JSAtom *patom, uint32_t idx)
 
static int bc_get_atom (BCReaderState *s, JSAtom *patom)
 
static JSStringJS_ReadString (BCReaderState *s)
 
static uint32_t bc_get_flags (uint32_t flags, int *pidx, int n)
 
static int JS_ReadFunctionBytecode (BCReaderState *s, JSFunctionBytecode *b, int byte_code_offset, uint32_t bc_len)
 
static JSValue JS_ReadObjectRec (BCReaderState *s)
 
static int BC_add_object_ref1 (BCReaderState *s, JSObject *p)
 
static int BC_add_object_ref (BCReaderState *s, JSValueConst obj)
 
static JSValue JS_ReadFunctionTag (BCReaderState *s)
 
static JSValue JS_ReadModule (BCReaderState *s)
 
static JSValue JS_ReadObjectTag (BCReaderState *s)
 
static JSValue JS_ReadArray (BCReaderState *s, int tag)
 
static JSValue JS_ReadTypedArray (BCReaderState *s)
 
static JSValue JS_ReadArrayBuffer (BCReaderState *s)
 
static JSValue JS_ReadSharedArrayBuffer (BCReaderState *s)
 
static JSValue JS_ReadDate (BCReaderState *s)
 
static JSValue JS_ReadObjectValue (BCReaderState *s)
 
static int JS_ReadObjectAtoms (BCReaderState *s)
 
static void bc_reader_free (BCReaderState *s)
 
JSValue JS_ReadObject (JSContext *ctx, const uint8_t *buf, size_t buf_len, int flags)
 
static JSValue js_string_constructor (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue js_boolean_constructor (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue js_number_constructor (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static int check_function (JSContext *ctx, JSValueConst obj)
 
static int check_exception_free (JSContext *ctx, JSValue obj)
 
static JSAtom find_atom (JSContext *ctx, const char *name)
 
static int JS_InstantiateFunctionListItem (JSContext *ctx, JSValueConst obj, JSAtom atom, const JSCFunctionListEntry *e)
 
void JS_SetPropertyFunctionList (JSContext *ctx, JSValueConst obj, const JSCFunctionListEntry *tab, int len)
 
int JS_AddModuleExportList (JSContext *ctx, JSModuleDef *m, const JSCFunctionListEntry *tab, int len)
 
int JS_SetModuleExportList (JSContext *ctx, JSModuleDef *m, const JSCFunctionListEntry *tab, int len)
 
static void JS_SetConstructor2 (JSContext *ctx, JSValueConst func_obj, JSValueConst proto, int proto_flags, int ctor_flags)
 
void JS_SetConstructor (JSContext *ctx, JSValueConst func_obj, JSValueConst proto)
 
static void JS_NewGlobalCConstructor2 (JSContext *ctx, JSValue func_obj, const char *name, JSValueConst proto)
 
static JSValueConst JS_NewGlobalCConstructor (JSContext *ctx, const char *name, JSCFunction *func, int length, JSValueConst proto)
 
static JSValueConst JS_NewGlobalCConstructorOnly (JSContext *ctx, const char *name, JSCFunction *func, int length, JSValueConst proto)
 
static JSValue js_global_eval (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue js_global_isNaN (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue js_global_isFinite (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static int js_obj_to_desc (JSContext *ctx, JSPropertyDescriptor *d, JSValueConst desc)
 
static __exception int JS_DefinePropertyDesc (JSContext *ctx, JSValueConst obj, JSAtom prop, JSValueConst desc, int flags)
 
static __exception int JS_ObjectDefineProperties (JSContext *ctx, JSValueConst obj, JSValueConst properties)
 
static JSValue js_object_constructor (JSContext *ctx, JSValueConst new_target, int argc, JSValueConst *argv)
 
static JSValue js_object_create (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue js_object_getPrototypeOf (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv, int magic)
 
static JSValue js_object_setPrototypeOf (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue js_object_defineProperty (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv, int magic)
 
static JSValue js_object_defineProperties (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue js_object___defineGetter__ (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv, int magic)
 
static JSValue js_object_getOwnPropertyDescriptor (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv, int magic)
 
static JSValue js_object_getOwnPropertyDescriptors (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue JS_GetOwnPropertyNames2 (JSContext *ctx, JSValueConst obj1, int flags, int kind)
 
static JSValue js_object_getOwnPropertyNames (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue js_object_getOwnPropertySymbols (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue js_object_keys (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv, int kind)
 
static JSValue js_object_isExtensible (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv, int reflect)
 
static JSValue js_object_preventExtensions (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv, int reflect)
 
static JSValue js_object_hasOwnProperty (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue js_object_valueOf (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue js_object_toString (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue js_object_toLocaleString (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue js_object_assign (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue js_object_seal (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv, int freeze_flag)
 
static JSValue js_object_isSealed (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv, int is_frozen)
 
static JSValue js_object_fromEntries (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue js_object___getClass (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue js_object_is (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue JS_SpeciesConstructor (JSContext *ctx, JSValueConst obj, JSValueConst defaultConstructor)
 
static JSValue js_object_get___proto__ (JSContext *ctx, JSValueConst this_val)
 
static JSValue js_object_set___proto__ (JSContext *ctx, JSValueConst this_val, JSValueConst proto)
 
static JSValue js_object_isPrototypeOf (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue js_object_propertyIsEnumerable (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue js_object___lookupGetter__ (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv, int setter)
 
static JSValue js_function_proto (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue js_function_constructor (JSContext *ctx, JSValueConst new_target, int argc, JSValueConst *argv, int magic)
 
static JSValue js_function_apply (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv, int magic)
 
static JSValue js_function_call (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue js_function_bind (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue js_function_toString (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue js_function_hasInstance (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue iterator_to_array (JSContext *ctx, JSValueConst items)
 
static JSValue js_error_constructor (JSContext *ctx, JSValueConst new_target, int argc, JSValueConst *argv, int magic)
 
static JSValue js_error_toString (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue js_aggregate_error_constructor (JSContext *ctx, JSValueConst errors)
 
static int JS_CopySubArray (JSContext *ctx, JSValueConst obj, int64_t to_pos, int64_t from_pos, int64_t count, int dir)
 
static JSValue js_array_constructor (JSContext *ctx, JSValueConst new_target, int argc, JSValueConst *argv)
 
static JSValue js_array_from (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue js_array_of (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue js_array_isArray (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue js_get_this (JSContext *ctx, JSValueConst this_val)
 
static JSValue JS_ArraySpeciesCreate (JSContext *ctx, JSValueConst obj, JSValueConst len_val)
 
static int JS_isConcatSpreadable (JSContext *ctx, JSValueConst obj)
 
static JSValue js_array_concat (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static int js_typed_array_get_length_internal (JSContext *ctx, JSValueConst obj)
 
static JSValue js_typed_array___speciesCreate (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue js_array_every (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv, int special)
 
static JSValue js_array_reduce (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv, int special)
 
static JSValue js_array_fill (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue js_array_includes (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue js_array_indexOf (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue js_array_lastIndexOf (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue js_array_find (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv, int findIndex)
 
static JSValue js_array_toString (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue js_array_join (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv, int toLocaleString)
 
static JSValue js_array_pop (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv, int shift)
 
static JSValue js_array_push (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv, int unshift)
 
static JSValue js_array_reverse (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue js_array_slice (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv, int splice)
 
static JSValue js_array_copyWithin (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static int64_t JS_FlattenIntoArray (JSContext *ctx, JSValueConst target, JSValueConst source, int64_t sourceLen, int64_t targetIndex, int depth, JSValueConst mapperFunction, JSValueConst thisArg)
 
static JSValue js_array_flatten (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv, int map)
 
static int js_array_cmp_generic (const void *a, const void *b, void *opaque)
 
static JSValue js_array_sort (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static void js_array_iterator_finalizer (JSRuntime *rt, JSValue val)
 
static void js_array_iterator_mark (JSRuntime *rt, JSValueConst val, JS_MarkFunc *mark_func)
 
static JSValue js_create_array (JSContext *ctx, int len, JSValueConst *tab)
 
static JSValue js_iterator_proto_iterator (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue js_number_isNaN (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue js_number_isFinite (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue js_number_isInteger (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue js_number_isSafeInteger (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue js_thisNumberValue (JSContext *ctx, JSValueConst this_val)
 
static JSValue js_number_valueOf (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static int js_get_radix (JSContext *ctx, JSValueConst val)
 
static JSValue js_number_toString (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv, int magic)
 
static JSValue js_number_toFixed (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue js_number_toExponential (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue js_number_toPrecision (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue js_parseInt (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue js_parseFloat (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue js_thisBooleanValue (JSContext *ctx, JSValueConst this_val)
 
static JSValue js_boolean_toString (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue js_boolean_valueOf (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static int js_string_get_own_property (JSContext *ctx, JSPropertyDescriptor *desc, JSValueConst obj, JSAtom prop)
 
static int js_string_define_own_property (JSContext *ctx, JSValueConst this_obj, JSAtom prop, JSValueConst val, JSValueConst getter, JSValueConst setter, int flags)
 
static int js_string_delete_property (JSContext *ctx, JSValueConst obj, JSAtom prop)
 
static JSValue js_thisStringValue (JSContext *ctx, JSValueConst this_val)
 
static JSValue js_string_fromCharCode (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue js_string_fromCodePoint (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue js_string_raw (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
JSValue js_string_codePointRange (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue js_string_charCodeAt (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue js_string_charAt (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue js_string_codePointAt (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue js_string_concat (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static int string_cmp (JSString *p1, JSString *p2, int x1, int x2, int len)
 
static int string_indexof_char (JSString *p, int c, int from)
 
static int string_indexof (JSString *p1, JSString *p2, int from)
 
static int64_t string_advance_index (JSString *p, int64_t index, BOOL unicode)
 
static JSValue js_string_indexOf (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv, int lastIndexOf)
 
static int js_is_regexp (JSContext *ctx, JSValueConst obj)
 
static JSValue js_string_includes (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv, int magic)
 
static int check_regexp_g_flag (JSContext *ctx, JSValueConst regexp)
 
static JSValue js_string_match (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv, int atom)
 
static JSValue js_string___GetSubstitution (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue js_string_replace (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv, int is_replaceAll)
 
static JSValue js_string_split (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue js_string_substring (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue js_string_substr (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue js_string_slice (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue js_string_pad (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv, int padEnd)
 
static JSValue js_string_repeat (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue js_string_trim (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv, int magic)
 
static JSValue js_string___quote (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static int string_prevc (JSString *p, int *pidx)
 
static BOOL test_final_sigma (JSString *p, int sigma_pos)
 
static JSValue js_string_localeCompare (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue js_string_toLowerCase (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv, int to_lower)
 
static int JS_ToUTF32String (JSContext *ctx, uint32_t **pbuf, JSValueConst val1)
 
static JSValue JS_NewUTF32String (JSContext *ctx, const uint32_t *buf, int len)
 
static JSValue js_string_normalize (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue js_string_toString (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue js_string_iterator_next (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv, BOOL *pdone, int magic)
 
static JSValue js_string_CreateHTML (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv, int magic)
 
void JS_AddIntrinsicStringNormalize (JSContext *ctx)
 
static double js_fmin (double a, double b)
 
static double js_fmax (double a, double b)
 
static JSValue js_math_min_max (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv, int magic)
 
static double js_math_sign (double a)
 
static double js_math_round (double a)
 
static JSValue js_math_hypot (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static double js_math_fround (double a)
 
static JSValue js_math_imul (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue js_math_clz32 (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static uint64_t xorshift64star (uint64_t *pstate)
 
static void js_random_init (JSContext *ctx)
 
static JSValue js_math_random (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue js___date_clock (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static int getTimezoneOffset (int64_t time)
 
static void js_regexp_finalizer (JSRuntime *rt, JSValue val)
 
static JSValue js_compile_regexp (JSContext *ctx, JSValueConst pattern, JSValueConst flags)
 
static JSValue js_regexp_constructor_internal (JSContext *ctx, JSValueConst ctor, JSValue pattern, JSValue bc)
 
static JSRegExpjs_get_regexp (JSContext *ctx, JSValueConst obj, BOOL throw_error)
 
static JSValue js_regexp_constructor (JSContext *ctx, JSValueConst new_target, int argc, JSValueConst *argv)
 
static JSValue js_regexp_compile (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue js_regexp_get_source (JSContext *ctx, JSValueConst this_val)
 
static JSValue js_regexp_get_flag (JSContext *ctx, JSValueConst this_val, int mask)
 
static JSValue js_regexp_get_flags (JSContext *ctx, JSValueConst this_val)
 
static JSValue js_regexp_toString (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
BOOL lre_check_stack_overflow (void *opaque, size_t alloca_size)
 
void * lre_realloc (void *opaque, void *ptr, size_t size)
 
static JSValue js_regexp_exec (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue JS_RegExpDelete (JSContext *ctx, JSValueConst this_val, JSValueConst arg)
 
static JSValue JS_RegExpExec (JSContext *ctx, JSValueConst r, JSValueConst s)
 
static JSValue js_regexp_test (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue js_regexp_Symbol_match (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static void js_regexp_string_iterator_finalizer (JSRuntime *rt, JSValue val)
 
static void js_regexp_string_iterator_mark (JSRuntime *rt, JSValueConst val, JS_MarkFunc *mark_func)
 
static JSValue js_regexp_string_iterator_next (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv, BOOL *pdone, int magic)
 
static JSValue js_regexp_Symbol_matchAll (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static int value_buffer_init (JSContext *ctx, ValueBuffer *b)
 
static void value_buffer_free (ValueBuffer *b)
 
static int value_buffer_append (ValueBuffer *b, JSValue val)
 
static int js_is_standard_regexp (JSContext *ctx, JSValueConst rx)
 
static JSValue js_regexp_Symbol_replace (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue js_regexp_Symbol_search (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue js_regexp_Symbol_split (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
void JS_AddIntrinsicRegExpCompiler (JSContext *ctx)
 
void JS_AddIntrinsicRegExp (JSContext *ctx)
 
static int json_parse_expect (JSParseState *s, int tok)
 
static JSValue json_parse_value (JSParseState *s)
 
JSValue JS_ParseJSON2 (JSContext *ctx, const char *buf, size_t buf_len, const char *filename, int flags)
 
JSValue JS_ParseJSON (JSContext *ctx, const char *buf, size_t buf_len, const char *filename)
 
static JSValue internalize_json_property (JSContext *ctx, JSValueConst holder, JSAtom name, JSValueConst reviver)
 
static JSValue js_json_parse (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue JS_ToQuotedStringFree (JSContext *ctx, JSValue val)
 
static JSValue js_json_check (JSContext *ctx, JSONStringifyContext *jsc, JSValueConst holder, JSValue val, JSValueConst key)
 
static int js_json_to_str (JSContext *ctx, JSONStringifyContext *jsc, JSValueConst holder, JSValue val, JSValueConst indent)
 
JSValue JS_JSONStringify (JSContext *ctx, JSValueConst obj, JSValueConst replacer, JSValueConst space0)
 
static JSValue js_json_stringify (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
void JS_AddIntrinsicJSON (JSContext *ctx)
 
static JSValue js_reflect_apply (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue js_reflect_construct (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue js_reflect_deleteProperty (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue js_reflect_get (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue js_reflect_has (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue js_reflect_set (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue js_reflect_setPrototypeOf (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue js_reflect_ownKeys (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static void js_proxy_finalizer (JSRuntime *rt, JSValue val)
 
static void js_proxy_mark (JSRuntime *rt, JSValueConst val, JS_MarkFunc *mark_func)
 
static JSProxyDataget_proxy_method (JSContext *ctx, JSValue *pmethod, JSValueConst obj, JSAtom name)
 
static int js_proxy_has (JSContext *ctx, JSValueConst obj, JSAtom atom)
 
static JSValue js_proxy_get (JSContext *ctx, JSValueConst obj, JSAtom atom, JSValueConst receiver)
 
static int js_proxy_set (JSContext *ctx, JSValueConst obj, JSAtom atom, JSValueConst value, JSValueConst receiver, int flags)
 
static JSValue js_create_desc (JSContext *ctx, JSValueConst val, JSValueConst getter, JSValueConst setter, int flags)
 
static int js_proxy_get_own_property (JSContext *ctx, JSPropertyDescriptor *pdesc, JSValueConst obj, JSAtom prop)
 
static int js_proxy_define_own_property (JSContext *ctx, JSValueConst obj, JSAtom prop, JSValueConst val, JSValueConst getter, JSValueConst setter, int flags)
 
static int js_proxy_delete_property (JSContext *ctx, JSValueConst obj, JSAtom atom)
 
static int find_prop_key (const JSPropertyEnum *tab, int n, JSAtom atom)
 
static int js_proxy_get_own_property_names (JSContext *ctx, JSPropertyEnum **ptab, uint32_t *plen, JSValueConst obj)
 
static JSValue js_proxy_call_constructor (JSContext *ctx, JSValueConst func_obj, JSValueConst new_target, int argc, JSValueConst *argv)
 
static JSValue js_proxy_call (JSContext *ctx, JSValueConst func_obj, JSValueConst this_obj, int argc, JSValueConst *argv, int flags)
 
static JSValue js_proxy_constructor (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue js_proxy_revoke (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv, int magic, JSValue *func_data)
 
static JSValue js_proxy_revoke_constructor (JSContext *ctx, JSValueConst proxy_obj)
 
static JSValue js_proxy_revocable (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
void JS_AddIntrinsicProxy (JSContext *ctx)
 
static JSValue js_symbol_constructor (JSContext *ctx, JSValueConst new_target, int argc, JSValueConst *argv)
 
static JSValue js_thisSymbolValue (JSContext *ctx, JSValueConst this_val)
 
static JSValue js_symbol_toString (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue js_symbol_valueOf (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue js_symbol_get_description (JSContext *ctx, JSValueConst this_val)
 
static JSValue js_symbol_for (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue js_symbol_keyFor (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue js_map_constructor (JSContext *ctx, JSValueConst new_target, int argc, JSValueConst *argv, int magic)
 
static JSValueConst map_normalize_key (JSContext *ctx, JSValueConst key)
 
static uint32_t map_hash_key (JSContext *ctx, JSValueConst key)
 
static JSMapRecordmap_find_record (JSContext *ctx, JSMapState *s, JSValueConst key)
 
static void map_hash_resize (JSContext *ctx, JSMapState *s)
 
static JSMapRecordmap_add_record (JSContext *ctx, JSMapState *s, JSValueConst key)
 
static void delete_weak_ref (JSRuntime *rt, JSMapRecord *mr)
 
static void map_delete_record (JSRuntime *rt, JSMapState *s, JSMapRecord *mr)
 
static void map_decref_record (JSRuntime *rt, JSMapRecord *mr)
 
static JSValue js_map_set (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv, int magic)
 
static JSValue js_map_get (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv, int magic)
 
static JSValue js_map_has (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv, int magic)
 
static JSValue js_map_delete (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv, int magic)
 
static JSValue js_map_clear (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv, int magic)
 
static JSValue js_map_get_size (JSContext *ctx, JSValueConst this_val, int magic)
 
static JSValue js_map_forEach (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv, int magic)
 
static void js_map_finalizer (JSRuntime *rt, JSValue val)
 
static void js_map_mark (JSRuntime *rt, JSValueConst val, JS_MarkFunc *mark_func)
 
static void js_map_iterator_finalizer (JSRuntime *rt, JSValue val)
 
static void js_map_iterator_mark (JSRuntime *rt, JSValueConst val, JS_MarkFunc *mark_func)
 
static JSValue js_create_map_iterator (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv, int magic)
 
static JSValue js_map_iterator_next (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv, BOOL *pdone, int magic)
 
void JS_AddIntrinsicMapSet (JSContext *ctx)
 
static int js_create_resolving_functions (JSContext *ctx, JSValue *args, JSValueConst promise)
 
static void promise_reaction_data_free (JSRuntime *rt, JSPromiseReactionData *rd)
 
static JSValue promise_reaction_job (JSContext *ctx, int argc, JSValueConst *argv)
 
void JS_SetHostPromiseRejectionTracker (JSRuntime *rt, JSHostPromiseRejectionTracker *cb, void *opaque)
 
static void fulfill_or_reject_promise (JSContext *ctx, JSValueConst promise, JSValueConst value, BOOL is_reject)
 
static void reject_promise (JSContext *ctx, JSValueConst promise, JSValueConst value)
 
static JSValue js_promise_resolve_thenable_job (JSContext *ctx, int argc, JSValueConst *argv)
 
static void js_promise_resolve_function_free_resolved (JSRuntime *rt, JSPromiseFunctionDataResolved *sr)
 
static void js_promise_resolve_function_finalizer (JSRuntime *rt, JSValue val)
 
static void js_promise_resolve_function_mark (JSRuntime *rt, JSValueConst val, JS_MarkFunc *mark_func)
 
static JSValue js_promise_resolve_function_call (JSContext *ctx, JSValueConst func_obj, JSValueConst this_val, int argc, JSValueConst *argv, int flags)
 
static void js_promise_finalizer (JSRuntime *rt, JSValue val)
 
static void js_promise_mark (JSRuntime *rt, JSValueConst val, JS_MarkFunc *mark_func)
 
static JSValue js_promise_constructor (JSContext *ctx, JSValueConst new_target, int argc, JSValueConst *argv)
 
static JSValue js_promise_executor (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv, int magic, JSValue *func_data)
 
static JSValue js_promise_executor_new (JSContext *ctx)
 
JSValue JS_NewPromiseCapability (JSContext *ctx, JSValue *resolving_funcs)
 
static __exception int remainingElementsCount_add (JSContext *ctx, JSValueConst resolve_element_env, int addend)
 
static JSValue js_promise_all_resolve_element (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv, int magic, JSValue *func_data)
 
static JSValue js_promise_all (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv, int magic)
 
static JSValue js_promise_race (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue js_promise_then (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue js_promise_catch (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue js_promise_finally_value_thunk (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv, int magic, JSValue *func_data)
 
static JSValue js_promise_finally_thrower (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv, int magic, JSValue *func_data)
 
static JSValue js_promise_then_finally_func (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv, int magic, JSValue *func_data)
 
static JSValue js_promise_finally (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue js_async_from_sync_iterator_unwrap (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv, int magic, JSValue *func_data)
 
static JSValue js_async_from_sync_iterator_unwrap_func_create (JSContext *ctx, BOOL done)
 
static void js_async_from_sync_iterator_finalizer (JSRuntime *rt, JSValue val)
 
static void js_async_from_sync_iterator_mark (JSRuntime *rt, JSValueConst val, JS_MarkFunc *mark_func)
 
static JSValue js_async_from_sync_iterator_next (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv, int magic)
 
void JS_AddIntrinsicPromise (JSContext *ctx)
 
static int string_get_hex (JSString *p, int k, int n)
 
static int isURIReserved (int c)
 
static int hex_decode (JSContext *ctx, JSString *p, int k)
 
static JSValue js_global_decodeURI (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv, int isComponent)
 
static int isUnescaped (int c)
 
static int isURIUnescaped (int c, int isComponent)
 
static int encodeURI_hex (StringBuffer *b, int c)
 
static JSValue js_global_encodeURI (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv, int isComponent)
 
static JSValue js_global_escape (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue js_global_unescape (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static int64_t math_mod (int64_t a, int64_t b)
 
static int64_t floor_div (int64_t a, int64_t b)
 
static JSValue js_Date_parse (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static __exception int JS_ThisTimeValue (JSContext *ctx, double *valp, JSValueConst this_val)
 
static JSValue JS_SetThisTimeValue (JSContext *ctx, JSValueConst this_val, double v)
 
static int64_t days_from_year (int64_t y)
 
static int64_t days_in_year (int64_t y)
 
static int64_t year_from_days (int64_t *days)
 
static __exception int get_date_fields (JSContext *ctx, JSValueConst obj, double fields[9], int is_local, int force)
 
static double time_clip (double t)
 
static double set_date_fields (double fields[], int is_local)
 
static JSValue get_date_field (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv, int magic)
 
static JSValue set_date_field (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv, int magic)
 
static JSValue get_date_string (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv, int magic)
 
static int64_t date_now (void)
 
static JSValue js_date_constructor (JSContext *ctx, JSValueConst new_target, int argc, JSValueConst *argv)
 
static JSValue js_Date_UTC (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static void string_skip_spaces (JSString *sp, int *pp)
 
static void string_skip_non_spaces (JSString *sp, int *pp)
 
static int string_get_digits (JSString *sp, int *pp, int64_t *pval)
 
static int string_get_signed_digits (JSString *sp, int *pp, int64_t *pval)
 
static int string_get_fixed_width_digits (JSString *sp, int *pp, int n, int64_t *pval)
 
static int string_get_milliseconds (JSString *sp, int *pp, int64_t *pval)
 
static int find_abbrev (JSString *sp, int p, const char *list, int count)
 
static int string_get_month (JSString *sp, int *pp, int64_t *pval)
 
static JSValue js_Date_now (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue js_date_Symbol_toPrimitive (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue js_date_getTimezoneOffset (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue js_date_getTime (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue js_date_setTime (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue js_date_setYear (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue js_date_toJSON (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
void JS_AddIntrinsicDate (JSContext *ctx)
 
void JS_AddIntrinsicEval (JSContext *ctx)
 
void JS_AddIntrinsicBaseObjects (JSContext *ctx)
 
static void js_array_buffer_free (JSRuntime *rt, void *opaque, void *ptr)
 
static JSValue js_array_buffer_constructor2 (JSContext *ctx, JSValueConst new_target, uint64_t len, JSClassID class_id)
 
static JSValue js_array_buffer_constructor1 (JSContext *ctx, JSValueConst new_target, uint64_t len)
 
JSValue JS_NewArrayBuffer (JSContext *ctx, uint8_t *buf, size_t len, JSFreeArrayBufferDataFunc *free_func, void *opaque, BOOL is_shared)
 
JSValue JS_NewArrayBufferCopy (JSContext *ctx, const uint8_t *buf, size_t len)
 
static JSValue js_array_buffer_constructor (JSContext *ctx, JSValueConst new_target, int argc, JSValueConst *argv)
 
static JSValue js_shared_array_buffer_constructor (JSContext *ctx, JSValueConst new_target, int argc, JSValueConst *argv)
 
static void js_array_buffer_finalizer (JSRuntime *rt, JSValue val)
 
static JSValue js_array_buffer_isView (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue js_array_buffer_get_byteLength (JSContext *ctx, JSValueConst this_val, int class_id)
 
void JS_DetachArrayBuffer (JSContext *ctx, JSValueConst obj)
 
uint8_tJS_GetArrayBuffer (JSContext *ctx, size_t *psize, JSValueConst obj)
 
static JSValue js_array_buffer_slice (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv, int class_id)
 
static JSObjectget_typed_array (JSContext *ctx, JSValueConst this_val, int is_dataview)
 
static int validate_typed_array (JSContext *ctx, JSValueConst this_val)
 
static JSValue js_typed_array_get_length (JSContext *ctx, JSValueConst this_val)
 
static JSValue js_typed_array_get_buffer (JSContext *ctx, JSValueConst this_val, int is_dataview)
 
static JSValue js_typed_array_get_byteLength (JSContext *ctx, JSValueConst this_val, int is_dataview)
 
static JSValue js_typed_array_get_byteOffset (JSContext *ctx, JSValueConst this_val, int is_dataview)
 
JSValue JS_GetTypedArrayBuffer (JSContext *ctx, JSValueConst obj, size_t *pbyte_offset, size_t *pbyte_length, size_t *pbytes_per_element)
 
static JSValue js_typed_array_get_toStringTag (JSContext *ctx, JSValueConst this_val)
 
static JSValue js_typed_array_set_internal (JSContext *ctx, JSValueConst dst, JSValueConst src, JSValueConst off)
 
static JSValue js_typed_array_set (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue js_create_typed_array_iterator (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv, int magic)
 
static JSValue js_typed_array_create (JSContext *ctx, JSValueConst ctor, int argc, JSValueConst *argv)
 
static JSValue js_typed_array_from (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue js_typed_array_of (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue js_typed_array_copyWithin (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue js_typed_array_fill (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue js_typed_array_find (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv, int findIndex)
 
static JSValue js_typed_array_indexOf (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv, int special)
 
static JSValue js_typed_array_join (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv, int toLocaleString)
 
static JSValue js_typed_array_reverse (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue js_typed_array_slice (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue js_typed_array_subarray (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static int js_cmp_doubles (double x, double y)
 
static int js_TA_cmp_int8 (const void *a, const void *b, void *opaque)
 
static int js_TA_cmp_uint8 (const void *a, const void *b, void *opaque)
 
static int js_TA_cmp_int16 (const void *a, const void *b, void *opaque)
 
static int js_TA_cmp_uint16 (const void *a, const void *b, void *opaque)
 
static int js_TA_cmp_int32 (const void *a, const void *b, void *opaque)
 
static int js_TA_cmp_uint32 (const void *a, const void *b, void *opaque)
 
static int js_TA_cmp_float32 (const void *a, const void *b, void *opaque)
 
static int js_TA_cmp_float64 (const void *a, const void *b, void *opaque)
 
static JSValue js_TA_get_int8 (JSContext *ctx, const void *a)
 
static JSValue js_TA_get_uint8 (JSContext *ctx, const void *a)
 
static JSValue js_TA_get_int16 (JSContext *ctx, const void *a)
 
static JSValue js_TA_get_uint16 (JSContext *ctx, const void *a)
 
static JSValue js_TA_get_int32 (JSContext *ctx, const void *a)
 
static JSValue js_TA_get_uint32 (JSContext *ctx, const void *a)
 
static JSValue js_TA_get_float32 (JSContext *ctx, const void *a)
 
static JSValue js_TA_get_float64 (JSContext *ctx, const void *a)
 
static int js_TA_cmp_generic (const void *a, const void *b, void *opaque)
 
static JSValue js_typed_array_sort (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static JSValue js_typed_array_base_constructor (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
static int typed_array_init (JSContext *ctx, JSValueConst obj, JSValue buffer, uint64_t offset, uint64_t len)
 
static JSValue js_array_from_iterator (JSContext *ctx, uint32_t *plen, JSValueConst obj, JSValueConst method)
 
static JSValue js_typed_array_constructor_obj (JSContext *ctx, JSValueConst new_target, JSValueConst obj, int classid)
 
static JSValue js_typed_array_constructor_ta (JSContext *ctx, JSValueConst new_target, JSValueConst src_obj, int classid)
 
static void js_typed_array_finalizer (JSRuntime *rt, JSValue val)
 
static void js_typed_array_mark (JSRuntime *rt, JSValueConst val, JS_MarkFunc *mark_func)
 
static JSValue js_dataview_constructor (JSContext *ctx, JSValueConst new_target, int argc, JSValueConst *argv)
 
static JSValue js_dataview_getValue (JSContext *ctx, JSValueConst this_obj, int argc, JSValueConst *argv, int class_id)
 
static JSValue js_dataview_setValue (JSContext *ctx, JSValueConst this_obj, int argc, JSValueConst *argv, int class_id)
 
static void * js_atomics_get_ptr (JSContext *ctx, JSArrayBuffer **pabuf, int *psize_log2, JSClassID *pclass_id, JSValueConst obj, JSValueConst idx_val, int is_waitable)
 
static JSValue js_atomics_op (JSContext *ctx, JSValueConst this_obj, int argc, JSValueConst *argv, int op)
 
static JSValue js_atomics_store (JSContext *ctx, JSValueConst this_obj, int argc, JSValueConst *argv)
 
static JSValue js_atomics_isLockFree (JSContext *ctx, JSValueConst this_obj, int argc, JSValueConst *argv)
 
static JSValue js_atomics_wait (JSContext *ctx, JSValueConst this_obj, int argc, JSValueConst *argv)
 
static JSValue js_atomics_notify (JSContext *ctx, JSValueConst this_obj, int argc, JSValueConst *argv)
 
void JS_AddIntrinsicAtomics (JSContext *ctx)
 
void JS_AddIntrinsicTypedArrays (JSContext *ctx)
 
int JS_IsArrayBuffer (JSContext *ctx, JSValueConst val)
 
int JS_SwitchClassID (JSValue obj, JSClassID class_id)
 

Variables

static uint8_t const typed_array_size_log2 [JS_TYPED_ARRAY_COUNT]
 
static const char js_atom_init []
 
 JSStrictEqModeEnum
 
static const JSClassExoticMethods js_arguments_exotic_methods
 
static const JSClassExoticMethods js_string_exotic_methods
 
static const JSClassExoticMethods js_proxy_exotic_methods
 
static const JSClassExoticMethods js_module_ns_exotic_methods
 
static JSClassID js_class_id_alloc = JS_CLASS_INIT_COUNT
 
static JSClassShortDef const js_std_class_def []
 
static const JSMallocFunctions def_malloc_funcs
 
static JSAutoInitFuncjs_autoinit_func_table []
 
static const uint16_t func_kind_to_class_id []
 
static const JSOpCode opcode_info [OP_COUNT+(OP_TEMP_END - OP_TEMP_START)]
 
static const JSCFunctionListEntry js_object_funcs []
 
static const JSCFunctionListEntry js_object_proto_funcs []
 
static const JSCFunctionListEntry js_function_proto_funcs []
 
static const JSCFunctionListEntry js_error_proto_funcs []
 
static const JSCFunctionListEntry js_array_funcs []
 
static const JSCFunctionListEntry js_iterator_proto_funcs []
 
static const JSCFunctionListEntry js_array_proto_funcs []
 
static const JSCFunctionListEntry js_array_iterator_proto_funcs []
 
static const JSCFunctionListEntry js_number_funcs []
 
static const JSCFunctionListEntry js_number_proto_funcs []
 
static const JSCFunctionListEntry js_boolean_proto_funcs []
 
static const JSCFunctionListEntry js_string_funcs []
 
static const JSCFunctionListEntry js_string_proto_funcs []
 
static const JSCFunctionListEntry js_string_iterator_proto_funcs []
 
static const JSCFunctionListEntry js_string_proto_normalize []
 
static const JSCFunctionListEntry js_math_funcs []
 
static const JSCFunctionListEntry js_math_obj []
 
static const JSCFunctionListEntry js_regexp_funcs []
 
static const JSCFunctionListEntry js_regexp_proto_funcs []
 
static const JSCFunctionListEntry js_regexp_string_iterator_proto_funcs []
 
static const JSCFunctionListEntry js_json_funcs []
 
static const JSCFunctionListEntry js_json_obj []
 
static const JSCFunctionListEntry js_reflect_funcs []
 
static const JSCFunctionListEntry js_reflect_obj []
 
static const JSCFunctionListEntry js_proxy_funcs []
 
static const JSClassShortDef js_proxy_class_def []
 
static const JSCFunctionListEntry js_symbol_proto_funcs []
 
static const JSCFunctionListEntry js_symbol_funcs []
 
static const JSCFunctionListEntry js_map_funcs []
 
static const JSCFunctionListEntry js_map_proto_funcs []
 
static const JSCFunctionListEntry js_map_iterator_proto_funcs []
 
static const JSCFunctionListEntry js_set_proto_funcs []
 
static const JSCFunctionListEntry js_set_iterator_proto_funcs []
 
static const JSCFunctionListEntry js_weak_map_proto_funcs []
 
static const JSCFunctionListEntry js_weak_set_proto_funcs []
 
static const JSCFunctionListEntry *const js_map_proto_funcs_ptr [6]
 
static const uint8_t js_map_proto_funcs_count [6]
 
static const JSCFunctionListEntry js_generator_function_proto_funcs []
 
static const JSCFunctionListEntry js_generator_proto_funcs []
 
static const JSCFunctionListEntry js_promise_funcs []
 
static const JSCFunctionListEntry js_promise_proto_funcs []
 
static const JSCFunctionListEntry js_async_function_proto_funcs []
 
static const JSCFunctionListEntry js_async_iterator_proto_funcs []
 
static const JSCFunctionListEntry js_async_from_sync_iterator_proto_funcs []
 
static const JSCFunctionListEntry js_async_generator_function_proto_funcs []
 
static const JSCFunctionListEntry js_async_generator_proto_funcs []
 
static JSClassShortDef const js_async_class_def []
 
static const JSCFunctionListEntry js_global_funcs []
 
static int const month_days [] = { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }
 
static char const month_names [] = "JanFebMarAprMayJunJulAugSepOctNovDec"
 
static char const day_names [] = "SunMonTueWedThuFriSat"
 
static const JSCFunctionListEntry js_date_funcs []
 
static const JSCFunctionListEntry js_date_proto_funcs []
 
static const char *const native_error_name [JS_NATIVE_ERROR_COUNT]
 
static const JSCFunctionListEntry js_array_buffer_funcs []
 
static const JSCFunctionListEntry js_array_buffer_proto_funcs []
 
static const JSCFunctionListEntry js_shared_array_buffer_funcs []
 
static const JSCFunctionListEntry js_shared_array_buffer_proto_funcs []
 
static const JSCFunctionListEntry js_typed_array_base_funcs []
 
static const JSCFunctionListEntry js_typed_array_base_proto_funcs []
 
static const JSCFunctionListEntry js_dataview_proto_funcs []
 
static pthread_mutex_t js_atomics_mutex = PTHREAD_MUTEX_INITIALIZER
 
static struct list_head js_atomics_waiter_list
 
static const JSCFunctionListEntry js_atomics_funcs []
 
static const JSCFunctionListEntry js_atomics_obj []
 

Data Structure Documentation

◆ JSRuntime

struct JSRuntime
+ Collaboration diagram for JSRuntime:
Data Fields
JSMallocFunctions mf
JSMallocState malloc_state
const char * rt_info
int atom_hash_size
int atom_count
int atom_size
int atom_count_resize
uint32_t * atom_hash
JSAtomStruct ** atom_array
int atom_free_index
int class_count
JSClass * class_array
struct list_head context_list
struct list_head gc_obj_list
struct list_head gc_zero_ref_count_list
struct list_head tmp_obj_list
JSGCPhaseEnum gc_phase: 8
size_t malloc_gc_threshold
struct list_head string_list
uintptr_t stack_size
uintptr_t stack_top
uintptr_t stack_limit
JSValue current_exception
BOOL in_out_of_memory: 8
struct JSStackFrame * current_stack_frame
JSInterruptHandler * interrupt_handler
void * interrupt_opaque
JSHostPromiseRejectionTracker * host_promise_rejection_tracker
void * host_promise_rejection_tracker_opaque
struct list_head job_list
JSModuleNormalizeFunc * module_normalize_func
JSModuleLoaderFunc * module_loader_func
void * module_loader_opaque
BOOL can_block: 8
JSSharedArrayBufferFunctions sab_funcs
int shape_hash_bits
int shape_hash_size
int shape_hash_count
JSShape ** shape_hash
void * user_opaque

◆ JSClass

struct JSClass
+ Collaboration diagram for JSClass:
Data Fields
uint32_t class_id
JSAtom class_name
JSClassFinalizer * finalizer
JSClassGCMark * gc_mark
JSClassCall * call
const JSClassExoticMethods * exotic

◆ JSStackFrame

struct JSStackFrame
+ Collaboration diagram for JSStackFrame:
Data Fields
struct JSStackFrame * prev_frame
JSValue cur_func
JSValue * arg_buf
JSValue * var_buf
struct list_head var_ref_list
const uint8_t * cur_pc
int arg_count
int js_mode
JSValue * cur_sp

◆ JSGCObjectHeader

struct JSGCObjectHeader
+ Collaboration diagram for JSGCObjectHeader:
Data Fields
int ref_count
JSGCObjectTypeEnum gc_obj_type: 4
uint8_t mark: 4
uint8_t dummy1
uint16_t dummy2
struct list_head link

◆ JSVarRef

struct JSVarRef
+ Collaboration diagram for JSVarRef:
Data Fields
union JSVarRef __unnamed__
JSValue * pvalue
JSValue value

◆ JSFloat64Union

union JSFloat64Union
Data Fields
double d
uint64_t u64
uint32_t u32[2]

◆ JSString

struct JSString
+ Collaboration diagram for JSAtomStruct:
Data Fields
JSRefCountHeader header
uint32_t len: 31
uint8_t is_wide_char: 1
uint32_t hash: 30
uint8_t atom_type: 2
uint32_t hash_next
struct list_head link
union JSString u

◆ JSClosureVar

struct JSClosureVar
Data Fields
uint8_t is_local: 1
uint8_t is_arg: 1
uint8_t is_const: 1
uint8_t is_lexical: 1
uint8_t var_kind: 4
uint16_t var_idx
JSAtom var_name

◆ JSVarScope

struct JSVarScope
Data Fields
int parent
int first

◆ JSVarDef

struct JSVarDef
Data Fields
JSAtom var_name
int scope_level
int scope_next
uint8_t is_const: 1
uint8_t is_lexical: 1
uint8_t is_captured: 1
uint8_t var_kind: 4
int func_pool_idx: 24

◆ JSFunctionBytecode

struct JSFunctionBytecode
+ Collaboration diagram for JSFunctionBytecode:
Data Fields
JSGCObjectHeader header
uint8_t js_mode
uint8_t has_prototype: 1
uint8_t has_simple_parameter_list: 1
uint8_t is_derived_class_constructor: 1
uint8_t need_home_object: 1
uint8_t func_kind: 2
uint8_t new_target_allowed: 1
uint8_t super_call_allowed: 1
uint8_t super_allowed: 1
uint8_t arguments_allowed: 1
uint8_t has_debug: 1
uint8_t backtrace_barrier: 1
uint8_t read_only_bytecode: 1
uint8_t * byte_code_buf
int byte_code_len
JSAtom func_name
JSVarDef * vardefs
JSClosureVar * closure_var
uint16_t arg_count
uint16_t var_count
uint16_t defined_arg_count
uint16_t stack_size
JSContext * realm
JSValue * cpool
int cpool_count
int closure_var_count
struct JSFunctionBytecode debug

◆ JSBoundFunction

struct JSBoundFunction
+ Collaboration diagram for JSBoundFunction:
Data Fields
JSValue func_obj
JSValue this_val
int argc
JSValue argv[0]

◆ JSForInIterator

struct JSForInIterator
+ Collaboration diagram for JSForInIterator:
Data Fields
JSValue obj
BOOL is_array
uint32_t array_length
uint32_t idx

◆ JSRegExp

struct JSRegExp
+ Collaboration diagram for JSRegExp:
Data Fields
JSString * pattern
JSString * bytecode

◆ JSProxyData

struct JSProxyData
+ Collaboration diagram for JSProxyData:
Data Fields
JSValue target
JSValue handler
uint8_t is_func
uint8_t is_revoked

◆ JSArrayBuffer

struct JSArrayBuffer
+ Collaboration diagram for JSArrayBuffer:
Data Fields
int byte_length
uint8_t detached
uint8_t shared
uint8_t * data
struct list_head array_list
void * opaque
JSFreeArrayBufferDataFunc * free_func

◆ JSTypedArray

struct JSTypedArray
+ Collaboration diagram for JSTypedArray:
Data Fields
struct list_head link
JSObject * obj
JSObject * buffer
uint32_t offset
uint32_t length

◆ JSAsyncFunctionState

struct JSAsyncFunctionState
+ Collaboration diagram for JSAsyncFunctionState:
Data Fields
JSValue this_val
int argc
BOOL throw_flag
JSStackFrame frame

◆ JSAsyncFunctionData

struct JSAsyncFunctionData
+ Collaboration diagram for JSAsyncFunctionData:
Data Fields
JSGCObjectHeader header
JSValue resolving_funcs[2]
BOOL is_active
JSAsyncFunctionState func_state

◆ JSBinaryOperatorDefEntry

struct JSBinaryOperatorDefEntry
+ Collaboration diagram for JSBinaryOperatorDefEntry:
Data Fields
uint32_t operator_index
JSObject * ops[JS_OVOP_BINARY_COUNT]

◆ JSBinaryOperatorDef

struct JSBinaryOperatorDef
+ Collaboration diagram for JSBinaryOperatorDef:
Data Fields
int count
JSBinaryOperatorDefEntry * tab

◆ JSOperatorSetData

struct JSOperatorSetData
+ Collaboration diagram for JSOperatorSetData:
Data Fields
uint32_t operator_counter
BOOL is_primitive
JSObject * self_ops[JS_OVOP_COUNT]
JSBinaryOperatorDef left
JSBinaryOperatorDef right

◆ JSReqModuleEntry

struct JSReqModuleEntry
+ Collaboration diagram for JSReqModuleEntry:
Data Fields
JSAtom module_name
JSModuleDef * module

◆ JSExportEntry

struct JSExportEntry
Data Fields
union JSExportEntry u
JSExportTypeEnum export_type
JSAtom local_name
JSAtom export_name

◆ JSStarExportEntry

struct JSStarExportEntry
Data Fields
int req_module_idx

◆ JSImportEntry

struct JSImportEntry
Data Fields
int var_idx
JSAtom import_name
int req_module_idx

◆ JSModuleDef

struct JSModuleDef
+ Collaboration diagram for JSModuleDef:
Data Fields
JSRefCountHeader header
JSAtom module_name
struct list_head link
JSReqModuleEntry * req_module_entries
int req_module_entries_count
int req_module_entries_size
JSExportEntry * export_entries
int export_entries_count
int export_entries_size
JSStarExportEntry * star_export_entries
int star_export_entries_count
int star_export_entries_size
JSImportEntry * import_entries
int import_entries_count
int import_entries_size
JSValue module_ns
JSValue func_obj
JSModuleInitFunc * init_func
BOOL resolved: 8
BOOL func_created: 8
BOOL instantiated: 8
BOOL evaluated: 8
BOOL eval_mark: 8
BOOL eval_has_exception: 8
JSValue eval_exception
JSValue meta_obj

◆ JSJobEntry

struct JSJobEntry
+ Collaboration diagram for JSJobEntry:
Data Fields
struct list_head link
JSContext * ctx
JSJobFunc * job_func
int argc
JSValue argv[0]

◆ JSProperty

struct JSProperty
Data Fields
union JSProperty u

◆ JSShapeProperty

struct JSShapeProperty
Data Fields
uint32_t hash_next: 26
uint32_t flags: 6
JSAtom atom

◆ JSShape

struct JSShape
+ Collaboration diagram for JSShape:
Data Fields
JSGCObjectHeader header
uint8_t is_hashed
uint8_t has_small_array_index
uint32_t hash
uint32_t prop_hash_mask
int prop_size
int prop_count
int deleted_prop_count
JSShape * shape_hash_next
JSObject * proto
JSShapeProperty prop[0]

◆ JSObject

struct JSObject
+ Collaboration diagram for JSObject:
Data Fields
union JSObject __unnamed__
JSShape * shape
JSProperty * prop
struct JSMapRecord * first_weak_ref
union JSObject u

◆ JSClassShortDef

struct JSClassShortDef
Data Fields
JSAtom class_name
JSClassFinalizer * finalizer
JSClassGCMark * gc_mark

◆ StringBuffer

struct StringBuffer
+ Collaboration diagram for StringBuffer:
Data Fields
JSContext * ctx
JSString * str
int len
int size
int is_wide_char
int error_status

◆ JSCFunctionDataRecord

struct JSCFunctionDataRecord
+ Collaboration diagram for JSCFunctionDataRecord:
Data Fields
JSCFunctionData * func
uint8_t length
uint8_t data_len
uint16_t magic
JSValue data[0]

◆ JSMemoryUsage_helper

struct JSMemoryUsage_helper
Data Fields
double memory_used_count
double str_count
double str_size
int64_t js_func_count
double js_func_size
int64_t js_func_code_size
int64_t js_func_pc2line_count
int64_t js_func_pc2line_size

◆ JSGeneratorData

struct JSGeneratorData
+ Collaboration diagram for JSGeneratorData:
Data Fields
JSGeneratorStateEnum state
JSAsyncFunctionState func_state

◆ JSAsyncGeneratorRequest

struct JSAsyncGeneratorRequest
+ Collaboration diagram for JSAsyncGeneratorRequest:
Data Fields
struct list_head link
int completion_type
JSValue result
JSValue promise
JSValue resolving_funcs[2]

◆ JSAsyncGeneratorData

struct JSAsyncGeneratorData
+ Collaboration diagram for JSAsyncGeneratorData:
Data Fields
JSObject * generator
JSAsyncGeneratorStateEnum state
JSAsyncFunctionState func_state
struct list_head queue

◆ BlockEnv

struct BlockEnv
+ Collaboration diagram for BlockEnv:
Data Fields
struct BlockEnv * prev
JSAtom label_name
int label_break
int label_cont
int drop_count
int label_finally
int scope_level
int has_iterator

◆ JSGlobalVar

struct JSGlobalVar
Data Fields
int cpool_idx
uint8_t force_init: 1
uint8_t is_lexical: 1
uint8_t is_const: 1
int scope_level
JSAtom var_name

◆ RelocEntry

struct RelocEntry
+ Collaboration diagram for RelocEntry:
Data Fields
struct RelocEntry * next
uint32_t addr
int size

◆ JumpSlot

struct JumpSlot
Data Fields
int op
int size
int pos
int label

◆ LabelSlot

struct LabelSlot
+ Collaboration diagram for LabelSlot:
Data Fields
int ref_count
int pos
int pos2
int addr
RelocEntry * first_reloc

◆ LineNumberSlot

struct LineNumberSlot
Data Fields
uint32_t pc
int line_num

◆ JSFunctionDef

struct JSFunctionDef
+ Collaboration diagram for JSFunctionDef:
Data Fields
JSContext * ctx
struct JSFunctionDef * parent
int parent_cpool_idx
int parent_scope_level
struct list_head child_list
struct list_head link
BOOL is_eval
int eval_type
BOOL is_global_var
BOOL is_func_expr
BOOL has_home_object
BOOL has_prototype
BOOL has_simple_parameter_list
BOOL has_parameter_expressions
BOOL has_use_strict
BOOL has_eval_call
BOOL has_arguments_binding
BOOL has_this_binding
BOOL new_target_allowed
BOOL super_call_allowed
BOOL super_allowed
BOOL arguments_allowed
BOOL is_derived_class_constructor
BOOL in_function_body
BOOL backtrace_barrier
JSFunctionKindEnum func_kind: 8
JSParseFunctionEnum func_type: 8
uint8_t js_mode
JSAtom func_name
JSVarDef * vars
int var_size
int var_count
JSVarDef * args
int arg_size
int arg_count
int defined_arg_count
int var_object_idx
int arg_var_object_idx
int arguments_var_idx
int arguments_arg_idx
int func_var_idx
int eval_ret_idx
int this_var_idx
int new_target_var_idx
int this_active_func_var_idx
int home_object_var_idx
BOOL need_home_object
int scope_level
int scope_first
int scope_size
int scope_count
JSVarScope * scopes
JSVarScope def_scope_array[4]
int body_scope
int global_var_count
int global_var_size
JSGlobalVar * global_vars
DynBuf byte_code
int last_opcode_pos
int last_opcode_line_num
BOOL use_short_opcodes
LabelSlot * label_slots
int label_size
int label_count
BlockEnv * top_break
JSValue * cpool
int cpool_count
int cpool_size
int closure_var_count
int closure_var_size
JSClosureVar * closure_var
JumpSlot * jump_slots
int jump_size
int jump_count
LineNumberSlot * line_number_slots
int line_number_size
int line_number_count
int line_number_last
int line_number_last_pc
JSAtom filename
int line_num
DynBuf pc2line
char * source
int source_len
JSModuleDef * module

◆ JSToken

struct JSToken
Data Fields
int val
int line_num
const uint8_t * ptr
union JSToken u

◆ JSParseState

struct JSParseState
+ Collaboration diagram for JSParseState:
Data Fields
JSContext * ctx
int last_line_num
int line_num
const char * filename
JSToken token
BOOL got_lf
const uint8_t * last_ptr
const uint8_t * buf_ptr
const uint8_t * buf_end
JSFunctionDef * cur_func
BOOL is_module
BOOL allow_html_comments
BOOL ext_json

◆ JSOpCode

struct JSOpCode
Data Fields
uint8_t size
uint8_t n_pop
uint8_t n_push
uint8_t fmt

◆ JSParsePos

struct JSParsePos
Data Fields
int last_line_num
int line_num
BOOL got_lf
const uint8_t * ptr

◆ ClassFieldsDef

struct ClassFieldsDef
+ Collaboration diagram for ClassFieldsDef:
Data Fields
JSFunctionDef * fields_init_fd
int computed_fields_count
BOOL has_brand
int brand_push_pos

◆ JSResolveEntry

struct JSResolveEntry
+ Collaboration diagram for JSResolveEntry:
Data Fields
JSModuleDef * module
JSAtom name

◆ JSResolveState

struct JSResolveState
+ Collaboration diagram for JSResolveState:
Data Fields
JSResolveEntry * array
int size
int count

◆ ExportedNameEntry

struct ExportedNameEntry
Data Fields
JSAtom export_name
ExportedNameEntryEnum export_type
union ExportedNameEntry u

◆ GetExportNamesState

struct GetExportNamesState
+ Collaboration diagram for GetExportNamesState:
Data Fields
JSModuleDef ** modules
int modules_size
int modules_count
ExportedNameEntry * exported_names
int exported_names_size
int exported_names_count

◆ CodeContext

struct CodeContext
Data Fields
const uint8_t * bc_buf
int bc_len
int pos
int line_num
int op
int idx
int label
int val
JSAtom atom

◆ StackSizeState

struct StackSizeState
Data Fields
int bc_len
int stack_len_max
uint16_t * stack_level_tab
int * pc_stack
int pc_stack_len
int pc_stack_size

◆ JSObjectListEntry

struct JSObjectListEntry
+ Collaboration diagram for JSObjectListEntry:
Data Fields
JSObject * obj
uint32_t hash_next

◆ JSObjectList

struct JSObjectList
+ Collaboration diagram for JSObjectList:
Data Fields
JSObjectListEntry * object_tab
int object_count
int object_size
uint32_t * hash_table
uint32_t hash_size

◆ BCWriterState

struct BCWriterState
+ Collaboration diagram for BCWriterState:
Data Fields
JSContext * ctx
DynBuf dbuf
BOOL byte_swap: 8
BOOL allow_bytecode: 8
BOOL allow_sab: 8
BOOL allow_reference: 8
uint32_t first_atom
uint32_t * atom_to_idx
int atom_to_idx_size
JSAtom * idx_to_atom
int idx_to_atom_count
int idx_to_atom_size
uint8_t ** sab_tab
int sab_tab_len
int sab_tab_size
JSObjectList object_list

◆ BCReaderState

struct BCReaderState
+ Collaboration diagram for BCReaderState:
Data Fields
JSContext * ctx
const uint8_t * buf_start
const uint8_t * ptr
const uint8_t * buf_end
uint32_t first_atom
uint32_t idx_to_atom_count
JSAtom * idx_to_atom
int error_state
BOOL allow_sab: 8
BOOL allow_bytecode: 8
BOOL is_rom_data: 8
BOOL allow_reference: 8
JSObject ** objects
int objects_count
int objects_size

◆ ValueSlot

struct ValueSlot
+ Collaboration diagram for ValueSlot:
Data Fields
JSValue val
JSString * str
int64_t pos

◆ array_sort_context

struct array_sort_context
+ Collaboration diagram for array_sort_context:
Data Fields
JSContext * ctx
int exception
int has_method
JSValueConst method

◆ JSArrayIteratorData

struct JSArrayIteratorData
+ Collaboration diagram for JSArrayIteratorData:
Data Fields
JSValue obj
JSIteratorKindEnum kind
uint32_t idx

◆ JSRegExpStringIteratorData

struct JSRegExpStringIteratorData
+ Collaboration diagram for JSRegExpStringIteratorData:
Data Fields
JSValue iterating_regexp
JSValue iterated_string
BOOL global
BOOL unicode
BOOL done

◆ ValueBuffer

struct ValueBuffer
+ Collaboration diagram for ValueBuffer:
Data Fields
JSContext * ctx
JSValue * arr
JSValue def[4]
int len
int size
int error_status

◆ JSONStringifyContext

struct JSONStringifyContext
+ Collaboration diagram for JSONStringifyContext:
Data Fields
JSValueConst replacer_func
JSValue stack
JSValue property_list
JSValue gap
JSValue empty
StringBuffer * b

◆ JSMapRecord

struct JSMapRecord
+ Collaboration diagram for JSMapRecord:
Data Fields
int ref_count
BOOL empty
struct JSMapState * map
struct JSMapRecord * next_weak_ref
struct list_head link
struct list_head hash_link
JSValue key
JSValue value

◆ JSMapState

struct JSMapState
+ Collaboration diagram for JSMapState:
Data Fields
BOOL is_weak
struct list_head records
uint32_t record_count
struct list_head * hash_table
uint32_t hash_size
uint32_t record_count_threshold

◆ JSMapIteratorData

struct JSMapIteratorData
+ Collaboration diagram for JSMapIteratorData:
Data Fields
JSValue obj
JSIteratorKindEnum kind
JSMapRecord * cur_record

◆ JSPromiseData

struct JSPromiseData
+ Collaboration diagram for JSPromiseData:
Data Fields
JSPromiseStateEnum promise_state
struct list_head promise_reactions[2]
BOOL is_handled
JSValue promise_result

◆ JSPromiseFunctionDataResolved

struct JSPromiseFunctionDataResolved
Data Fields
int ref_count
BOOL already_resolved

◆ JSPromiseFunctionData

struct JSPromiseFunctionData
+ Collaboration diagram for JSPromiseFunctionData:
Data Fields
JSValue promise
JSPromiseFunctionDataResolved * presolved

◆ JSPromiseReactionData

struct JSPromiseReactionData
+ Collaboration diagram for JSPromiseReactionData:
Data Fields
struct list_head link
JSValue resolving_funcs[2]
JSValue handler

◆ JSAsyncFromSyncIteratorData

struct JSAsyncFromSyncIteratorData
+ Collaboration diagram for JSAsyncFromSyncIteratorData:
Data Fields
JSValue sync_iter
JSValue next_method

◆ JSAtomicsWaiter

struct JSAtomicsWaiter
+ Collaboration diagram for JSAtomicsWaiter:
Data Fields
struct list_head link
BOOL linked
pthread_cond_t cond
int32_t * ptr

◆ JSVarRef.__unnamed396__

union JSVarRef.__unnamed396__
Data Fields
JSGCObjectHeader header
__unnamed396__ __unnamed__

◆ JSVarRef.__unnamed396__.__unnamed398__

struct JSVarRef.__unnamed396__.__unnamed398__
Data Fields
int __gc_ref_count
uint8_t __gc_mark
uint8_t is_detached: 1
uint8_t is_arg: 1
uint16_t var_idx

◆ JSString.u

union JSString.u
Data Fields
uint8_t str8[0]
uint16_t str16[0]

◆ JSFunctionBytecode.debug

struct JSFunctionBytecode.debug
Data Fields
JSAtom filename
int line_num
int source_len
int pc2line_len
uint8_t * pc2line_buf
char * source

◆ JSExportEntry.u

union JSExportEntry.u
Data Fields
u local
int req_module_idx

◆ JSExportEntry.u.local

struct JSExportEntry.u.local
Data Fields
int var_idx
JSVarRef * var_ref

◆ JSProperty.u

union JSProperty.u
Data Fields
JSValue value
u getset
JSVarRef * var_ref
u init

◆ JSProperty.u.getset

struct JSProperty.u.getset
Data Fields
JSObject * getter
JSObject * setter

◆ JSProperty.u.init

struct JSProperty.u.init
Data Fields
uintptr_t realm_and_id
void * opaque

◆ JSObject.__unnamed407__

union JSObject.__unnamed407__
Data Fields
JSGCObjectHeader header
__unnamed407__ __unnamed__

◆ JSObject.__unnamed407__.__unnamed410__

struct JSObject.__unnamed407__.__unnamed410__
Data Fields
int __gc_ref_count
uint8_t __gc_mark
uint8_t extensible: 1
uint8_t free_mark: 1
uint8_t is_exotic: 1
uint8_t fast_array: 1
uint8_t is_constructor: 1
uint8_t is_uncatchable_error: 1
uint8_t tmp_mark: 1
uint8_t is_HTMLDDA: 1
uint16_t class_id

◆ JSObject.u

union JSObject.u
Data Fields
void * opaque
struct JSBoundFunction * bound_function
struct JSCFunctionDataRecord * c_function_data_record
struct JSForInIterator * for_in_iterator
struct JSArrayBuffer * array_buffer
struct JSTypedArray * typed_array
struct JSMapState * map_state
struct JSMapIteratorData * map_iterator_data
struct JSArrayIteratorData * array_iterator_data
struct JSRegExpStringIteratorData * regexp_string_iterator_data
struct JSGeneratorData * generator_data
struct JSProxyData * proxy_data
struct JSPromiseData * promise_data
struct JSPromiseFunctionData * promise_function_data
struct JSAsyncFunctionData * async_function_data
struct JSAsyncFromSyncIteratorData * async_from_sync_iterator_data
struct JSAsyncGeneratorData * async_generator_data
u func
u cfunc
u array
JSRegExp regexp
JSValue object_data

◆ JSObject.u.func

struct JSObject.u.func
Data Fields
struct JSFunctionBytecode * function_bytecode
JSVarRef ** var_refs
JSObject * home_object

◆ JSObject.u.cfunc

struct JSObject.u.cfunc
Data Fields
JSContext * realm
JSCFunctionType c_function
uint8_t length
uint8_t cproto
int16_t magic

◆ JSObject.u.array

struct JSObject.u.array
Data Fields
array u1
array u
uint32_t count

◆ JSObject.u.array.u1

union JSObject.u.array.u1
Data Fields
uint32_t size
struct JSTypedArray * typed_array

◆ JSObject.u.array.u

union JSObject.u.array.u
Data Fields
JSValue * values
void * ptr
int8_t * int8_ptr
uint8_t * uint8_ptr
int16_t * int16_ptr
uint16_t * uint16_ptr
int32_t * int32_ptr
uint32_t * uint32_ptr
int64_t * int64_ptr
uint64_t * uint64_ptr
float * float_ptr
double * double_ptr

◆ JSToken.u

union JSToken.u
Data Fields
u str
u num
u ident
u regexp

◆ JSToken.u.str

struct JSToken.u.str
Data Fields
JSValue str
int sep

◆ JSToken.u.num

struct JSToken.u.num
Data Fields
JSValue val

◆ JSToken.u.ident

struct JSToken.u.ident
Data Fields
JSAtom atom
BOOL has_escape
BOOL is_reserved

◆ JSToken.u.regexp

struct JSToken.u.regexp
Data Fields
JSValue body
JSValue flags

◆ ExportedNameEntry.u

union ExportedNameEntry.u
Data Fields
JSExportEntry * me
JSVarRef * var_ref
JSModuleDef * module

Macro Definition Documentation

◆ OPTIMIZE

#define OPTIMIZE   1

◆ SHORT_OPCODES

#define SHORT_OPCODES   1

◆ DIRECT_DISPATCH

#define DIRECT_DISPATCH   1

◆ MALLOC_OVERHEAD

#define MALLOC_OVERHEAD   8

◆ CONFIG_PRINTF_RNDN

#define CONFIG_PRINTF_RNDN

◆ CONFIG_ATOMICS

#define CONFIG_ATOMICS

◆ DUMP_LEAKS

#define DUMP_LEAKS   1

◆ CONFIG_VERSION

#define CONFIG_VERSION   "2020-11-08-rc2"

◆ JS_TYPED_ARRAY_COUNT

#define JS_TYPED_ARRAY_COUNT   (JS_CLASS_FLOAT64_ARRAY - JS_CLASS_UINT8C_ARRAY + 1)

◆ typed_array_size_log2

#define typed_array_size_log2 (   classid)    (typed_array_size_log2[(classid)- JS_CLASS_UINT8C_ARRAY])

◆ JS_MAX_LOCAL_VARS

#define JS_MAX_LOCAL_VARS   65536

◆ JS_STACK_SIZE_MAX

#define JS_STACK_SIZE_MAX   65534

◆ JS_STRING_LEN_MAX

#define JS_STRING_LEN_MAX   ((1 << 30) - 1)

◆ __exception

#define __exception   __attribute__((warn_unused_result))

◆ JS_MODE_STRICT

#define JS_MODE_STRICT   (1 << 0)

◆ JS_MODE_STRIP

#define JS_MODE_STRIP   (1 << 1)

◆ JS_MODE_MATH

#define JS_MODE_MATH   (1 << 2)

◆ JS_INTERRUPT_COUNTER_INIT

#define JS_INTERRUPT_COUNTER_INIT   10000

◆ JS_ATOM_HASH_MASK

#define JS_ATOM_HASH_MASK   ((1 << 30) - 1)

◆ ARG_SCOPE_INDEX

#define ARG_SCOPE_INDEX   1

◆ ARG_SCOPE_END

#define ARG_SCOPE_END   (-2)

◆ PC2LINE_BASE

#define PC2LINE_BASE   (-1)

◆ PC2LINE_RANGE

#define PC2LINE_RANGE   5

◆ PC2LINE_OP_FIRST

#define PC2LINE_OP_FIRST   1

◆ PC2LINE_DIFF_PC_MAX

#define PC2LINE_DIFF_PC_MAX   ((255 - PC2LINE_OP_FIRST) / PC2LINE_RANGE)

◆ JS_PROP_INITIAL_SIZE

#define JS_PROP_INITIAL_SIZE   2

◆ JS_PROP_INITIAL_HASH_SIZE

#define JS_PROP_INITIAL_HASH_SIZE   4 /* must be a power of two */

◆ JS_ARRAY_INITIAL_SIZE

#define JS_ARRAY_INITIAL_SIZE   2

◆ DEF [1/7]

#define DEF (   name,
  str 
)    JS_ATOM_ ## name,

◆ JS_ATOM_LAST_KEYWORD

#define JS_ATOM_LAST_KEYWORD   JS_ATOM_super

◆ JS_ATOM_LAST_STRICT_KEYWORD

#define JS_ATOM_LAST_STRICT_KEYWORD   JS_ATOM_yield

◆ DEF [2/7]

#define DEF (   name,
  str 
)    str "\0"

◆ FMT [1/4]

#define FMT (   f)    OP_FMT_ ## f,

◆ DEF [3/7]

#define DEF (   id,
  size,
  n_pop,
  n_push,
 
)

◆ FMT [2/4]

#define FMT (   f)

◆ DEF [4/7]

#define DEF (   id,
  size,
  n_pop,
  n_push,
 
)    OP_ ## id,

◆ def [1/3]

#define def (   id,
  size,
  n_pop,
  n_push,
 
)

◆ FMT [3/4]

#define FMT (   f)

◆ DEF [5/7]

#define DEF (   id,
  size,
  n_pop,
  n_push,
 
)

◆ def [2/3]

#define def (   id,
  size,
  n_pop,
  n_push,
 
)    OP_ ## id,

◆ malloc

#define malloc (   s)    malloc_is_forbidden(s)

◆ free

#define free (   p)    free_is_forbidden(p)

◆ realloc

#define realloc (   p,
 
)    realloc_is_forbidden(p,s)

◆ JS_ATOM_TAG_INT

#define JS_ATOM_TAG_INT   (1U << 31)

◆ JS_ATOM_MAX_INT

#define JS_ATOM_MAX_INT   (JS_ATOM_TAG_INT - 1)

◆ JS_ATOM_MAX

#define JS_ATOM_MAX   ((1U << 30) - 1)

◆ JS_ATOM_COUNT_RESIZE

#define JS_ATOM_COUNT_RESIZE (   n)    ((n) * 2)

◆ ATOM_GET_STR_BUF_SIZE

#define ATOM_GET_STR_BUF_SIZE   64

◆ JS_BACKTRACE_FLAG_SKIP_FIRST_LEVEL

#define JS_BACKTRACE_FLAG_SKIP_FIRST_LEVEL   (1 << 0)

◆ JS_BACKTRACE_FLAG_SINGLE_LEVEL

#define JS_BACKTRACE_FLAG_SINGLE_LEVEL   (1 << 1)

◆ JS_ThrowTypeErrorAtom

#define JS_ThrowTypeErrorAtom (   ctx,
  fmt,
  atom 
)    __JS_ThrowTypeErrorAtom(ctx, atom, fmt, "")

◆ JS_ThrowSyntaxErrorAtom

#define JS_ThrowSyntaxErrorAtom (   ctx,
  fmt,
  atom 
)    __JS_ThrowSyntaxErrorAtom(ctx, atom, fmt, "")

◆ DEFINE_GLOBAL_LEX_VAR

#define DEFINE_GLOBAL_LEX_VAR   (1 << 7)

◆ DEFINE_GLOBAL_FUNC_VAR

#define DEFINE_GLOBAL_FUNC_VAR   (1 << 6)

◆ HINT_STRING

#define HINT_STRING   0

◆ HINT_NUMBER

#define HINT_NUMBER   1

◆ HINT_NONE

#define HINT_NONE   2

◆ HINT_FORCE_ORDINARY

#define HINT_FORCE_ORDINARY   (1 << 4)

◆ ATOD_INT_ONLY

#define ATOD_INT_ONLY   (1 << 0)

◆ ATOD_ACCEPT_BIN_OCT

#define ATOD_ACCEPT_BIN_OCT   (1 << 2)

◆ ATOD_ACCEPT_LEGACY_OCTAL

#define ATOD_ACCEPT_LEGACY_OCTAL   (1 << 4)

◆ ATOD_ACCEPT_UNDERSCORES

#define ATOD_ACCEPT_UNDERSCORES   (1 << 5)

◆ ATOD_ACCEPT_SUFFIX

#define ATOD_ACCEPT_SUFFIX   (1 << 6)

◆ ATOD_TYPE_MASK

#define ATOD_TYPE_MASK   (3 << 7)

◆ ATOD_TYPE_FLOAT64

#define ATOD_TYPE_FLOAT64   (0 << 7)

◆ ATOD_TYPE_BIG_INT

#define ATOD_TYPE_BIG_INT   (1 << 7)

◆ ATOD_TYPE_BIG_FLOAT

#define ATOD_TYPE_BIG_FLOAT   (2 << 7)

◆ ATOD_TYPE_BIG_DECIMAL

#define ATOD_TYPE_BIG_DECIMAL   (3 << 7)

◆ ATOD_MODE_BIGINT

#define ATOD_MODE_BIGINT   (1 << 9)

◆ ATOD_ACCEPT_PREFIX_AFTER_SIGN

#define ATOD_ACCEPT_PREFIX_AFTER_SIGN   (1 << 10)

◆ MAX_SAFE_INTEGER

#define MAX_SAFE_INTEGER   (((int64_t)1 << 53) - 1)

◆ JS_DTOA_BUF_SIZE

#define JS_DTOA_BUF_SIZE   128

◆ JS_DTOA_VAR_FORMAT

#define JS_DTOA_VAR_FORMAT   (0 << 0)

◆ JS_DTOA_FIXED_FORMAT

#define JS_DTOA_FIXED_FORMAT   (1 << 0)

◆ JS_DTOA_FRAC_FORMAT

#define JS_DTOA_FRAC_FORMAT   (2 << 0)

◆ JS_DTOA_FORCE_EXP

#define JS_DTOA_FORCE_EXP   (1 << 2)

◆ GLOBAL_VAR_OFFSET

#define GLOBAL_VAR_OFFSET   0x40000000

◆ ARGUMENT_VAR_OFFSET

#define ARGUMENT_VAR_OFFSET   0x20000000

◆ JS_DEFINE_CLASS_HAS_HERITAGE

#define JS_DEFINE_CLASS_HAS_HERITAGE   (1 << 0)

◆ JS_CALL_FLAG_COPY_ARGV

#define JS_CALL_FLAG_COPY_ARGV   (1 << 1)

◆ JS_CALL_FLAG_GENERATOR

#define JS_CALL_FLAG_GENERATOR   (1 << 2)

◆ FUNC_RET_AWAIT

#define FUNC_RET_AWAIT   0

◆ FUNC_RET_YIELD

#define FUNC_RET_YIELD   1

◆ FUNC_RET_YIELD_STAR

#define FUNC_RET_YIELD_STAR   2

◆ DEF [6/7]

#define DEF (   id,
  size,
  n_pop,
  n_push,
 
)    && case_OP_ ## id,

◆ def [3/3]

#define def (   id,
  size,
  n_pop,
  n_push,
 
)

◆ SWITCH

#define SWITCH (   pc)    goto *dispatch_table[opcode = *pc++];

◆ CASE

#define CASE (   op)    case_ ## op

◆ DEFAULT

#define DEFAULT   case_default

◆ BREAK

#define BREAK   SWITCH(pc)

◆ JS_THROW_VAR_RO

#define JS_THROW_VAR_RO   0

◆ JS_THROW_VAR_REDECL

#define JS_THROW_VAR_REDECL   1

◆ JS_THROW_VAR_UNINITIALIZED

#define JS_THROW_VAR_UNINITIALIZED   2

◆ JS_THROW_ERROR_DELETE_SUPER

#define JS_THROW_ERROR_DELETE_SUPER   3

◆ JS_THROW_ERROR_ITERATOR_THROW

#define JS_THROW_ERROR_ITERATOR_THROW   4

◆ OP_DEFINE_METHOD_METHOD

#define OP_DEFINE_METHOD_METHOD   0

◆ OP_DEFINE_METHOD_GETTER

#define OP_DEFINE_METHOD_GETTER   1

◆ OP_DEFINE_METHOD_SETTER

#define OP_DEFINE_METHOD_SETTER   2

◆ OP_DEFINE_METHOD_ENUMERABLE

#define OP_DEFINE_METHOD_ENUMERABLE   4

◆ OP_CMP

#define OP_CMP (   opcode,
  binary_op,
  slow_call 
)
Value:
CASE(opcode): \
{ \
op1 = sp[-2]; \
op2 = sp[-1]; \
if (likely(JS_VALUE_IS_BOTH_INT(op1, op2))) { \
sp[-2] = JS_NewBool(ctx, JS_VALUE_GET_INT(op1) binary_op JS_VALUE_GET_INT(op2)); \
sp--; \
} else { \
if (slow_call) \
goto exception; \
sp--; \
} \
} \
BREAK
#define likely(x)
Definition: cutils.h:45
#define CASE(op)
static js_force_inline JSValue JS_NewBool(JSContext *ctx, JS_BOOL val)
Definition: quickjs.h:515
#define JS_VALUE_GET_INT(v)
Definition: quickjs.h:213
#define JS_VALUE_IS_BOTH_INT(v1, v2)
Definition: quickjs.h:257

◆ GEN_MAGIC_NEXT

#define GEN_MAGIC_NEXT   0

◆ GEN_MAGIC_RETURN

#define GEN_MAGIC_RETURN   1

◆ GEN_MAGIC_THROW

#define GEN_MAGIC_THROW   2

◆ TOK_FIRST_KEYWORD

#define TOK_FIRST_KEYWORD   TOK_NULL

◆ TOK_LAST_KEYWORD

#define TOK_LAST_KEYWORD   TOK_AWAIT

◆ CP_NBSP

#define CP_NBSP   0x00a0

◆ CP_BOM

#define CP_BOM   0xfeff

◆ CP_LS

#define CP_LS   0x2028

◆ CP_PS

#define CP_PS   0x2029

◆ FMT [4/4]

#define FMT (   f)

◆ DEF [7/7]

#define DEF (   id,
  size,
  n_pop,
  n_push,
 
)    { size, n_pop, n_push, OP_FMT_ ## f },

◆ short_opcode_info

#define short_opcode_info (   op)
Value:
(op) + (OP_TEMP_END - OP_TEMP_START) : (op)]
static const JSOpCode opcode_info[OP_COUNT+(OP_TEMP_END - OP_TEMP_START)]
Definition: quickjs.c:20142
@ OP_TEMP_START
Definition: quickjs.c:1000
@ OP_TEMP_END
Definition: quickjs.c:1009

◆ PROP_TYPE_IDENT

#define PROP_TYPE_IDENT   0

◆ PROP_TYPE_VAR

#define PROP_TYPE_VAR   1

◆ PROP_TYPE_GET

#define PROP_TYPE_GET   2

◆ PROP_TYPE_SET

#define PROP_TYPE_SET   3

◆ PROP_TYPE_STAR

#define PROP_TYPE_STAR   4

◆ PROP_TYPE_ASYNC

#define PROP_TYPE_ASYNC   5

◆ PROP_TYPE_ASYNC_STAR

#define PROP_TYPE_ASYNC_STAR   6

◆ PROP_TYPE_PRIVATE

#define PROP_TYPE_PRIVATE   (1 << 4)

◆ SKIP_HAS_SEMI

#define SKIP_HAS_SEMI   (1 << 0)

◆ SKIP_HAS_ELLIPSIS

#define SKIP_HAS_ELLIPSIS   (1 << 1)

◆ SKIP_HAS_ASSIGNMENT

#define SKIP_HAS_ASSIGNMENT   (1 << 2)

◆ PF_IN_ACCEPTED

#define PF_IN_ACCEPTED   (1 << 0)

◆ PF_POSTFIX_CALL

#define PF_POSTFIX_CALL   (1 << 1)

◆ PF_ARROW_FUNC

#define PF_ARROW_FUNC   (1 << 2)

◆ PF_POW_ALLOWED

#define PF_POW_ALLOWED   (1 << 3)

◆ PF_POW_FORBIDDEN

#define PF_POW_FORBIDDEN   (1 << 4)

◆ DECL_MASK_FUNC

#define DECL_MASK_FUNC   (1 << 0) /* allow normal function declaration */

◆ DECL_MASK_FUNC_WITH_LABEL

#define DECL_MASK_FUNC_WITH_LABEL   (1 << 1)

◆ DECL_MASK_OTHER

#define DECL_MASK_OTHER   (1 << 2) /* all other declarations */

◆ DECL_MASK_ALL

#define DECL_MASK_ALL   (DECL_MASK_FUNC | DECL_MASK_FUNC_WITH_LABEL | DECL_MASK_OTHER)

◆ M2

#define M2 (   op1,
  op2 
)    ((op1) | (((uint32_t) op2) << 8))

◆ M3

#define M3 (   op1,
  op2,
  op3 
)    ((op1) | (((uint32_t) op2) << 8) | (((uint32_t) op3) << 16))

◆ M4

#define M4 (   op1,
  op2,
  op3,
  op4 
)    ((op1) | (((uint32_t) op2) << 8) | (((uint32_t) op3) << 16) | (((uint32_t) op4) << 24))

◆ BC_BASE_VERSION

#define BC_BASE_VERSION   1

◆ BC_BE_VERSION

#define BC_BE_VERSION   0x40

◆ BC_VERSION

#define BC_VERSION   BC_BASE_VERSION

◆ bc_read_trace

#define bc_read_trace (   ...)

◆ special_every

#define special_every   0

◆ special_some

#define special_some   1

◆ special_forEach

#define special_forEach   2

◆ special_map

#define special_map   3

◆ special_filter

#define special_filter   4

◆ special_TA

#define special_TA   8

◆ special_reduce

#define special_reduce   0

◆ special_reduceRight

#define special_reduceRight   1

◆ MAGIC_SET

#define MAGIC_SET   (1 << 0)

◆ MAGIC_WEAK

#define MAGIC_WEAK   (1 << 1)

◆ PROMISE_MAGIC_all

#define PROMISE_MAGIC_all   0

◆ PROMISE_MAGIC_allSettled

#define PROMISE_MAGIC_allSettled   1

◆ PROMISE_MAGIC_any

#define PROMISE_MAGIC_any   2

◆ special_indexOf

#define special_indexOf   0

◆ special_lastIndexOf

#define special_lastIndexOf   1

◆ special_includes

#define special_includes   -1

◆ OP

#define OP (   op_name,
  func_name 
)
Value:
case ATOMICS_OP_ ## op_name | (0 << 3): \
a = func_name((_Atomic(uint8_t) *)ptr, v); \
break; \
case ATOMICS_OP_ ## op_name | (1 << 3): \
a = func_name((_Atomic(uint16_t) *)ptr, v); \
break; \
case ATOMICS_OP_ ## op_name | (2 << 3): \
a = func_name((_Atomic(uint32_t) *)ptr, v); \
break;
unsigned short uint16_t
Definition: inttypes.h:14
unsigned int uint32_t
Definition: inttypes.h:15
unsigned char uint8_t
Definition: inttypes.h:13

Typedef Documentation

◆ OPCodeEnum

typedef enum OPCodeEnum OPCodeEnum

◆ JSAutoInitFunc

typedef JSValue JSAutoInitFunc(JSContext *ctx, JSObject *p, JSAtom atom, void *opaque)

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
JS_CLASS_OBJECT 
JS_CLASS_ARRAY 
JS_CLASS_ERROR 
JS_CLASS_NUMBER 
JS_CLASS_STRING 
JS_CLASS_BOOLEAN 
JS_CLASS_SYMBOL 
JS_CLASS_ARGUMENTS 
JS_CLASS_MAPPED_ARGUMENTS 
JS_CLASS_DATE 
JS_CLASS_MODULE_NS 
JS_CLASS_C_FUNCTION 
JS_CLASS_BYTECODE_FUNCTION 
JS_CLASS_BOUND_FUNCTION 
JS_CLASS_C_FUNCTION_DATA 
JS_CLASS_GENERATOR_FUNCTION 
JS_CLASS_FOR_IN_ITERATOR 
JS_CLASS_REGEXP 
JS_CLASS_ARRAY_BUFFER 
JS_CLASS_SHARED_ARRAY_BUFFER 
JS_CLASS_UINT8C_ARRAY 
JS_CLASS_INT8_ARRAY 
JS_CLASS_UINT8_ARRAY 
JS_CLASS_INT16_ARRAY 
JS_CLASS_UINT16_ARRAY 
JS_CLASS_INT32_ARRAY 
JS_CLASS_UINT32_ARRAY 
JS_CLASS_FLOAT32_ARRAY 
JS_CLASS_FLOAT64_ARRAY 
JS_CLASS_DATAVIEW 
JS_CLASS_MAP 
JS_CLASS_SET 
JS_CLASS_WEAKMAP 
JS_CLASS_WEAKSET 
JS_CLASS_MAP_ITERATOR 
JS_CLASS_SET_ITERATOR 
JS_CLASS_ARRAY_ITERATOR 
JS_CLASS_STRING_ITERATOR 
JS_CLASS_REGEXP_STRING_ITERATOR 
JS_CLASS_GENERATOR 
JS_CLASS_PROXY 
JS_CLASS_PROMISE 
JS_CLASS_PROMISE_RESOLVE_FUNCTION 
JS_CLASS_PROMISE_REJECT_FUNCTION 
JS_CLASS_ASYNC_FUNCTION 
JS_CLASS_ASYNC_FUNCTION_RESOLVE 
JS_CLASS_ASYNC_FUNCTION_REJECT 
JS_CLASS_ASYNC_FROM_SYNC_ITERATOR 
JS_CLASS_ASYNC_GENERATOR_FUNCTION 
JS_CLASS_ASYNC_GENERATOR 
JS_CLASS_INIT_COUNT 

◆ JSErrorEnum

Enumerator
JS_EVAL_ERROR 
JS_RANGE_ERROR 
JS_REFERENCE_ERROR 
JS_SYNTAX_ERROR 
JS_TYPE_ERROR 
JS_URI_ERROR 
JS_INTERNAL_ERROR 
JS_AGGREGATE_ERROR 
JS_NATIVE_ERROR_COUNT 

◆ JSGCPhaseEnum

Enumerator
JS_GC_PHASE_NONE 
JS_GC_PHASE_DECREF 
JS_GC_PHASE_REMOVE_CYCLES 

◆ JSGCObjectTypeEnum

Enumerator
JS_GC_OBJ_TYPE_JS_OBJECT 
JS_GC_OBJ_TYPE_FUNCTION_BYTECODE 
JS_GC_OBJ_TYPE_SHAPE 
JS_GC_OBJ_TYPE_VAR_REF 
JS_GC_OBJ_TYPE_ASYNC_FUNCTION 
JS_GC_OBJ_TYPE_JS_CONTEXT 

◆ JSAutoInitIDEnum

Enumerator
JS_AUTOINIT_ID_PROTOTYPE 
JS_AUTOINIT_ID_MODULE_NS 
JS_AUTOINIT_ID_PROP 

◆ anonymous enum

anonymous enum
Enumerator
JS_ATOM_TYPE_STRING 
JS_ATOM_TYPE_GLOBAL_SYMBOL 
JS_ATOM_TYPE_SYMBOL 
JS_ATOM_TYPE_PRIVATE 

◆ anonymous enum

anonymous enum
Enumerator
JS_ATOM_HASH_SYMBOL 
JS_ATOM_HASH_PRIVATE 

◆ JSAtomKindEnum

Enumerator
JS_ATOM_KIND_STRING 
JS_ATOM_KIND_SYMBOL 
JS_ATOM_KIND_PRIVATE 

◆ JSVarKindEnum

Enumerator
JS_VAR_NORMAL 
JS_VAR_FUNCTION_DECL 
JS_VAR_NEW_FUNCTION_DECL 
JS_VAR_CATCH 
JS_VAR_FUNCTION_NAME 
JS_VAR_PRIVATE_FIELD 
JS_VAR_PRIVATE_METHOD 
JS_VAR_PRIVATE_GETTER 
JS_VAR_PRIVATE_SETTER 
JS_VAR_PRIVATE_GETTER_SETTER 

◆ JSFunctionKindEnum

Enumerator
JS_FUNC_NORMAL 
JS_FUNC_GENERATOR 
JS_FUNC_ASYNC 
JS_FUNC_ASYNC_GENERATOR 

◆ JSIteratorKindEnum

Enumerator
JS_ITERATOR_KIND_KEY 
JS_ITERATOR_KIND_VALUE 
JS_ITERATOR_KIND_KEY_AND_VALUE 

◆ JSOverloadableOperatorEnum

Enumerator
JS_OVOP_ADD 
JS_OVOP_SUB 
JS_OVOP_MUL 
JS_OVOP_DIV 
JS_OVOP_MOD 
JS_OVOP_POW 
JS_OVOP_OR 
JS_OVOP_AND 
JS_OVOP_XOR 
JS_OVOP_SHL 
JS_OVOP_SAR 
JS_OVOP_SHR 
JS_OVOP_EQ 
JS_OVOP_LESS 
JS_OVOP_BINARY_COUNT 
JS_OVOP_POS 
JS_OVOP_NEG 
JS_OVOP_INC 
JS_OVOP_DEC 
JS_OVOP_NOT 
JS_OVOP_COUNT 

◆ JSExportTypeEnum

Enumerator
JS_EXPORT_TYPE_LOCAL 
JS_EXPORT_TYPE_INDIRECT 

◆ anonymous enum

anonymous enum
Enumerator
__JS_ATOM_NULL 
JS_ATOM_END 

◆ OPCodeFormat

◆ OPCodeEnum

enum OPCodeEnum
Enumerator
OP_COUNT 
OP_TEMP_START 
OP___dummy 
OP_TEMP_END 

◆ JSFreeModuleEnum

Enumerator
JS_FREE_MODULE_ALL 
JS_FREE_MODULE_NOT_RESOLVED 
JS_FREE_MODULE_NOT_EVALUATED 

◆ JSToNumberHintEnum

Enumerator
TON_FLAG_NUMBER 
TON_FLAG_NUMERIC 

◆ OPSpecialObjectEnum

Enumerator
OP_SPECIAL_OBJECT_ARGUMENTS 
OP_SPECIAL_OBJECT_MAPPED_ARGUMENTS 
OP_SPECIAL_OBJECT_THIS_FUNC 
OP_SPECIAL_OBJECT_NEW_TARGET 
OP_SPECIAL_OBJECT_HOME_OBJECT 
OP_SPECIAL_OBJECT_VAR_OBJECT 
OP_SPECIAL_OBJECT_IMPORT_META 

◆ JSGeneratorStateEnum

Enumerator
JS_GENERATOR_STATE_SUSPENDED_START 
JS_GENERATOR_STATE_SUSPENDED_YIELD 
JS_GENERATOR_STATE_SUSPENDED_YIELD_STAR 
JS_GENERATOR_STATE_EXECUTING 
JS_GENERATOR_STATE_COMPLETED 

◆ JSAsyncGeneratorStateEnum

Enumerator
JS_ASYNC_GENERATOR_STATE_SUSPENDED_START 
JS_ASYNC_GENERATOR_STATE_SUSPENDED_YIELD 
JS_ASYNC_GENERATOR_STATE_SUSPENDED_YIELD_STAR 
JS_ASYNC_GENERATOR_STATE_EXECUTING 
JS_ASYNC_GENERATOR_STATE_AWAITING_RETURN 
JS_ASYNC_GENERATOR_STATE_COMPLETED 

◆ anonymous enum

anonymous enum
Enumerator
TOK_NUMBER 
TOK_STRING 
TOK_TEMPLATE 
TOK_IDENT 
TOK_REGEXP 
TOK_MUL_ASSIGN 
TOK_DIV_ASSIGN 
TOK_MOD_ASSIGN 
TOK_PLUS_ASSIGN 
TOK_MINUS_ASSIGN 
TOK_SHL_ASSIGN 
TOK_SAR_ASSIGN 
TOK_SHR_ASSIGN 
TOK_AND_ASSIGN 
TOK_XOR_ASSIGN 
TOK_OR_ASSIGN 
TOK_POW_ASSIGN 
TOK_LAND_ASSIGN 
TOK_LOR_ASSIGN 
TOK_DOUBLE_QUESTION_MARK_ASSIGN 
TOK_DEC 
TOK_INC 
TOK_SHL 
TOK_SAR 
TOK_SHR 
TOK_LT 
TOK_LTE 
TOK_GT 
TOK_GTE 
TOK_EQ 
TOK_STRICT_EQ 
TOK_NEQ 
TOK_STRICT_NEQ 
TOK_LAND 
TOK_LOR 
TOK_POW 
TOK_ARROW 
TOK_ELLIPSIS 
TOK_DOUBLE_QUESTION_MARK 
TOK_QUESTION_MARK_DOT 
TOK_ERROR 
TOK_PRIVATE_NAME 
TOK_EOF 
TOK_NULL 
TOK_FALSE 
TOK_TRUE 
TOK_IF 
TOK_ELSE 
TOK_RETURN 
TOK_VAR 
TOK_THIS 
TOK_DELETE 
TOK_VOID 
TOK_TYPEOF 
TOK_NEW 
TOK_IN 
TOK_INSTANCEOF 
TOK_DO 
TOK_WHILE 
TOK_FOR 
TOK_BREAK 
TOK_CONTINUE 
TOK_SWITCH 
TOK_CASE 
TOK_DEFAULT 
TOK_THROW 
TOK_TRY 
TOK_CATCH 
TOK_FINALLY 
TOK_FUNCTION 
TOK_DEBUGGER 
TOK_WITH 
TOK_CLASS 
TOK_CONST 
TOK_ENUM 
TOK_EXPORT 
TOK_EXTENDS 
TOK_IMPORT 
TOK_SUPER 
TOK_IMPLEMENTS 
TOK_INTERFACE 
TOK_LET 
TOK_PACKAGE 
TOK_PRIVATE 
TOK_PROTECTED 
TOK_PUBLIC 
TOK_STATIC 
TOK_YIELD 
TOK_AWAIT 
TOK_OF 

◆ JSParseFunctionEnum

Enumerator
JS_PARSE_FUNC_STATEMENT 
JS_PARSE_FUNC_VAR 
JS_PARSE_FUNC_EXPR 
JS_PARSE_FUNC_ARROW 
JS_PARSE_FUNC_GETTER 
JS_PARSE_FUNC_SETTER 
JS_PARSE_FUNC_METHOD 
JS_PARSE_FUNC_CLASS_CONSTRUCTOR 
JS_PARSE_FUNC_DERIVED_CLASS_CONSTRUCTOR 

◆ JSParseExportEnum

Enumerator
JS_PARSE_EXPORT_NONE 
JS_PARSE_EXPORT_NAMED 
JS_PARSE_EXPORT_DEFAULT 

◆ JSVarDefEnum

Enumerator
JS_VAR_DEF_WITH 
JS_VAR_DEF_LET 
JS_VAR_DEF_CONST 
JS_VAR_DEF_FUNCTION_DECL 
JS_VAR_DEF_NEW_FUNCTION_DECL 
JS_VAR_DEF_CATCH 
JS_VAR_DEF_VAR 

◆ PutLValueEnum

Enumerator
PUT_LVALUE_NOKEEP 
PUT_LVALUE_NOKEEP_DEPTH 
PUT_LVALUE_KEEP_TOP 
PUT_LVALUE_KEEP_SECOND 
PUT_LVALUE_NOKEEP_BOTTOM 

◆ FuncCallType

Enumerator
FUNC_CALL_NORMAL 
FUNC_CALL_NEW 
FUNC_CALL_SUPER_CTOR 
FUNC_CALL_TEMPLATE 

◆ JSResolveResultEnum

Enumerator
JS_RESOLVE_RES_EXCEPTION 
JS_RESOLVE_RES_FOUND 
JS_RESOLVE_RES_NOT_FOUND 
JS_RESOLVE_RES_CIRCULAR 
JS_RESOLVE_RES_AMBIGUOUS 

◆ ExportedNameEntryEnum

Enumerator
EXPORTED_NAME_AMBIGUOUS 
EXPORTED_NAME_NORMAL 
EXPORTED_NAME_NS 

◆ BCTagEnum

enum BCTagEnum
Enumerator
BC_TAG_NULL 
BC_TAG_UNDEFINED 
BC_TAG_BOOL_FALSE 
BC_TAG_BOOL_TRUE 
BC_TAG_INT32 
BC_TAG_FLOAT64 
BC_TAG_STRING 
BC_TAG_OBJECT 
BC_TAG_ARRAY 
BC_TAG_BIG_INT 
BC_TAG_BIG_FLOAT 
BC_TAG_BIG_DECIMAL 
BC_TAG_TEMPLATE_OBJECT 
BC_TAG_FUNCTION_BYTECODE 
BC_TAG_MODULE 
BC_TAG_TYPED_ARRAY 
BC_TAG_ARRAY_BUFFER 
BC_TAG_SHARED_ARRAY_BUFFER 
BC_TAG_DATE 
BC_TAG_OBJECT_VALUE 
BC_TAG_OBJECT_REFERENCE 

◆ anonymous enum

anonymous enum
Enumerator
magic_string_anchor 
magic_string_big 
magic_string_blink 
magic_string_bold 
magic_string_fixed 
magic_string_fontcolor 
magic_string_fontsize 
magic_string_italics 
magic_string_link 
magic_string_small 
magic_string_strike 
magic_string_sub 
magic_string_sup 

◆ JSPromiseStateEnum

Enumerator
JS_PROMISE_PENDING 
JS_PROMISE_FULFILLED 
JS_PROMISE_REJECTED 

◆ AtomicsOpEnum

Enumerator
ATOMICS_OP_ADD 
ATOMICS_OP_AND 
ATOMICS_OP_OR 
ATOMICS_OP_SUB 
ATOMICS_OP_XOR 
ATOMICS_OP_EXCHANGE 
ATOMICS_OP_COMPARE_EXCHANGE 
ATOMICS_OP_LOAD 

Function Documentation

◆ JS_InitAtoms()

static int JS_InitAtoms ( JSRuntime rt)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ __JS_NewAtomInit()

static JSAtom __JS_NewAtomInit ( JSRuntime rt,
const char *  str,
int  len,
int  atom_type 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_FreeAtomStruct()

static void JS_FreeAtomStruct ( JSRuntime rt,
JSAtomStruct *  p 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ free_function_bytecode()

static void free_function_bytecode ( JSRuntime rt,
JSFunctionBytecode b 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_call_c_function()

static JSValue js_call_c_function ( JSContext ctx,
JSValueConst  func_obj,
JSValueConst  this_obj,
int  argc,
JSValueConst argv,
int  flags 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_call_bound_function()

static JSValue js_call_bound_function ( JSContext ctx,
JSValueConst  func_obj,
JSValueConst  this_obj,
int  argc,
JSValueConst argv,
int  flags 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_CallInternal()

static JSValue JS_CallInternal ( JSContext ctx,
JSValueConst  func_obj,
JSValueConst  this_obj,
JSValueConst  new_target,
int  argc,
JSValue argv,
int  flags 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_CallConstructorInternal()

static JSValue JS_CallConstructorInternal ( JSContext ctx,
JSValueConst  func_obj,
JSValueConst  new_target,
int  argc,
JSValue argv,
int  flags 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_CallFree()

static JSValue JS_CallFree ( JSContext ctx,
JSValue  func_obj,
JSValueConst  this_obj,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_InvokeFree()

static JSValue JS_InvokeFree ( JSContext ctx,
JSValue  this_val,
JSAtom  atom,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_ToArrayLengthFree()

static __exception int JS_ToArrayLengthFree ( JSContext ctx,
uint32_t plen,
JSValue  val,
BOOL  is_array_ctor 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_EvalObject()

static JSValue JS_EvalObject ( JSContext ctx,
JSValueConst  this_obj,
JSValueConst  val,
int  flags,
int  scope_idx 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ __attribute__() [1/2]

JSValue __attribute__ ( (format(printf, 2, 3))  )

◆ js_strict_eq2()

static BOOL js_strict_eq2 ( JSContext ctx,
JSValue  op1,
JSValue  op2,
JSStrictEqModeEnum  eq_mode 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_strict_eq()

static BOOL js_strict_eq ( JSContext ctx,
JSValue  op1,
JSValue  op2 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_same_value()

static BOOL js_same_value ( JSContext ctx,
JSValueConst  op1,
JSValueConst  op2 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_same_value_zero()

static BOOL js_same_value_zero ( JSContext ctx,
JSValueConst  op1,
JSValueConst  op2 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_ToObject()

static JSValue JS_ToObject ( JSContext ctx,
JSValueConst  val 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_ToObjectFree()

static JSValue JS_ToObjectFree ( JSContext ctx,
JSValue  val 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ add_property()

static JSProperty * add_property ( JSContext ctx,
JSObject p,
JSAtom  prop,
int  prop_flags 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_ThrowOutOfMemory()

JSValue JS_ThrowOutOfMemory ( JSContext ctx)
+ Here is the caller graph for this function:

◆ JS_ThrowTypeErrorRevokedProxy()

static JSValue JS_ThrowTypeErrorRevokedProxy ( JSContext ctx)
static
+ Here is the caller graph for this function:

◆ js_proxy_getPrototypeOf()

static JSValue js_proxy_getPrototypeOf ( JSContext ctx,
JSValueConst  obj 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_proxy_setPrototypeOf()

static int js_proxy_setPrototypeOf ( JSContext ctx,
JSValueConst  obj,
JSValueConst  proto_val,
BOOL  throw_flag 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_proxy_isExtensible()

static int js_proxy_isExtensible ( JSContext ctx,
JSValueConst  obj 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_proxy_preventExtensions()

static int js_proxy_preventExtensions ( JSContext ctx,
JSValueConst  obj 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_proxy_isArray()

static int js_proxy_isArray ( JSContext ctx,
JSValueConst  obj 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_CreateProperty()

static int JS_CreateProperty ( JSContext ctx,
JSObject p,
JSAtom  prop,
JSValueConst  val,
JSValueConst  getter,
JSValueConst  setter,
int  flags 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_string_memcmp()

static int js_string_memcmp ( const JSString p1,
const JSString p2,
int  len 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ reset_weak_ref()

static void reset_weak_ref ( JSRuntime rt,
JSObject p 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_array_buffer_constructor3()

static JSValue js_array_buffer_constructor3 ( JSContext ctx,
JSValueConst  new_target,
uint64_t  len,
JSClassID  class_id,
uint8_t buf,
JSFreeArrayBufferDataFunc free_func,
void *  opaque,
BOOL  alloc_flag 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_get_array_buffer()

static JSArrayBuffer * js_get_array_buffer ( JSContext ctx,
JSValueConst  obj 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_typed_array_constructor()

static JSValue js_typed_array_constructor ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv,
int  classid 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ typed_array_is_detached()

static BOOL typed_array_is_detached ( JSContext ctx,
JSObject p 
)
static
+ Here is the caller graph for this function:

◆ typed_array_get_length()

static uint32_t typed_array_get_length ( JSContext ctx,
JSObject p 
)
static
+ Here is the caller graph for this function:

◆ JS_ThrowTypeErrorDetachedArrayBuffer()

static JSValue JS_ThrowTypeErrorDetachedArrayBuffer ( JSContext ctx)
static
+ Here is the caller graph for this function:

◆ get_var_ref()

static JSVarRef * get_var_ref ( JSContext ctx,
JSStackFrame sf,
int  var_idx,
BOOL  is_arg 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_generator_function_call()

static JSValue js_generator_function_call ( JSContext ctx,
JSValueConst  func_obj,
JSValueConst  this_obj,
int  argc,
JSValueConst argv,
int  flags 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_async_function_resolve_finalizer()

static void js_async_function_resolve_finalizer ( JSRuntime rt,
JSValue  val 
)
static
+ Here is the call graph for this function:

◆ js_async_function_resolve_mark()

static void js_async_function_resolve_mark ( JSRuntime rt,
JSValueConst  val,
JS_MarkFunc mark_func 
)
static

◆ JS_EvalInternal()

static JSValue JS_EvalInternal ( JSContext ctx,
JSValueConst  this_obj,
const char *  input,
size_t  input_len,
const char *  filename,
int  flags,
int  scope_idx 
)
static
+ Here is the caller graph for this function:

◆ js_free_module_def()

static void js_free_module_def ( JSContext ctx,
JSModuleDef m 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_mark_module_def()

static void js_mark_module_def ( JSRuntime rt,
JSModuleDef m,
JS_MarkFunc mark_func 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_import_meta()

static JSValue js_import_meta ( JSContext ctx)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_dynamic_import()

static JSValue js_dynamic_import ( JSContext ctx,
JSValueConst  specifier 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ free_var_ref()

static void free_var_ref ( JSRuntime rt,
JSVarRef var_ref 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_new_promise_capability()

static JSValue js_new_promise_capability ( JSContext ctx,
JSValue resolving_funcs,
JSValueConst  ctor 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ perform_promise_then()

static __exception int perform_promise_then ( JSContext ctx,
JSValueConst  promise,
JSValueConst resolve_reject,
JSValueConst cap_resolving_funcs 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_promise_resolve()

static JSValue js_promise_resolve ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv,
int  magic 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_string_compare()

static int js_string_compare ( JSContext ctx,
const JSString p1,
const JSString p2 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_ToNumber()

static JSValue JS_ToNumber ( JSContext ctx,
JSValueConst  val 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_SetPropertyValue()

static int JS_SetPropertyValue ( JSContext ctx,
JSValueConst  this_obj,
JSValue  prop,
JSValue  val,
int  flags 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_NumberIsInteger()

static int JS_NumberIsInteger ( JSContext ctx,
JSValueConst  val 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_NumberIsNegativeOrMinusZero()

static BOOL JS_NumberIsNegativeOrMinusZero ( JSContext ctx,
JSValueConst  val 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_ToNumberFree()

static JSValue JS_ToNumberFree ( JSContext ctx,
JSValue  val 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_GetOwnPropertyInternal()

static int JS_GetOwnPropertyInternal ( JSContext ctx,
JSPropertyDescriptor desc,
JSObject p,
JSAtom  prop 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_free_desc()

static void js_free_desc ( JSContext ctx,
JSPropertyDescriptor desc 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ async_func_mark()

static void async_func_mark ( JSRuntime rt,
JSAsyncFunctionState s,
JS_MarkFunc mark_func 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_AddIntrinsicBasicObjects()

static void JS_AddIntrinsicBasicObjects ( JSContext ctx)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_free_shape()

static void js_free_shape ( JSRuntime rt,
JSShape sh 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_free_shape_null()

static void js_free_shape_null ( JSRuntime rt,
JSShape sh 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_shape_prepare_update()

static int js_shape_prepare_update ( JSContext ctx,
JSObject p,
JSShapeProperty **  pprs 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ init_shape_hash()

static int init_shape_hash ( JSRuntime rt)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_get_length32()

static __exception int js_get_length32 ( JSContext ctx,
uint32_t pres,
JSValueConst  obj 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_get_length64()

static __exception int js_get_length64 ( JSContext ctx,
int64_t pres,
JSValueConst  obj 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ free_arg_list()

static void free_arg_list ( JSContext ctx,
JSValue tab,
uint32_t  len 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ build_arg_list()

static JSValue * build_arg_list ( JSContext ctx,
uint32_t plen,
JSValueConst  array_arg 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_get_fast_array()

static BOOL js_get_fast_array ( JSContext ctx,
JSValueConst  obj,
JSValue **  arrpp,
uint32_t countp 
)
static
+ Here is the caller graph for this function:

◆ JS_CreateAsyncFromSyncIterator()

static JSValue JS_CreateAsyncFromSyncIterator ( JSContext ctx,
JSValueConst  sync_iter 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_c_function_data_finalizer()

static void js_c_function_data_finalizer ( JSRuntime rt,
JSValue  val 
)
static
+ Here is the call graph for this function:

◆ js_c_function_data_mark()

static void js_c_function_data_mark ( JSRuntime rt,
JSValueConst  val,
JS_MarkFunc mark_func 
)
static
+ Here is the call graph for this function:

◆ js_c_function_data_call()

static JSValue js_c_function_data_call ( JSContext ctx,
JSValueConst  func_obj,
JSValueConst  this_val,
int  argc,
JSValueConst argv,
int  flags 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_symbol_to_atom()

static JSAtom js_symbol_to_atom ( JSContext ctx,
JSValue  val 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ add_gc_object()

static void add_gc_object ( JSRuntime rt,
JSGCObjectHeader h,
JSGCObjectTypeEnum  type 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ remove_gc_object()

static void remove_gc_object ( JSGCObjectHeader h)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_async_function_free0()

static void js_async_function_free0 ( JSRuntime rt,
JSAsyncFunctionData s 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_instantiate_prototype()

static JSValue js_instantiate_prototype ( JSContext ctx,
JSObject p,
JSAtom  atom,
void *  opaque 
)
static
+ Here is the call graph for this function:

◆ js_module_ns_autoinit()

static JSValue js_module_ns_autoinit ( JSContext ctx,
JSObject p,
JSAtom  atom,
void *  opaque 
)
static
+ Here is the call graph for this function:

◆ JS_InstantiateFunctionListItem2()

static JSValue JS_InstantiateFunctionListItem2 ( JSContext ctx,
JSObject p,
JSAtom  atom,
void *  opaque 
)
static
+ Here is the call graph for this function:

◆ JS_SetUncatchableError()

void JS_SetUncatchableError ( JSContext ctx,
JSValueConst  val,
BOOL  flag 
)
+ Here is the caller graph for this function:

◆ js_trigger_gc()

static void js_trigger_gc ( JSRuntime rt,
size_t  size 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_malloc_usable_size_unknown()

static size_t js_malloc_usable_size_unknown ( const void *  ptr)
static
+ Here is the caller graph for this function:

◆ js_malloc_rt()

void* js_malloc_rt ( JSRuntime rt,
size_t  size 
)
+ Here is the caller graph for this function:

◆ js_free_rt()

void js_free_rt ( JSRuntime rt,
void *  ptr 
)
+ Here is the caller graph for this function:

◆ js_realloc_rt()

void* js_realloc_rt ( JSRuntime rt,
void *  ptr,
size_t  size 
)
+ Here is the caller graph for this function:

◆ js_malloc_usable_size_rt()

size_t js_malloc_usable_size_rt ( JSRuntime rt,
const void *  ptr 
)
+ Here is the caller graph for this function:

◆ js_mallocz_rt()

void* js_mallocz_rt ( JSRuntime rt,
size_t  size 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_malloc()

void* js_malloc ( JSContext ctx,
size_t  size 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_mallocz()

void* js_mallocz ( JSContext ctx,
size_t  size 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_free()

void js_free ( JSContext ctx,
void *  ptr 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_realloc()

void* js_realloc ( JSContext ctx,
void *  ptr,
size_t  size 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_realloc2()

void* js_realloc2 ( JSContext ctx,
void *  ptr,
size_t  size,
size_t *  pslack 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_malloc_usable_size()

size_t js_malloc_usable_size ( JSContext ctx,
const void *  ptr 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_strndup()

char* js_strndup ( JSContext ctx,
const char *  s,
size_t  n 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_strdup()

char* js_strdup ( JSContext ctx,
const char *  str 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_realloc_array()

static no_inline int js_realloc_array ( JSContext ctx,
void **  parray,
int  elem_size,
int *  psize,
int  req_size 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_resize_array()

static int js_resize_array ( JSContext ctx,
void **  parray,
int  elem_size,
int *  psize,
int  req_size 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_dbuf_init()

static void js_dbuf_init ( JSContext ctx,
DynBuf s 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ is_digit()

static int is_digit ( int  c)
static
+ Here is the caller graph for this function:

◆ init_class_range()

static int init_class_range ( JSRuntime rt,
JSClassShortDef const *  tab,
int  start,
int  count 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_get_stack_pointer()

static uintptr_t js_get_stack_pointer ( void  )
static
+ Here is the caller graph for this function:

◆ js_check_stack_overflow()

static BOOL js_check_stack_overflow ( JSRuntime rt,
size_t  alloca_size 
)
static
+ Here is the caller graph for this function:

◆ JS_NewRuntime2()

JSRuntime* JS_NewRuntime2 ( const JSMallocFunctions mf,
void *  opaque 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_GetRuntimeOpaque()

void* JS_GetRuntimeOpaque ( JSRuntime rt)
+ Here is the caller graph for this function:

◆ JS_SetRuntimeOpaque()

void JS_SetRuntimeOpaque ( JSRuntime rt,
void *  opaque 
)
+ Here is the caller graph for this function:

◆ js_def_malloc_usable_size()

static size_t js_def_malloc_usable_size ( void *  ptr)
static
+ Here is the caller graph for this function:

◆ js_def_malloc()

static void* js_def_malloc ( JSMallocState s,
size_t  size 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_def_free()

static void js_def_free ( JSMallocState s,
void *  ptr 
)
static
+ Here is the call graph for this function:

◆ js_def_realloc()

static void* js_def_realloc ( JSMallocState s,
void *  ptr,
size_t  size 
)
static
+ Here is the call graph for this function:

◆ JS_NewRuntime()

JSRuntime* JS_NewRuntime ( void  )
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_SetMemoryLimit()

void JS_SetMemoryLimit ( JSRuntime rt,
size_t  limit 
)

◆ JS_SetGCThreshold()

void JS_SetGCThreshold ( JSRuntime rt,
size_t  gc_threshold 
)

◆ JS_SetInterruptHandler()

void JS_SetInterruptHandler ( JSRuntime rt,
JSInterruptHandler cb,
void *  opaque 
)
+ Here is the caller graph for this function:

◆ JS_SetCanBlock()

void JS_SetCanBlock ( JSRuntime rt,
BOOL  can_block 
)
+ Here is the caller graph for this function:

◆ JS_SetSharedArrayBufferFunctions()

void JS_SetSharedArrayBufferFunctions ( JSRuntime rt,
const JSSharedArrayBufferFunctions sf 
)
+ Here is the caller graph for this function:

◆ JS_EnqueueJob()

int JS_EnqueueJob ( JSContext ctx,
JSJobFunc job_func,
int  argc,
JSValueConst argv 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_IsJobPending()

BOOL JS_IsJobPending ( JSRuntime rt)
+ Here is the call graph for this function:

◆ JS_ExecutePendingJob()

int JS_ExecutePendingJob ( JSRuntime rt,
JSContext **  pctx 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ atom_get_free()

static uint32_t atom_get_free ( const JSAtomStruct *  p)
static
+ Here is the caller graph for this function:

◆ atom_is_free()

static BOOL atom_is_free ( const JSAtomStruct *  p)
static
+ Here is the caller graph for this function:

◆ atom_set_free()

static JSAtomStruct* atom_set_free ( uint32_t  v)
static
+ Here is the caller graph for this function:

◆ js_alloc_string_rt()

static JSString* js_alloc_string_rt ( JSRuntime rt,
int  max_len,
int  is_wide_char 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_alloc_string()

static JSString* js_alloc_string ( JSContext ctx,
int  max_len,
int  is_wide_char 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_free_string()

static void js_free_string ( JSRuntime rt,
JSString str 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_SetRuntimeInfo()

void JS_SetRuntimeInfo ( JSRuntime rt,
const char *  s 
)

◆ JS_FreeRuntime()

void JS_FreeRuntime ( JSRuntime rt)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_NewContextRaw()

JSContext* JS_NewContextRaw ( JSRuntime rt)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_NewContext()

JSContext* JS_NewContext ( JSRuntime rt)
+ Here is the call graph for this function:

◆ JS_GetContextOpaque()

void* JS_GetContextOpaque ( JSContext ctx)

◆ JS_SetContextOpaque()

void JS_SetContextOpaque ( JSContext ctx,
void *  opaque 
)
+ Here is the caller graph for this function:

◆ set_value()

static void set_value ( JSContext ctx,
JSValue pval,
JSValue  new_val 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_SetClassProto()

void JS_SetClassProto ( JSContext ctx,
JSClassID  class_id,
JSValue  obj 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_GetClassProto()

JSValue JS_GetClassProto ( JSContext ctx,
JSClassID  class_id 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_free_modules()

static void js_free_modules ( JSContext ctx,
JSFreeModuleEnum  flag 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_DupContext()

JSContext* JS_DupContext ( JSContext ctx)
+ Here is the caller graph for this function:

◆ JS_MarkContext()

static void JS_MarkContext ( JSRuntime rt,
JSContext ctx,
JS_MarkFunc mark_func 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_FreeContext()

void JS_FreeContext ( JSContext ctx)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_GetRuntime()

JSRuntime* JS_GetRuntime ( JSContext ctx)
+ Here is the caller graph for this function:

◆ update_stack_limit()

static void update_stack_limit ( JSRuntime rt)
static
+ Here is the caller graph for this function:

◆ JS_SetMaxStackSize()

void JS_SetMaxStackSize ( JSRuntime rt,
size_t  stack_size 
)
+ Here is the call graph for this function:

◆ JS_UpdateStackTop()

void JS_UpdateStackTop ( JSRuntime rt)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ is_strict_mode()

static BOOL is_strict_mode ( JSContext ctx)
static
+ Here is the caller graph for this function:

◆ __JS_AtomIsConst()

static BOOL __JS_AtomIsConst ( JSAtom  v)
static
+ Here is the caller graph for this function:

◆ __JS_AtomIsTaggedInt()

static BOOL __JS_AtomIsTaggedInt ( JSAtom  v)
static
+ Here is the caller graph for this function:

◆ __JS_AtomFromUInt32()

static JSAtom __JS_AtomFromUInt32 ( uint32_t  v)
static
+ Here is the caller graph for this function:

◆ __JS_AtomToUInt32()

static uint32_t __JS_AtomToUInt32 ( JSAtom  atom)
static
+ Here is the caller graph for this function:

◆ is_num()

static int is_num ( int  c)
static
+ Here is the caller graph for this function:

◆ is_num_string()

static BOOL is_num_string ( uint32_t pval,
const JSString p 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ hash_string8()

static uint32_t hash_string8 ( const uint8_t str,
size_t  len,
uint32_t  h 
)
static
+ Here is the caller graph for this function:

◆ hash_string16()

static uint32_t hash_string16 ( const uint16_t str,
size_t  len,
uint32_t  h 
)
static
+ Here is the caller graph for this function:

◆ hash_string()

static uint32_t hash_string ( const JSString str,
uint32_t  h 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_DumpString()

static __maybe_unused void JS_DumpString ( JSRuntime rt,
const JSString p 
)
static
+ Here is the caller graph for this function:

◆ JS_DumpAtoms()

static __maybe_unused void JS_DumpAtoms ( JSRuntime rt)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_ResizeAtomHash()

static int JS_ResizeAtomHash ( JSRuntime rt,
int  new_hash_size 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_DupAtomRT()

static JSAtom JS_DupAtomRT ( JSRuntime rt,
JSAtom  v 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_DupAtom()

JSAtom JS_DupAtom ( JSContext ctx,
JSAtom  v 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_AtomGetKind()

static JSAtomKindEnum JS_AtomGetKind ( JSContext ctx,
JSAtom  v 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_AtomIsString()

static BOOL JS_AtomIsString ( JSContext ctx,
JSAtom  v 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_get_atom_index()

static JSAtom js_get_atom_index ( JSRuntime rt,
JSAtomStruct *  p 
)
static
+ Here is the caller graph for this function:

◆ __JS_NewAtom()

static JSAtom __JS_NewAtom ( JSRuntime rt,
JSString str,
int  atom_type 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ __JS_FindAtom()

static JSAtom __JS_FindAtom ( JSRuntime rt,
const char *  str,
size_t  len,
int  atom_type 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ __JS_FreeAtom()

static void __JS_FreeAtom ( JSRuntime rt,
uint32_t  i 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_NewAtomStr()

static JSAtom JS_NewAtomStr ( JSContext ctx,
JSString p 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_NewAtomLen()

JSAtom JS_NewAtomLen ( JSContext ctx,
const char *  str,
size_t  len 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_NewAtom()

JSAtom JS_NewAtom ( JSContext ctx,
const char *  str 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_NewAtomUInt32()

JSAtom JS_NewAtomUInt32 ( JSContext ctx,
uint32_t  n 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_NewAtomInt64()

static JSAtom JS_NewAtomInt64 ( JSContext ctx,
int64_t  n 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_NewSymbol()

static JSValue JS_NewSymbol ( JSContext ctx,
JSString p,
int  atom_type 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_NewSymbolFromAtom()

static JSValue JS_NewSymbolFromAtom ( JSContext ctx,
JSAtom  descr,
int  atom_type 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_AtomGetStrRT()

static const char* JS_AtomGetStrRT ( JSRuntime rt,
char *  buf,
int  buf_size,
JSAtom  atom 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_AtomGetStr()

static const char* JS_AtomGetStr ( JSContext ctx,
char *  buf,
int  buf_size,
JSAtom  atom 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ __JS_AtomToValue()

static JSValue __JS_AtomToValue ( JSContext ctx,
JSAtom  atom,
BOOL  force_string 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_AtomToValue()

JSValue JS_AtomToValue ( JSContext ctx,
JSAtom  atom 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_AtomToString()

JSValue JS_AtomToString ( JSContext ctx,
JSAtom  atom 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_AtomIsArrayIndex()

BOOL JS_AtomIsArrayIndex ( JSContext ctx,
uint32_t pval,
JSAtom  atom 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_AtomIsNumericIndex1()

static JSValue JS_AtomIsNumericIndex1 ( JSContext ctx,
JSAtom  atom 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_AtomIsNumericIndex()

static int JS_AtomIsNumericIndex ( JSContext ctx,
JSAtom  atom 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_FreeAtom()

void JS_FreeAtom ( JSContext ctx,
JSAtom  v 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_FreeAtomRT()

void JS_FreeAtomRT ( JSRuntime rt,
JSAtom  v 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_AtomSymbolHasDescription()

static BOOL JS_AtomSymbolHasDescription ( JSContext ctx,
JSAtom  v 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ print_atom()

static __maybe_unused void print_atom ( JSContext ctx,
JSAtom  atom 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_AtomToCString()

const char* JS_AtomToCString ( JSContext ctx,
JSAtom  atom 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_atom_concat_str()

static JSAtom js_atom_concat_str ( JSContext ctx,
JSAtom  name,
const char *  str1 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_atom_concat_num()

static JSAtom js_atom_concat_num ( JSContext ctx,
JSAtom  name,
uint32_t  n 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_IsEmptyString()

static BOOL JS_IsEmptyString ( JSValueConst  v)
static
+ Here is the caller graph for this function:

◆ JS_NewClassID()

JSClassID JS_NewClassID ( JSClassID pclass_id)
+ Here is the caller graph for this function:

◆ JS_IsRegisteredClass()

BOOL JS_IsRegisteredClass ( JSRuntime rt,
JSClassID  class_id 
)
+ Here is the caller graph for this function:

◆ JS_NewClass1()

static int JS_NewClass1 ( JSRuntime rt,
JSClassID  class_id,
const JSClassDef class_def,
JSAtom  name 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_NewClass()

int JS_NewClass ( JSRuntime rt,
JSClassID  class_id,
const JSClassDef class_def 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_new_string8()

static JSValue js_new_string8 ( JSContext ctx,
const uint8_t buf,
int  len 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_new_string16()

static JSValue js_new_string16 ( JSContext ctx,
const uint16_t buf,
int  len 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_new_string_char()

static JSValue js_new_string_char ( JSContext ctx,
uint16_t  c 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_sub_string()

static JSValue js_sub_string ( JSContext ctx,
JSString p,
int  start,
int  end 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ string_buffer_init2()

static int string_buffer_init2 ( JSContext ctx,
StringBuffer s,
int  size,
int  is_wide 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ string_buffer_init()

static int string_buffer_init ( JSContext ctx,
StringBuffer s,
int  size 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ string_buffer_free()

static void string_buffer_free ( StringBuffer s)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ string_buffer_set_error()

static int string_buffer_set_error ( StringBuffer s)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ string_buffer_widen()

static no_inline int string_buffer_widen ( StringBuffer s,
int  size 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ string_buffer_realloc()

static no_inline int string_buffer_realloc ( StringBuffer s,
int  new_len,
int  c 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ string_buffer_putc_slow()

static no_inline int string_buffer_putc_slow ( StringBuffer s,
uint32_t  c 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ string_buffer_putc8()

static int string_buffer_putc8 ( StringBuffer s,
uint32_t  c 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ string_buffer_putc16()

static int string_buffer_putc16 ( StringBuffer s,
uint32_t  c 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ string_buffer_putc()

static int string_buffer_putc ( StringBuffer s,
uint32_t  c 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ string_get()

static int string_get ( const JSString p,
int  idx 
)
static
+ Here is the caller graph for this function:

◆ string_getc()

static int string_getc ( const JSString p,
int *  pidx 
)
static
+ Here is the caller graph for this function:

◆ string_buffer_write8()

static int string_buffer_write8 ( StringBuffer s,
const uint8_t p,
int  len 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ string_buffer_write16()

static int string_buffer_write16 ( StringBuffer s,
const uint16_t p,
int  len 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ string_buffer_puts8()

static int string_buffer_puts8 ( StringBuffer s,
const char *  str 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ string_buffer_concat()

static int string_buffer_concat ( StringBuffer s,
const JSString p,
uint32_t  from,
uint32_t  to 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ string_buffer_concat_value()

static int string_buffer_concat_value ( StringBuffer s,
JSValueConst  v 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ string_buffer_concat_value_free()

static int string_buffer_concat_value_free ( StringBuffer s,
JSValue  v 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ string_buffer_fill()

static int string_buffer_fill ( StringBuffer s,
int  c,
int  count 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ string_buffer_end()

static JSValue string_buffer_end ( StringBuffer s)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_NewStringLen()

JSValue JS_NewStringLen ( JSContext ctx,
const char *  buf,
size_t  buf_len 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_ConcatString3()

static JSValue JS_ConcatString3 ( JSContext ctx,
const char *  str1,
JSValue  str2,
const char *  str3 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_NewString()

JSValue JS_NewString ( JSContext ctx,
const char *  str 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_NewAtomString()

JSValue JS_NewAtomString ( JSContext ctx,
const char *  str 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_ToCStringLen2()

const char* JS_ToCStringLen2 ( JSContext ctx,
size_t *  plen,
JSValueConst  val1,
BOOL  cesu8 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_FreeCString()

void JS_FreeCString ( JSContext ctx,
const char *  ptr 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ memcmp16_8()

static int memcmp16_8 ( const uint16_t src1,
const uint8_t src2,
int  len 
)
static
+ Here is the caller graph for this function:

◆ memcmp16()

static int memcmp16 ( const uint16_t src1,
const uint16_t src2,
int  len 
)
static
+ Here is the caller graph for this function:

◆ copy_str16()

static void copy_str16 ( uint16_t dst,
const JSString p,
int  offset,
int  len 
)
static
+ Here is the caller graph for this function:

◆ JS_ConcatString1()

static JSValue JS_ConcatString1 ( JSContext ctx,
const JSString p1,
const JSString p2 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_ConcatString()

static JSValue JS_ConcatString ( JSContext ctx,
JSValue  op1,
JSValue  op2 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ get_shape_size()

static size_t get_shape_size ( size_t  hash_size,
size_t  prop_size 
)
static
+ Here is the caller graph for this function:

◆ get_shape_from_alloc()

static JSShape* get_shape_from_alloc ( void *  sh_alloc,
size_t  hash_size 
)
static
+ Here is the caller graph for this function:

◆ prop_hash_end()

static uint32_t* prop_hash_end ( JSShape sh)
static
+ Here is the caller graph for this function:

◆ get_alloc_from_shape()

static void* get_alloc_from_shape ( JSShape sh)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ get_shape_prop()

static JSShapeProperty* get_shape_prop ( JSShape sh)
static
+ Here is the caller graph for this function:

◆ shape_hash()

static uint32_t shape_hash ( uint32_t  h,
uint32_t  val 
)
static
+ Here is the caller graph for this function:

◆ get_shape_hash()

static uint32_t get_shape_hash ( uint32_t  h,
int  hash_bits 
)
static
+ Here is the caller graph for this function:

◆ shape_initial_hash()

static uint32_t shape_initial_hash ( JSObject proto)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ resize_shape_hash()

static int resize_shape_hash ( JSRuntime rt,
int  new_shape_hash_bits 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_shape_hash_link()

static void js_shape_hash_link ( JSRuntime rt,
JSShape sh 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_shape_hash_unlink()

static void js_shape_hash_unlink ( JSRuntime rt,
JSShape sh 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_new_shape2()

static no_inline JSShape* js_new_shape2 ( JSContext ctx,
JSObject proto,
int  hash_size,
int  prop_size 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_new_shape()

static JSShape* js_new_shape ( JSContext ctx,
JSObject proto 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_clone_shape()

static JSShape* js_clone_shape ( JSContext ctx,
JSShape sh1 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_dup_shape()

static JSShape* js_dup_shape ( JSShape sh)
static
+ Here is the caller graph for this function:

◆ js_free_shape0()

static void js_free_shape0 ( JSRuntime rt,
JSShape sh 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ resize_properties()

static no_inline int resize_properties ( JSContext ctx,
JSShape **  psh,
JSObject p,
uint32_t  count 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ compact_properties()

static int compact_properties ( JSContext ctx,
JSObject p 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ add_shape_property()

static int add_shape_property ( JSContext ctx,
JSShape **  psh,
JSObject p,
JSAtom  atom,
int  prop_flags 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ find_hashed_shape_proto()

static JSShape* find_hashed_shape_proto ( JSRuntime rt,
JSObject proto 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ find_hashed_shape_prop()

static JSShape* find_hashed_shape_prop ( JSRuntime rt,
JSShape sh,
JSAtom  atom,
int  prop_flags 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_DumpShape()

static __maybe_unused void JS_DumpShape ( JSRuntime rt,
int  i,
JSShape sh 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_DumpShapes()

static __maybe_unused void JS_DumpShapes ( JSRuntime rt)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_NewObjectFromShape()

static JSValue JS_NewObjectFromShape ( JSContext ctx,
JSShape sh,
JSClassID  class_id 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ get_proto_obj()

static JSObject* get_proto_obj ( JSValueConst  proto_val)
static
+ Here is the caller graph for this function:

◆ JS_NewObjectProtoClass()

JSValue JS_NewObjectProtoClass ( JSContext ctx,
JSValueConst  proto_val,
JSClassID  class_id 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_SetObjectData()

static int JS_SetObjectData ( JSContext ctx,
JSValueConst  obj,
JSValue  val 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_NewObjectClass()

JSValue JS_NewObjectClass ( JSContext ctx,
int  class_id 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_NewObjectProto()

JSValue JS_NewObjectProto ( JSContext ctx,
JSValueConst  proto 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_NewArray()

JSValue JS_NewArray ( JSContext ctx)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_NewObject()

JSValue JS_NewObject ( JSContext ctx)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_function_set_properties()

static void js_function_set_properties ( JSContext ctx,
JSValueConst  func_obj,
JSAtom  name,
int  len 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_class_has_bytecode()

static BOOL js_class_has_bytecode ( JSClassID  class_id)
static
+ Here is the caller graph for this function:

◆ JS_GetFunctionBytecode()

static JSFunctionBytecode* JS_GetFunctionBytecode ( JSValueConst  val)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_method_set_home_object()

static void js_method_set_home_object ( JSContext ctx,
JSValueConst  func_obj,
JSValueConst  home_obj 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_get_function_name()

static JSValue js_get_function_name ( JSContext ctx,
JSAtom  name 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_method_set_properties()

static int js_method_set_properties ( JSContext ctx,
JSValueConst  func_obj,
JSAtom  name,
int  flags,
JSValueConst  home_obj 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_NewCFunction3()

static JSValue JS_NewCFunction3 ( JSContext ctx,
JSCFunction func,
const char *  name,
int  length,
JSCFunctionEnum  cproto,
int  magic,
JSValueConst  proto_val 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_NewCFunction2()

JSValue JS_NewCFunction2 ( JSContext ctx,
JSCFunction func,
const char *  name,
int  length,
JSCFunctionEnum  cproto,
int  magic 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_NewCFunctionData()

JSValue JS_NewCFunctionData ( JSContext ctx,
JSCFunctionData func,
int  length,
int  magic,
int  data_len,
JSValueConst data 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_autoinit_get_realm()

static JSContext* js_autoinit_get_realm ( JSProperty pr)
static
+ Here is the caller graph for this function:

◆ js_autoinit_get_id()

static JSAutoInitIDEnum js_autoinit_get_id ( JSProperty pr)
static
+ Here is the caller graph for this function:

◆ js_autoinit_free()

static void js_autoinit_free ( JSRuntime rt,
JSProperty pr 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_autoinit_mark()

static void js_autoinit_mark ( JSRuntime rt,
JSProperty pr,
JS_MarkFunc mark_func 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ free_property()

static void free_property ( JSRuntime rt,
JSProperty pr,
int  prop_flags 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ find_own_property1()

static force_inline JSShapeProperty* find_own_property1 ( JSObject p,
JSAtom  atom 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ find_own_property()

static force_inline JSShapeProperty* find_own_property ( JSProperty **  ppr,
JSObject p,
JSAtom  atom 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ set_cycle_flag()

static void set_cycle_flag ( JSContext ctx,
JSValueConst  obj 
)
static
+ Here is the caller graph for this function:

◆ js_array_finalizer()

static void js_array_finalizer ( JSRuntime rt,
JSValue  val 
)
static
+ Here is the call graph for this function:

◆ js_array_mark()

static void js_array_mark ( JSRuntime rt,
JSValueConst  val,
JS_MarkFunc mark_func 
)
static
+ Here is the call graph for this function:

◆ js_object_data_finalizer()

static void js_object_data_finalizer ( JSRuntime rt,
JSValue  val 
)
static
+ Here is the call graph for this function:

◆ js_object_data_mark()

static void js_object_data_mark ( JSRuntime rt,
JSValueConst  val,
JS_MarkFunc mark_func 
)
static
+ Here is the call graph for this function:

◆ js_c_function_finalizer()

static void js_c_function_finalizer ( JSRuntime rt,
JSValue  val 
)
static
+ Here is the call graph for this function:

◆ js_c_function_mark()

static void js_c_function_mark ( JSRuntime rt,
JSValueConst  val,
JS_MarkFunc mark_func 
)
static

◆ js_bytecode_function_finalizer()

static void js_bytecode_function_finalizer ( JSRuntime rt,
JSValue  val 
)
static
+ Here is the call graph for this function:

◆ js_bytecode_function_mark()

static void js_bytecode_function_mark ( JSRuntime rt,
JSValueConst  val,
JS_MarkFunc mark_func 
)
static
+ Here is the call graph for this function:

◆ js_bound_function_finalizer()

static void js_bound_function_finalizer ( JSRuntime rt,
JSValue  val 
)
static
+ Here is the call graph for this function:

◆ js_bound_function_mark()

static void js_bound_function_mark ( JSRuntime rt,
JSValueConst  val,
JS_MarkFunc mark_func 
)
static
+ Here is the call graph for this function:

◆ js_for_in_iterator_finalizer()

static void js_for_in_iterator_finalizer ( JSRuntime rt,
JSValue  val 
)
static
+ Here is the call graph for this function:

◆ js_for_in_iterator_mark()

static void js_for_in_iterator_mark ( JSRuntime rt,
JSValueConst  val,
JS_MarkFunc mark_func 
)
static
+ Here is the call graph for this function:

◆ free_object()

static void free_object ( JSRuntime rt,
JSObject p 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ free_gc_object()

static void free_gc_object ( JSRuntime rt,
JSGCObjectHeader gp 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ free_zero_refcount()

static void free_zero_refcount ( JSRuntime rt)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ __JS_FreeValueRT()

void __JS_FreeValueRT ( JSRuntime rt,
JSValue  v 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ __JS_FreeValue()

void __JS_FreeValue ( JSContext ctx,
JSValue  v 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_MarkValue()

void JS_MarkValue ( JSRuntime rt,
JSValueConst  val,
JS_MarkFunc mark_func 
)
+ Here is the caller graph for this function:

◆ mark_children()

static void mark_children ( JSRuntime rt,
JSGCObjectHeader gp,
JS_MarkFunc mark_func 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gc_decref_child()

static void gc_decref_child ( JSRuntime rt,
JSGCObjectHeader p 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gc_decref()

static void gc_decref ( JSRuntime rt)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gc_scan_incref_child()

static void gc_scan_incref_child ( JSRuntime rt,
JSGCObjectHeader p 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gc_scan_incref_child2()

static void gc_scan_incref_child2 ( JSRuntime rt,
JSGCObjectHeader p 
)
static
+ Here is the caller graph for this function:

◆ gc_scan()

static void gc_scan ( JSRuntime rt)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gc_free_cycles()

static void gc_free_cycles ( JSRuntime rt)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_RunGC()

void JS_RunGC ( JSRuntime rt)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_IsLiveObject()

BOOL JS_IsLiveObject ( JSRuntime rt,
JSValueConst  obj 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ compute_value_size()

static void compute_value_size ( JSValueConst  val,
JSMemoryUsage_helper hp 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ compute_jsstring_size()

static void compute_jsstring_size ( JSString str,
JSMemoryUsage_helper hp 
)
static
+ Here is the caller graph for this function:

◆ compute_bytecode_size()

static void compute_bytecode_size ( JSFunctionBytecode b,
JSMemoryUsage_helper hp 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_ComputeMemoryUsage()

void JS_ComputeMemoryUsage ( JSRuntime rt,
JSMemoryUsage s 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_DumpMemoryUsage()

void JS_DumpMemoryUsage ( FILE *  fp,
const JSMemoryUsage s,
JSRuntime rt 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_GetGlobalObject()

JSValue JS_GetGlobalObject ( JSContext ctx)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_Throw()

JSValue JS_Throw ( JSContext ctx,
JSValue  obj 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_GetException()

JSValue JS_GetException ( JSContext ctx)
+ Here is the caller graph for this function:

◆ dbuf_put_leb128()

static void dbuf_put_leb128 ( DynBuf s,
uint32_t  v 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ dbuf_put_sleb128()

static void dbuf_put_sleb128 ( DynBuf s,
int32_t  v1 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ get_leb128()

static int get_leb128 ( uint32_t pval,
const uint8_t buf,
const uint8_t buf_end 
)
static
+ Here is the caller graph for this function:

◆ get_sleb128()

static int get_sleb128 ( int32_t pval,
const uint8_t buf,
const uint8_t buf_end 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ find_line_num()

static int find_line_num ( JSContext ctx,
JSFunctionBytecode b,
uint32_t  pc_value 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ get_func_name()

static const char* get_func_name ( JSContext ctx,
JSValueConst  func 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ build_backtrace()

static void build_backtrace ( JSContext ctx,
JSValueConst  error_obj,
const char *  filename,
int  line_num,
int  backtrace_flags 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ is_backtrace_needed()

static BOOL is_backtrace_needed ( JSContext ctx,
JSValueConst  obj 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_NewError()

JSValue JS_NewError ( JSContext ctx)
+ Here is the call graph for this function:

◆ JS_ThrowError2()

static JSValue JS_ThrowError2 ( JSContext ctx,
JSErrorEnum  error_num,
const char *  fmt,
va_list  ap,
BOOL  add_backtrace 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_ThrowError()

static JSValue JS_ThrowError ( JSContext ctx,
JSErrorEnum  error_num,
const char *  fmt,
va_list  ap 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ __attribute__() [2/2]

static JSValue __attribute__ ( (format(printf, 3, 4))  )
static
+ Here is the call graph for this function:

◆ JS_ThrowTypeErrorReadOnly()

static int JS_ThrowTypeErrorReadOnly ( JSContext ctx,
int  flags,
JSAtom  atom 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_ThrowStackOverflow()

static JSValue JS_ThrowStackOverflow ( JSContext ctx)
static
+ Here is the caller graph for this function:

◆ JS_ThrowTypeErrorNotAnObject()

static JSValue JS_ThrowTypeErrorNotAnObject ( JSContext ctx)
static
+ Here is the caller graph for this function:

◆ JS_ThrowTypeErrorNotASymbol()

static JSValue JS_ThrowTypeErrorNotASymbol ( JSContext ctx)
static
+ Here is the caller graph for this function:

◆ JS_ThrowReferenceErrorNotDefined()

static JSValue JS_ThrowReferenceErrorNotDefined ( JSContext ctx,
JSAtom  name 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_ThrowReferenceErrorUninitialized()

static JSValue JS_ThrowReferenceErrorUninitialized ( JSContext ctx,
JSAtom  name 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_ThrowReferenceErrorUninitialized2()

static JSValue JS_ThrowReferenceErrorUninitialized2 ( JSContext ctx,
JSFunctionBytecode b,
int  idx,
BOOL  is_ref 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_ThrowTypeErrorInvalidClass()

static JSValue JS_ThrowTypeErrorInvalidClass ( JSContext ctx,
int  class_id 
)
static
+ Here is the caller graph for this function:

◆ __js_poll_interrupts()

static no_inline __exception int __js_poll_interrupts ( JSContext ctx)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_poll_interrupts()

static __exception int js_poll_interrupts ( JSContext ctx)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_SetPrototypeInternal()

static int JS_SetPrototypeInternal ( JSContext ctx,
JSValueConst  obj,
JSValueConst  proto_val,
BOOL  throw_flag 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_SetPrototype()

int JS_SetPrototype ( JSContext ctx,
JSValueConst  obj,
JSValueConst  proto_val 
)
+ Here is the call graph for this function:

◆ JS_GetPrototypePrimitive()

static JSValueConst JS_GetPrototypePrimitive ( JSContext ctx,
JSValueConst  val 
)
static
+ Here is the caller graph for this function:

◆ JS_GetPrototype()

JSValue JS_GetPrototype ( JSContext ctx,
JSValueConst  obj 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_GetPrototypeFree()

static JSValue JS_GetPrototypeFree ( JSContext ctx,
JSValue  obj 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_OrdinaryIsInstanceOf()

static int JS_OrdinaryIsInstanceOf ( JSContext ctx,
JSValueConst  val,
JSValueConst  obj 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_IsInstanceOf()

int JS_IsInstanceOf ( JSContext ctx,
JSValueConst  val,
JSValueConst  obj 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_AutoInitProperty()

static int JS_AutoInitProperty ( JSContext ctx,
JSObject p,
JSAtom  prop,
JSProperty pr,
JSShapeProperty prs 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_GetPropertyInternal()

JSValue JS_GetPropertyInternal ( JSContext ctx,
JSValueConst  obj,
JSAtom  prop,
JSValueConst  this_obj,
BOOL  throw_ref_error 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_ThrowTypeErrorPrivateNotFound()

static JSValue JS_ThrowTypeErrorPrivateNotFound ( JSContext ctx,
JSAtom  atom 
)
static
+ Here is the caller graph for this function:

◆ JS_DefinePrivateField()

static int JS_DefinePrivateField ( JSContext ctx,
JSValueConst  obj,
JSValueConst  name,
JSValue  val 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_GetPrivateField()

static JSValue JS_GetPrivateField ( JSContext ctx,
JSValueConst  obj,
JSValueConst  name 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_SetPrivateField()

static int JS_SetPrivateField ( JSContext ctx,
JSValueConst  obj,
JSValueConst  name,
JSValue  val 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_AddBrand()

static int JS_AddBrand ( JSContext ctx,
JSValueConst  obj,
JSValueConst  home_obj 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_CheckBrand()

static int JS_CheckBrand ( JSContext ctx,
JSValueConst  obj,
JSValueConst  func 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_string_obj_get_length()

static uint32_t js_string_obj_get_length ( JSContext ctx,
JSValueConst  obj 
)
static
+ Here is the caller graph for this function:

◆ num_keys_cmp()

static int num_keys_cmp ( const void *  p1,
const void *  p2,
void *  opaque 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_free_prop_enum()

static void js_free_prop_enum ( JSContext ctx,
JSPropertyEnum tab,
uint32_t  len 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_GetOwnPropertyNamesInternal()

static int __exception JS_GetOwnPropertyNamesInternal ( JSContext ctx,
JSPropertyEnum **  ptab,
uint32_t plen,
JSObject p,
int  flags 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_GetOwnPropertyNames()

int JS_GetOwnPropertyNames ( JSContext ctx,
JSPropertyEnum **  ptab,
uint32_t plen,
JSValueConst  obj,
int  flags 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_GetOwnProperty()

int JS_GetOwnProperty ( JSContext ctx,
JSPropertyDescriptor desc,
JSValueConst  obj,
JSAtom  prop 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_IsExtensible()

int JS_IsExtensible ( JSContext ctx,
JSValueConst  obj 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_PreventExtensions()

int JS_PreventExtensions ( JSContext ctx,
JSValueConst  obj 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_HasProperty()

int JS_HasProperty ( JSContext ctx,
JSValueConst  obj,
JSAtom  prop 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_ValueToAtom()

JSAtom JS_ValueToAtom ( JSContext ctx,
JSValueConst  val 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_GetPropertyValue()

static JSValue JS_GetPropertyValue ( JSContext ctx,
JSValueConst  this_obj,
JSValue  prop 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_GetPropertyUint32()

JSValue JS_GetPropertyUint32 ( JSContext ctx,
JSValueConst  this_obj,
uint32_t  idx 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_TryGetPropertyInt64()

static int JS_TryGetPropertyInt64 ( JSContext ctx,
JSValueConst  obj,
int64_t  idx,
JSValue pval 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_GetPropertyInt64()

static JSValue JS_GetPropertyInt64 ( JSContext ctx,
JSValueConst  obj,
int64_t  idx 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_GetPropertyStr()

JSValue JS_GetPropertyStr ( JSContext ctx,
JSValueConst  this_obj,
const char *  prop 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ convert_fast_array_to_array()

static no_inline __exception int convert_fast_array_to_array ( JSContext ctx,
JSObject p 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ delete_property()

static int delete_property ( JSContext ctx,
JSObject p,
JSAtom  atom 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ call_setter()

static int call_setter ( JSContext ctx,
JSObject setter,
JSValueConst  this_obj,
JSValue  val,
int  flags 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ set_array_length()

static int set_array_length ( JSContext ctx,
JSObject p,
JSValue  val,
int  flags 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ expand_fast_array()

static int expand_fast_array ( JSContext ctx,
JSObject p,
uint32_t  new_len 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ add_fast_array_element()

static int add_fast_array_element ( JSContext ctx,
JSObject p,
JSValue  val,
int  flags 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_SetPropertyGeneric()

static int JS_SetPropertyGeneric ( JSContext ctx,
JSValueConst  obj,
JSAtom  prop,
JSValue  val,
JSValueConst  this_obj,
int  flags 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_SetPropertyInternal()

int JS_SetPropertyInternal ( JSContext ctx,
JSValueConst  this_obj,
JSAtom  prop,
JSValue  val,
int  flags 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_SetPropertyUint32()

int JS_SetPropertyUint32 ( JSContext ctx,
JSValueConst  this_obj,
uint32_t  idx,
JSValue  val 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_SetPropertyInt64()

int JS_SetPropertyInt64 ( JSContext ctx,
JSValueConst  this_obj,
int64_t  idx,
JSValue  val 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_SetPropertyStr()

int JS_SetPropertyStr ( JSContext ctx,
JSValueConst  this_obj,
const char *  prop,
JSValue  val 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ get_prop_flags()

static int get_prop_flags ( int  flags,
int  def_flags 
)
static
+ Here is the caller graph for this function:

◆ check_define_prop_flags()

static BOOL check_define_prop_flags ( int  prop_flags,
int  flags 
)
static
+ Here is the caller graph for this function:

◆ js_update_property_flags()

static int js_update_property_flags ( JSContext ctx,
JSObject p,
JSShapeProperty **  pprs,
int  flags 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_DefineProperty()

int JS_DefineProperty ( JSContext ctx,
JSValueConst  this_obj,
JSAtom  prop,
JSValueConst  val,
JSValueConst  getter,
JSValueConst  setter,
int  flags 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_DefineAutoInitProperty()

static int JS_DefineAutoInitProperty ( JSContext ctx,
JSValueConst  this_obj,
JSAtom  prop,
JSAutoInitIDEnum  id,
void *  opaque,
int  flags 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_DefinePropertyValue()

int JS_DefinePropertyValue ( JSContext ctx,
JSValueConst  this_obj,
JSAtom  prop,
JSValue  val,
int  flags 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_DefinePropertyValueValue()

int JS_DefinePropertyValueValue ( JSContext ctx,
JSValueConst  this_obj,
JSValue  prop,
JSValue  val,
int  flags 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_DefinePropertyValueUint32()

int JS_DefinePropertyValueUint32 ( JSContext ctx,
JSValueConst  this_obj,
uint32_t  idx,
JSValue  val,
int  flags 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_DefinePropertyValueInt64()

int JS_DefinePropertyValueInt64 ( JSContext ctx,
JSValueConst  this_obj,
int64_t  idx,
JSValue  val,
int  flags 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_DefinePropertyValueStr()

int JS_DefinePropertyValueStr ( JSContext ctx,
JSValueConst  this_obj,
const char *  prop,
JSValue  val,
int  flags 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_DefinePropertyGetSet()

int JS_DefinePropertyGetSet ( JSContext ctx,
JSValueConst  this_obj,
JSAtom  prop,
JSValue  getter,
JSValue  setter,
int  flags 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_CreateDataPropertyUint32()

static int JS_CreateDataPropertyUint32 ( JSContext ctx,
JSValueConst  this_obj,
int64_t  idx,
JSValue  val,
int  flags 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_object_has_name()

static BOOL js_object_has_name ( JSContext ctx,
JSValueConst  obj 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_DefineObjectName()

static int JS_DefineObjectName ( JSContext ctx,
JSValueConst  obj,
JSAtom  name,
int  flags 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_DefineObjectNameComputed()

static int JS_DefineObjectNameComputed ( JSContext ctx,
JSValueConst  obj,
JSValueConst  str,
int  flags 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_ThrowSyntaxErrorVarRedeclaration()

static JSValue JS_ThrowSyntaxErrorVarRedeclaration ( JSContext ctx,
JSAtom  prop 
)
static
+ Here is the caller graph for this function:

◆ JS_CheckDefineGlobalVar()

static int JS_CheckDefineGlobalVar ( JSContext ctx,
JSAtom  prop,
int  flags 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_DefineGlobalVar()

static int JS_DefineGlobalVar ( JSContext ctx,
JSAtom  prop,
int  def_flags 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_DefineGlobalFunction()

static int JS_DefineGlobalFunction ( JSContext ctx,
JSAtom  prop,
JSValueConst  func,
int  def_flags 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_GetGlobalVar()

static JSValue JS_GetGlobalVar ( JSContext ctx,
JSAtom  prop,
BOOL  throw_ref_error 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_GetGlobalVarRef()

static int JS_GetGlobalVarRef ( JSContext ctx,
JSAtom  prop,
JSValue sp 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_CheckGlobalVar()

static int JS_CheckGlobalVar ( JSContext ctx,
JSAtom  prop 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_SetGlobalVar()

static int JS_SetGlobalVar ( JSContext ctx,
JSAtom  prop,
JSValue  val,
int  flag 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_DeleteProperty()

int JS_DeleteProperty ( JSContext ctx,
JSValueConst  obj,
JSAtom  prop,
int  flags 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_DeletePropertyInt64()

int JS_DeletePropertyInt64 ( JSContext ctx,
JSValueConst  obj,
int64_t  idx,
int  flags 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_IsFunction()

BOOL JS_IsFunction ( JSContext ctx,
JSValueConst  val 
)
+ Here is the caller graph for this function:

◆ JS_IsCFunction()

BOOL JS_IsCFunction ( JSContext ctx,
JSValueConst  val,
JSCFunction func,
int  magic 
)
+ Here is the caller graph for this function:

◆ JS_IsConstructor()

BOOL JS_IsConstructor ( JSContext ctx,
JSValueConst  val 
)
+ Here is the caller graph for this function:

◆ JS_SetConstructorBit()

BOOL JS_SetConstructorBit ( JSContext ctx,
JSValueConst  func_obj,
BOOL  val 
)
+ Here is the caller graph for this function:

◆ JS_IsError()

BOOL JS_IsError ( JSContext ctx,
JSValueConst  val 
)
+ Here is the caller graph for this function:

◆ JS_IsUncatchableError()

BOOL JS_IsUncatchableError ( JSContext ctx,
JSValueConst  val 
)
+ Here is the caller graph for this function:

◆ JS_ResetUncatchableError()

void JS_ResetUncatchableError ( JSContext ctx)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_SetOpaque()

void JS_SetOpaque ( JSValue  obj,
void *  opaque 
)
+ Here is the caller graph for this function:

◆ JS_GetOpaque()

void* JS_GetOpaque ( JSValueConst  obj,
JSClassID  class_id 
)
+ Here is the caller graph for this function:

◆ JS_GetOpaque2()

void* JS_GetOpaque2 ( JSContext ctx,
JSValueConst  obj,
JSClassID  class_id 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_GetOpaque_Nocheck()

void* JS_GetOpaque_Nocheck ( JSValueConst  obj)

◆ JS_ToPrimitiveFree()

static JSValue JS_ToPrimitiveFree ( JSContext ctx,
JSValue  val,
int  hint 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_ToPrimitive()

static JSValue JS_ToPrimitive ( JSContext ctx,
JSValueConst  val,
int  hint 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_SetIsHTMLDDA()

void JS_SetIsHTMLDDA ( JSContext ctx,
JSValueConst  obj 
)

◆ JS_IsHTMLDDA()

static BOOL JS_IsHTMLDDA ( JSContext ctx,
JSValueConst  obj 
)
static
+ Here is the caller graph for this function:

◆ JS_ToBoolFree()

static int JS_ToBoolFree ( JSContext ctx,
JSValue  val 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_ToBool()

int JS_ToBool ( JSContext ctx,
JSValueConst  val 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ skip_spaces()

static int skip_spaces ( const char *  pc)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ to_digit()

static int to_digit ( int  c)
static
+ Here is the caller graph for this function:

◆ js_strtod()

static double js_strtod ( const char *  p,
int  radix,
BOOL  is_float 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_atof()

static JSValue js_atof ( JSContext ctx,
const char *  str,
const char **  pp,
int  radix,
int  flags 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_ToNumberHintFree()

static JSValue JS_ToNumberHintFree ( JSContext ctx,
JSValue  val,
JSToNumberHintEnum  flag 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_ToNumericFree()

static JSValue JS_ToNumericFree ( JSContext ctx,
JSValue  val 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_ToNumeric()

static JSValue JS_ToNumeric ( JSContext ctx,
JSValueConst  val 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ __JS_ToFloat64Free()

static __exception int __JS_ToFloat64Free ( JSContext ctx,
double *  pres,
JSValue  val 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_ToFloat64Free()

static int JS_ToFloat64Free ( JSContext ctx,
double *  pres,
JSValue  val 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_ToFloat64()

int JS_ToFloat64 ( JSContext ctx,
double *  pres,
JSValueConst  val 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_ToIntegerFree()

static __maybe_unused JSValue JS_ToIntegerFree ( JSContext ctx,
JSValue  val 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_ToInt32SatFree()

static int JS_ToInt32SatFree ( JSContext ctx,
int *  pres,
JSValue  val 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_ToInt32Sat()

int JS_ToInt32Sat ( JSContext ctx,
int *  pres,
JSValueConst  val 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_ToInt32Clamp()

int JS_ToInt32Clamp ( JSContext ctx,
int *  pres,
JSValueConst  val,
int  min,
int  max,
int  min_offset 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_ToInt64SatFree()

static int JS_ToInt64SatFree ( JSContext ctx,
int64_t pres,
JSValue  val 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_ToInt64Sat()

int JS_ToInt64Sat ( JSContext ctx,
int64_t pres,
JSValueConst  val 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_ToInt64Clamp()

int JS_ToInt64Clamp ( JSContext ctx,
int64_t pres,
JSValueConst  val,
int64_t  min,
int64_t  max,
int64_t  neg_offset 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_ToInt64Free()

static int JS_ToInt64Free ( JSContext ctx,
int64_t pres,
JSValue  val 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_ToInt64()

int JS_ToInt64 ( JSContext ctx,
int64_t pres,
JSValueConst  val 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_ToInt64Ext()

int JS_ToInt64Ext ( JSContext ctx,
int64_t pres,
JSValueConst  val 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_ToInt32Free()

static int JS_ToInt32Free ( JSContext ctx,
int32_t pres,
JSValue  val 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_ToInt32()

int JS_ToInt32 ( JSContext ctx,
int32_t pres,
JSValueConst  val 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_ToUint32Free()

static int JS_ToUint32Free ( JSContext ctx,
uint32_t pres,
JSValue  val 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_ToUint8ClampFree()

static int JS_ToUint8ClampFree ( JSContext ctx,
int32_t pres,
JSValue  val 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ is_safe_integer()

static BOOL is_safe_integer ( double  d)
static
+ Here is the caller graph for this function:

◆ JS_ToIndex()

int JS_ToIndex ( JSContext ctx,
uint64_t plen,
JSValueConst  val 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_ToLengthFree()

static __exception int JS_ToLengthFree ( JSContext ctx,
int64_t plen,
JSValue  val 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ i64toa()

static char* i64toa ( char *  buf_end,
int64_t  n,
unsigned int  base 
)
static
+ Here is the caller graph for this function:

◆ js_ecvt1()

static void js_ecvt1 ( double  d,
int  n_digits,
int *  decpt,
int *  sign,
char *  buf,
int  rounding_mode,
char *  buf1,
int  buf1_size 
)
static
+ Here is the caller graph for this function:

◆ js_ecvt()

static int js_ecvt ( double  d,
int  n_digits,
int *  decpt,
int *  sign,
char *  buf,
BOOL  is_fixed 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_fcvt1()

static int js_fcvt1 ( char *  buf,
int  buf_size,
double  d,
int  n_digits,
int  rounding_mode 
)
static
+ Here is the caller graph for this function:

◆ js_fcvt()

static void js_fcvt ( char *  buf,
int  buf_size,
double  d,
int  n_digits 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_dtoa1()

static void js_dtoa1 ( char *  buf,
double  d,
int  radix,
int  n_digits,
int  flags 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_dtoa()

static JSValue js_dtoa ( JSContext ctx,
double  d,
int  radix,
int  n_digits,
int  flags 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_ToStringInternal()

JSValue JS_ToStringInternal ( JSContext ctx,
JSValueConst  val,
BOOL  is_ToPropertyKey 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_ToString()

JSValue JS_ToString ( JSContext ctx,
JSValueConst  val 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_ToStringFree()

static JSValue JS_ToStringFree ( JSContext ctx,
JSValue  val 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_ToLocaleStringFree()

static JSValue JS_ToLocaleStringFree ( JSContext ctx,
JSValue  val 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_ToPropertyKey()

JSValue JS_ToPropertyKey ( JSContext ctx,
JSValueConst  val 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_ToStringCheckObject()

static JSValue JS_ToStringCheckObject ( JSContext ctx,
JSValueConst  val 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_ToQuotedString()

static JSValue JS_ToQuotedString ( JSContext ctx,
JSValueConst  val1 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_DumpObjectHeader()

static __maybe_unused void JS_DumpObjectHeader ( JSRuntime rt)
static
+ Here is the caller graph for this function:

◆ JS_DumpObject()

static __maybe_unused void JS_DumpObject ( JSRuntime rt,
JSObject p 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_DumpGCObject()

static __maybe_unused void JS_DumpGCObject ( JSRuntime rt,
JSGCObjectHeader p 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_DumpValueShort()

static __maybe_unused void JS_DumpValueShort ( JSRuntime rt,
JSValueConst  val 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_DumpValue()

static __maybe_unused void JS_DumpValue ( JSContext ctx,
JSValueConst  val 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_PrintValue()

static __maybe_unused void JS_PrintValue ( JSContext ctx,
const char *  str,
JSValueConst  val 
)
static
+ Here is the call graph for this function:

◆ JS_IsArray()

int JS_IsArray ( JSContext ctx,
JSValueConst  val 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_pow()

static double js_pow ( double  a,
double  b 
)
static
+ Here is the caller graph for this function:

◆ JS_ThrowUnsupportedBigint()

static JSValue JS_ThrowUnsupportedBigint ( JSContext ctx)
static
+ Here is the caller graph for this function:

◆ JS_NewBigInt64()

JSValue JS_NewBigInt64 ( JSContext ctx,
int64_t  v 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_NewBigUint64()

JSValue JS_NewBigUint64 ( JSContext ctx,
uint64_t  v 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_ToBigInt64()

int JS_ToBigInt64 ( JSContext ctx,
int64_t pres,
JSValueConst  val 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_unary_arith_slow()

static no_inline __exception int js_unary_arith_slow ( JSContext ctx,
JSValue sp,
OPCodeEnum  op 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_post_inc_slow()

static __exception int js_post_inc_slow ( JSContext ctx,
JSValue sp,
OPCodeEnum  op 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_binary_arith_slow()

static no_inline __exception int js_binary_arith_slow ( JSContext ctx,
JSValue sp,
OPCodeEnum  op 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_add_slow()

static no_inline __exception int js_add_slow ( JSContext ctx,
JSValue sp 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_binary_logic_slow()

static no_inline __exception int js_binary_logic_slow ( JSContext ctx,
JSValue sp,
OPCodeEnum  op 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_not_slow()

static no_inline int js_not_slow ( JSContext ctx,
JSValue sp 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_relational_slow()

static no_inline int js_relational_slow ( JSContext ctx,
JSValue sp,
OPCodeEnum  op 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_eq_slow()

static no_inline __exception int js_eq_slow ( JSContext ctx,
JSValue sp,
BOOL  is_neq 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_shr_slow()

static no_inline int js_shr_slow ( JSContext ctx,
JSValue sp 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_strict_eq_slow()

static no_inline int js_strict_eq_slow ( JSContext ctx,
JSValue sp,
BOOL  is_neq 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_operator_in()

static __exception int js_operator_in ( JSContext ctx,
JSValue sp 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_has_unscopable()

static __exception int js_has_unscopable ( JSContext ctx,
JSValueConst  obj,
JSAtom  atom 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_operator_instanceof()

static __exception int js_operator_instanceof ( JSContext ctx,
JSValue sp 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_operator_typeof()

static __exception int js_operator_typeof ( JSContext ctx,
JSValueConst  op1 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_operator_delete()

static __exception int js_operator_delete ( JSContext ctx,
JSValue sp 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_throw_type_error()

static JSValue js_throw_type_error ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the caller graph for this function:

◆ js_function_proto_caller()

static JSValue js_function_proto_caller ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_function_proto_fileName()

static JSValue js_function_proto_fileName ( JSContext ctx,
JSValueConst  this_val 
)
static
+ Here is the call graph for this function:

◆ js_function_proto_lineNumber()

static JSValue js_function_proto_lineNumber ( JSContext ctx,
JSValueConst  this_val 
)
static
+ Here is the call graph for this function:

◆ js_arguments_define_own_property()

static int js_arguments_define_own_property ( JSContext ctx,
JSValueConst  this_obj,
JSAtom  prop,
JSValueConst  val,
JSValueConst  getter,
JSValueConst  setter,
int  flags 
)
static
+ Here is the call graph for this function:

◆ js_build_arguments()

static JSValue js_build_arguments ( JSContext ctx,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_build_mapped_arguments()

static JSValue js_build_mapped_arguments ( JSContext ctx,
int  argc,
JSValueConst argv,
JSStackFrame sf,
int  arg_count 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_build_rest()

static JSValue js_build_rest ( JSContext ctx,
int  first,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ build_for_in_iterator()

static JSValue build_for_in_iterator ( JSContext ctx,
JSValue  obj 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_for_in_start()

static __exception int js_for_in_start ( JSContext ctx,
JSValue sp 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_for_in_next()

static __exception int js_for_in_next ( JSContext ctx,
JSValue sp 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_GetIterator2()

static JSValue JS_GetIterator2 ( JSContext ctx,
JSValueConst  obj,
JSValueConst  method 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_GetIterator()

static JSValue JS_GetIterator ( JSContext ctx,
JSValueConst  obj,
BOOL  is_async 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_IteratorNext2()

static JSValue JS_IteratorNext2 ( JSContext ctx,
JSValueConst  enum_obj,
JSValueConst  method,
int  argc,
JSValueConst argv,
int *  pdone 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_IteratorNext()

static JSValue JS_IteratorNext ( JSContext ctx,
JSValueConst  enum_obj,
JSValueConst  method,
int  argc,
JSValueConst argv,
BOOL pdone 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_IteratorClose()

static int JS_IteratorClose ( JSContext ctx,
JSValueConst  enum_obj,
BOOL  is_exception_pending 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_for_of_start()

static __exception int js_for_of_start ( JSContext ctx,
JSValue sp,
BOOL  is_async 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_for_of_next()

static __exception int js_for_of_next ( JSContext ctx,
JSValue sp,
int  offset 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_IteratorGetCompleteValue()

static JSValue JS_IteratorGetCompleteValue ( JSContext ctx,
JSValueConst  obj,
BOOL pdone 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_iterator_get_value_done()

static __exception int js_iterator_get_value_done ( JSContext ctx,
JSValue sp 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_create_iterator_result()

static JSValue js_create_iterator_result ( JSContext ctx,
JSValue  val,
BOOL  done 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_array_iterator_next()

static JSValue js_array_iterator_next ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv,
BOOL pdone,
int  magic 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_create_array_iterator()

static JSValue js_create_array_iterator ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv,
int  magic 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_is_fast_array()

static BOOL js_is_fast_array ( JSContext ctx,
JSValueConst  obj 
)
static
+ Here is the caller graph for this function:

◆ js_append_enumerate()

static __exception int js_append_enumerate ( JSContext ctx,
JSValue sp 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_CopyDataProperties()

static __exception int JS_CopyDataProperties ( JSContext ctx,
JSValueConst  target,
JSValueConst  source,
JSValueConst  excluded,
BOOL  setprop 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_GetActiveFunction()

static JSValueConst JS_GetActiveFunction ( JSContext ctx)
static
+ Here is the caller graph for this function:

◆ js_closure2()

static JSValue js_closure2 ( JSContext ctx,
JSValue  func_obj,
JSFunctionBytecode b,
JSVarRef **  cur_var_refs,
JSStackFrame sf 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_closure()

static JSValue js_closure ( JSContext ctx,
JSValue  bfunc,
JSVarRef **  cur_var_refs,
JSStackFrame sf 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_op_define_class()

static int js_op_define_class ( JSContext ctx,
JSValue sp,
JSAtom  class_name,
int  class_flags,
JSVarRef **  cur_var_refs,
JSStackFrame sf,
BOOL  is_computed_name 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ close_var_refs()

static void close_var_refs ( JSRuntime rt,
JSStackFrame sf 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ close_lexical_var()

static void close_lexical_var ( JSContext ctx,
JSStackFrame sf,
int  idx,
int  is_arg 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_Call()

JSValue JS_Call ( JSContext ctx,
JSValueConst  func_obj,
JSValueConst  this_obj,
int  argc,
JSValueConst argv 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_GetFunctionRealm()

static JSContext* JS_GetFunctionRealm ( JSContext ctx,
JSValueConst  func_obj 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_create_from_ctor()

static JSValue js_create_from_ctor ( JSContext ctx,
JSValueConst  ctor,
int  class_id 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_CallConstructor2()

JSValue JS_CallConstructor2 ( JSContext ctx,
JSValueConst  func_obj,
JSValueConst  new_target,
int  argc,
JSValueConst argv 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_CallConstructor()

JSValue JS_CallConstructor ( JSContext ctx,
JSValueConst  func_obj,
int  argc,
JSValueConst argv 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_Invoke()

JSValue JS_Invoke ( JSContext ctx,
JSValueConst  this_val,
JSAtom  atom,
int  argc,
JSValueConst argv 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ async_func_init()

static __exception int async_func_init ( JSContext ctx,
JSAsyncFunctionState s,
JSValueConst  func_obj,
JSValueConst  this_obj,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ async_func_free()

static void async_func_free ( JSRuntime rt,
JSAsyncFunctionState s 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ async_func_resume()

static JSValue async_func_resume ( JSContext ctx,
JSAsyncFunctionState s 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ free_generator_stack_rt()

static void free_generator_stack_rt ( JSRuntime rt,
JSGeneratorData s 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_generator_finalizer()

static void js_generator_finalizer ( JSRuntime rt,
JSValue  obj 
)
static
+ Here is the call graph for this function:

◆ free_generator_stack()

static void free_generator_stack ( JSContext ctx,
JSGeneratorData s 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_generator_mark()

static void js_generator_mark ( JSRuntime rt,
JSValueConst  val,
JS_MarkFunc mark_func 
)
static
+ Here is the call graph for this function:

◆ js_generator_next()

static JSValue js_generator_next ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv,
BOOL pdone,
int  magic 
)
static
+ Here is the call graph for this function:

◆ js_async_function_terminate()

static void js_async_function_terminate ( JSRuntime rt,
JSAsyncFunctionData s 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_async_function_free()

static void js_async_function_free ( JSRuntime rt,
JSAsyncFunctionData s 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_async_function_resolve_create()

static int js_async_function_resolve_create ( JSContext ctx,
JSAsyncFunctionData s,
JSValue resolving_funcs 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_async_function_resume()

static void js_async_function_resume ( JSContext ctx,
JSAsyncFunctionData s 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_async_function_resolve_call()

static JSValue js_async_function_resolve_call ( JSContext ctx,
JSValueConst  func_obj,
JSValueConst  this_obj,
int  argc,
JSValueConst argv,
int  flags 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_async_function_call()

static JSValue js_async_function_call ( JSContext ctx,
JSValueConst  func_obj,
JSValueConst  this_obj,
int  argc,
JSValueConst argv,
int  flags 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_async_generator_free()

static void js_async_generator_free ( JSRuntime rt,
JSAsyncGeneratorData s 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_async_generator_finalizer()

static void js_async_generator_finalizer ( JSRuntime rt,
JSValue  obj 
)
static
+ Here is the call graph for this function:

◆ js_async_generator_mark()

static void js_async_generator_mark ( JSRuntime rt,
JSValueConst  val,
JS_MarkFunc mark_func 
)
static
+ Here is the call graph for this function:

◆ js_async_generator_resolve_function()

static JSValue js_async_generator_resolve_function ( JSContext ctx,
JSValueConst  this_obj,
int  argc,
JSValueConst argv,
int  magic,
JSValue func_data 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_async_generator_resolve_function_create()

static int js_async_generator_resolve_function_create ( JSContext ctx,
JSValueConst  generator,
JSValue resolving_funcs,
BOOL  is_resume_next 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_async_generator_await()

static int js_async_generator_await ( JSContext ctx,
JSAsyncGeneratorData s,
JSValueConst  value 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_async_generator_resolve_or_reject()

static void js_async_generator_resolve_or_reject ( JSContext ctx,
JSAsyncGeneratorData s,
JSValueConst  result,
int  is_reject 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_async_generator_resolve()

static void js_async_generator_resolve ( JSContext ctx,
JSAsyncGeneratorData s,
JSValueConst  value,
BOOL  done 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_async_generator_reject()

static void js_async_generator_reject ( JSContext ctx,
JSAsyncGeneratorData s,
JSValueConst  exception 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_async_generator_complete()

static void js_async_generator_complete ( JSContext ctx,
JSAsyncGeneratorData s 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_async_generator_completed_return()

static int js_async_generator_completed_return ( JSContext ctx,
JSAsyncGeneratorData s,
JSValueConst  value 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_async_generator_resume_next()

static void js_async_generator_resume_next ( JSContext ctx,
JSAsyncGeneratorData s 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_async_generator_next()

static JSValue js_async_generator_next ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv,
int  magic 
)
static
+ Here is the call graph for this function:

◆ js_async_generator_function_call()

static JSValue js_async_generator_function_call ( JSContext ctx,
JSValueConst  func_obj,
JSValueConst  this_obj,
int  argc,
JSValueConst argv,
int  flags 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ next_token()

static __exception int next_token ( JSParseState s)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ free_token()

static void free_token ( JSParseState s,
JSToken token 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ dump_token()

static void __maybe_unused dump_token ( JSParseState s,
const JSToken token 
)
static
+ Here is the call graph for this function:

◆ js_parse_expect()

static int js_parse_expect ( JSParseState s,
int  tok 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_parse_expect_semi()

static int js_parse_expect_semi ( JSParseState s)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_parse_error_reserved_identifier()

static int js_parse_error_reserved_identifier ( JSParseState s)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_parse_template_part()

static __exception int js_parse_template_part ( JSParseState s,
const uint8_t p 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_parse_string()

static __exception int js_parse_string ( JSParseState s,
int  sep,
BOOL  do_throw,
const uint8_t p,
JSToken token,
const uint8_t **  pp 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ token_is_pseudo_keyword()

static BOOL token_is_pseudo_keyword ( JSParseState s,
JSAtom  atom 
)
static
+ Here is the caller graph for this function:

◆ js_parse_regexp()

static __exception int js_parse_regexp ( JSParseState s)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ident_realloc()

static __exception int ident_realloc ( JSContext ctx,
char **  pbuf,
size_t *  psize,
char *  static_buf 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parse_ident()

static JSAtom parse_ident ( JSParseState s,
const uint8_t **  pp,
BOOL pident_has_escape,
int  c,
BOOL  is_private 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ json_parse_ident()

static JSAtom json_parse_ident ( JSParseState s,
const uint8_t **  pp,
int  c 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ json_next_token()

static __exception int json_next_token ( JSParseState s)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ simple_next_token()

static int simple_next_token ( const uint8_t **  pp,
BOOL  no_line_terminator 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ peek_token()

static int peek_token ( JSParseState s,
BOOL  no_line_terminator 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_DetectModule()

BOOL JS_DetectModule ( const char *  input,
size_t  input_len 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ get_prev_opcode()

static int get_prev_opcode ( JSFunctionDef fd)
static
+ Here is the caller graph for this function:

◆ js_is_live_code()

static BOOL js_is_live_code ( JSParseState s)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ emit_u8()

static void emit_u8 ( JSParseState s,
uint8_t  val 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ emit_u16()

static void emit_u16 ( JSParseState s,
uint16_t  val 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ emit_u32()

static void emit_u32 ( JSParseState s,
uint32_t  val 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ emit_op()

static void emit_op ( JSParseState s,
uint8_t  val 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ emit_atom()

static void emit_atom ( JSParseState s,
JSAtom  name 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ update_label()

static int update_label ( JSFunctionDef s,
int  label,
int  delta 
)
static
+ Here is the caller graph for this function:

◆ new_label_fd()

static int new_label_fd ( JSFunctionDef fd,
int  label 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ new_label()

static int new_label ( JSParseState s)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ emit_label()

static int emit_label ( JSParseState s,
int  label 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ emit_goto()

static int emit_goto ( JSParseState s,
int  opcode,
int  label 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ cpool_add()

static int cpool_add ( JSParseState s,
JSValue  val 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ emit_push_const()

static __exception int emit_push_const ( JSParseState s,
JSValueConst  val,
BOOL  as_atom 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ find_arg()

static int find_arg ( JSContext ctx,
JSFunctionDef fd,
JSAtom  name 
)
static
+ Here is the caller graph for this function:

◆ find_var()

static int find_var ( JSContext ctx,
JSFunctionDef fd,
JSAtom  name 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ find_var_in_scope()

static int find_var_in_scope ( JSContext ctx,
JSFunctionDef fd,
JSAtom  name,
int  scope_level 
)
static
+ Here is the caller graph for this function:

◆ is_child_scope()

static BOOL is_child_scope ( JSContext ctx,
JSFunctionDef fd,
int  scope,
int  parent_scope 
)
static
+ Here is the caller graph for this function:

◆ find_var_in_child_scope()

static int find_var_in_child_scope ( JSContext ctx,
JSFunctionDef fd,
JSAtom  name,
int  scope_level 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ find_global_var()

static JSGlobalVar* find_global_var ( JSFunctionDef fd,
JSAtom  name 
)
static
+ Here is the caller graph for this function:

◆ find_lexical_global_var()

static JSGlobalVar* find_lexical_global_var ( JSFunctionDef fd,
JSAtom  name 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ find_lexical_decl()

static int find_lexical_decl ( JSContext ctx,
JSFunctionDef fd,
JSAtom  name,
int  scope_idx,
BOOL  check_catch_var 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ push_scope()

static int push_scope ( JSParseState s)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ get_first_lexical_var()

static int get_first_lexical_var ( JSFunctionDef fd,
int  scope 
)
static
+ Here is the caller graph for this function:

◆ pop_scope()

static void pop_scope ( JSParseState s)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ close_scopes()

static void close_scopes ( JSParseState s,
int  scope,
int  scope_stop 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ add_var()

static int add_var ( JSContext ctx,
JSFunctionDef fd,
JSAtom  name 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ add_scope_var()

static int add_scope_var ( JSContext ctx,
JSFunctionDef fd,
JSAtom  name,
JSVarKindEnum  var_kind 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ add_func_var()

static int add_func_var ( JSContext ctx,
JSFunctionDef fd,
JSAtom  name 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ add_arguments_var()

static int add_arguments_var ( JSContext ctx,
JSFunctionDef fd 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ add_arguments_arg()

static int add_arguments_arg ( JSContext ctx,
JSFunctionDef fd 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ add_arg()

static int add_arg ( JSContext ctx,
JSFunctionDef fd,
JSAtom  name 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ add_global_var()

static JSGlobalVar* add_global_var ( JSContext ctx,
JSFunctionDef s,
JSAtom  name 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ define_var()

static int define_var ( JSParseState s,
JSFunctionDef fd,
JSAtom  name,
JSVarDefEnum  var_def_type 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ add_private_class_field()

static int add_private_class_field ( JSParseState s,
JSFunctionDef fd,
JSAtom  name,
JSVarKindEnum  var_kind 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_parse_expr()

static __exception int js_parse_expr ( JSParseState s)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_parse_function_decl()

static __exception int js_parse_function_decl ( JSParseState s,
JSParseFunctionEnum  func_type,
JSFunctionKindEnum  func_kind,
JSAtom  func_name,
const uint8_t ptr,
int  start_line 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_parse_function_class_fields_init()

static JSFunctionDef * js_parse_function_class_fields_init ( JSParseState s)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_parse_function_decl2()

static __exception int js_parse_function_decl2 ( JSParseState s,
JSParseFunctionEnum  func_type,
JSFunctionKindEnum  func_kind,
JSAtom  func_name,
const uint8_t ptr,
int  function_line_num,
JSParseExportEnum  export_flag,
JSFunctionDef **  pfd 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_parse_assign_expr2()

static __exception int js_parse_assign_expr2 ( JSParseState s,
int  parse_flags 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_parse_assign_expr()

static __exception int js_parse_assign_expr ( JSParseState s)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_parse_unary()

static __exception int js_parse_unary ( JSParseState s,
int  parse_flags 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ push_break_entry()

static void push_break_entry ( JSFunctionDef fd,
BlockEnv be,
JSAtom  label_name,
int  label_break,
int  label_cont,
int  drop_count 
)
static
+ Here is the caller graph for this function:

◆ pop_break_entry()

static void pop_break_entry ( JSFunctionDef fd)
static
+ Here is the caller graph for this function:

◆ add_export_entry()

static JSExportEntry * add_export_entry ( JSParseState s,
JSModuleDef m,
JSAtom  local_name,
JSAtom  export_name,
JSExportTypeEnum  export_type 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ seal_template_obj()

static int seal_template_obj ( JSContext ctx,
JSValueConst  obj 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_parse_template()

static __exception int js_parse_template ( JSParseState s,
int  call,
int *  argc 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ token_is_ident()

static BOOL token_is_ident ( int  tok)
static
+ Here is the caller graph for this function:

◆ js_parse_property_name()

static int __exception js_parse_property_name ( JSParseState s,
JSAtom pname,
BOOL  allow_method,
BOOL  allow_var,
BOOL  allow_private 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_parse_get_pos()

static int js_parse_get_pos ( JSParseState s,
JSParsePos sp 
)
static
+ Here is the caller graph for this function:

◆ js_parse_seek_token()

static __exception int js_parse_seek_token ( JSParseState s,
const JSParsePos sp 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ is_regexp_allowed()

static BOOL is_regexp_allowed ( int  tok)
static
+ Here is the caller graph for this function:

◆ js_parse_skip_parens_token()

static int js_parse_skip_parens_token ( JSParseState s,
int *  pbits,
BOOL  no_line_terminator 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ set_object_name()

static void set_object_name ( JSParseState s,
JSAtom  name 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ set_object_name_computed()

static void set_object_name_computed ( JSParseState s)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_parse_object_literal()

static __exception int js_parse_object_literal ( JSParseState s)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_parse_postfix_expr()

static __exception int js_parse_postfix_expr ( JSParseState s,
int  parse_flags 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_parse_left_hand_side_expr()

static __exception int js_parse_left_hand_side_expr ( JSParseState s)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_parse_class_default_ctor()

static __exception int js_parse_class_default_ctor ( JSParseState s,
BOOL  has_super,
JSFunctionDef **  pfd 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ find_private_class_field()

static int find_private_class_field ( JSContext ctx,
JSFunctionDef fd,
JSAtom  name,
int  scope_level 
)
static
+ Here is the caller graph for this function:

◆ emit_class_field_init()

static void emit_class_field_init ( JSParseState s)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ get_private_setter_name()

static JSAtom get_private_setter_name ( JSContext ctx,
JSAtom  name 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ emit_class_init_start()

static __exception int emit_class_init_start ( JSParseState s,
ClassFieldsDef cf 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ add_brand()

static __exception int add_brand ( JSParseState s,
ClassFieldsDef cf 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ emit_class_init_end()

static void emit_class_init_end ( JSParseState s,
ClassFieldsDef cf 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_parse_class()

static __exception int js_parse_class ( JSParseState s,
BOOL  is_class_expr,
JSParseExportEnum  export_flag 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_parse_array_literal()

static __exception int js_parse_array_literal ( JSParseState s)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ has_with_scope()

static BOOL has_with_scope ( JSFunctionDef s,
int  scope_level 
)
static
+ Here is the caller graph for this function:

◆ get_lvalue()

static __exception int get_lvalue ( JSParseState s,
int *  popcode,
int *  pscope,
JSAtom pname,
int *  plabel,
int *  pdepth,
BOOL  keep,
int  tok 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ put_lvalue()

static void put_lvalue ( JSParseState s,
int  opcode,
int  scope,
JSAtom  name,
int  label,
PutLValueEnum  special,
BOOL  is_let 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_parse_expr_paren()

static __exception int js_parse_expr_paren ( JSParseState s)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_unsupported_keyword()

static int js_unsupported_keyword ( JSParseState s,
JSAtom  atom 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_define_var()

static __exception int js_define_var ( JSParseState s,
JSAtom  name,
int  tok 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_emit_spread_code()

static void js_emit_spread_code ( JSParseState s,
int  depth 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_parse_check_duplicate_parameter()

static int js_parse_check_duplicate_parameter ( JSParseState s,
JSAtom  name 
)
static
+ Here is the caller graph for this function:

◆ js_parse_destructuring_var()

static JSAtom js_parse_destructuring_var ( JSParseState s,
int  tok,
int  is_arg 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_parse_destructuring_element()

static int js_parse_destructuring_element ( JSParseState s,
int  tok,
int  is_arg,
int  hasval,
int  has_ellipsis,
BOOL  allow_initializer 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ optional_chain_test()

static void optional_chain_test ( JSParseState s,
int *  poptional_chaining_label,
int  drop_count 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_parse_delete()

static __exception int js_parse_delete ( JSParseState s)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_parse_expr_binary()

static __exception int js_parse_expr_binary ( JSParseState s,
int  level,
int  parse_flags 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_parse_logical_and_or()

static __exception int js_parse_logical_and_or ( JSParseState s,
int  op,
int  parse_flags 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_parse_coalesce_expr()

static __exception int js_parse_coalesce_expr ( JSParseState s,
int  parse_flags 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_parse_cond_expr()

static __exception int js_parse_cond_expr ( JSParseState s,
int  parse_flags 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ emit_return()

static void emit_return ( JSParseState s,
BOOL  hasval 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_parse_expr2()

static __exception int js_parse_expr2 ( JSParseState s,
int  parse_flags 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ emit_break()

static __exception int emit_break ( JSParseState s,
JSAtom  name,
int  is_cont 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_parse_statement_or_decl()

static __exception int js_parse_statement_or_decl ( JSParseState s,
int  decl_mask 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_parse_statement()

static __exception int js_parse_statement ( JSParseState s)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_parse_block()

static __exception int js_parse_block ( JSParseState s)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_parse_var()

static __exception int js_parse_var ( JSParseState s,
int  parse_flags,
int  tok,
BOOL  export_flag 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ is_label()

static BOOL is_label ( JSParseState s)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ is_let()

static int is_let ( JSParseState s,
int  decl_mask 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_parse_for_in_of()

static __exception int js_parse_for_in_of ( JSParseState s,
int  label_name,
BOOL  is_async 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ set_eval_ret_undefined()

static void set_eval_ret_undefined ( JSParseState s)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_new_module_def()

static JSModuleDef* js_new_module_def ( JSContext ctx,
JSAtom  name 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ add_req_module_entry()

static int add_req_module_entry ( JSContext ctx,
JSModuleDef m,
JSAtom  module_name 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ find_export_entry()

static JSExportEntry* find_export_entry ( JSContext ctx,
JSModuleDef m,
JSAtom  export_name 
)
static
+ Here is the caller graph for this function:

◆ add_export_entry2()

static JSExportEntry* add_export_entry2 ( JSContext ctx,
JSParseState s,
JSModuleDef m,
JSAtom  local_name,
JSAtom  export_name,
JSExportTypeEnum  export_type 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ add_star_export_entry()

static int add_star_export_entry ( JSContext ctx,
JSModuleDef m,
int  req_module_idx 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_NewCModule()

JSModuleDef* JS_NewCModule ( JSContext ctx,
const char *  name_str,
JSModuleInitFunc func 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_AddModuleExport()

int JS_AddModuleExport ( JSContext ctx,
JSModuleDef m,
const char *  export_name 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_SetModuleExport()

int JS_SetModuleExport ( JSContext ctx,
JSModuleDef m,
const char *  export_name,
JSValue  val 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_SetModuleLoaderFunc()

void JS_SetModuleLoaderFunc ( JSRuntime rt,
JSModuleNormalizeFunc module_normalize,
JSModuleLoaderFunc module_loader,
void *  opaque 
)
+ Here is the caller graph for this function:

◆ js_default_module_normalize_name()

static char* js_default_module_normalize_name ( JSContext ctx,
const char *  base_name,
const char *  name 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_find_loaded_module()

static JSModuleDef* js_find_loaded_module ( JSContext ctx,
JSAtom  name 
)
static
+ Here is the caller graph for this function:

◆ js_host_resolve_imported_module()

static JSModuleDef* js_host_resolve_imported_module ( JSContext ctx,
const char *  base_cname,
const char *  cname1 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_host_resolve_imported_module_atom()

static JSModuleDef* js_host_resolve_imported_module_atom ( JSContext ctx,
JSAtom  base_module_name,
JSAtom  module_name1 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ find_resolve_entry()

static int find_resolve_entry ( JSResolveState s,
JSModuleDef m,
JSAtom  name 
)
static
+ Here is the caller graph for this function:

◆ add_resolve_entry()

static int add_resolve_entry ( JSContext ctx,
JSResolveState s,
JSModuleDef m,
JSAtom  name 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_resolve_export1()

static JSResolveResultEnum js_resolve_export1 ( JSContext ctx,
JSModuleDef **  pmodule,
JSExportEntry **  pme,
JSModuleDef m,
JSAtom  export_name,
JSResolveState s 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_resolve_export()

static JSResolveResultEnum js_resolve_export ( JSContext ctx,
JSModuleDef **  pmodule,
JSExportEntry **  pme,
JSModuleDef m,
JSAtom  export_name 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_resolve_export_throw_error()

static void js_resolve_export_throw_error ( JSContext ctx,
JSResolveResultEnum  res,
JSModuleDef m,
JSAtom  export_name 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ find_exported_name()

static int find_exported_name ( GetExportNamesState s,
JSAtom  name 
)
static
+ Here is the caller graph for this function:

◆ get_exported_names()

static __exception int get_exported_names ( JSContext ctx,
GetExportNamesState s,
JSModuleDef m,
BOOL  from_star 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_module_ns_has()

static int js_module_ns_has ( JSContext ctx,
JSValueConst  obj,
JSAtom  atom 
)
static
+ Here is the call graph for this function:

◆ exported_names_cmp()

static int exported_names_cmp ( const void *  p1,
const void *  p2,
void *  opaque 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_get_module_ns()

static JSValue js_get_module_ns ( JSContext ctx,
JSModuleDef m 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_build_module_ns()

static JSValue js_build_module_ns ( JSContext ctx,
JSModuleDef m 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_resolve_module()

static int js_resolve_module ( JSContext ctx,
JSModuleDef m 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_create_module_var()

static JSVarRef* js_create_module_var ( JSContext ctx,
BOOL  is_lexical 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_create_module_bytecode_function()

static int js_create_module_bytecode_function ( JSContext ctx,
JSModuleDef m 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_create_module_function()

static int js_create_module_function ( JSContext ctx,
JSModuleDef m 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_link_module()

static int js_link_module ( JSContext ctx,
JSModuleDef m 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_GetScriptOrModuleName()

JSAtom JS_GetScriptOrModuleName ( JSContext ctx,
int  n_stack_levels 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_GetModuleName()

JSAtom JS_GetModuleName ( JSContext ctx,
JSModuleDef m 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_GetImportMeta()

JSValue JS_GetImportMeta ( JSContext ctx,
JSModuleDef m 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_RunModule()

JSModuleDef* JS_RunModule ( JSContext ctx,
const char *  basename,
const char *  filename 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_dynamic_import_job()

static JSValue js_dynamic_import_job ( JSContext ctx,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_evaluate_module()

static JSValue js_evaluate_module ( JSContext ctx,
JSModuleDef m 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_parse_from_clause()

static __exception JSAtom js_parse_from_clause ( JSParseState s)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_parse_export()

static __exception int js_parse_export ( JSParseState s)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ add_closure_var()

static int add_closure_var ( JSContext ctx,
JSFunctionDef s,
BOOL  is_local,
BOOL  is_arg,
int  var_idx,
JSAtom  var_name,
BOOL  is_const,
BOOL  is_lexical,
JSVarKindEnum  var_kind 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ add_import()

static int add_import ( JSParseState s,
JSModuleDef m,
JSAtom  local_name,
JSAtom  import_name 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_parse_import()

static __exception int js_parse_import ( JSParseState s)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_parse_source_element()

static __exception int js_parse_source_element ( JSParseState s)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_new_function_def()

static JSFunctionDef* js_new_function_def ( JSContext ctx,
JSFunctionDef parent,
BOOL  is_eval,
BOOL  is_func_expr,
const char *  filename,
int  line_num 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ free_bytecode_atoms()

static void free_bytecode_atoms ( JSRuntime rt,
const uint8_t bc_buf,
int  bc_len,
BOOL  use_short_opcodes 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_free_function_def()

static void js_free_function_def ( JSContext ctx,
JSFunctionDef fd 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ find_closure_var()

static int find_closure_var ( JSContext ctx,
JSFunctionDef s,
JSAtom  var_name 
)
static
+ Here is the caller graph for this function:

◆ get_closure_var2()

static int get_closure_var2 ( JSContext ctx,
JSFunctionDef s,
JSFunctionDef fd,
BOOL  is_local,
BOOL  is_arg,
int  var_idx,
JSAtom  var_name,
BOOL  is_const,
BOOL  is_lexical,
JSVarKindEnum  var_kind 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ get_closure_var()

static int get_closure_var ( JSContext ctx,
JSFunctionDef s,
JSFunctionDef fd,
BOOL  is_arg,
int  var_idx,
JSAtom  var_name,
BOOL  is_const,
BOOL  is_lexical,
JSVarKindEnum  var_kind 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ get_with_scope_opcode()

static int get_with_scope_opcode ( int  op)
static
+ Here is the caller graph for this function:

◆ can_opt_put_ref_value()

static BOOL can_opt_put_ref_value ( const uint8_t bc_buf,
int  pos 
)
static
+ Here is the caller graph for this function:

◆ can_opt_put_global_ref_value()

static BOOL can_opt_put_global_ref_value ( const uint8_t bc_buf,
int  pos 
)
static
+ Here is the caller graph for this function:

◆ optimize_scope_make_ref()

static int optimize_scope_make_ref ( JSContext ctx,
JSFunctionDef s,
DynBuf bc,
uint8_t bc_buf,
LabelSlot ls,
int  pos_next,
int  get_op,
int  var_idx 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ optimize_scope_make_global_ref()

static int optimize_scope_make_global_ref ( JSContext ctx,
JSFunctionDef s,
DynBuf bc,
uint8_t bc_buf,
LabelSlot ls,
int  pos_next,
JSAtom  var_name 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ add_var_this()

static int add_var_this ( JSContext ctx,
JSFunctionDef fd 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ resolve_pseudo_var()

static int resolve_pseudo_var ( JSContext ctx,
JSFunctionDef s,
JSAtom  var_name 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ var_object_test()

static void var_object_test ( JSContext ctx,
JSFunctionDef s,
JSAtom  var_name,
int  op,
DynBuf bc,
int *  plabel_done,
BOOL  is_with 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ resolve_scope_var()

static int resolve_scope_var ( JSContext ctx,
JSFunctionDef s,
JSAtom  var_name,
int  scope_level,
int  op,
DynBuf bc,
uint8_t bc_buf,
LabelSlot ls,
int  pos_next 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ find_private_class_field_all()

static int find_private_class_field_all ( JSContext ctx,
JSFunctionDef fd,
JSAtom  name,
int  scope_level 
)
static
+ Here is the caller graph for this function:

◆ get_loc_or_ref()

static void get_loc_or_ref ( DynBuf bc,
BOOL  is_ref,
int  idx 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ resolve_scope_private_field1()

static int resolve_scope_private_field1 ( JSContext ctx,
BOOL pis_ref,
int *  pvar_kind,
JSFunctionDef s,
JSAtom  var_name,
int  scope_level 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ resolve_scope_private_field()

static int resolve_scope_private_field ( JSContext ctx,
JSFunctionDef s,
JSAtom  var_name,
int  scope_level,
int  op,
DynBuf bc 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ mark_eval_captured_variables()

static void mark_eval_captured_variables ( JSContext ctx,
JSFunctionDef s,
int  scope_level 
)
static
+ Here is the caller graph for this function:

◆ is_var_in_arg_scope()

static BOOL is_var_in_arg_scope ( const JSVarDef vd)
static
+ Here is the caller graph for this function:

◆ add_eval_variables()

static void add_eval_variables ( JSContext ctx,
JSFunctionDef s 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ set_closure_from_var()

static void set_closure_from_var ( JSContext ctx,
JSClosureVar cv,
JSVarDef vd,
int  var_idx 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ add_closure_variables()

static __exception int add_closure_variables ( JSContext ctx,
JSFunctionDef s,
JSFunctionBytecode b,
int  scope_idx 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ code_match()

static BOOL code_match ( CodeContext s,
int  pos,
  ... 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ instantiate_hoisted_definitions()

static void instantiate_hoisted_definitions ( JSContext ctx,
JSFunctionDef s,
DynBuf bc 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ skip_dead_code()

static int skip_dead_code ( JSFunctionDef s,
const uint8_t bc_buf,
int  bc_len,
int  pos,
int *  linep 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ get_label_pos()

static int get_label_pos ( JSFunctionDef s,
int  label 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ resolve_variables()

static __exception int resolve_variables ( JSContext ctx,
JSFunctionDef s 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ add_pc2line_info()

static void add_pc2line_info ( JSFunctionDef s,
uint32_t  pc,
int  line_num 
)
static
+ Here is the caller graph for this function:

◆ compute_pc2line_info()

static void compute_pc2line_info ( JSFunctionDef s)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ add_reloc()

static RelocEntry* add_reloc ( JSContext ctx,
LabelSlot ls,
uint32_t  addr,
int  size 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ code_has_label()

static BOOL code_has_label ( CodeContext s,
int  pos,
int  label 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ find_jump_target()

static int find_jump_target ( JSFunctionDef s,
int  label,
int *  pop,
int *  pline 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ push_short_int()

static void push_short_int ( DynBuf bc_out,
int  val 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ put_short_code()

static void put_short_code ( DynBuf bc_out,
int  op,
int  idx 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ resolve_labels()

static __exception int resolve_labels ( JSContext ctx,
JSFunctionDef s 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ss_check()

static __exception int ss_check ( JSContext ctx,
StackSizeState s,
int  pos,
int  op,
int  stack_len 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ compute_stack_size()

static __exception int compute_stack_size ( JSContext ctx,
JSFunctionDef fd,
int *  pstack_size 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ add_module_variables()

static int add_module_variables ( JSContext ctx,
JSFunctionDef fd 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_create_function()

static JSValue js_create_function ( JSContext ctx,
JSFunctionDef fd 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_parse_directives()

static __exception int js_parse_directives ( JSParseState s)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_parse_function_check_names()

static int js_parse_function_check_names ( JSParseState s,
JSFunctionDef fd,
JSAtom  func_name 
)
static
+ Here is the caller graph for this function:

◆ js_parse_program()

static __exception int js_parse_program ( JSParseState s)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_parse_init()

static void js_parse_init ( JSContext ctx,
JSParseState s,
const char *  input,
size_t  input_len,
const char *  filename 
)
static
+ Here is the caller graph for this function:

◆ JS_EvalFunctionInternal()

static JSValue JS_EvalFunctionInternal ( JSContext ctx,
JSValue  fun_obj,
JSValueConst  this_obj,
JSVarRef **  var_refs,
JSStackFrame sf 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_EvalFunction()

JSValue JS_EvalFunction ( JSContext ctx,
JSValue  fun_obj 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ skip_shebang()

static void skip_shebang ( JSParseState s)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ __JS_EvalInternal()

static JSValue __JS_EvalInternal ( JSContext ctx,
JSValueConst  this_obj,
const char *  input,
size_t  input_len,
const char *  filename,
int  flags,
int  scope_idx 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_EvalThis()

JSValue JS_EvalThis ( JSContext ctx,
JSValueConst  this_obj,
const char *  input,
size_t  input_len,
const char *  filename,
int  eval_flags 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_Eval()

JSValue JS_Eval ( JSContext ctx,
const char *  input,
size_t  input_len,
const char *  filename,
int  eval_flags 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_ResolveModule()

int JS_ResolveModule ( JSContext ctx,
JSValueConst  obj 
)
+ Here is the call graph for this function:

◆ js_object_list_init()

static void js_object_list_init ( JSObjectList s)
static
+ Here is the caller graph for this function:

◆ js_object_list_get_hash()

static uint32_t js_object_list_get_hash ( JSObject p,
uint32_t  hash_size 
)
static
+ Here is the caller graph for this function:

◆ js_object_list_resize_hash()

static int js_object_list_resize_hash ( JSContext ctx,
JSObjectList s,
uint32_t  new_hash_size 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_object_list_add()

static int js_object_list_add ( JSContext ctx,
JSObjectList s,
JSObject obj 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_object_list_find()

static int js_object_list_find ( JSContext ctx,
JSObjectList s,
JSObject obj 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_object_list_end()

static void js_object_list_end ( JSContext ctx,
JSObjectList s 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ bc_put_u8()

static void bc_put_u8 ( BCWriterState s,
uint8_t  v 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ bc_put_u16()

static void bc_put_u16 ( BCWriterState s,
uint16_t  v 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ bc_put_u32()

static __maybe_unused void bc_put_u32 ( BCWriterState s,
uint32_t  v 
)
static
+ Here is the call graph for this function:

◆ bc_put_u64()

static void bc_put_u64 ( BCWriterState s,
uint64_t  v 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ bc_put_leb128()

static void bc_put_leb128 ( BCWriterState s,
uint32_t  v 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ bc_put_sleb128()

static void bc_put_sleb128 ( BCWriterState s,
int32_t  v 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ bc_set_flags()

static void bc_set_flags ( uint32_t pflags,
int *  pidx,
uint32_t  val,
int  n 
)
static
+ Here is the caller graph for this function:

◆ bc_atom_to_idx()

static int bc_atom_to_idx ( BCWriterState s,
uint32_t pres,
JSAtom  atom 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ bc_put_atom()

static int bc_put_atom ( BCWriterState s,
JSAtom  atom 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ bc_byte_swap()

static void bc_byte_swap ( uint8_t bc_buf,
int  bc_len 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_WriteFunctionBytecode()

static int JS_WriteFunctionBytecode ( BCWriterState s,
const uint8_t bc_buf1,
int  bc_len 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_WriteString()

static void JS_WriteString ( BCWriterState s,
JSString p 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_WriteObjectRec()

static int JS_WriteObjectRec ( BCWriterState s,
JSValueConst  obj 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_WriteFunctionTag()

static int JS_WriteFunctionTag ( BCWriterState s,
JSValueConst  obj 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_WriteModule()

static int JS_WriteModule ( BCWriterState s,
JSValueConst  obj 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_WriteArray()

static int JS_WriteArray ( BCWriterState s,
JSValueConst  obj 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_WriteObjectTag()

static int JS_WriteObjectTag ( BCWriterState s,
JSValueConst  obj 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_WriteTypedArray()

static int JS_WriteTypedArray ( BCWriterState s,
JSValueConst  obj 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_WriteArrayBuffer()

static int JS_WriteArrayBuffer ( BCWriterState s,
JSValueConst  obj 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_WriteSharedArrayBuffer()

static int JS_WriteSharedArrayBuffer ( BCWriterState s,
JSValueConst  obj 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_WriteObjectAtoms()

static int JS_WriteObjectAtoms ( BCWriterState s)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_WriteObject2()

uint8_t* JS_WriteObject2 ( JSContext ctx,
size_t *  psize,
JSValueConst  obj,
int  flags,
uint8_t ***  psab_tab,
size_t *  psab_tab_len 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_WriteObject()

uint8_t* JS_WriteObject ( JSContext ctx,
size_t *  psize,
JSValueConst  obj,
int  flags 
)
+ Here is the call graph for this function:

◆ bc_read_error_end()

static int bc_read_error_end ( BCReaderState s)
static
+ Here is the caller graph for this function:

◆ bc_get_u8()

static int bc_get_u8 ( BCReaderState s,
uint8_t pval 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ bc_get_u16()

static int bc_get_u16 ( BCReaderState s,
uint16_t pval 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ bc_get_u32()

static __maybe_unused int bc_get_u32 ( BCReaderState s,
uint32_t pval 
)
static
+ Here is the call graph for this function:

◆ bc_get_u64()

static int bc_get_u64 ( BCReaderState s,
uint64_t pval 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ bc_get_leb128()

static int bc_get_leb128 ( BCReaderState s,
uint32_t pval 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ bc_get_sleb128()

static int bc_get_sleb128 ( BCReaderState s,
int32_t pval 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ bc_get_leb128_int()

static int bc_get_leb128_int ( BCReaderState s,
int *  pval 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ bc_get_leb128_u16()

static int bc_get_leb128_u16 ( BCReaderState s,
uint16_t pval 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ bc_get_buf()

static int bc_get_buf ( BCReaderState s,
uint8_t buf,
uint32_t  buf_len 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ bc_idx_to_atom()

static int bc_idx_to_atom ( BCReaderState s,
JSAtom patom,
uint32_t  idx 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ bc_get_atom()

static int bc_get_atom ( BCReaderState s,
JSAtom patom 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_ReadString()

static JSString* JS_ReadString ( BCReaderState s)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ bc_get_flags()

static uint32_t bc_get_flags ( uint32_t  flags,
int *  pidx,
int  n 
)
static
+ Here is the caller graph for this function:

◆ JS_ReadFunctionBytecode()

static int JS_ReadFunctionBytecode ( BCReaderState s,
JSFunctionBytecode b,
int  byte_code_offset,
uint32_t  bc_len 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_ReadObjectRec()

static JSValue JS_ReadObjectRec ( BCReaderState s)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ BC_add_object_ref1()

static int BC_add_object_ref1 ( BCReaderState s,
JSObject p 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ BC_add_object_ref()

static int BC_add_object_ref ( BCReaderState s,
JSValueConst  obj 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_ReadFunctionTag()

static JSValue JS_ReadFunctionTag ( BCReaderState s)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_ReadModule()

static JSValue JS_ReadModule ( BCReaderState s)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_ReadObjectTag()

static JSValue JS_ReadObjectTag ( BCReaderState s)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_ReadArray()

static JSValue JS_ReadArray ( BCReaderState s,
int  tag 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_ReadTypedArray()

static JSValue JS_ReadTypedArray ( BCReaderState s)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_ReadArrayBuffer()

static JSValue JS_ReadArrayBuffer ( BCReaderState s)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_ReadSharedArrayBuffer()

static JSValue JS_ReadSharedArrayBuffer ( BCReaderState s)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_ReadDate()

static JSValue JS_ReadDate ( BCReaderState s)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_ReadObjectValue()

static JSValue JS_ReadObjectValue ( BCReaderState s)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_ReadObjectAtoms()

static int JS_ReadObjectAtoms ( BCReaderState s)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ bc_reader_free()

static void bc_reader_free ( BCReaderState s)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_ReadObject()

JSValue JS_ReadObject ( JSContext ctx,
const uint8_t buf,
size_t  buf_len,
int  flags 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_string_constructor()

static JSValue js_string_constructor ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_boolean_constructor()

static JSValue js_boolean_constructor ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_number_constructor()

static JSValue js_number_constructor ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ check_function()

static int check_function ( JSContext ctx,
JSValueConst  obj 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ check_exception_free()

static int check_exception_free ( JSContext ctx,
JSValue  obj 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ find_atom()

static JSAtom find_atom ( JSContext ctx,
const char *  name 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_InstantiateFunctionListItem()

static int JS_InstantiateFunctionListItem ( JSContext ctx,
JSValueConst  obj,
JSAtom  atom,
const JSCFunctionListEntry e 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_SetPropertyFunctionList()

void JS_SetPropertyFunctionList ( JSContext ctx,
JSValueConst  obj,
const JSCFunctionListEntry tab,
int  len 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_AddModuleExportList()

int JS_AddModuleExportList ( JSContext ctx,
JSModuleDef m,
const JSCFunctionListEntry tab,
int  len 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_SetModuleExportList()

int JS_SetModuleExportList ( JSContext ctx,
JSModuleDef m,
const JSCFunctionListEntry tab,
int  len 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_SetConstructor2()

static void JS_SetConstructor2 ( JSContext ctx,
JSValueConst  func_obj,
JSValueConst  proto,
int  proto_flags,
int  ctor_flags 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_SetConstructor()

void JS_SetConstructor ( JSContext ctx,
JSValueConst  func_obj,
JSValueConst  proto 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_NewGlobalCConstructor2()

static void JS_NewGlobalCConstructor2 ( JSContext ctx,
JSValue  func_obj,
const char *  name,
JSValueConst  proto 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_NewGlobalCConstructor()

static JSValueConst JS_NewGlobalCConstructor ( JSContext ctx,
const char *  name,
JSCFunction func,
int  length,
JSValueConst  proto 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_NewGlobalCConstructorOnly()

static JSValueConst JS_NewGlobalCConstructorOnly ( JSContext ctx,
const char *  name,
JSCFunction func,
int  length,
JSValueConst  proto 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_global_eval()

static JSValue js_global_eval ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_global_isNaN()

static JSValue js_global_isNaN ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_global_isFinite()

static JSValue js_global_isFinite ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_obj_to_desc()

static int js_obj_to_desc ( JSContext ctx,
JSPropertyDescriptor d,
JSValueConst  desc 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_DefinePropertyDesc()

static __exception int JS_DefinePropertyDesc ( JSContext ctx,
JSValueConst  obj,
JSAtom  prop,
JSValueConst  desc,
int  flags 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_ObjectDefineProperties()

static __exception int JS_ObjectDefineProperties ( JSContext ctx,
JSValueConst  obj,
JSValueConst  properties 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_object_constructor()

static JSValue js_object_constructor ( JSContext ctx,
JSValueConst  new_target,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_object_create()

static JSValue js_object_create ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ js_object_getPrototypeOf()

static JSValue js_object_getPrototypeOf ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv,
int  magic 
)
static
+ Here is the call graph for this function:

◆ js_object_setPrototypeOf()

static JSValue js_object_setPrototypeOf ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ js_object_defineProperty()

static JSValue js_object_defineProperty ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv,
int  magic 
)
static
+ Here is the call graph for this function:

◆ js_object_defineProperties()

static JSValue js_object_defineProperties ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ js_object___defineGetter__()

static JSValue js_object___defineGetter__ ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv,
int  magic 
)
static
+ Here is the call graph for this function:

◆ js_object_getOwnPropertyDescriptor()

static JSValue js_object_getOwnPropertyDescriptor ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv,
int  magic 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_object_getOwnPropertyDescriptors()

static JSValue js_object_getOwnPropertyDescriptors ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ JS_GetOwnPropertyNames2()

static JSValue JS_GetOwnPropertyNames2 ( JSContext ctx,
JSValueConst  obj1,
int  flags,
int  kind 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_object_getOwnPropertyNames()

static JSValue js_object_getOwnPropertyNames ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ js_object_getOwnPropertySymbols()

static JSValue js_object_getOwnPropertySymbols ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ js_object_keys()

static JSValue js_object_keys ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv,
int  kind 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_object_isExtensible()

static JSValue js_object_isExtensible ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv,
int  reflect 
)
static
+ Here is the call graph for this function:

◆ js_object_preventExtensions()

static JSValue js_object_preventExtensions ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv,
int  reflect 
)
static
+ Here is the call graph for this function:

◆ js_object_hasOwnProperty()

static JSValue js_object_hasOwnProperty ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ js_object_valueOf()

static JSValue js_object_valueOf ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ js_object_toString()

static JSValue js_object_toString ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_object_toLocaleString()

static JSValue js_object_toLocaleString ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ js_object_assign()

static JSValue js_object_assign ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ js_object_seal()

static JSValue js_object_seal ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv,
int  freeze_flag 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_object_isSealed()

static JSValue js_object_isSealed ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv,
int  is_frozen 
)
static
+ Here is the call graph for this function:

◆ js_object_fromEntries()

static JSValue js_object_fromEntries ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ js_object___getClass()

static JSValue js_object___getClass ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ js_object_is()

static JSValue js_object_is ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ JS_SpeciesConstructor()

static JSValue JS_SpeciesConstructor ( JSContext ctx,
JSValueConst  obj,
JSValueConst  defaultConstructor 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_object_get___proto__()

static JSValue js_object_get___proto__ ( JSContext ctx,
JSValueConst  this_val 
)
static
+ Here is the call graph for this function:

◆ js_object_set___proto__()

static JSValue js_object_set___proto__ ( JSContext ctx,
JSValueConst  this_val,
JSValueConst  proto 
)
static
+ Here is the call graph for this function:

◆ js_object_isPrototypeOf()

static JSValue js_object_isPrototypeOf ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ js_object_propertyIsEnumerable()

static JSValue js_object_propertyIsEnumerable ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ js_object___lookupGetter__()

static JSValue js_object___lookupGetter__ ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv,
int  setter 
)
static
+ Here is the call graph for this function:

◆ js_function_proto()

static JSValue js_function_proto ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the caller graph for this function:

◆ js_function_constructor()

static JSValue js_function_constructor ( JSContext ctx,
JSValueConst  new_target,
int  argc,
JSValueConst argv,
int  magic 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_function_apply()

static JSValue js_function_apply ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv,
int  magic 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_function_call()

static JSValue js_function_call ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ js_function_bind()

static JSValue js_function_bind ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ js_function_toString()

static JSValue js_function_toString ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ js_function_hasInstance()

static JSValue js_function_hasInstance ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ iterator_to_array()

static JSValue iterator_to_array ( JSContext ctx,
JSValueConst  items 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_error_constructor()

static JSValue js_error_constructor ( JSContext ctx,
JSValueConst  new_target,
int  argc,
JSValueConst argv,
int  magic 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_error_toString()

static JSValue js_error_toString ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ js_aggregate_error_constructor()

static JSValue js_aggregate_error_constructor ( JSContext ctx,
JSValueConst  errors 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_CopySubArray()

static int JS_CopySubArray ( JSContext ctx,
JSValueConst  obj,
int64_t  to_pos,
int64_t  from_pos,
int64_t  count,
int  dir 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_array_constructor()

static JSValue js_array_constructor ( JSContext ctx,
JSValueConst  new_target,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_array_from()

static JSValue js_array_from ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ js_array_of()

static JSValue js_array_of ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ js_array_isArray()

static JSValue js_array_isArray ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ js_get_this()

static JSValue js_get_this ( JSContext ctx,
JSValueConst  this_val 
)
static
+ Here is the call graph for this function:

◆ JS_ArraySpeciesCreate()

static JSValue JS_ArraySpeciesCreate ( JSContext ctx,
JSValueConst  obj,
JSValueConst  len_val 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_isConcatSpreadable()

static int JS_isConcatSpreadable ( JSContext ctx,
JSValueConst  obj 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_array_concat()

static JSValue js_array_concat ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ js_typed_array_get_length_internal()

static int js_typed_array_get_length_internal ( JSContext ctx,
JSValueConst  obj 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_typed_array___speciesCreate()

static JSValue js_typed_array___speciesCreate ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_array_every()

static JSValue js_array_every ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv,
int  special 
)
static
+ Here is the call graph for this function:

◆ js_array_reduce()

static JSValue js_array_reduce ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv,
int  special 
)
static
+ Here is the call graph for this function:

◆ js_array_fill()

static JSValue js_array_fill ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ js_array_includes()

static JSValue js_array_includes ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_array_indexOf()

static JSValue js_array_indexOf ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ js_array_lastIndexOf()

static JSValue js_array_lastIndexOf ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ js_array_find()

static JSValue js_array_find ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv,
int  findIndex 
)
static
+ Here is the call graph for this function:

◆ js_array_toString()

static JSValue js_array_toString ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ js_array_join()

static JSValue js_array_join ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv,
int  toLocaleString 
)
static
+ Here is the call graph for this function:

◆ js_array_pop()

static JSValue js_array_pop ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv,
int  shift 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_array_push()

static JSValue js_array_push ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv,
int  unshift 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_array_reverse()

static JSValue js_array_reverse ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ js_array_slice()

static JSValue js_array_slice ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv,
int  splice 
)
static
+ Here is the call graph for this function:

◆ js_array_copyWithin()

static JSValue js_array_copyWithin ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ JS_FlattenIntoArray()

static int64_t JS_FlattenIntoArray ( JSContext ctx,
JSValueConst  target,
JSValueConst  source,
int64_t  sourceLen,
int64_t  targetIndex,
int  depth,
JSValueConst  mapperFunction,
JSValueConst  thisArg 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_array_flatten()

static JSValue js_array_flatten ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv,
int  map 
)
static
+ Here is the call graph for this function:

◆ js_array_cmp_generic()

static int js_array_cmp_generic ( const void *  a,
const void *  b,
void *  opaque 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_array_sort()

static JSValue js_array_sort ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ js_array_iterator_finalizer()

static void js_array_iterator_finalizer ( JSRuntime rt,
JSValue  val 
)
static
+ Here is the call graph for this function:

◆ js_array_iterator_mark()

static void js_array_iterator_mark ( JSRuntime rt,
JSValueConst  val,
JS_MarkFunc mark_func 
)
static
+ Here is the call graph for this function:

◆ js_create_array()

static JSValue js_create_array ( JSContext ctx,
int  len,
JSValueConst tab 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_iterator_proto_iterator()

static JSValue js_iterator_proto_iterator ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ js_number_isNaN()

static JSValue js_number_isNaN ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ js_number_isFinite()

static JSValue js_number_isFinite ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ js_number_isInteger()

static JSValue js_number_isInteger ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ js_number_isSafeInteger()

static JSValue js_number_isSafeInteger ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ js_thisNumberValue()

static JSValue js_thisNumberValue ( JSContext ctx,
JSValueConst  this_val 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_number_valueOf()

static JSValue js_number_valueOf ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ js_get_radix()

static int js_get_radix ( JSContext ctx,
JSValueConst  val 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_number_toString()

static JSValue js_number_toString ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv,
int  magic 
)
static
+ Here is the call graph for this function:

◆ js_number_toFixed()

static JSValue js_number_toFixed ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ js_number_toExponential()

static JSValue js_number_toExponential ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ js_number_toPrecision()

static JSValue js_number_toPrecision ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ js_parseInt()

static JSValue js_parseInt ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ js_parseFloat()

static JSValue js_parseFloat ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ js_thisBooleanValue()

static JSValue js_thisBooleanValue ( JSContext ctx,
JSValueConst  this_val 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_boolean_toString()

static JSValue js_boolean_toString ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ js_boolean_valueOf()

static JSValue js_boolean_valueOf ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ js_string_get_own_property()

static int js_string_get_own_property ( JSContext ctx,
JSPropertyDescriptor desc,
JSValueConst  obj,
JSAtom  prop 
)
static
+ Here is the call graph for this function:

◆ js_string_define_own_property()

static int js_string_define_own_property ( JSContext ctx,
JSValueConst  this_obj,
JSAtom  prop,
JSValueConst  val,
JSValueConst  getter,
JSValueConst  setter,
int  flags 
)
static
+ Here is the call graph for this function:

◆ js_string_delete_property()

static int js_string_delete_property ( JSContext ctx,
JSValueConst  obj,
JSAtom  prop 
)
static
+ Here is the call graph for this function:

◆ js_thisStringValue()

static JSValue js_thisStringValue ( JSContext ctx,
JSValueConst  this_val 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_string_fromCharCode()

static JSValue js_string_fromCharCode ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ js_string_fromCodePoint()

static JSValue js_string_fromCodePoint ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ js_string_raw()

static JSValue js_string_raw ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ js_string_codePointRange()

JSValue js_string_codePointRange ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
+ Here is the call graph for this function:

◆ js_string_charCodeAt()

static JSValue js_string_charCodeAt ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ js_string_charAt()

static JSValue js_string_charAt ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ js_string_codePointAt()

static JSValue js_string_codePointAt ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ js_string_concat()

static JSValue js_string_concat ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ string_cmp()

static int string_cmp ( JSString p1,
JSString p2,
int  x1,
int  x2,
int  len 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ string_indexof_char()

static int string_indexof_char ( JSString p,
int  c,
int  from 
)
static
+ Here is the caller graph for this function:

◆ string_indexof()

static int string_indexof ( JSString p1,
JSString p2,
int  from 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ string_advance_index()

static int64_t string_advance_index ( JSString p,
int64_t  index,
BOOL  unicode 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_string_indexOf()

static JSValue js_string_indexOf ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv,
int  lastIndexOf 
)
static
+ Here is the call graph for this function:

◆ js_is_regexp()

static int js_is_regexp ( JSContext ctx,
JSValueConst  obj 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_string_includes()

static JSValue js_string_includes ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv,
int  magic 
)
static
+ Here is the call graph for this function:

◆ check_regexp_g_flag()

static int check_regexp_g_flag ( JSContext ctx,
JSValueConst  regexp 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_string_match()

static JSValue js_string_match ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv,
int  atom 
)
static
+ Here is the call graph for this function:

◆ js_string___GetSubstitution()

static JSValue js_string___GetSubstitution ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_string_replace()

static JSValue js_string_replace ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv,
int  is_replaceAll 
)
static
+ Here is the call graph for this function:

◆ js_string_split()

static JSValue js_string_split ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ js_string_substring()

static JSValue js_string_substring ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ js_string_substr()

static JSValue js_string_substr ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ js_string_slice()

static JSValue js_string_slice ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ js_string_pad()

static JSValue js_string_pad ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv,
int  padEnd 
)
static
+ Here is the call graph for this function:

◆ js_string_repeat()

static JSValue js_string_repeat ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ js_string_trim()

static JSValue js_string_trim ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv,
int  magic 
)
static
+ Here is the call graph for this function:

◆ js_string___quote()

static JSValue js_string___quote ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ string_prevc()

static int string_prevc ( JSString p,
int *  pidx 
)
static
+ Here is the caller graph for this function:

◆ test_final_sigma()

static BOOL test_final_sigma ( JSString p,
int  sigma_pos 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_string_localeCompare()

static JSValue js_string_localeCompare ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ js_string_toLowerCase()

static JSValue js_string_toLowerCase ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv,
int  to_lower 
)
static
+ Here is the call graph for this function:

◆ JS_ToUTF32String()

static int JS_ToUTF32String ( JSContext ctx,
uint32_t **  pbuf,
JSValueConst  val1 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_NewUTF32String()

static JSValue JS_NewUTF32String ( JSContext ctx,
const uint32_t buf,
int  len 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_string_normalize()

static JSValue js_string_normalize ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ js_string_toString()

static JSValue js_string_toString ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ js_string_iterator_next()

static JSValue js_string_iterator_next ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv,
BOOL pdone,
int  magic 
)
static
+ Here is the call graph for this function:

◆ js_string_CreateHTML()

static JSValue js_string_CreateHTML ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv,
int  magic 
)
static
+ Here is the call graph for this function:

◆ JS_AddIntrinsicStringNormalize()

void JS_AddIntrinsicStringNormalize ( JSContext ctx)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_fmin()

static double js_fmin ( double  a,
double  b 
)
static
+ Here is the caller graph for this function:

◆ js_fmax()

static double js_fmax ( double  a,
double  b 
)
static
+ Here is the caller graph for this function:

◆ js_math_min_max()

static JSValue js_math_min_max ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv,
int  magic 
)
static
+ Here is the call graph for this function:

◆ js_math_sign()

static double js_math_sign ( double  a)
static

◆ js_math_round()

static double js_math_round ( double  a)
static

◆ js_math_hypot()

static JSValue js_math_hypot ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ js_math_fround()

static double js_math_fround ( double  a)
static

◆ js_math_imul()

static JSValue js_math_imul ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ js_math_clz32()

static JSValue js_math_clz32 ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ xorshift64star()

static uint64_t xorshift64star ( uint64_t pstate)
static
+ Here is the caller graph for this function:

◆ js_random_init()

static void js_random_init ( JSContext ctx)
static
+ Here is the caller graph for this function:

◆ js_math_random()

static JSValue js_math_random ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ js___date_clock()

static JSValue js___date_clock ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ getTimezoneOffset()

static int getTimezoneOffset ( int64_t  time)
static
+ Here is the caller graph for this function:

◆ js_regexp_finalizer()

static void js_regexp_finalizer ( JSRuntime rt,
JSValue  val 
)
static
+ Here is the call graph for this function:

◆ js_compile_regexp()

static JSValue js_compile_regexp ( JSContext ctx,
JSValueConst  pattern,
JSValueConst  flags 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_regexp_constructor_internal()

static JSValue js_regexp_constructor_internal ( JSContext ctx,
JSValueConst  ctor,
JSValue  pattern,
JSValue  bc 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_get_regexp()

static JSRegExp* js_get_regexp ( JSContext ctx,
JSValueConst  obj,
BOOL  throw_error 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_regexp_constructor()

static JSValue js_regexp_constructor ( JSContext ctx,
JSValueConst  new_target,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_regexp_compile()

static JSValue js_regexp_compile ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ js_regexp_get_source()

static JSValue js_regexp_get_source ( JSContext ctx,
JSValueConst  this_val 
)
static
+ Here is the call graph for this function:

◆ js_regexp_get_flag()

static JSValue js_regexp_get_flag ( JSContext ctx,
JSValueConst  this_val,
int  mask 
)
static
+ Here is the call graph for this function:

◆ js_regexp_get_flags()

static JSValue js_regexp_get_flags ( JSContext ctx,
JSValueConst  this_val 
)
static
+ Here is the call graph for this function:

◆ js_regexp_toString()

static JSValue js_regexp_toString ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ lre_check_stack_overflow()

BOOL lre_check_stack_overflow ( void *  opaque,
size_t  alloca_size 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ lre_realloc()

void* lre_realloc ( void *  opaque,
void *  ptr,
size_t  size 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_regexp_exec()

static JSValue js_regexp_exec ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_RegExpDelete()

static JSValue JS_RegExpDelete ( JSContext ctx,
JSValueConst  this_val,
JSValueConst  arg 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_RegExpExec()

static JSValue JS_RegExpExec ( JSContext ctx,
JSValueConst  r,
JSValueConst  s 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_regexp_test()

static JSValue js_regexp_test ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ js_regexp_Symbol_match()

static JSValue js_regexp_Symbol_match ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ js_regexp_string_iterator_finalizer()

static void js_regexp_string_iterator_finalizer ( JSRuntime rt,
JSValue  val 
)
static
+ Here is the call graph for this function:

◆ js_regexp_string_iterator_mark()

static void js_regexp_string_iterator_mark ( JSRuntime rt,
JSValueConst  val,
JS_MarkFunc mark_func 
)
static
+ Here is the call graph for this function:

◆ js_regexp_string_iterator_next()

static JSValue js_regexp_string_iterator_next ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv,
BOOL pdone,
int  magic 
)
static
+ Here is the call graph for this function:

◆ js_regexp_Symbol_matchAll()

static JSValue js_regexp_Symbol_matchAll ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ value_buffer_init()

static int value_buffer_init ( JSContext ctx,
ValueBuffer b 
)
static
+ Here is the caller graph for this function:

◆ value_buffer_free()

static void value_buffer_free ( ValueBuffer b)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ value_buffer_append()

static int value_buffer_append ( ValueBuffer b,
JSValue  val 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_is_standard_regexp()

static int js_is_standard_regexp ( JSContext ctx,
JSValueConst  rx 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_regexp_Symbol_replace()

static JSValue js_regexp_Symbol_replace ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ js_regexp_Symbol_search()

static JSValue js_regexp_Symbol_search ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ js_regexp_Symbol_split()

static JSValue js_regexp_Symbol_split ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ JS_AddIntrinsicRegExpCompiler()

void JS_AddIntrinsicRegExpCompiler ( JSContext ctx)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_AddIntrinsicRegExp()

void JS_AddIntrinsicRegExp ( JSContext ctx)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ json_parse_expect()

static int json_parse_expect ( JSParseState s,
int  tok 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ json_parse_value()

static JSValue json_parse_value ( JSParseState s)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_ParseJSON2()

JSValue JS_ParseJSON2 ( JSContext ctx,
const char *  buf,
size_t  buf_len,
const char *  filename,
int  flags 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_ParseJSON()

JSValue JS_ParseJSON ( JSContext ctx,
const char *  buf,
size_t  buf_len,
const char *  filename 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ internalize_json_property()

static JSValue internalize_json_property ( JSContext ctx,
JSValueConst  holder,
JSAtom  name,
JSValueConst  reviver 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_json_parse()

static JSValue js_json_parse ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ JS_ToQuotedStringFree()

static JSValue JS_ToQuotedStringFree ( JSContext ctx,
JSValue  val 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_json_check()

static JSValue js_json_check ( JSContext ctx,
JSONStringifyContext jsc,
JSValueConst  holder,
JSValue  val,
JSValueConst  key 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_json_to_str()

static int js_json_to_str ( JSContext ctx,
JSONStringifyContext jsc,
JSValueConst  holder,
JSValue  val,
JSValueConst  indent 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_JSONStringify()

JSValue JS_JSONStringify ( JSContext ctx,
JSValueConst  obj,
JSValueConst  replacer,
JSValueConst  space0 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_json_stringify()

static JSValue js_json_stringify ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ JS_AddIntrinsicJSON()

void JS_AddIntrinsicJSON ( JSContext ctx)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_reflect_apply()

static JSValue js_reflect_apply ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ js_reflect_construct()

static JSValue js_reflect_construct ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ js_reflect_deleteProperty()

static JSValue js_reflect_deleteProperty ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ js_reflect_get()

static JSValue js_reflect_get ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ js_reflect_has()

static JSValue js_reflect_has ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ js_reflect_set()

static JSValue js_reflect_set ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ js_reflect_setPrototypeOf()

static JSValue js_reflect_setPrototypeOf ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ js_reflect_ownKeys()

static JSValue js_reflect_ownKeys ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ js_proxy_finalizer()

static void js_proxy_finalizer ( JSRuntime rt,
JSValue  val 
)
static
+ Here is the call graph for this function:

◆ js_proxy_mark()

static void js_proxy_mark ( JSRuntime rt,
JSValueConst  val,
JS_MarkFunc mark_func 
)
static
+ Here is the call graph for this function:

◆ get_proxy_method()

static JSProxyData* get_proxy_method ( JSContext ctx,
JSValue pmethod,
JSValueConst  obj,
JSAtom  name 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_proxy_has()

static int js_proxy_has ( JSContext ctx,
JSValueConst  obj,
JSAtom  atom 
)
static
+ Here is the call graph for this function:

◆ js_proxy_get()

static JSValue js_proxy_get ( JSContext ctx,
JSValueConst  obj,
JSAtom  atom,
JSValueConst  receiver 
)
static
+ Here is the call graph for this function:

◆ js_proxy_set()

static int js_proxy_set ( JSContext ctx,
JSValueConst  obj,
JSAtom  atom,
JSValueConst  value,
JSValueConst  receiver,
int  flags 
)
static
+ Here is the call graph for this function:

◆ js_create_desc()

static JSValue js_create_desc ( JSContext ctx,
JSValueConst  val,
JSValueConst  getter,
JSValueConst  setter,
int  flags 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_proxy_get_own_property()

static int js_proxy_get_own_property ( JSContext ctx,
JSPropertyDescriptor pdesc,
JSValueConst  obj,
JSAtom  prop 
)
static
+ Here is the call graph for this function:

◆ js_proxy_define_own_property()

static int js_proxy_define_own_property ( JSContext ctx,
JSValueConst  obj,
JSAtom  prop,
JSValueConst  val,
JSValueConst  getter,
JSValueConst  setter,
int  flags 
)
static
+ Here is the call graph for this function:

◆ js_proxy_delete_property()

static int js_proxy_delete_property ( JSContext ctx,
JSValueConst  obj,
JSAtom  atom 
)
static
+ Here is the call graph for this function:

◆ find_prop_key()

static int find_prop_key ( const JSPropertyEnum tab,
int  n,
JSAtom  atom 
)
static
+ Here is the caller graph for this function:

◆ js_proxy_get_own_property_names()

static int js_proxy_get_own_property_names ( JSContext ctx,
JSPropertyEnum **  ptab,
uint32_t plen,
JSValueConst  obj 
)
static
+ Here is the call graph for this function:

◆ js_proxy_call_constructor()

static JSValue js_proxy_call_constructor ( JSContext ctx,
JSValueConst  func_obj,
JSValueConst  new_target,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_proxy_call()

static JSValue js_proxy_call ( JSContext ctx,
JSValueConst  func_obj,
JSValueConst  this_obj,
int  argc,
JSValueConst argv,
int  flags 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_proxy_constructor()

static JSValue js_proxy_constructor ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_proxy_revoke()

static JSValue js_proxy_revoke ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv,
int  magic,
JSValue func_data 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_proxy_revoke_constructor()

static JSValue js_proxy_revoke_constructor ( JSContext ctx,
JSValueConst  proxy_obj 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_proxy_revocable()

static JSValue js_proxy_revocable ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ JS_AddIntrinsicProxy()

void JS_AddIntrinsicProxy ( JSContext ctx)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_symbol_constructor()

static JSValue js_symbol_constructor ( JSContext ctx,
JSValueConst  new_target,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_thisSymbolValue()

static JSValue js_thisSymbolValue ( JSContext ctx,
JSValueConst  this_val 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_symbol_toString()

static JSValue js_symbol_toString ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ js_symbol_valueOf()

static JSValue js_symbol_valueOf ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ js_symbol_get_description()

static JSValue js_symbol_get_description ( JSContext ctx,
JSValueConst  this_val 
)
static
+ Here is the call graph for this function:

◆ js_symbol_for()

static JSValue js_symbol_for ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ js_symbol_keyFor()

static JSValue js_symbol_keyFor ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ js_map_constructor()

static JSValue js_map_constructor ( JSContext ctx,
JSValueConst  new_target,
int  argc,
JSValueConst argv,
int  magic 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ map_normalize_key()

static JSValueConst map_normalize_key ( JSContext ctx,
JSValueConst  key 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ map_hash_key()

static uint32_t map_hash_key ( JSContext ctx,
JSValueConst  key 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ map_find_record()

static JSMapRecord* map_find_record ( JSContext ctx,
JSMapState s,
JSValueConst  key 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ map_hash_resize()

static void map_hash_resize ( JSContext ctx,
JSMapState s 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ map_add_record()

static JSMapRecord* map_add_record ( JSContext ctx,
JSMapState s,
JSValueConst  key 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ delete_weak_ref()

static void delete_weak_ref ( JSRuntime rt,
JSMapRecord mr 
)
static
+ Here is the caller graph for this function:

◆ map_delete_record()

static void map_delete_record ( JSRuntime rt,
JSMapState s,
JSMapRecord mr 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ map_decref_record()

static void map_decref_record ( JSRuntime rt,
JSMapRecord mr 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_map_set()

static JSValue js_map_set ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv,
int  magic 
)
static
+ Here is the call graph for this function:

◆ js_map_get()

static JSValue js_map_get ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv,
int  magic 
)
static
+ Here is the call graph for this function:

◆ js_map_has()

static JSValue js_map_has ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv,
int  magic 
)
static
+ Here is the call graph for this function:

◆ js_map_delete()

static JSValue js_map_delete ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv,
int  magic 
)
static
+ Here is the call graph for this function:

◆ js_map_clear()

static JSValue js_map_clear ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv,
int  magic 
)
static
+ Here is the call graph for this function:

◆ js_map_get_size()

static JSValue js_map_get_size ( JSContext ctx,
JSValueConst  this_val,
int  magic 
)
static
+ Here is the call graph for this function:

◆ js_map_forEach()

static JSValue js_map_forEach ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv,
int  magic 
)
static
+ Here is the call graph for this function:

◆ js_map_finalizer()

static void js_map_finalizer ( JSRuntime rt,
JSValue  val 
)
static
+ Here is the call graph for this function:

◆ js_map_mark()

static void js_map_mark ( JSRuntime rt,
JSValueConst  val,
JS_MarkFunc mark_func 
)
static
+ Here is the call graph for this function:

◆ js_map_iterator_finalizer()

static void js_map_iterator_finalizer ( JSRuntime rt,
JSValue  val 
)
static
+ Here is the call graph for this function:

◆ js_map_iterator_mark()

static void js_map_iterator_mark ( JSRuntime rt,
JSValueConst  val,
JS_MarkFunc mark_func 
)
static
+ Here is the call graph for this function:

◆ js_create_map_iterator()

static JSValue js_create_map_iterator ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv,
int  magic 
)
static
+ Here is the call graph for this function:

◆ js_map_iterator_next()

static JSValue js_map_iterator_next ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv,
BOOL pdone,
int  magic 
)
static
+ Here is the call graph for this function:

◆ JS_AddIntrinsicMapSet()

void JS_AddIntrinsicMapSet ( JSContext ctx)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_create_resolving_functions()

static int js_create_resolving_functions ( JSContext ctx,
JSValue args,
JSValueConst  promise 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ promise_reaction_data_free()

static void promise_reaction_data_free ( JSRuntime rt,
JSPromiseReactionData rd 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ promise_reaction_job()

static JSValue promise_reaction_job ( JSContext ctx,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_SetHostPromiseRejectionTracker()

void JS_SetHostPromiseRejectionTracker ( JSRuntime rt,
JSHostPromiseRejectionTracker cb,
void *  opaque 
)

◆ fulfill_or_reject_promise()

static void fulfill_or_reject_promise ( JSContext ctx,
JSValueConst  promise,
JSValueConst  value,
BOOL  is_reject 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ reject_promise()

static void reject_promise ( JSContext ctx,
JSValueConst  promise,
JSValueConst  value 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_promise_resolve_thenable_job()

static JSValue js_promise_resolve_thenable_job ( JSContext ctx,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_promise_resolve_function_free_resolved()

static void js_promise_resolve_function_free_resolved ( JSRuntime rt,
JSPromiseFunctionDataResolved sr 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_promise_resolve_function_finalizer()

static void js_promise_resolve_function_finalizer ( JSRuntime rt,
JSValue  val 
)
static
+ Here is the call graph for this function:

◆ js_promise_resolve_function_mark()

static void js_promise_resolve_function_mark ( JSRuntime rt,
JSValueConst  val,
JS_MarkFunc mark_func 
)
static
+ Here is the call graph for this function:

◆ js_promise_resolve_function_call()

static JSValue js_promise_resolve_function_call ( JSContext ctx,
JSValueConst  func_obj,
JSValueConst  this_val,
int  argc,
JSValueConst argv,
int  flags 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_promise_finalizer()

static void js_promise_finalizer ( JSRuntime rt,
JSValue  val 
)
static
+ Here is the call graph for this function:

◆ js_promise_mark()

static void js_promise_mark ( JSRuntime rt,
JSValueConst  val,
JS_MarkFunc mark_func 
)
static
+ Here is the call graph for this function:

◆ js_promise_constructor()

static JSValue js_promise_constructor ( JSContext ctx,
JSValueConst  new_target,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_promise_executor()

static JSValue js_promise_executor ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv,
int  magic,
JSValue func_data 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_promise_executor_new()

static JSValue js_promise_executor_new ( JSContext ctx)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_NewPromiseCapability()

JSValue JS_NewPromiseCapability ( JSContext ctx,
JSValue resolving_funcs 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ remainingElementsCount_add()

static __exception int remainingElementsCount_add ( JSContext ctx,
JSValueConst  resolve_element_env,
int  addend 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_promise_all_resolve_element()

static JSValue js_promise_all_resolve_element ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv,
int  magic,
JSValue func_data 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_promise_all()

static JSValue js_promise_all ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv,
int  magic 
)
static
+ Here is the call graph for this function:

◆ js_promise_race()

static JSValue js_promise_race ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ js_promise_then()

static JSValue js_promise_then ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ js_promise_catch()

static JSValue js_promise_catch ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ js_promise_finally_value_thunk()

static JSValue js_promise_finally_value_thunk ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv,
int  magic,
JSValue func_data 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_promise_finally_thrower()

static JSValue js_promise_finally_thrower ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv,
int  magic,
JSValue func_data 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_promise_then_finally_func()

static JSValue js_promise_then_finally_func ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv,
int  magic,
JSValue func_data 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_promise_finally()

static JSValue js_promise_finally ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ js_async_from_sync_iterator_unwrap()

static JSValue js_async_from_sync_iterator_unwrap ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv,
int  magic,
JSValue func_data 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_async_from_sync_iterator_unwrap_func_create()

static JSValue js_async_from_sync_iterator_unwrap_func_create ( JSContext ctx,
BOOL  done 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_async_from_sync_iterator_finalizer()

static void js_async_from_sync_iterator_finalizer ( JSRuntime rt,
JSValue  val 
)
static
+ Here is the call graph for this function:

◆ js_async_from_sync_iterator_mark()

static void js_async_from_sync_iterator_mark ( JSRuntime rt,
JSValueConst  val,
JS_MarkFunc mark_func 
)
static
+ Here is the call graph for this function:

◆ js_async_from_sync_iterator_next()

static JSValue js_async_from_sync_iterator_next ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv,
int  magic 
)
static
+ Here is the call graph for this function:

◆ JS_AddIntrinsicPromise()

void JS_AddIntrinsicPromise ( JSContext ctx)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ string_get_hex()

static int string_get_hex ( JSString p,
int  k,
int  n 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isURIReserved()

static int isURIReserved ( int  c)
static
+ Here is the caller graph for this function:

◆ hex_decode()

static int hex_decode ( JSContext ctx,
JSString p,
int  k 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_global_decodeURI()

static JSValue js_global_decodeURI ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv,
int  isComponent 
)
static
+ Here is the call graph for this function:

◆ isUnescaped()

static int isUnescaped ( int  c)
static
+ Here is the caller graph for this function:

◆ isURIUnescaped()

static int isURIUnescaped ( int  c,
int  isComponent 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ encodeURI_hex()

static int encodeURI_hex ( StringBuffer b,
int  c 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_global_encodeURI()

static JSValue js_global_encodeURI ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv,
int  isComponent 
)
static
+ Here is the call graph for this function:

◆ js_global_escape()

static JSValue js_global_escape ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ js_global_unescape()

static JSValue js_global_unescape ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ math_mod()

static int64_t math_mod ( int64_t  a,
int64_t  b 
)
static
+ Here is the caller graph for this function:

◆ floor_div()

static int64_t floor_div ( int64_t  a,
int64_t  b 
)
static
+ Here is the caller graph for this function:

◆ js_Date_parse()

static JSValue js_Date_parse ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_ThisTimeValue()

static __exception int JS_ThisTimeValue ( JSContext ctx,
double *  valp,
JSValueConst  this_val 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_SetThisTimeValue()

static JSValue JS_SetThisTimeValue ( JSContext ctx,
JSValueConst  this_val,
double  v 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ days_from_year()

static int64_t days_from_year ( int64_t  y)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ days_in_year()

static int64_t days_in_year ( int64_t  y)
static
+ Here is the caller graph for this function:

◆ year_from_days()

static int64_t year_from_days ( int64_t days)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ get_date_fields()

static __exception int get_date_fields ( JSContext ctx,
JSValueConst  obj,
double  fields[9],
int  is_local,
int  force 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ time_clip()

static double time_clip ( double  t)
static
+ Here is the caller graph for this function:

◆ set_date_fields()

static double set_date_fields ( double  fields[],
int  is_local 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ get_date_field()

static JSValue get_date_field ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv,
int  magic 
)
static
+ Here is the call graph for this function:

◆ set_date_field()

static JSValue set_date_field ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv,
int  magic 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ get_date_string()

static JSValue get_date_string ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv,
int  magic 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ date_now()

static int64_t date_now ( void  )
static
+ Here is the caller graph for this function:

◆ js_date_constructor()

static JSValue js_date_constructor ( JSContext ctx,
JSValueConst  new_target,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_Date_UTC()

static JSValue js_Date_UTC ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ string_skip_spaces()

static void string_skip_spaces ( JSString sp,
int *  pp 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ string_skip_non_spaces()

static void string_skip_non_spaces ( JSString sp,
int *  pp 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ string_get_digits()

static int string_get_digits ( JSString sp,
int *  pp,
int64_t pval 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ string_get_signed_digits()

static int string_get_signed_digits ( JSString sp,
int *  pp,
int64_t pval 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ string_get_fixed_width_digits()

static int string_get_fixed_width_digits ( JSString sp,
int *  pp,
int  n,
int64_t pval 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ string_get_milliseconds()

static int string_get_milliseconds ( JSString sp,
int *  pp,
int64_t pval 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ find_abbrev()

static int find_abbrev ( JSString sp,
int  p,
const char *  list,
int  count 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ string_get_month()

static int string_get_month ( JSString sp,
int *  pp,
int64_t pval 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_Date_now()

static JSValue js_Date_now ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ js_date_Symbol_toPrimitive()

static JSValue js_date_Symbol_toPrimitive ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ js_date_getTimezoneOffset()

static JSValue js_date_getTimezoneOffset ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ js_date_getTime()

static JSValue js_date_getTime ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ js_date_setTime()

static JSValue js_date_setTime ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ js_date_setYear()

static JSValue js_date_setYear ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ js_date_toJSON()

static JSValue js_date_toJSON ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ JS_AddIntrinsicDate()

void JS_AddIntrinsicDate ( JSContext ctx)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_AddIntrinsicEval()

void JS_AddIntrinsicEval ( JSContext ctx)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_AddIntrinsicBaseObjects()

void JS_AddIntrinsicBaseObjects ( JSContext ctx)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_array_buffer_free()

static void js_array_buffer_free ( JSRuntime rt,
void *  opaque,
void *  ptr 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_array_buffer_constructor2()

static JSValue js_array_buffer_constructor2 ( JSContext ctx,
JSValueConst  new_target,
uint64_t  len,
JSClassID  class_id 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_array_buffer_constructor1()

static JSValue js_array_buffer_constructor1 ( JSContext ctx,
JSValueConst  new_target,
uint64_t  len 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_NewArrayBuffer()

JSValue JS_NewArrayBuffer ( JSContext ctx,
uint8_t buf,
size_t  len,
JSFreeArrayBufferDataFunc free_func,
void *  opaque,
BOOL  is_shared 
)
+ Here is the call graph for this function:

◆ JS_NewArrayBufferCopy()

JSValue JS_NewArrayBufferCopy ( JSContext ctx,
const uint8_t buf,
size_t  len 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_array_buffer_constructor()

static JSValue js_array_buffer_constructor ( JSContext ctx,
JSValueConst  new_target,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_shared_array_buffer_constructor()

static JSValue js_shared_array_buffer_constructor ( JSContext ctx,
JSValueConst  new_target,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_array_buffer_finalizer()

static void js_array_buffer_finalizer ( JSRuntime rt,
JSValue  val 
)
static
+ Here is the call graph for this function:

◆ js_array_buffer_isView()

static JSValue js_array_buffer_isView ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ js_array_buffer_get_byteLength()

static JSValue js_array_buffer_get_byteLength ( JSContext ctx,
JSValueConst  this_val,
int  class_id 
)
static
+ Here is the call graph for this function:

◆ JS_DetachArrayBuffer()

void JS_DetachArrayBuffer ( JSContext ctx,
JSValueConst  obj 
)
+ Here is the call graph for this function:

◆ JS_GetArrayBuffer()

uint8_t* JS_GetArrayBuffer ( JSContext ctx,
size_t *  psize,
JSValueConst  obj 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_array_buffer_slice()

static JSValue js_array_buffer_slice ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv,
int  class_id 
)
static
+ Here is the call graph for this function:

◆ get_typed_array()

static JSObject* get_typed_array ( JSContext ctx,
JSValueConst  this_val,
int  is_dataview 
)
static
+ Here is the caller graph for this function:

◆ validate_typed_array()

static int validate_typed_array ( JSContext ctx,
JSValueConst  this_val 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_typed_array_get_length()

static JSValue js_typed_array_get_length ( JSContext ctx,
JSValueConst  this_val 
)
static
+ Here is the call graph for this function:

◆ js_typed_array_get_buffer()

static JSValue js_typed_array_get_buffer ( JSContext ctx,
JSValueConst  this_val,
int  is_dataview 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_typed_array_get_byteLength()

static JSValue js_typed_array_get_byteLength ( JSContext ctx,
JSValueConst  this_val,
int  is_dataview 
)
static
+ Here is the call graph for this function:

◆ js_typed_array_get_byteOffset()

static JSValue js_typed_array_get_byteOffset ( JSContext ctx,
JSValueConst  this_val,
int  is_dataview 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_GetTypedArrayBuffer()

JSValue JS_GetTypedArrayBuffer ( JSContext ctx,
JSValueConst  obj,
size_t *  pbyte_offset,
size_t *  pbyte_length,
size_t *  pbytes_per_element 
)
+ Here is the call graph for this function:

◆ js_typed_array_get_toStringTag()

static JSValue js_typed_array_get_toStringTag ( JSContext ctx,
JSValueConst  this_val 
)
static
+ Here is the call graph for this function:

◆ js_typed_array_set_internal()

static JSValue js_typed_array_set_internal ( JSContext ctx,
JSValueConst  dst,
JSValueConst  src,
JSValueConst  off 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_typed_array_set()

static JSValue js_typed_array_set ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ js_create_typed_array_iterator()

static JSValue js_create_typed_array_iterator ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv,
int  magic 
)
static
+ Here is the call graph for this function:

◆ js_typed_array_create()

static JSValue js_typed_array_create ( JSContext ctx,
JSValueConst  ctor,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_typed_array_from()

static JSValue js_typed_array_from ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ js_typed_array_of()

static JSValue js_typed_array_of ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ js_typed_array_copyWithin()

static JSValue js_typed_array_copyWithin ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ js_typed_array_fill()

static JSValue js_typed_array_fill ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ js_typed_array_find()

static JSValue js_typed_array_find ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv,
int  findIndex 
)
static
+ Here is the call graph for this function:

◆ js_typed_array_indexOf()

static JSValue js_typed_array_indexOf ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv,
int  special 
)
static
+ Here is the call graph for this function:

◆ js_typed_array_join()

static JSValue js_typed_array_join ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv,
int  toLocaleString 
)
static
+ Here is the call graph for this function:

◆ js_typed_array_reverse()

static JSValue js_typed_array_reverse ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ js_typed_array_slice()

static JSValue js_typed_array_slice ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ js_typed_array_subarray()

static JSValue js_typed_array_subarray ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ js_cmp_doubles()

static int js_cmp_doubles ( double  x,
double  y 
)
static
+ Here is the caller graph for this function:

◆ js_TA_cmp_int8()

static int js_TA_cmp_int8 ( const void *  a,
const void *  b,
void *  opaque 
)
static
+ Here is the caller graph for this function:

◆ js_TA_cmp_uint8()

static int js_TA_cmp_uint8 ( const void *  a,
const void *  b,
void *  opaque 
)
static
+ Here is the caller graph for this function:

◆ js_TA_cmp_int16()

static int js_TA_cmp_int16 ( const void *  a,
const void *  b,
void *  opaque 
)
static
+ Here is the caller graph for this function:

◆ js_TA_cmp_uint16()

static int js_TA_cmp_uint16 ( const void *  a,
const void *  b,
void *  opaque 
)
static
+ Here is the caller graph for this function:

◆ js_TA_cmp_int32()

static int js_TA_cmp_int32 ( const void *  a,
const void *  b,
void *  opaque 
)
static
+ Here is the caller graph for this function:

◆ js_TA_cmp_uint32()

static int js_TA_cmp_uint32 ( const void *  a,
const void *  b,
void *  opaque 
)
static
+ Here is the caller graph for this function:

◆ js_TA_cmp_float32()

static int js_TA_cmp_float32 ( const void *  a,
const void *  b,
void *  opaque 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_TA_cmp_float64()

static int js_TA_cmp_float64 ( const void *  a,
const void *  b,
void *  opaque 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_TA_get_int8()

static JSValue js_TA_get_int8 ( JSContext ctx,
const void *  a 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_TA_get_uint8()

static JSValue js_TA_get_uint8 ( JSContext ctx,
const void *  a 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_TA_get_int16()

static JSValue js_TA_get_int16 ( JSContext ctx,
const void *  a 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_TA_get_uint16()

static JSValue js_TA_get_uint16 ( JSContext ctx,
const void *  a 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_TA_get_int32()

static JSValue js_TA_get_int32 ( JSContext ctx,
const void *  a 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_TA_get_uint32()

static JSValue js_TA_get_uint32 ( JSContext ctx,
const void *  a 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_TA_get_float32()

static JSValue js_TA_get_float32 ( JSContext ctx,
const void *  a 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_TA_get_float64()

static JSValue js_TA_get_float64 ( JSContext ctx,
const void *  a 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_TA_cmp_generic()

static int js_TA_cmp_generic ( const void *  a,
const void *  b,
void *  opaque 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_typed_array_sort()

static JSValue js_typed_array_sort ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ js_typed_array_base_constructor()

static JSValue js_typed_array_base_constructor ( JSContext ctx,
JSValueConst  this_val,
int  argc,
JSValueConst argv 
)
static
+ Here is the caller graph for this function:

◆ typed_array_init()

static int typed_array_init ( JSContext ctx,
JSValueConst  obj,
JSValue  buffer,
uint64_t  offset,
uint64_t  len 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_array_from_iterator()

static JSValue js_array_from_iterator ( JSContext ctx,
uint32_t plen,
JSValueConst  obj,
JSValueConst  method 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_typed_array_constructor_obj()

static JSValue js_typed_array_constructor_obj ( JSContext ctx,
JSValueConst  new_target,
JSValueConst  obj,
int  classid 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_typed_array_constructor_ta()

static JSValue js_typed_array_constructor_ta ( JSContext ctx,
JSValueConst  new_target,
JSValueConst  src_obj,
int  classid 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_typed_array_finalizer()

static void js_typed_array_finalizer ( JSRuntime rt,
JSValue  val 
)
static
+ Here is the call graph for this function:

◆ js_typed_array_mark()

static void js_typed_array_mark ( JSRuntime rt,
JSValueConst  val,
JS_MarkFunc mark_func 
)
static
+ Here is the call graph for this function:

◆ js_dataview_constructor()

static JSValue js_dataview_constructor ( JSContext ctx,
JSValueConst  new_target,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_dataview_getValue()

static JSValue js_dataview_getValue ( JSContext ctx,
JSValueConst  this_obj,
int  argc,
JSValueConst argv,
int  class_id 
)
static
+ Here is the call graph for this function:

◆ js_dataview_setValue()

static JSValue js_dataview_setValue ( JSContext ctx,
JSValueConst  this_obj,
int  argc,
JSValueConst argv,
int  class_id 
)
static
+ Here is the call graph for this function:

◆ js_atomics_get_ptr()

static void* js_atomics_get_ptr ( JSContext ctx,
JSArrayBuffer **  pabuf,
int *  psize_log2,
JSClassID pclass_id,
JSValueConst  obj,
JSValueConst  idx_val,
int  is_waitable 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ js_atomics_op()

static JSValue js_atomics_op ( JSContext ctx,
JSValueConst  this_obj,
int  argc,
JSValueConst argv,
int  op 
)
static
+ Here is the call graph for this function:

◆ js_atomics_store()

static JSValue js_atomics_store ( JSContext ctx,
JSValueConst  this_obj,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ js_atomics_isLockFree()

static JSValue js_atomics_isLockFree ( JSContext ctx,
JSValueConst  this_obj,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ js_atomics_wait()

static JSValue js_atomics_wait ( JSContext ctx,
JSValueConst  this_obj,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ js_atomics_notify()

static JSValue js_atomics_notify ( JSContext ctx,
JSValueConst  this_obj,
int  argc,
JSValueConst argv 
)
static
+ Here is the call graph for this function:

◆ JS_AddIntrinsicAtomics()

void JS_AddIntrinsicAtomics ( JSContext ctx)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_AddIntrinsicTypedArrays()

void JS_AddIntrinsicTypedArrays ( JSContext ctx)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JS_IsArrayBuffer()

int JS_IsArrayBuffer ( JSContext ctx,
JSValueConst  val 
)

◆ JS_SwitchClassID()

int JS_SwitchClassID ( JSValue  obj,
JSClassID  class_id 
)

Variable Documentation

◆ typed_array_size_log2

static uint8_t const typed_array_size_log2
static
Initial value:
= {
0, 0, 0, 1, 1, 2, 2,
2, 3
}

◆ js_atom_init

const char js_atom_init[]
static
Initial value:
=
#define DEF(name, str)

◆ JSStrictEqModeEnum

JSStrictEqModeEnum

◆ js_arguments_exotic_methods

static const JSClassExoticMethods js_arguments_exotic_methods
static
Initial value:
= {
.define_own_property = js_arguments_define_own_property,
}
static int js_arguments_define_own_property(JSContext *ctx, JSValueConst this_obj, JSAtom prop, JSValueConst val, JSValueConst getter, JSValueConst setter, int flags)
Definition: quickjs.c:15021

◆ js_string_exotic_methods

static const JSClassExoticMethods js_string_exotic_methods
static
Initial value:
= {
.get_own_property = js_string_get_own_property,
.define_own_property = js_string_define_own_property,
.delete_property = js_string_delete_property,
}
static int js_string_define_own_property(JSContext *ctx, JSValueConst this_obj, JSAtom prop, JSValueConst val, JSValueConst getter, JSValueConst setter, int flags)
Definition: quickjs.c:40133
static int js_string_delete_property(JSContext *ctx, JSValueConst obj, JSAtom prop)
Definition: quickjs.c:40173
static int js_string_get_own_property(JSContext *ctx, JSPropertyDescriptor *desc, JSValueConst obj, JSAtom prop)
Definition: quickjs.c:40101

◆ js_proxy_exotic_methods

static const JSClassExoticMethods js_proxy_exotic_methods
static
Initial value:
= {
.get_own_property = js_proxy_get_own_property,
.define_own_property = js_proxy_define_own_property,
.delete_property = js_proxy_delete_property,
.get_own_property_names = js_proxy_get_own_property_names,
.has_property = js_proxy_has,
.get_property = js_proxy_get,
.set_property = js_proxy_set,
}
static int js_proxy_has(JSContext *ctx, JSValueConst obj, JSAtom atom)
Definition: quickjs.c:44668
static int js_proxy_get_own_property_names(JSContext *ctx, JSPropertyEnum **ptab, uint32_t *plen, JSValueConst obj)
Definition: quickjs.c:45115
static JSValue js_proxy_get(JSContext *ctx, JSValueConst obj, JSAtom atom, JSValueConst receiver)
Definition: quickjs.c:44712
static int js_proxy_define_own_property(JSContext *ctx, JSValueConst obj, JSAtom prop, JSValueConst val, JSValueConst getter, JSValueConst setter, int flags)
Definition: quickjs.c:44953
static int js_proxy_get_own_property(JSContext *ctx, JSPropertyDescriptor *pdesc, JSValueConst obj, JSAtom prop)
Definition: quickjs.c:44856
static int js_proxy_delete_property(JSContext *ctx, JSValueConst obj, JSAtom atom)
Definition: quickjs.c:45053
static int js_proxy_set(JSContext *ctx, JSValueConst obj, JSAtom atom, JSValueConst value, JSValueConst receiver, int flags)
Definition: quickjs.c:44760

◆ js_module_ns_exotic_methods

static const JSClassExoticMethods js_module_ns_exotic_methods
static
Initial value:
= {
.has_property = js_module_ns_has,
}
static int js_module_ns_has(JSContext *ctx, JSValueConst obj, JSAtom atom)
Definition: quickjs.c:27685

◆ js_class_id_alloc

JSClassID js_class_id_alloc = JS_CLASS_INIT_COUNT
static

◆ js_std_class_def

JSClassShortDef const js_std_class_def[]
static

◆ def_malloc_funcs

const JSMallocFunctions def_malloc_funcs
static
Initial value:
= {
malloc_usable_size,
}
static void * js_def_malloc(JSMallocState *s, size_t size)
Definition: quickjs.c:1715
static void * js_def_realloc(JSMallocState *s, void *ptr, size_t size)
Definition: quickjs.c:1744
static void js_def_free(JSMallocState *s, void *ptr)
Definition: quickjs.c:1734

◆ js_autoinit_func_table

JSAutoInitFunc* js_autoinit_func_table[]
static
Initial value:
= {
}
static JSValue js_module_ns_autoinit(JSContext *ctx, JSObject *p, JSAtom atom, void *opaque)
Definition: quickjs.c:27719
static JSValue JS_InstantiateFunctionListItem2(JSContext *ctx, JSObject *p, JSAtom atom, void *opaque)
Definition: quickjs.c:36025
static JSValue js_instantiate_prototype(JSContext *ctx, JSObject *p, JSAtom atom, void *opaque)
Definition: quickjs.c:15885

◆ func_kind_to_class_id

const uint16_t func_kind_to_class_id[]
static
Initial value:
= {
}
@ JS_FUNC_ASYNC_GENERATOR
Definition: quickjs.c:596
@ JS_FUNC_ASYNC
Definition: quickjs.c:595
@ JS_FUNC_GENERATOR
Definition: quickjs.c:594
@ JS_FUNC_NORMAL
Definition: quickjs.c:593
@ JS_CLASS_BYTECODE_FUNCTION
Definition: quickjs.c:141
@ JS_CLASS_GENERATOR_FUNCTION
Definition: quickjs.c:144
@ JS_CLASS_ASYNC_FUNCTION
Definition: quickjs.c:184
@ JS_CLASS_ASYNC_GENERATOR_FUNCTION
Definition: quickjs.c:188

◆ opcode_info

const JSOpCode opcode_info[OP_COUNT+(OP_TEMP_END - OP_TEMP_START)]
static
Initial value:
= {
#define FMT(f)
#define DEF(id, size, n_pop, n_push, f)
}

◆ js_object_funcs

const JSCFunctionListEntry js_object_funcs[]
static

◆ js_object_proto_funcs

const JSCFunctionListEntry js_object_proto_funcs[]
static
Initial value:
= {
JS_CFUNC_DEF("toString", 0, js_object_toString ),
JS_CFUNC_DEF("toLocaleString", 0, js_object_toLocaleString ),
JS_CFUNC_DEF("hasOwnProperty", 1, js_object_hasOwnProperty ),
JS_CFUNC_DEF("isPrototypeOf", 1, js_object_isPrototypeOf ),
JS_CFUNC_DEF("propertyIsEnumerable", 1, js_object_propertyIsEnumerable ),
JS_CFUNC_MAGIC_DEF("__defineGetter__", 2, js_object___defineGetter__, 0 ),
JS_CFUNC_MAGIC_DEF("__defineSetter__", 2, js_object___defineGetter__, 1 ),
JS_CFUNC_MAGIC_DEF("__lookupGetter__", 1, js_object___lookupGetter__, 0 ),
JS_CFUNC_MAGIC_DEF("__lookupSetter__", 1, js_object___lookupGetter__, 1 ),
}
static JSValue js_object_isPrototypeOf(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
Definition: quickjs.c:37346
static JSValue js_object_get___proto__(JSContext *ctx, JSValueConst this_val)
Definition: quickjs.c:37321
static JSValue js_object___lookupGetter__(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv, int setter)
Definition: quickjs.c:37417
static JSValue js_object_set___proto__(JSContext *ctx, JSValueConst this_val, JSValueConst proto)
Definition: quickjs.c:37333
static JSValue js_object_propertyIsEnumerable(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
Definition: quickjs.c:37386
static JSValue js_object___defineGetter__(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv, int magic)
Definition: quickjs.c:36591
static JSValue js_object_hasOwnProperty(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
Definition: quickjs.c:36897
static JSValue js_object_toLocaleString(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
Definition: quickjs.c:36984
static JSValue js_object_toString(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
Definition: quickjs.c:36929
static JSValue js_object_valueOf(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
Definition: quickjs.c:36923
#define JS_CFUNC_MAGIC_DEF(name, length, func1, magic)
Definition: quickjs.h:1043
#define JS_CFUNC_DEF(name, length, func1)
Definition: quickjs.h:1042
#define JS_CGETSET_DEF(name, fgetter, fsetter)
Definition: quickjs.h:1046

◆ js_function_proto_funcs

const JSCFunctionListEntry js_function_proto_funcs[]
static
Initial value:
= {
JS_CFUNC_DEF("[Symbol.hasInstance]", 1, js_function_hasInstance ),
}
static JSValue js_function_call(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
Definition: quickjs.c:37695
static JSValue js_function_apply(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv, int magic)
Definition: quickjs.c:37668
static JSValue js_function_proto_fileName(JSContext *ctx, JSValueConst this_val)
Definition: quickjs.c:15001
static JSValue js_function_toString(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
Definition: quickjs.c:37790
static JSValue js_function_hasInstance(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
Definition: quickjs.c:37834
static JSValue js_function_bind(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
Definition: quickjs.c:37705
static JSValue js_function_proto_lineNumber(JSContext *ctx, JSValueConst this_val)
Definition: quickjs.c:15011

◆ js_error_proto_funcs

const JSCFunctionListEntry js_error_proto_funcs[]
static
Initial value:
= {
JS_CFUNC_DEF("toString", 0, js_error_toString ),
}
static JSValue js_error_toString(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
Definition: quickjs.c:37955
#define JS_PROP_STRING_DEF(name, cstr, prop_flags)
Definition: quickjs.h:1048
#define JS_PROP_WRITABLE
Definition: quickjs.h:274
#define JS_PROP_CONFIGURABLE
Definition: quickjs.h:273

◆ js_array_funcs

const JSCFunctionListEntry js_array_funcs[]
static
Initial value:
= {
JS_CFUNC_DEF("isArray", 1, js_array_isArray ),
JS_CGETSET_DEF("[Symbol.species]", js_get_this, NULL ),
}
static JSValue js_array_isArray(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
Definition: quickjs.c:38213
static JSValue js_array_from(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
Definition: quickjs.c:38072
static JSValue js_get_this(JSContext *ctx, JSValueConst this_val)
Definition: quickjs.c:38224
static JSValue js_array_of(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
Definition: quickjs.c:38185

◆ js_iterator_proto_funcs

const JSCFunctionListEntry js_iterator_proto_funcs[]
static
Initial value:
= {
JS_CFUNC_DEF("[Symbol.iterator]", 0, js_iterator_proto_iterator ),
}
static JSValue js_iterator_proto_iterator(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
Definition: quickjs.c:39689

◆ js_array_proto_funcs

const JSCFunctionListEntry js_array_proto_funcs[]
static

◆ js_array_iterator_proto_funcs

const JSCFunctionListEntry js_array_iterator_proto_funcs[]
static
Initial value:
= {
JS_PROP_STRING_DEF("[Symbol.toStringTag]", "Array Iterator", JS_PROP_CONFIGURABLE ),
}
static JSValue js_array_iterator_next(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv, BOOL *pdone, int magic)
Definition: quickjs.c:39628
#define JS_ITERATOR_NEXT_DEF(name, length, func1, magic)
Definition: quickjs.h:1045

◆ js_number_funcs

const JSCFunctionListEntry js_number_funcs[]
static
Initial value:
= {
JS_ALIAS_BASE_DEF("parseInt", "parseInt", 0 ),
JS_ALIAS_BASE_DEF("parseFloat", "parseFloat", 0 ),
JS_CFUNC_DEF("isFinite", 1, js_number_isFinite ),
JS_CFUNC_DEF("isInteger", 1, js_number_isInteger ),
JS_CFUNC_DEF("isSafeInteger", 1, js_number_isSafeInteger ),
JS_PROP_DOUBLE_DEF("MAX_VALUE", 1.7976931348623157e+308, 0 ),
JS_PROP_DOUBLE_DEF("MIN_VALUE", 5e-324, 0 ),
JS_PROP_DOUBLE_DEF("NaN", NAN, 0 ),
JS_PROP_DOUBLE_DEF("NEGATIVE_INFINITY", -INFINITY, 0 ),
JS_PROP_DOUBLE_DEF("POSITIVE_INFINITY", INFINITY, 0 ),
JS_PROP_DOUBLE_DEF("EPSILON", 2.220446049250313e-16, 0 ),
JS_PROP_DOUBLE_DEF("MAX_SAFE_INTEGER", 9007199254740991.0, 0 ),
JS_PROP_DOUBLE_DEF("MIN_SAFE_INTEGER", -9007199254740991.0, 0 ),
}
static JSValue js_number_isFinite(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
Definition: quickjs.c:39811
static JSValue js_number_isInteger(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
Definition: quickjs.c:39819
static JSValue js_number_isSafeInteger(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
Definition: quickjs.c:39830
static JSValue js_number_isNaN(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
Definition: quickjs.c:39803
#define JS_PROP_DOUBLE_DEF(name, val, prop_flags)
Definition: quickjs.h:1051
#define JS_ALIAS_BASE_DEF(name, from, base)
Definition: quickjs.h:1055

◆ js_number_proto_funcs

const JSCFunctionListEntry js_number_proto_funcs[]
static
Initial value:
= {
JS_CFUNC_DEF("toExponential", 1, js_number_toExponential ),
JS_CFUNC_DEF("toPrecision", 1, js_number_toPrecision ),
JS_CFUNC_MAGIC_DEF("toLocaleString", 0, js_number_toString, 1 ),
}
static JSValue js_number_valueOf(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
Definition: quickjs.c:39876
static JSValue js_number_toFixed(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
Definition: quickjs.c:39919
static JSValue js_number_toPrecision(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
Definition: quickjs.c:39971
static JSValue js_number_toString(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv, int magic)
Definition: quickjs.c:39894
static JSValue js_number_toExponential(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
Definition: quickjs.c:39942

◆ js_boolean_proto_funcs

const JSCFunctionListEntry js_boolean_proto_funcs[]
static
Initial value:
= {
}
static JSValue js_boolean_valueOf(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
Definition: quickjs.c:40088
static JSValue js_boolean_toString(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
Definition: quickjs.c:40078

◆ js_string_funcs

const JSCFunctionListEntry js_string_funcs[]
static
Initial value:
= {
JS_CFUNC_DEF("fromCharCode", 1, js_string_fromCharCode ),
JS_CFUNC_DEF("fromCodePoint", 1, js_string_fromCodePoint ),
}
static JSValue js_string_fromCharCode(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
Definition: quickjs.c:40238
static JSValue js_string_raw(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
Definition: quickjs.c:40290
static JSValue js_string_fromCodePoint(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
Definition: quickjs.c:40256

◆ js_string_proto_funcs

const JSCFunctionListEntry js_string_proto_funcs[]
static

◆ js_string_iterator_proto_funcs

const JSCFunctionListEntry js_string_iterator_proto_funcs[]
static
Initial value:
= {
JS_PROP_STRING_DEF("[Symbol.toStringTag]", "String Iterator", JS_PROP_CONFIGURABLE ),
}
static JSValue js_string_iterator_next(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv, BOOL *pdone, int magic)
Definition: quickjs.c:41556

◆ js_string_proto_normalize

const JSCFunctionListEntry js_string_proto_normalize[]
static
Initial value:
= {
JS_CFUNC_DEF("normalize", 0, js_string_normalize ),
}
static JSValue js_string_normalize(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
Definition: quickjs.c:41447

◆ js_math_funcs

const JSCFunctionListEntry js_math_funcs[]
static

◆ js_math_obj

const JSCFunctionListEntry js_math_obj[]
static
Initial value:
= {
}
#define countof(x)
Definition: cutils.h:61
static const JSCFunctionListEntry js_math_funcs[]
Definition: quickjs.c:41980
#define JS_OBJECT_DEF(name, tab, len, prop_flags)
Definition: quickjs.h:1053

◆ js_regexp_funcs

const JSCFunctionListEntry js_regexp_funcs[]
static
Initial value:
= {
JS_CGETSET_DEF("[Symbol.species]", js_get_this, NULL ),
}

◆ js_regexp_proto_funcs

const JSCFunctionListEntry js_regexp_proto_funcs[]
static
Initial value:
= {
JS_CGETSET_MAGIC_DEF("ignoreCase", js_regexp_get_flag, NULL, 2 ),
JS_CGETSET_MAGIC_DEF("multiline", js_regexp_get_flag, NULL, 4 ),
JS_CGETSET_MAGIC_DEF("unicode", js_regexp_get_flag, NULL, 16 ),
JS_CFUNC_DEF("toString", 0, js_regexp_toString ),
JS_CFUNC_DEF("[Symbol.replace]", 2, js_regexp_Symbol_replace ),
JS_CFUNC_DEF("[Symbol.match]", 1, js_regexp_Symbol_match ),
JS_CFUNC_DEF("[Symbol.matchAll]", 1, js_regexp_Symbol_matchAll ),
JS_CFUNC_DEF("[Symbol.search]", 1, js_regexp_Symbol_search ),
JS_CFUNC_DEF("[Symbol.split]", 2, js_regexp_Symbol_split ),
}
static JSValue js_regexp_get_source(JSContext *ctx, JSValueConst this_val)
Definition: quickjs.c:42434
static JSValue js_regexp_Symbol_match(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
Definition: quickjs.c:42872
static JSValue js_regexp_Symbol_replace(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
Definition: quickjs.c:43180
static JSValue js_regexp_Symbol_split(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
Definition: quickjs.c:43421
static JSValue js_regexp_toString(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
Definition: quickjs.c:42564
static JSValue js_regexp_get_flag(JSContext *ctx, JSValueConst this_val, int mask)
Definition: quickjs.c:42500
static JSValue js_regexp_get_flags(JSContext *ctx, JSValueConst this_val)
Definition: quickjs.c:42520
static JSValue js_regexp_exec(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
Definition: quickjs.c:42602
static JSValue js_regexp_test(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
Definition: quickjs.c:42858
static JSValue js_regexp_Symbol_matchAll(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
Definition: quickjs.c:43032
static JSValue js_regexp_Symbol_search(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
Definition: quickjs.c:43363
static JSValue js_regexp_compile(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
Definition: quickjs.c:42369
#define JS_CGETSET_MAGIC_DEF(name, fgetter, fsetter, magic)
Definition: quickjs.h:1047

◆ js_regexp_string_iterator_proto_funcs

const JSCFunctionListEntry js_regexp_string_iterator_proto_funcs[]
static
Initial value:
= {
JS_PROP_STRING_DEF("[Symbol.toStringTag]", "RegExp String Iterator", JS_PROP_CONFIGURABLE ),
}
static JSValue js_regexp_string_iterator_next(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv, BOOL *pdone, int magic)
Definition: quickjs.c:42978

◆ js_json_funcs

const JSCFunctionListEntry js_json_funcs[]
static
Initial value:
= {
JS_CFUNC_DEF("parse", 2, js_json_parse ),
JS_CFUNC_DEF("stringify", 3, js_json_stringify ),
JS_PROP_STRING_DEF("[Symbol.toStringTag]", "JSON", JS_PROP_CONFIGURABLE ),
}
static JSValue js_json_parse(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
Definition: quickjs.c:43843
static JSValue js_json_stringify(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
Definition: quickjs.c:44284

◆ js_json_obj

const JSCFunctionListEntry js_json_obj[]
static
Initial value:
= {
}
static const JSCFunctionListEntry js_json_funcs[]
Definition: quickjs.c:44291

◆ js_reflect_funcs

const JSCFunctionListEntry js_reflect_funcs[]
static
Initial value:
= {
JS_CFUNC_MAGIC_DEF("defineProperty", 3, js_object_defineProperty, 1 ),
JS_CFUNC_DEF("deleteProperty", 2, js_reflect_deleteProperty ),
JS_CFUNC_MAGIC_DEF("getOwnPropertyDescriptor", 2, js_object_getOwnPropertyDescriptor, 1 ),
JS_CFUNC_MAGIC_DEF("getPrototypeOf", 1, js_object_getPrototypeOf, 1 ),
JS_CFUNC_MAGIC_DEF("isExtensible", 1, js_object_isExtensible, 1 ),
JS_CFUNC_MAGIC_DEF("preventExtensions", 1, js_object_preventExtensions, 1 ),
JS_CFUNC_DEF("setPrototypeOf", 2, js_reflect_setPrototypeOf ),
JS_PROP_STRING_DEF("[Symbol.toStringTag]", "Reflect", JS_PROP_CONFIGURABLE ),
}
static JSValue js_reflect_ownKeys(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
Definition: quickjs.c:44444
static JSValue js_reflect_setPrototypeOf(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
Definition: quickjs.c:44433
static JSValue js_reflect_construct(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
Definition: quickjs.c:44315
static JSValue js_object_getOwnPropertyDescriptor(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv, int magic)
Definition: quickjs.c:36637
static JSValue js_reflect_get(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
Definition: quickjs.c:44360
static JSValue js_reflect_apply(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
Definition: quickjs.c:44309
static JSValue js_object_preventExtensions(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv, int reflect)
Definition: quickjs.c:36872
static JSValue js_reflect_has(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
Definition: quickjs.c:44383
static JSValue js_object_defineProperty(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv, int magic)
Definition: quickjs.c:36548
static JSValue js_object_getPrototypeOf(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv, int magic)
Definition: quickjs.c:36521
static JSValue js_object_isExtensible(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv, int reflect)
Definition: quickjs.c:36852
static JSValue js_reflect_deleteProperty(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
Definition: quickjs.c:44339
static JSValue js_reflect_set(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
Definition: quickjs.c:44405

◆ js_reflect_obj

const JSCFunctionListEntry js_reflect_obj[]
static
Initial value:
= {
}
static const JSCFunctionListEntry js_reflect_funcs[]
Definition: quickjs.c:44454

◆ js_proxy_funcs

const JSCFunctionListEntry js_proxy_funcs[]
static
Initial value:
= {
JS_CFUNC_DEF("revocable", 2, js_proxy_revocable ),
}
static JSValue js_proxy_revocable(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
Definition: quickjs.c:45375

◆ js_proxy_class_def

const JSClassShortDef js_proxy_class_def[]
static
Initial value:
= {
{ JS_ATOM_Object, js_proxy_finalizer, js_proxy_mark },
}
static void js_proxy_mark(JSRuntime *rt, JSValueConst val, JS_MarkFunc *mark_func)
Definition: quickjs.c:44487
static void js_proxy_finalizer(JSRuntime *rt, JSValue val)
Definition: quickjs.c:44477

◆ js_symbol_proto_funcs

const JSCFunctionListEntry js_symbol_proto_funcs[]
static
Initial value:
= {
JS_CFUNC_DEF("toString", 0, js_symbol_toString ),
JS_CFUNC_DEF("[Symbol.toPrimitive]", 1, js_symbol_valueOf ),
JS_PROP_STRING_DEF("[Symbol.toStringTag]", "Symbol", JS_PROP_CONFIGURABLE ),
JS_CGETSET_DEF("description", js_symbol_get_description, NULL ),
}
static JSValue js_symbol_toString(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
Definition: quickjs.c:45464
static JSValue js_symbol_valueOf(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
Definition: quickjs.c:45477
static JSValue js_symbol_get_description(JSContext *ctx, JSValueConst this_val)
Definition: quickjs.c:45483

◆ js_symbol_funcs

const JSCFunctionListEntry js_symbol_funcs[]
static
Initial value:
= {
}
static JSValue js_symbol_keyFor(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
Definition: quickjs.c:45521
static JSValue js_symbol_for(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
Definition: quickjs.c:45510

◆ js_map_funcs

const JSCFunctionListEntry js_map_funcs[]
static
Initial value:
= {
JS_CGETSET_DEF("[Symbol.species]", js_get_this, NULL ),
}

◆ js_map_proto_funcs

const JSCFunctionListEntry js_map_proto_funcs[]
static
Initial value:
= {
JS_CFUNC_MAGIC_DEF("delete", 1, js_map_delete, 0 ),
JS_CFUNC_MAGIC_DEF("clear", 0, js_map_clear, 0 ),
JS_CFUNC_MAGIC_DEF("forEach", 1, js_map_forEach, 0 ),
JS_ALIAS_DEF("[Symbol.iterator]", "entries" ),
JS_PROP_STRING_DEF("[Symbol.toStringTag]", "Map", JS_PROP_CONFIGURABLE ),
}
@ JS_ITERATOR_KIND_VALUE
Definition: quickjs.c:649
@ JS_ITERATOR_KIND_KEY
Definition: quickjs.c:648
@ JS_ITERATOR_KIND_KEY_AND_VALUE
Definition: quickjs.c:650
static JSValue js_map_forEach(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv, int magic)
Definition: quickjs.c:45986
static JSValue js_map_clear(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv, int magic)
Definition: quickjs.c:45962
static JSValue js_map_get(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv, int magic)
Definition: quickjs.c:45914
static JSValue js_create_map_iterator(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv, int magic)
Definition: quickjs.c:46122
static JSValue js_map_has(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv, int magic)
Definition: quickjs.c:45931
static JSValue js_map_set(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv, int magic)
Definition: quickjs.c:45886
static JSValue js_map_get_size(JSContext *ctx, JSValueConst this_val, int magic)
Definition: quickjs.c:45978
static JSValue js_map_delete(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv, int magic)
Definition: quickjs.c:45945
#define JS_ALIAS_DEF(name, from)
Definition: quickjs.h:1054

◆ js_map_iterator_proto_funcs

const JSCFunctionListEntry js_map_iterator_proto_funcs[]
static
Initial value:
= {
JS_PROP_STRING_DEF("[Symbol.toStringTag]", "Map Iterator", JS_PROP_CONFIGURABLE ),
}
static JSValue js_map_iterator_next(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv, BOOL *pdone, int magic)
Definition: quickjs.c:46152

◆ js_set_proto_funcs

const JSCFunctionListEntry js_set_proto_funcs[]
static
Initial value:
= {
JS_ALIAS_DEF("keys", "values" ),
JS_ALIAS_DEF("[Symbol.iterator]", "values" ),
JS_PROP_STRING_DEF("[Symbol.toStringTag]", "Set", JS_PROP_CONFIGURABLE ),
}
#define MAGIC_SET
Definition: quickjs.c:45562

◆ js_set_iterator_proto_funcs

const JSCFunctionListEntry js_set_iterator_proto_funcs[]
static
Initial value:
= {
JS_PROP_STRING_DEF("[Symbol.toStringTag]", "Set Iterator", JS_PROP_CONFIGURABLE ),
}

◆ js_weak_map_proto_funcs

const JSCFunctionListEntry js_weak_map_proto_funcs[]
static
Initial value:
= {
JS_PROP_STRING_DEF("[Symbol.toStringTag]", "WeakMap", JS_PROP_CONFIGURABLE ),
}
#define MAGIC_WEAK
Definition: quickjs.c:45563

◆ js_weak_set_proto_funcs

const JSCFunctionListEntry js_weak_set_proto_funcs[]
static
Initial value:

◆ js_map_proto_funcs_ptr

const JSCFunctionListEntry* const js_map_proto_funcs_ptr[6]
static
Initial value:
= {
}
static const JSCFunctionListEntry js_set_proto_funcs[]
Definition: quickjs.c:46241
static const JSCFunctionListEntry js_map_proto_funcs[]
Definition: quickjs.c:46221
static const JSCFunctionListEntry js_map_iterator_proto_funcs[]
Definition: quickjs.c:46236
static const JSCFunctionListEntry js_weak_map_proto_funcs[]
Definition: quickjs.c:46260
static const JSCFunctionListEntry js_set_iterator_proto_funcs[]
Definition: quickjs.c:46255
static const JSCFunctionListEntry js_weak_set_proto_funcs[]
Definition: quickjs.c:46268

◆ js_map_proto_funcs_count

◆ js_generator_function_proto_funcs

const JSCFunctionListEntry js_generator_function_proto_funcs[]
static
Initial value:
= {
JS_PROP_STRING_DEF("[Symbol.toStringTag]", "GeneratorFunction", JS_PROP_CONFIGURABLE),
}

◆ js_generator_proto_funcs

const JSCFunctionListEntry js_generator_proto_funcs[]
static
Initial value:
= {
JS_PROP_STRING_DEF("[Symbol.toStringTag]", "Generator", JS_PROP_CONFIGURABLE),
}
#define GEN_MAGIC_NEXT
Definition: quickjs.c:19052
#define GEN_MAGIC_RETURN
Definition: quickjs.c:19053
#define GEN_MAGIC_THROW
Definition: quickjs.c:19054
static JSValue js_generator_next(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv, BOOL *pdone, int magic)
Definition: quickjs.c:19056

◆ js_promise_funcs

const JSCFunctionListEntry js_promise_funcs[]
static
Initial value:
= {
JS_CGETSET_DEF("[Symbol.species]", js_get_this, NULL),
}
static JSValue js_promise_resolve(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv, int magic)
Definition: quickjs.c:46780
static JSValue js_promise_race(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
Definition: quickjs.c:47083
#define PROMISE_MAGIC_allSettled
Definition: quickjs.c:46860
static JSValue js_promise_all(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv, int magic)
Definition: quickjs.c:46934
#define PROMISE_MAGIC_all
Definition: quickjs.c:46859
#define PROMISE_MAGIC_any
Definition: quickjs.c:46861

◆ js_promise_proto_funcs

const JSCFunctionListEntry js_promise_proto_funcs[]
static
Initial value:
= {
JS_PROP_STRING_DEF("[Symbol.toStringTag]", "Promise", JS_PROP_CONFIGURABLE ),
}
static JSValue js_promise_catch(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
Definition: quickjs.c:47236
static JSValue js_promise_finally(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
Definition: quickjs.c:47290
static JSValue js_promise_then(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
Definition: quickjs.c:47207

◆ js_async_function_proto_funcs

const JSCFunctionListEntry js_async_function_proto_funcs[]
static
Initial value:
= {
JS_PROP_STRING_DEF("[Symbol.toStringTag]", "AsyncFunction", JS_PROP_CONFIGURABLE ),
}

◆ js_async_iterator_proto_funcs

const JSCFunctionListEntry js_async_iterator_proto_funcs[]
static
Initial value:
= {
JS_CFUNC_DEF("[Symbol.asyncIterator]", 0, js_iterator_proto_iterator ),
}

◆ js_async_from_sync_iterator_proto_funcs

const JSCFunctionListEntry js_async_from_sync_iterator_proto_funcs[]
static
Initial value:
= {
}
static JSValue js_async_from_sync_iterator_next(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv, int magic)
Definition: quickjs.c:47432

◆ js_async_generator_function_proto_funcs

const JSCFunctionListEntry js_async_generator_function_proto_funcs[]
static
Initial value:
= {
JS_PROP_STRING_DEF("[Symbol.toStringTag]", "AsyncGeneratorFunction", JS_PROP_CONFIGURABLE ),
}

◆ js_async_generator_proto_funcs

const JSCFunctionListEntry js_async_generator_proto_funcs[]
static
Initial value:
= {
JS_PROP_STRING_DEF("[Symbol.toStringTag]", "AsyncGenerator", JS_PROP_CONFIGURABLE ),
}
static JSValue js_async_generator_next(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv, int magic)
Definition: quickjs.c:19715

◆ js_async_class_def

JSClassShortDef const js_async_class_def[]
static
Initial value:
= {
{ JS_ATOM_Promise, js_promise_finalizer, js_promise_mark },
{ JS_ATOM_AsyncGeneratorFunction, js_bytecode_function_finalizer, js_bytecode_function_mark },
}
static void js_async_function_resolve_mark(JSRuntime *rt, JSValueConst val, JS_MarkFunc *mark_func)
Definition: quickjs.c:19212
static void js_bytecode_function_finalizer(JSRuntime *rt, JSValue val)
Definition: quickjs.c:5328
static void js_async_generator_finalizer(JSRuntime *rt, JSValue obj)
Definition: quickjs.c:19412
static void js_promise_mark(JSRuntime *rt, JSValueConst val, JS_MarkFunc *mark_func)
Definition: quickjs.c:46645
static void js_promise_finalizer(JSRuntime *rt, JSValue val)
Definition: quickjs.c:46626
static void js_async_from_sync_iterator_finalizer(JSRuntime *rt, JSValue val)
Definition: quickjs.c:47384
static void js_async_generator_mark(JSRuntime *rt, JSValueConst val, JS_MarkFunc *mark_func)
Definition: quickjs.c:19421
static void js_async_from_sync_iterator_mark(JSRuntime *rt, JSValueConst val, JS_MarkFunc *mark_func)
Definition: quickjs.c:47395
static void js_async_function_resolve_finalizer(JSRuntime *rt, JSValue val)
Definition: quickjs.c:19203
static void js_promise_resolve_function_mark(JSRuntime *rt, JSValueConst val, JS_MarkFunc *mark_func)
Definition: quickjs.c:46564
static void js_promise_resolve_function_finalizer(JSRuntime *rt, JSValue val)
Definition: quickjs.c:46554
static void js_bytecode_function_mark(JSRuntime *rt, JSValueConst val, JS_MarkFunc *mark_func)
Definition: quickjs.c:5351

◆ js_global_funcs

const JSCFunctionListEntry js_global_funcs[]
static
Initial value:
= {
JS_CFUNC_DEF("parseInt", 2, js_parseInt ),
JS_CFUNC_DEF("parseFloat", 1, js_parseFloat ),
JS_CFUNC_DEF("isFinite", 1, js_global_isFinite ),
JS_CFUNC_MAGIC_DEF("decodeURIComponent", 1, js_global_decodeURI, 1 ),
JS_CFUNC_MAGIC_DEF("encodeURIComponent", 1, js_global_encodeURI, 1 ),
JS_CFUNC_DEF("unescape", 1, js_global_unescape ),
JS_PROP_DOUBLE_DEF("Infinity", 1.0 / 0.0, 0 ),
JS_PROP_DOUBLE_DEF("NaN", NAN, 0 ),
JS_PROP_UNDEFINED_DEF("undefined", 0 ),
JS_CFUNC_DEF("__date_clock", 0, js___date_clock ),
}
static JSValue js_global_escape(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
Definition: quickjs.c:47873
static JSValue js___date_clock(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
Definition: quickjs.c:42058
static JSValue js_global_isNaN(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
Definition: quickjs.c:36264
static JSValue js_global_decodeURI(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv, int isComponent)
Definition: quickjs.c:47696
static JSValue js_global_unescape(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
Definition: quickjs.c:47899
static JSValue js_global_encodeURI(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv, int isComponent)
Definition: quickjs.c:47808
static JSValue js_parseFloat(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
Definition: quickjs.c:40031
static JSValue js_global_isFinite(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
Definition: quickjs.c:36275
static JSValue js_parseInt(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
Definition: quickjs.c:40005
#define JS_PROP_UNDEFINED_DEF(name, prop_flags)
Definition: quickjs.h:1052

◆ month_days

int const month_days[] = { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }
static

◆ month_names

char const month_names[] = "JanFebMarAprMayJunJulAugSepOctNovDec"
static

◆ day_names

char const day_names[] = "SunMonTueWedThuFriSat"
static

◆ js_date_funcs

const JSCFunctionListEntry js_date_funcs[]
static
Initial value:
= {
JS_CFUNC_DEF("parse", 1, js_Date_parse ),
}
static JSValue js_Date_UTC(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
Definition: quickjs.c:48383
static JSValue js_Date_now(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
Definition: quickjs.c:48696
static JSValue js_Date_parse(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
Definition: quickjs.c:48533

◆ js_date_proto_funcs

const JSCFunctionListEntry js_date_proto_funcs[]
static

◆ native_error_name

const char* const native_error_name[JS_NATIVE_ERROR_COUNT]
static
Initial value:
= {
"EvalError", "RangeError", "ReferenceError",
"SyntaxError", "TypeError", "URIError",
"InternalError", "AggregateError",
}

◆ js_array_buffer_funcs

const JSCFunctionListEntry js_array_buffer_funcs[]
static
Initial value:
= {
JS_CGETSET_DEF("[Symbol.species]", js_get_this, NULL ),
}
static JSValue js_array_buffer_isView(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
Definition: quickjs.c:51352

◆ js_array_buffer_proto_funcs

const JSCFunctionListEntry js_array_buffer_proto_funcs[]
static
Initial value:
= {
JS_PROP_STRING_DEF("[Symbol.toStringTag]", "ArrayBuffer", JS_PROP_CONFIGURABLE ),
}
static JSValue js_array_buffer_get_byteLength(JSContext *ctx, JSValueConst this_val, int class_id)
Definition: quickjs.c:51379
static JSValue js_array_buffer_slice(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv, int class_id)
Definition: quickjs.c:51451
@ JS_CLASS_ARRAY_BUFFER
Definition: quickjs.c:147

◆ js_shared_array_buffer_funcs

const JSCFunctionListEntry js_shared_array_buffer_funcs[]
static
Initial value:
= {
JS_CGETSET_DEF("[Symbol.species]", js_get_this, NULL ),
}

◆ js_shared_array_buffer_proto_funcs

const JSCFunctionListEntry js_shared_array_buffer_proto_funcs[]
static
Initial value:
= {
JS_PROP_STRING_DEF("[Symbol.toStringTag]", "SharedArrayBuffer", JS_PROP_CONFIGURABLE ),
}
@ JS_CLASS_SHARED_ARRAY_BUFFER
Definition: quickjs.c:148

◆ js_typed_array_base_funcs

const JSCFunctionListEntry js_typed_array_base_funcs[]
static
Initial value:
= {
JS_CGETSET_DEF("[Symbol.species]", js_get_this, NULL ),
}
static JSValue js_typed_array_of(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
Definition: quickjs.c:51979
static JSValue js_typed_array_from(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
Definition: quickjs.c:51886

◆ js_typed_array_base_proto_funcs

const JSCFunctionListEntry js_typed_array_base_proto_funcs[]
static

◆ js_dataview_proto_funcs

const JSCFunctionListEntry js_dataview_proto_funcs[]
static
Initial value:
= {
JS_PROP_STRING_DEF("[Symbol.toStringTag]", "DataView", JS_PROP_CONFIGURABLE ),
}
static JSValue js_dataview_getValue(JSContext *ctx, JSValueConst this_obj, int argc, JSValueConst *argv, int class_id)
Definition: quickjs.c:53346
static JSValue js_typed_array_get_byteOffset(JSContext *ctx, JSValueConst this_val, int is_dataview)
Definition: quickjs.c:51631
static JSValue js_dataview_setValue(JSContext *ctx, JSValueConst this_obj, int argc, JSValueConst *argv, int class_id)
Definition: quickjs.c:53449
static JSValue js_typed_array_get_buffer(JSContext *ctx, JSValueConst this_val, int is_dataview)
Definition: quickjs.c:51599
static JSValue js_typed_array_get_byteLength(JSContext *ctx, JSValueConst this_val, int is_dataview)
Definition: quickjs.c:51611
@ JS_CLASS_INT16_ARRAY
Definition: quickjs.c:152
@ JS_CLASS_FLOAT64_ARRAY
Definition: quickjs.c:161
@ JS_CLASS_FLOAT32_ARRAY
Definition: quickjs.c:160
@ JS_CLASS_UINT16_ARRAY
Definition: quickjs.c:153
@ JS_CLASS_UINT32_ARRAY
Definition: quickjs.c:155
@ JS_CLASS_INT32_ARRAY
Definition: quickjs.c:154
@ JS_CLASS_INT8_ARRAY
Definition: quickjs.c:150
@ JS_CLASS_UINT8_ARRAY
Definition: quickjs.c:151

◆ js_atomics_mutex

pthread_mutex_t js_atomics_mutex = PTHREAD_MUTEX_INITIALIZER
static

◆ js_atomics_waiter_list

struct list_head js_atomics_waiter_list
static
Initial value:
=
static struct list_head js_atomics_waiter_list
Definition: quickjs.c:53906
#define LIST_HEAD_INIT(el)
Definition: src/quickjs/list.h:36

◆ js_atomics_funcs

const JSCFunctionListEntry js_atomics_funcs[]
static
Initial value:
= {
JS_CFUNC_DEF("isLockFree", 1, js_atomics_isLockFree ),
JS_PROP_STRING_DEF("[Symbol.toStringTag]", "Atomics", JS_PROP_CONFIGURABLE ),
}
static JSValue js_atomics_store(JSContext *ctx, JSValueConst this_obj, int argc, JSValueConst *argv)
Definition: quickjs.c:53826
static JSValue js_atomics_notify(JSContext *ctx, JSValueConst this_obj, int argc, JSValueConst *argv)
Definition: quickjs.c:54011
@ ATOMICS_OP_AND
Definition: quickjs.c:53580
@ ATOMICS_OP_EXCHANGE
Definition: quickjs.c:53584
@ ATOMICS_OP_OR
Definition: quickjs.c:53581
@ ATOMICS_OP_ADD
Definition: quickjs.c:53579
@ ATOMICS_OP_COMPARE_EXCHANGE
Definition: quickjs.c:53585
@ ATOMICS_OP_XOR
Definition: quickjs.c:53583
@ ATOMICS_OP_LOAD
Definition: quickjs.c:53586
@ ATOMICS_OP_SUB
Definition: quickjs.c:53582
static JSValue js_atomics_wait(JSContext *ctx, JSValueConst this_obj, int argc, JSValueConst *argv)
Definition: quickjs.c:53914
static JSValue js_atomics_op(JSContext *ctx, JSValueConst this_obj, int argc, JSValueConst *argv, int op)
Definition: quickjs.c:53656
static JSValue js_atomics_isLockFree(JSContext *ctx, JSValueConst this_obj, int argc, JSValueConst *argv)
Definition: quickjs.c:53883

◆ js_atomics_obj

const JSCFunctionListEntry js_atomics_obj[]
static
Initial value:
= {
}
static const JSCFunctionListEntry js_atomics_funcs[]
Definition: quickjs.c:54058