/arkcompiler/ets_runtime/ecmascript/compiler/ |
D | ecma_opcode_des.h | 23 #define ECMA_OPCODE_LIST(V) \ argument 24 V(LDNAN) \ 25 V(LDINFINITY) \ 26 V(LDNEWTARGET) \ 27 V(LDUNDEFINED) \ 28 V(LDNULL) \ 29 V(LDSYMBOL) \ 30 V(LDGLOBAL) \ 31 V(LDTRUE) \ 32 V(LDFALSE) \ [all …]
|
D | common_stubs.h | 22 #define COMMON_STUB_LIST(V) \ argument 23 V(Add) \ 24 V(Sub) \ 25 V(Mul) \ 26 V(Div) \ 27 V(Mod) \ 28 V(Equal) \ 29 V(NotEqual) \ 30 V(StrictEqual) \ 31 V(StrictNotEqual) \ [all …]
|
D | call_signature.h | 320 #define EXPLICIT_CALL_SIGNATURE_LIST(V) \ argument 321 V(Add) \ 322 V(Sub) \ 323 V(Mul) \ 324 V(MulGCTest) \ 325 V(Div) \ 326 V(Mod) \ 327 V(TypeOf) \ 328 V(Equal) \ 329 V(NotEqual) \ [all …]
|
D | share_opcodes.h | 29 #define SHARE_IMMUTABLE_META_DATA_CACHE_LIST(V) \ argument 30 V(CircuitRoot, CIRCUIT_ROOT, GateFlags::NONE_FLAG, 0, 0, 0) \ 31 V(StateEntry, STATE_ENTRY, GateFlags::ROOT, 0, 0, 0) \ 32 V(DependEntry, DEPEND_ENTRY, GateFlags::ROOT, 0, 0, 0) \ 33 V(OrdinaryBlock, ORDINARY_BLOCK, GateFlags::CONTROL, 1, 0, 0) \ 34 V(DefaultCase, DEFAULT_CASE, GateFlags::CONTROL, 1, 0, 0) \ 35 V(ReturnList, RETURN_LIST, GateFlags::ROOT, 0, 0, 0) \ 36 V(ArgList, ARG_LIST, GateFlags::ROOT, 0, 0, 0) \ 37 V(Dead, DEAD, GateFlags::NONE_FLAG, 0, 0, 0) \ 38 V(Throw, THROW, GateFlags::CONTROL, 1, 1, 1) \ [all …]
|
D | mcr_opcodes.h | 21 #define MCR_BINARY_GATE_META_DATA_CACHE_LIST(V) … argument 22 … V(Int32CheckRightIsZero, INT32_CHECK_RIGHT_IS_ZERO, GateFlags::CHECKABLE, 1, 1, 1) \ 23 … V(RemainderIsNegativeZero, REMAINDER_IS_NEGATIVE_ZERO, GateFlags::CHECKABLE, 1, 1, 2) \ 24 … V(Float64CheckRightIsZero, FLOAT64_CHECK_RIGHT_IS_ZERO, GateFlags::CHECKABLE, 1, 1, 1) \ 25 … V(ValueCheckNegOverflow, VALUE_CHECK_NEG_OVERFLOW, GateFlags::CHECKABLE, 1, 1, 1) \ 26 … V(OverflowCheck, OVERFLOW_CHECK, GateFlags::CHECKABLE, 1, 1, 1) \ 27 … V(Int32UnsignedUpperBoundCheck, INT32_UNSIGNED_UPPER_BOUND_CHECK, GateFlags::CHECKABLE, 1, 1, 2) \ 28 … V(Int32DivWithCheck, INT32_DIV_WITH_CHECK, GateFlags::CHECKABLE, 1, 1, 2) \ 29 … V(LexVarIsHoleCheck, LEX_VAR_IS_HOLE_CHECK, GateFlags::CHECKABLE, 1, 1, 1) \ 30 … V(TaggedIsHeapObject, TAGGED_IS_HEAP_OBJECT, GateFlags::NO_WRITE, 1, 1, 1) \ [all …]
|
D | lcr_opcodes.h | 21 #define LCR_BINARY_GATE_META_DATA_CACHE_LIST(V) … argument 22 … V(Add, ADD, GateFlags::NONE_FLAG, 0, 0, 2) \ 23 … V(Sub, SUB, GateFlags::NONE_FLAG, 0, 0, 2) \ 24 … V(Mul, MUL, GateFlags::NONE_FLAG, 0, 0, 2) \ 25 … V(Exp, EXP, GateFlags::NONE_FLAG, 0, 0, 2) \ 26 … V(Sdiv, SDIV, GateFlags::NONE_FLAG, 0, 0, 2) \ 27 … V(Smod, SMOD, GateFlags::NONE_FLAG, 0, 0, 2) \ 28 … V(Udiv, UDIV, GateFlags::NONE_FLAG, 0, 0, 2) \ 29 … V(Umod, UMOD, GateFlags::NONE_FLAG, 0, 0, 2) \ 30 … V(Fdiv, FDIV, GateFlags::NONE_FLAG, 0, 0, 2) \ [all …]
|
D | bc_call_signature.h | 59 #define ASM_INTERPRETER_BC_STUB_LIST(V, T, D) \ argument 288 #define ASM_INTERPRETER_DEPRECATED_STUB_LIST(V, T, D) \ argument 338 #define ASM_INTERPRETER_WIDE_STUB_LIST(V, T, D) \ argument 361 #define ASM_INTERPRETER_THROW_STUB_LIST(V, T, D) \ argument 374 #define ASM_INTERPRETER_CALLRUNTIME_STUB_LIST(V, T, D) \ argument 385 #define ASM_INTERPRETER_BC_HELPER_STUB_LIST(V) \ argument 386 V(SingleStepDebugging) \ 387 V(BCDebuggerEntry) \ 388 V(BCDebuggerExceptionEntry) \ 389 V(NewObjectRangeThrowException) \ [all …]
|
D | hcr_opcodes.h | 21 #define HCR_IMMUTABLE_META_DATA_CACHE_LIST(V) \ argument 22 V(ToLength, TO_LENGTH, GateFlags::NONE_FLAG, 1, 1, 1) \ 23 V(StoreModuleVar, STORE_MODULE_VAR, GateFlags::NONE_FLAG, 1, 1, 3) \ 24 V(OrdinaryHasInstance, ORDINARY_HAS_INSTANCE, GateFlags::CHECKABLE, 1, 1, 2) \ 25 V(LdLocalModuleVar, LD_LOCAL_MODULE_VAR, GateFlags::NONE_FLAG, 1, 1, 2) 28 #define HCR_GATE_META_DATA_LIST_WITH_VALUE_IN(V) \ argument 29 V(Call, CALL, GateFlags::NONE_FLAG, 0, 1, value) \ 30 V(NoGcRuntimeCall, NOGC_RUNTIME_CALL, GateFlags::NO_WRITE, 0, 1, value) \ 31 V(BytecodeCall, BYTECODE_CALL, GateFlags::NONE_FLAG, 0, 1, value) \ 32 V(DebuggerBytecodeCall, DEBUGGER_BYTECODE_CALL, GateFlags::NONE_FLAG, 0, 1, value) \ [all …]
|
D | ir_builder.h | 50 #define OPCODES(V) \ argument 51 V(Call, (GateRef gate, const std::vector<GateRef> &inList, OpCode op)) \ 52 V(RuntimeCall, (GateRef gate, const std::vector<GateRef> &inList)) \ 53 V(RuntimeCallWithArgv, (GateRef gate, const std::vector<GateRef> &inList)) \ 54 V(NoGcRuntimeCall, (GateRef gate, const std::vector<GateRef> &inList)) \ 55 V(BytecodeCall, (GateRef gate, const std::vector<GateRef> &inList)) \ 56 V(Alloca, (GateRef gate)) \ 57 V(Block, (int id, const OperandsVector &predecessors)) \ 58 V(Goto, (int block, int bbout)) \ 59 V(Parameter, (GateRef gate)) \ [all …]
|
D | pass_options.h | 20 #define OPTION_LIST(V) \ argument 21 V(ArrayBoundsCheckElimination, true) \ 22 V(TypeLowering, true) \ 23 V(EarlyElimination, true) \ 24 V(LaterElimination, true) \ 25 V(ValueNumbering, false) \ 26 V(TypeInfer, false) \ 27 V(OptInlining, false) \ 28 V(OptNoGCCall, false) \ 29 V(OptPGOType, false) \ [all …]
|
/arkcompiler/ets_runtime/ecmascript/ |
D | runtime_call_id.h | 25 #define INTERPRETER_CALLER_LIST(V) \ argument 26 V(RunInternal) \ 27 V(Ldnan) \ 28 V(Ldinfinity) \ 29 V(Ldundefined) \ 30 V(Ldboolean) \ 31 V(Ldnumber) \ 32 V(Ldstring) \ 33 V(Ldnull) \ 34 V(Ldsymbol) \ [all …]
|
D | global_env_fields.h | 23 #define GLOBAL_ENV_COMMON_FIELDS(V) … argument 25 … V(JSTaggedValue, ObjectFunction, OBJECT_FUNCTION_INDEX) \ 26 … V(JSTaggedValue, ObjectFunctionClass, OBJECT_FUNCTION_CLASS_INDEX) \ 27 … V(JSTaggedValue, ObjectFunctionPrototype, OBJECT_FUNCTION_PROTOTYPE_INDEX) \ 28 … V(JSTaggedValue, ObjectFunctionPrototypeClass, OBJECT_FUNCTION_PROTOTYPE_CLASS_INDEX) \ 29 … V(JSTaggedValue, SObjectFunction, SHARED_OBJECT_FUNCTION_INDEX) \ 30 … V(JSTaggedValue, SObjectFunctionPrototype, SHARED_OBJECT_FUNCTION_PROTOTYPE_INDEX) \ 31 … V(JSTaggedValue, FunctionFunction, FUNCTION_FUNCTION_INDEX) \ 32 … V(JSTaggedValue, FunctionPrototype, FUNCTION_PROTOTYPE_INDEX) \ 33 … V(JSTaggedValue, SFunctionFunction, SHARED_FUNCTION_FUNCTION_INDEX) \ [all …]
|
D | global_env_constants.h | 33 #define GLOBAL_ENV_CONSTANT_CLASS(V) … argument 35 …V(JSTaggedValue, HClassClass, HCLASS_CLASS_INDEX, ecma_roots_class) … 36 …V(JSTaggedValue, FreeObjectWithNoneFieldClass, FREE_OBJECT_WITH_NONE_FIELD_CLASS_INDEX, ecma_roots… 37 …V(JSTaggedValue, FreeObjectWithOneFieldClass, FREE_OBJECT_WITH_ONE_FIELD_CLASS_INDEX, ecma_roots_c… 38 …V(JSTaggedValue, FreeObjectWithTwoFieldClass, FREE_OBJECT_WITH_TWO_FIELD_CLASS_INDEX, ecma_roots_c… 39 …V(JSTaggedValue, LineStringClass, LINE_STRING_CLASS_INDEX, ecma_roots_class) … 40 …V(JSTaggedValue, SlicedStringClass, SLICED_STRING_CLASS_INDEX, ecma_roots_class) … 41 …V(JSTaggedValue, ConstantStringClass, CONSTANT_STRING_CLASS_INDEX, ecma_roots_class) … 42 …V(JSTaggedValue, TreeStringClass, TREE_STRING_CLASS_INDEX, ecma_roots_class) … 43 …V(JSTaggedValue, ArrayClass, ARRAY_CLASS_INDEX, ecma_roots_class) … [all …]
|
D | common.h | 57 #define SCOPE_LIST(V) \ argument 58 V(TotalGC) \ 59 V(Initialize) \ 60 V(ConcurrentMark) \ 61 V(WaitConcurrentMarkFinished) \ 62 V(ReMark) \ 63 V(Mark) \ 64 V(MarkRoots) \ 65 V(ProcessMarkStack) \ 66 V(Sweep) \ [all …]
|
D | message_string.h | 27 #define COMMON_MESSAGE_STRING_LIST(V) \ argument 28 V(SetReadOnlyProperty, "Cannot assign to read only property") \ 29 V(SetTypeMismatchedSharedProperty, "Cannot set sendable property with mismatched type") \ 30 V(CreateObjectWithSendableProto, "Cannot create object with sendable proto") \ 31 V(UpdateSendableAttributes, "Cannot update sendable object's attributes") \ 32 V(SetProtoWithSendable, "Cannot set proto with sendable object") \ 33 V(ClassNotDerivedFromShared, "Class not derived from a sendable object") \ 34 V(NotSendableSubClass, "The subclass of sendable class must be a sendable class") \ 35 V(FunctionCallNotConstructor, "class constructor cannot call") \ 36 V(SetPropertyWhenNotExtensible, "Cannot add property in prevent extensions") \ [all …]
|
/arkcompiler/ets_runtime/ecmascript/ts_types/ |
D | builtin_type_id.h | 22 #define TS_BUILTIN_TYPE_LIST(V) \ argument 23 V(FUNCTION) \ 24 V(RANGE_ERROR) \ 25 V(ERROR) \ 26 V(OBJECT) \ 27 V(SYNTAX_ERROR) \ 28 V(TYPE_ERROR) \ 29 V(REFERENCE_ERROR) \ 30 V(URI_ERROR) \ 31 V(SYMBOL) \ [all …]
|
/arkcompiler/ets_runtime/ecmascript/compiler/builtins/ |
D | builtins_call_signature.h | 25 #define PADDING_BUILTINS_STUB_LIST(V) \ argument 26 V(NONE) 30 #define BUILTINS_STUB_LIST(V) \ argument 31 BUILTINS_METHOD_STUB_LIST(V) \ 32 BUILTINS_CONSTRUCTOR_STUB_LIST(V) \ 33 AOT_AND_BUILTINS_STUB_LIST(V) 35 #define BUILTINS_METHOD_STUB_LIST(V) \ argument 36 V(StringCharCodeAt) \ 37 V(StringIndexOf) \ 38 V(StringSubstring) \ [all …]
|
/arkcompiler/ets_runtime/ecmascript/builtins/ |
D | builtins_ark_tools.h | 26 #define BUILTIN_ARK_TOOLS_FUNCTIONS_COMMON(V) \ argument 27 V("compareHClass", CompareHClass, 2, INVALID) \ 28 V("dumpHClass", DumpHClass, 1, INVALID) \ 29 V("excutePendingJob", ExcutePendingJob, 0, INVALID) \ 30 V("forceFullGC", ForceFullGC, 0, INVALID) \ 31 V("getHClass", GetHClass, 1, INVALID) \ 32 V("getLexicalEnv", GetLexicalEnv, 1, INVALID) \ 33 V("hasTSSubtyping", HasTSSubtyping, 1, INVALID) \ 34 V("isSlicedString", IsSlicedString, 1, INVALID) \ 35 V("hiddenStackSourceFile", HiddenStackSourceFile, 0, INVALID) \ [all …]
|
D | builtins_typedarray.h | 21 #define TYPED_ARRAY_TYPES(V) \ argument 22 V(Int8Array) \ 23 V(Uint8Array) \ 24 V(Uint8ClampedArray) \ 25 V(Int16Array) \ 26 V(Uint16Array) \ 27 V(Int32Array) \ 28 V(Uint32Array) \ 29 V(Float32Array) \ 30 V(Float64Array) \ [all …]
|
D | builtins_date.h | 26 #define BUILTIN_DATE_FUNCTIONS(V) … argument 28 … V("now", Now, 0, INVALID) \ 30 … V("parse", Parse, 1, INVALID) \ 32 V("UTC", UTC, ::panda::ecmascript::builtins::BuiltinsDate::UTC_LENGTH, INVALID) 37 #define BUILTIN_DATE_PROTOTYPE_FUNCTIONS(V) \ argument 39 V("getDate", GetDate, 0, INVALID) \ 41 V("getDay", GetDay, 0, INVALID) \ 43 V("getFullYear", GetFullYear, 0, INVALID) \ 45 V("getHours", GetHours, 0, INVALID) \ 47 V("getMilliseconds", GetMilliseconds, 0, INVALID) \ [all …]
|
D | builtins_math.h | 22 #define BUILTIN_MATH_CONSTANTS(V) \ argument 23 V(E) \ 24 V(LN10) \ 25 V(LN2) \ 26 V(LOG10E) \ 27 V(LOG2E) \ 28 V(PI) \ 29 V(SQRT1_2) \ 30 V(SQRT2) 36 #define BUILTIN_MATH_FUNCTIONS(V) \ argument [all …]
|
D | builtins_symbol.h | 23 #define BUILTIN_WELL_KNOWN_SYMBOLS(V) \ argument 24 V(hasInstance, HasInstance) \ 25 V(isConcatSpreadable, IsConcatSpreadable) \ 26 V(toStringTag, ToStringTag) 28 #define BUILTIN_PUBLIC_SYMBOLS(V) \ argument 29 V(asyncIterator, AsyncIterator) \ 30 V(iterator, Iterator) \ 31 V(match, Match) \ 32 V(matchAll, MatchAll) \ 33 V(nativeBinding, NativeBinding) \ [all …]
|
/arkcompiler/ets_runtime/ecmascript/stubs/ |
D | runtime_stubs.h | 46 #define RUNTIME_ASM_STUB_LIST(V) \ argument 47 JS_CALL_TRAMPOLINE_LIST(V) \ 48 FAST_CALL_TRAMPOLINE_LIST(V) \ 49 ASM_INTERPRETER_TRAMPOLINE_LIST(V) 51 #define ASM_INTERPRETER_TRAMPOLINE_LIST(V) \ argument 52 V(AsmInterpreterEntry) \ 53 V(GeneratorReEnterAsmInterp) \ 54 V(PushCallArgsAndDispatchNative) \ 55 V(PushCallArg0AndDispatch) \ 56 V(PushCallArg1AndDispatch) \ [all …]
|
/arkcompiler/ets_runtime/ecmascript/compiler/assembler/aarch64/ |
D | assembler_aarch64_constants.h | 211 #define COMMON_REGISTER_FIELD_LIST(V) \ argument 212 V(COMMON_REG, Rd, 4, 0) \ 213 V(COMMON_REG, Rn, 9, 5) \ 214 V(COMMON_REG, Rm, 20, 16) \ 215 V(COMMON_REG, Rt, 4, 0) \ 216 V(COMMON_REG, Rt2, 14, 10) \ 217 V(COMMON_REG, Sf, 31, 31) 229 #define MOV_WIDE_FIELD_LIST(V) \ argument 230 V(MOV_WIDE, Imm16, 20, 5) \ 231 V(MOV_WIDE, Hw, 22, 21) [all …]
|
/arkcompiler/runtime_core/static_core/plugins/ets/stdlib/std/containers/ |
D | AVLTree.ets | 21 export class Node<K extends Comparable<Object>, V> { 22 left: Node<K, V> | null; 24 value: V; 26 right: Node<K, V> | null; 27 constructor(left: Node<K, V> | null, key: K, value: V, height: int, right: Node<K, V> | null) { 41 export function newEmpty<K extends Comparable<Object>, V>(): Node<K, V> | null { 52 export function isEmpty<K extends Comparable<Object>, V>(n: Node<K, V> | null): boolean { 63 export function isLeaf<K extends Comparable<Object>, V>(n: Node<K, V> | null): boolean { 74 export function isNode<K extends Comparable<Object>, V>(n: Node<K, V> | null): boolean { 78 export function height<K extends Comparable<Object>, V>(node: Node<K, V> | null): int { [all …]
|