| /arkcompiler/ets_runtime/ecmascript/compiler/trampoline/x64/ |
| D | common_call.h | 26 static constexpr int FRAME_SLOT_SIZE = 8; 27 static constexpr int DOUBLE_SLOT_SIZE = 16; 28 static constexpr int TRIPLE_SLOT_SIZE = 24; 29 static constexpr int QUADRUPLE_SLOT_SIZE = 32; 30 static constexpr int QUINTUPLE_SLOT_SIZE = 40; 31 static constexpr int SEXTUPLE_SLOT_SIZE = 48; 32 static void CopyArgumentWithArgV(ExtendedAssembler *assembler, Register argc, Register argV); 33 static void PushAsmInterpBridgeFrame(ExtendedAssembler *assembler); 34 static void PopAsmInterpBridgeFrame(ExtendedAssembler *assembler); 35 static void PushUndefinedWithArgc(ExtendedAssembler *assembler, Register argc); [all …]
|
| /arkcompiler/ets_runtime/ecmascript/ |
| D | js_date.h | 25 static constexpr int64_t DAYS_IN_YEAR = 365; 26 static constexpr std::array<int, 2> APPROXIMATION_NUMBER = {100000, 3652425}; 27 static constexpr int64_t CHINA_BEFORE_1900_MS = -2177481943000; 28 static constexpr int64_t CHINA_1901_MS = -2177452800000; 29 static constexpr int CHINA_BEFORE_1901_ADDMS = 343000; 30 static constexpr int MS_PER_SECOND = 1000; 31 static constexpr int SEC_PER_MINUTE = 60; 32 static constexpr int SEC_PER_HOUR = 3600; 33 static constexpr int MIN_PER_HOUR = 60; 34 static constexpr int MS_PER_HOUR = 3600 * 1000; [all …]
|
| D | js_bigint.h | 33 static constexpr uint32_t DATEBITS = sizeof(uint32_t) * 8; // 8 : one-bit number of bytes 34 static constexpr uint32_t MAXBITS = 1_MB; // 1 MB : Maximum space that can be opened up 35 static constexpr uint32_t MAXSIZE = MAXBITS / DATEBITS; // the maximum value of size 36 static constexpr uint32_t MAXOCTALVALUE = 7; // 7 : max octal value 37 static constexpr uint32_t BINARY = 2; // 2 : binary 39 static constexpr uint32_t OCTAL = 8; // 8 : octal 40 static constexpr uint32_t DECIMAL = 10; // 10 : decimal 41 static constexpr uint32_t HEXADECIMAL = 16; // 16 : hexadecimal 42 static constexpr uint32_t HALFDATEBITS = DATEBITS / 2; 43 static constexpr uint32_t HALFUINT32VALUE = 1U << HALFDATEBITS; [all …]
|
| /arkcompiler/ets_runtime/ecmascript/interpreter/ |
| D | slow_runtime_stub.h | 29 …static JSTaggedValue CallSpread(JSThread *thread, JSTaggedValue func, JSTaggedValue obj, JSTaggedV… 30 static JSTaggedValue Neg(JSThread *thread, JSTaggedValue value); 31 static JSTaggedValue AsyncFunctionEnter(JSThread *thread); 32 static JSTaggedValue ToNumber(JSThread *thread, JSTaggedValue value); 33 static JSTaggedValue ToNumeric(JSThread *thread, JSTaggedValue value); 34 static JSTaggedValue Not(JSThread *thread, JSTaggedValue value); 35 static JSTaggedValue Inc(JSThread *thread, JSTaggedValue value); 36 static JSTaggedValue Dec(JSThread *thread, JSTaggedValue value); 37 static void Throw(JSThread *thread, JSTaggedValue value); 38 static JSTaggedValue GetPropIterator(JSThread *thread, JSTaggedValue value); [all …]
|
| /arkcompiler/ets_runtime/ecmascript/compiler/trampoline/aarch64/ |
| D | common_call.h | 27 static constexpr int FRAME_SLOT_SIZE = 8; 28 static constexpr int DOUBLE_SLOT_SIZE = 16; 29 static constexpr int TRIPLE_SLOT_SIZE = 24; 30 static constexpr int QUADRUPLE_SLOT_SIZE = 32; 31 static constexpr int QUINTUPLE_SLOT_SIZE = 40; 32 static constexpr int DECUPLE_SLOT_SIZE = 80; 33 static constexpr int FRAME_SLOT_SIZE_LOG2 = 3; 35 static inline int64_t GetStackArgOffSetToFp(unsigned argId) in GetStackArgOffSetToFp() 55 …static void PushUndefinedWithArgc(ExtendedAssembler *assembler, Register glue, Register argc, Regi… 57 …static void PushArgsWithArgv(ExtendedAssembler *assembler, Register glue, Register argc, Register … [all …]
|
| /arkcompiler/ets_runtime/ecmascript/base/ |
| D | number_helper.h | 31 static constexpr uint32_t NO_FLAGS = 0U; 32 static constexpr uint32_t ALLOW_BINARY = 1U << 0U; 33 static constexpr uint32_t ALLOW_OCTAL = 1U << 1U; 34 static constexpr uint32_t ALLOW_HEX = 1U << 2U; 35 static constexpr uint32_t IGNORE_TRAILING = 1U << 3U; 37 static constexpr uint32_t MAX_PRECISION = 16; 38 static constexpr uint8_t BINARY = 2; 39 static constexpr uint8_t OCTAL = 8; 40 static constexpr uint8_t DECIMAL = 10; 41 static constexpr uint8_t HEXADECIMAL = 16; [all …]
|
| D | utf_helper.h | 25 static constexpr uint16_t DECODE_LEAD_LOW = 0xD800; 26 static constexpr uint16_t DECODE_LEAD_HIGH = 0xDBFF; 27 static constexpr uint16_t DECODE_TRAIL_LOW = 0xDC00; 28 static constexpr uint16_t DECODE_TRAIL_HIGH = 0xDFFF; 29 static constexpr uint32_t DECODE_FIRST_FACTOR = 0x400; 30 static constexpr uint32_t DECODE_SECOND_FACTOR = 0x10000; 31 static constexpr uint32_t UTF8_OFFSET = 6; 32 static constexpr uint32_t UTF16_OFFSET = 10; 33 static constexpr uint16_t SURROGATE_MASK = 0xF800; 35 static constexpr uint8_t BIT_MASK_1 = 0x80; [all …]
|
| /arkcompiler/ets_runtime/ecmascript/builtins/ |
| D | builtins_typedarray.h | 26 static JSTaggedValue TypedArrayBaseConstructor(EcmaRuntimeCallInfo *argv); 27 static JSTaggedValue Int8ArrayConstructor(EcmaRuntimeCallInfo *argv); 28 static JSTaggedValue Uint8ArrayConstructor(EcmaRuntimeCallInfo *argv); 29 static JSTaggedValue Uint8ClampedArrayConstructor(EcmaRuntimeCallInfo *argv); 30 static JSTaggedValue Int16ArrayConstructor(EcmaRuntimeCallInfo *argv); 31 static JSTaggedValue Uint16ArrayConstructor(EcmaRuntimeCallInfo *argv); 32 static JSTaggedValue Int32ArrayConstructor(EcmaRuntimeCallInfo *argv); 33 static JSTaggedValue Uint32ArrayConstructor(EcmaRuntimeCallInfo *argv); 34 static JSTaggedValue Float32ArrayConstructor(EcmaRuntimeCallInfo *argv); 35 static JSTaggedValue Float64ArrayConstructor(EcmaRuntimeCallInfo *argv); [all …]
|
| D | builtins_math.h | 29 static constexpr double E = 2.718281828459045; 31 static constexpr double LN10 = 2.302585092994046; 33 static constexpr double LN2 = 0.6931471805599453; 35 static constexpr double LOG10E = 0.4342944819032518; 37 static constexpr double LOG2E = 1.4426950408889634; 39 static constexpr double PI = 3.141592653589793; 41 static constexpr double SQRT1_2 = 0.7071067811865476; 43 static constexpr double SQRT2 = 1.4142135623730951; 45 static JSTaggedValue Abs(EcmaRuntimeCallInfo *argv); 47 static JSTaggedValue Acos(EcmaRuntimeCallInfo *argv); [all …]
|
| D | builtins_array.h | 22 static constexpr uint8_t INDEX_TWO = 2; 23 static constexpr uint8_t INDEX_THREE = 3; 27 static JSTaggedValue ArrayConstructor(EcmaRuntimeCallInfo *argv); 30 static JSTaggedValue From(EcmaRuntimeCallInfo *argv); 32 static JSTaggedValue IsArray(EcmaRuntimeCallInfo *argv); 34 static JSTaggedValue Of(EcmaRuntimeCallInfo *argv); 36 static JSTaggedValue Species(EcmaRuntimeCallInfo *argv); 40 static JSTaggedValue Concat(EcmaRuntimeCallInfo *argv); 42 static JSTaggedValue CopyWithin(EcmaRuntimeCallInfo *argv); 44 static JSTaggedValue Entries(EcmaRuntimeCallInfo *argv); [all …]
|
| D | builtins_string.h | 35 static JSTaggedValue StringConstructor(EcmaRuntimeCallInfo *argv); 37 static JSTaggedValue FromCharCode(EcmaRuntimeCallInfo *argv); 39 static JSTaggedValue FromCodePoint(EcmaRuntimeCallInfo *argv); 41 static JSTaggedValue Raw(EcmaRuntimeCallInfo *argv); 43 static JSTaggedValue GetSubstitution(JSThread *thread, const JSHandle<EcmaString> &matched, 49 static JSTaggedValue CharAt(EcmaRuntimeCallInfo *argv); 51 static JSTaggedValue CharCodeAt(EcmaRuntimeCallInfo *argv); 53 static JSTaggedValue CodePointAt(EcmaRuntimeCallInfo *argv); 55 static JSTaggedValue Concat(EcmaRuntimeCallInfo *argv); 58 static JSTaggedValue EndsWith(EcmaRuntimeCallInfo *argv); [all …]
|
| D | builtins_global.h | 23 static constexpr uint8_t BIT_MASK = 0x0F; 24 static constexpr uint8_t BIT_MASK_FF = 0xFF; 25 static constexpr uint16_t BIT16_MASK = 0x3FF; 26 static constexpr uint8_t BIT_MASK_ONE = 0x80; 27 static constexpr uint8_t BIT_MASK_TWO = 0xC0; 33 static JSTaggedValue NotSupportEval(EcmaRuntimeCallInfo *msg); 35 static JSTaggedValue IsFinite(EcmaRuntimeCallInfo *msg); 37 static JSTaggedValue IsNaN(EcmaRuntimeCallInfo *msg); 39 static JSTaggedValue DecodeURI(EcmaRuntimeCallInfo *msg); 40 static JSTaggedValue EncodeURI(EcmaRuntimeCallInfo *msg); [all …]
|
| D | builtins_regexp.h | 43 static JSTaggedValue RegExpConstructor(EcmaRuntimeCallInfo *argv); 47 static JSTaggedValue Exec(EcmaRuntimeCallInfo *argv); 49 static JSTaggedValue Test(EcmaRuntimeCallInfo *argv); 51 static JSTaggedValue ToString(EcmaRuntimeCallInfo *argv); 53 static JSTaggedValue GetFlags(EcmaRuntimeCallInfo *argv); 55 static JSTaggedValue GetGlobal(EcmaRuntimeCallInfo *argv); 57 static JSTaggedValue GetIgnoreCase(EcmaRuntimeCallInfo *argv); 59 static JSTaggedValue GetMultiline(EcmaRuntimeCallInfo *argv); 60 static JSTaggedValue GetDotAll(EcmaRuntimeCallInfo *argv); 62 static JSTaggedValue GetSource(EcmaRuntimeCallInfo *argv); [all …]
|
| D | builtins_object.h | 33 static JSTaggedValue ObjectConstructor(EcmaRuntimeCallInfo *argv); 36 static JSTaggedValue Assign(EcmaRuntimeCallInfo *argv); 38 static JSTaggedValue Create(EcmaRuntimeCallInfo *argv); 40 static JSTaggedValue DefineProperties(EcmaRuntimeCallInfo *argv); 42 static JSTaggedValue DefineProperty(EcmaRuntimeCallInfo *argv); 44 static JSTaggedValue Freeze(EcmaRuntimeCallInfo *argv); 46 static JSTaggedValue GetOwnPropertyDescriptor(EcmaRuntimeCallInfo *argv); 48 static JSTaggedValue GetOwnPropertyNames(EcmaRuntimeCallInfo *argv); 50 static JSTaggedValue GetOwnPropertySymbols(EcmaRuntimeCallInfo *argv); 52 static JSTaggedValue GetPrototypeOf(EcmaRuntimeCallInfo *argv); [all …]
|
| /arkcompiler/ets_runtime/ecmascript/stubs/ |
| D | runtime_stubs.h | 294 static void Initialize(JSThread *thread); 297 static JSTaggedType name(uintptr_t argGlue, uint32_t argc, uintptr_t argv); 302 … inline static JSTaggedType GetTArg(uintptr_t argv, [[maybe_unused]] uint32_t argc, uint32_t index) in TEST_RUNTIME_STUB_GC_LIST() 308 … inline static JSTaggedValue GetArg(uintptr_t argv, [[maybe_unused]] uint32_t argc, uint32_t index) in GetArg() 315 … inline static JSHandle<T> GetHArg(uintptr_t argv, [[maybe_unused]] uint32_t argc, uint32_t index) in GetHArg() 322 inline static T *GetPtrArg(uintptr_t argv, [[maybe_unused]] uint32_t argc, uint32_t index) in GetPtrArg() 328 static void DebugPrint(int fmtMessageId, ...); 329 static void DebugPrintInstruction([[maybe_unused]]uintptr_t argGlue, const uint8_t *pc); 330 static void PGOProfiler(uintptr_t argGlue, uintptr_t func); 331 static void FatalPrint(int fmtMessageId, ...); [all …]
|
| /arkcompiler/runtime_core/libpandafile/ |
| D | modifiers.h | 25 static constexpr uint32_t ACC_PUBLIC = 0x0001; // field, method, class 26 static constexpr uint32_t ACC_PRIVATE = 0x0002; // field, method 27 static constexpr uint32_t ACC_PROTECTED = 0x0004; // field, method 28 static constexpr uint32_t ACC_STATIC = 0x0008; // field, method 29 static constexpr uint32_t ACC_FINAL = 0x0010; // field, method, class 30 static constexpr uint32_t ACC_SUPER = 0x0020; // class 31 static constexpr uint32_t ACC_SYNCHRONIZED = 0x0020; // method 32 static constexpr uint32_t ACC_BRIDGE = 0x0040; // method 33 static constexpr uint32_t ACC_VOLATILE = 0x0040; // field 34 static constexpr uint32_t ACC_TRANSIENT = 0x0080; // field, [all …]
|
| /arkcompiler/runtime_core/libpandabase/utils/ |
| D | arch.h | 46 static constexpr size_t CODE_ALIGNMENT = 8; 47 static constexpr size_t INSTRUCTION_ALIGNMENT = 4; 48 static constexpr size_t INSTRUCTION_MAX_SIZE_BITS = 32; 49 static constexpr size_t POINTER_SIZE = 4; 50 static constexpr bool IS_64_BITS = false; 51 static constexpr size_t THREAD_REG = 10; 52 static constexpr size_t CALLER_REG_MASK = 0x0000000f; 53 static constexpr size_t CALLER_FP_REG_MASK = 0x0000ffff; // s0-s15 or d0-d7 54 static constexpr size_t CALLEE_REG_MASK = 0x000007f0; 55 static constexpr size_t CALLEE_FP_REG_MASK = 0xffff0000; // s16-s31 or d8-d15 [all …]
|
| /arkcompiler/ets_runtime/ecmascript/containers/ |
| D | containers_vector.h | 25 static JSTaggedValue VectorConstructor(EcmaRuntimeCallInfo *argv); 27 static JSTaggedValue Add(EcmaRuntimeCallInfo *argv); 28 static JSTaggedValue Insert(EcmaRuntimeCallInfo *argv); 29 static JSTaggedValue SetLength(EcmaRuntimeCallInfo *argv); 30 static JSTaggedValue GetCapacity(EcmaRuntimeCallInfo *argv); 31 static JSTaggedValue IncreaseCapacityTo(EcmaRuntimeCallInfo *argv); 32 static JSTaggedValue Get(EcmaRuntimeCallInfo *argv); 33 static JSTaggedValue GetIndexOf(EcmaRuntimeCallInfo *argv); 34 static JSTaggedValue GetIndexFrom(EcmaRuntimeCallInfo *argv); 35 static JSTaggedValue IsEmpty(EcmaRuntimeCallInfo *argv); [all …]
|
| D | containers_lightweightmap.h | 25 static JSTaggedValue LightWeightMapConstructor(EcmaRuntimeCallInfo *argv); 26 static JSTaggedValue Length(EcmaRuntimeCallInfo *argv); 27 static JSTaggedValue HasAll(EcmaRuntimeCallInfo *argv); 28 static JSTaggedValue HasKey(EcmaRuntimeCallInfo *argv); 29 static JSTaggedValue HasValue(EcmaRuntimeCallInfo *argv); 30 static JSTaggedValue IncreaseCapacityTo(EcmaRuntimeCallInfo *argv); 31 static JSTaggedValue Entries(EcmaRuntimeCallInfo *argv); 32 static JSTaggedValue Get(EcmaRuntimeCallInfo *argv); 33 static JSTaggedValue GetIndexOfKey(EcmaRuntimeCallInfo *argv); 34 static JSTaggedValue GetIndexOfValue(EcmaRuntimeCallInfo *argv); [all …]
|
| D | containers_arraylist.h | 28 static JSTaggedValue ArrayListConstructor(EcmaRuntimeCallInfo *argv); 30 static JSTaggedValue Add(EcmaRuntimeCallInfo *argv); 31 static JSTaggedValue Insert(EcmaRuntimeCallInfo *argv); 32 static JSTaggedValue Clear(EcmaRuntimeCallInfo *argv); 33 static JSTaggedValue Clone(EcmaRuntimeCallInfo *argv); 34 static JSTaggedValue Has(EcmaRuntimeCallInfo *argv); 35 static JSTaggedValue GetCapacity(EcmaRuntimeCallInfo *argv); 36 static JSTaggedValue IncreaseCapacityTo(EcmaRuntimeCallInfo *argv); 37 static JSTaggedValue TrimToCurrentLength(EcmaRuntimeCallInfo *argv); 38 static JSTaggedValue GetIndexOf(EcmaRuntimeCallInfo *argv); [all …]
|
| D | containers_linked_list.h | 25 static JSTaggedValue LinkedListConstructor(EcmaRuntimeCallInfo *argv); 27 static JSTaggedValue Add(EcmaRuntimeCallInfo *argv); 28 static JSTaggedValue GetFirst(EcmaRuntimeCallInfo *argv); 29 static JSTaggedValue GetLast(EcmaRuntimeCallInfo *argv); 30 static JSTaggedValue Insert(EcmaRuntimeCallInfo *argv); 31 static JSTaggedValue AddFirst(EcmaRuntimeCallInfo *argv); 32 static JSTaggedValue Clear(EcmaRuntimeCallInfo *argv); 33 static JSTaggedValue Clone(EcmaRuntimeCallInfo *argv); 34 static JSTaggedValue Has(EcmaRuntimeCallInfo *argv); 35 static JSTaggedValue Get(EcmaRuntimeCallInfo *argv); [all …]
|
| D | containers_private.h | 47 static JSTaggedValue Load(EcmaRuntimeCallInfo *msg); 50 …static JSHandle<JSFunction> NewContainerConstructor(JSThread *thread, const JSHandle<JSObject> &pr… 52 …static JSHandle<JSFunction> NewFunction(JSThread *thread, const JSHandle<JSTaggedValue> &key, Ecma… 55 …static void SetFrozenFunction(JSThread *thread, const JSHandle<JSObject> &obj, const char *key, Ec… 58 …static void SetFrozenConstructor(JSThread *thread, const JSHandle<JSObject> &obj, const char *keyC… 60 …static JSHandle<JSTaggedValue> CreateGetter(JSThread *thread, EcmaEntrypoint func, const char *nam… 62 static void SetGetter(JSThread *thread, const JSHandle<JSObject> &obj, 64 static void SetFunctionAtSymbol(JSThread *thread, const JSHandle<GlobalEnv> &env, 67 static void SetStringTagSymbol(JSThread *thread, const JSHandle<GlobalEnv> &env, 70 …static JSTaggedValue InitializeContainer(JSThread *thread, const JSHandle<JSObject> &obj, Initiali… [all …]
|
| /arkcompiler/runtime_core/runtime/tests/interpreter/ |
| D | test_runtime_interface.h | 90 static T *ToPointer(size_t value) in ToPointer() 97 static constexpr bool NEED_READ_BARRIER = false; 98 static constexpr bool NEED_WRITE_BARRIER = false; 138 static constexpr BytecodeId METHOD_ID {0xaabb}; 139 static constexpr BytecodeId FIELD_ID {0xeeff}; 140 static constexpr BytecodeId TYPE_ID {0x5566}; 141 static constexpr BytecodeId LITERALARRAY_ID {0x7788}; 143 …static coretypes::Array *ResolveLiteralArray([[maybe_unused]] PandaVM *vm, [[maybe_unused]] const … in ResolveLiteralArray() 150 …static Method *ResolveMethod([[maybe_unused]] ManagedThread *thread, [[maybe_unused]] const Method… in ResolveMethod() 157 …static Field *ResolveField([[maybe_unused]] ManagedThread *thread, [[maybe_unused]] const Method &… in ResolveField() [all …]
|
| /arkcompiler/ets_runtime/ecmascript/debugger/ |
| D | debugger_api.h | 54 static uint32_t GetStackDepth(const EcmaVM *ecmaVm); 55 static std::shared_ptr<FrameHandler> NewFrameHandler(const EcmaVM *ecmaVm); 56 …static bool StackWalker(const EcmaVM *ecmaVm, std::function<StackState(const FrameHandler *)> func… 58 static uint32_t GetBytecodeOffset(const EcmaVM *ecmaVm); 59 static uint32_t GetBytecodeOffset(const FrameHandler *frameHandler); 60 static std::unique_ptr<PtMethod> GetMethod(const EcmaVM *ecmaVm); 61 static Method *GetMethod(const FrameHandler *frameHandler); 62 static bool IsNativeMethod(const EcmaVM *ecmaVm); 63 static bool IsNativeMethod(const FrameHandler *frameHandler); 64 static JSPandaFile *GetJSPandaFile(const EcmaVM *ecmaVm); [all …]
|
| /arkcompiler/runtime_core/compiler/optimizer/code_generator/ |
| D | codegen.h | 64 static bool Run(Graph *graph); 146 static inline TypeInfo ConvertDataType(DataType::Type type, Arch arch) in ConvertDataType() 371 static bool InstEncodedWithLibCall(const Inst *inst, Arch arch); 419 static constexpr int32_t NUM_OF_SRC_BUILTIN = 6; 420 static constexpr uint8_t FIRST_OPERAND = 0; 421 static constexpr uint8_t SECOND_OPERAND = 1; 422 static constexpr uint8_t THIRD_OPERAND = 2; 423 static constexpr uint8_t FOURTH_OPERAND = 3; 424 static constexpr uint8_t FIFTH_OPERAND = 4; 428 static Reg AcquireNonLiveReg(RegMask *mask); [all …]
|