| /arkcompiler/ets_runtime/test/sharedtest/definesendableclass/ |
| D | definesendableclass.ts | 27 static sField: number = 0; 29 static "123": string = "parent" 36 static get sAge() { 40 static set sAge(a: number) { 1091 static "100":string = "100"; 1102 static "102":string = "102"; 1112 static a0:string = ""; 1113 static a1:string = ""; 1114 static a2:string = ""; 1115 static a3:string = ""; [all …]
|
| /arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_ir/include/ |
| D | option.h | 38 static Options &GetInstance(); 56 static bool DumpPhase(const std::string &phase) in DumpPhase() 64 static bool IsSkipPhase(const std::string &phaseName) in IsSkipPhase() 69 static bool DumpFunc() in DumpFunc() 73 static bool IsBigEndian() in IsBigEndian() 78 static bool dumpBefore; 79 static bool dumpAfter; 80 static std::string dumpPhase; 81 static std::string skipPhase; 82 static std::string skipFrom; [all …]
|
| /arkcompiler/ets_runtime/test/aottest/classstatic/ |
| D | classstatic.ts | 22 public static add(a: number, b: number): number { 32 public static sub(a: number, b: number): number { 38 static Constant = 1; 39 static Curve = 2; 40 static TwoC = 3; 41 static TwoCC = 4; 42 static test1 = 1; 43 static test2 = 2; 44 static test3 = 3; 45 static test4 = 4; [all …]
|
| /arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_util/include/ |
| D | namemangler.h | 54 static constexpr const char kMuidPrefixStr[] = "__muid_"; 55 static constexpr const char kMuidRoPrefixStr[] = "__muid_ro"; 56 static constexpr const char kMuidFuncDefTabPrefixStr[] = "__muid_func_def_tab"; 57 static constexpr const char kMuidFuncDefOrigTabPrefixStr[] = "__muid_ro_func_def_orig_tab"; 58 static constexpr const char kMuidFuncInfTabPrefixStr[] = "__muid_ro_func_inf_tab"; 59 static constexpr const char kMuidFuncMuidIdxTabPrefixStr[] = "__muid_ro_func_muid_idx_tab"; 60 static constexpr const char kMuidDataDefTabPrefixStr[] = "__muid_data_def_tab"; 61 static constexpr const char kMuidDataDefOrigTabPrefixStr[] = "__muid_ro_data_def_orig_tab"; 62 static constexpr const char kMuidFuncUndefTabPrefixStr[] = "__muid_func_undef_tab"; 63 static constexpr const char kMuidDataUndefTabPrefixStr[] = "__muid_data_undef_tab"; [all …]
|
| /arkcompiler/ets_runtime/ecmascript/compiler/trampoline/aarch64/ |
| D | common_call.h | 35 static constexpr int FRAME_SLOT_SIZE = 8; 36 static constexpr int DOUBLE_SLOT_SIZE = 16; 37 static constexpr int TRIPLE_SLOT_SIZE = 24; 38 static constexpr int QUADRUPLE_SLOT_SIZE = 32; 39 static constexpr int QUINTUPLE_SLOT_SIZE = 40; 40 static constexpr int OCTUPLE_SLOT_SIZE = 64; 41 static constexpr int NONUPLE_SLOT_SIZE = 72; 42 static constexpr int FRAME_SLOT_SIZE_LOG2 = 3; 44 static inline int64_t GetStackArgOffSetToFp(unsigned argId) in GetStackArgOffSetToFp() 64 …static void PushUndefinedWithArgc(ExtendedAssembler *assembler, Register glue, Register argc, Regi… [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 | 34 static constexpr uint32_t DATA_BITS = sizeof(uint32_t) * 8; // 8 : one-bit number of bytes 35 static constexpr uint32_t MAXBITS = 1_MB; // 1 MB : Maximum space that can be opened up 36 static constexpr uint32_t kMaxLengthBits = 1 << 30; // ~1 billion. 37 static constexpr uint32_t MAXSIZE = MAXBITS / DATA_BITS; // the maximum value of size 38 static constexpr uint32_t MAXOCTALVALUE = 7; // 7 : max octal value 39 static constexpr uint32_t BINARY = 2; // 2 : binary 41 static constexpr uint32_t OCTAL = 8; // 8 : octal 42 static constexpr uint32_t DECIMAL = 10; // 10 : decimal 43 static constexpr uint32_t HEXADECIMAL = 16; // 16 : hexadecimal 44 static constexpr uint32_t HALF_DATA_BITS = DATA_BITS / 2; [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/runtime/ |
| D | ets_panda_file_items.h | 27 static constexpr std::string_view ERROR = "Lescompat/Error;"; 28 static constexpr std::string_view ARRAY_BUFFER = "Lescompat/ArrayBuffer;"; 29 static constexpr std::string_view BIG_INT = "Lescompat/BigInt;"; 30 static constexpr std::string_view ASYNC = "Lets/coroutine/Async;"; 31 static constexpr std::string_view EXCEPTION = "Lstd/core/Exception;"; 32 static constexpr std::string_view OBJECT = "Lstd/core/Object;"; 33 static constexpr std::string_view PROMISE = "Lstd/core/Promise;"; 34 static constexpr std::string_view JOB = "Lstd/core/Job;"; 35 static constexpr std::string_view PROMISE_REF = "Lstd/core/PromiseRef;"; 36 static constexpr std::string_view WAITERS_LIST = "Lstd/core/WaitersList;"; [all …]
|
| /arkcompiler/runtime_core/static_core/compiler/optimizer/code_generator/ |
| D | encode_visitor.h | 68 static void SortSpillFillData(ArenaVector<SpillFillData> *spillFills); 70 static bool CanCombineSpillFills(SpillFillData pred, SpillFillData succ, const CFrameLayout &fl, 75 static void VisitMov(GraphVisitor *visitor, Inst *inst); 76 static void VisitNeg(GraphVisitor *visitor, Inst *inst); 77 static void VisitAbs(GraphVisitor *visitor, Inst *inst); 78 static void VisitNot(GraphVisitor *visitor, Inst *inst); 79 static void VisitSqrt(GraphVisitor *visitor, Inst *inst); 82 static void VisitAdd(GraphVisitor *visitor, Inst *inst); 83 static void VisitSub(GraphVisitor *visitor, Inst *inst); 84 static void VisitMul(GraphVisitor *visitor, Inst *inst); [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/x64/ |
| D | common_call.h | 34 static constexpr int FRAME_SLOT_SIZE = 8; 35 static constexpr int DOUBLE_SLOT_SIZE = 16; 36 static constexpr int TRIPLE_SLOT_SIZE = 24; 37 static constexpr int QUADRUPLE_SLOT_SIZE = 32; 38 static constexpr int QUINTUPLE_SLOT_SIZE = 40; 39 static constexpr int SEXTUPLE_SLOT_SIZE = 48; 40 static void CopyArgumentWithArgV(ExtendedAssembler *assembler, Register argc, Register argV); 41 static void PushAsmInterpBridgeFrame(ExtendedAssembler *assembler); 42 static void PopAsmInterpBridgeFrame(ExtendedAssembler *assembler); 43 static void PushUndefinedWithArgc(ExtendedAssembler *assembler, Register argc); [all …]
|
| /arkcompiler/ets_runtime/ecmascript/base/ |
| D | number_helper.h | 32 static constexpr uint32_t NO_FLAGS = 0U; 33 static constexpr uint32_t ALLOW_BINARY = 1U << 0U; 34 static constexpr uint32_t ALLOW_OCTAL = 1U << 1U; 35 static constexpr uint32_t ALLOW_HEX = 1U << 2U; 36 static constexpr uint32_t IGNORE_TRAILING = 1U << 3U; 38 static constexpr char HALFCHAR = '5'; 39 static constexpr uint32_t MAX_PRECISION = 16; 40 static constexpr uint8_t BINARY = 2; 41 static constexpr uint8_t OCTAL = 8; 42 static constexpr uint8_t DECIMAL = 10; [all …]
|
| /arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/ |
| D | cg_option.h | 109 static const OptionFlag kDefaultOptions = OptionFlag( 125 static const GenerateFlag kDefaultGflags = GenerateFlag(0); 128 static CGOptions &GetInstance(); 262 static bool DumpPhase(const std::string &phase); 263 static bool FuncFilter(const std::string &name); 345 static std::unordered_set<std::string> &GetDumpPhases() in GetDumpPhases() 350 static std::unordered_set<std::string> &GetSkipPhases() in GetSkipPhases() 355 static bool IsSkipPhase(const std::string &phaseName) in IsSkipPhase() 365 static const std::unordered_map<std::string, std::vector<std::string>> &GetCyclePatternMap() in GetCyclePatternMap() 370 static bool IsSkipFromPhase(const std::string &phaseName) in IsSkipFromPhase() [all …]
|
| /arkcompiler/ets_runtime/ecmascript/stubs/ |
| D | runtime_stubs.h | 51 static constexpr uint32_t TRACE_NUMBER = 100; 52 static constexpr uint32_t RT_STUB_FUNC_SIZE = 8; 54 static void Initialize(JSThread *thread); 57 static JSTaggedType name(uintptr_t argGlue, uint32_t argc, uintptr_t argv); 63 … inline static JSTaggedType GetTArg(uintptr_t argv, [[maybe_unused]] uint32_t argc, uint32_t index) in RUNTIME_STUB_WITH_DFX() 69 … inline static JSTaggedValue GetArg(uintptr_t argv, [[maybe_unused]] uint32_t argc, uint32_t index) in GetArg() 76 … inline static JSHandle<T> GetHArg(uintptr_t argv, [[maybe_unused]] uint32_t argc, uint32_t index) in GetHArg() 83 inline static T *GetPtrArg(uintptr_t argv, [[maybe_unused]] uint32_t argc, uint32_t index) in GetPtrArg() 89 static void Dump(JSTaggedType value); 90 static void DebugDump(JSTaggedType value); [all …]
|
| /arkcompiler/ets_runtime/ecmascript/mem/ |
| D | mem.h | 41 static constexpr size_t INITIAL_REGULAR_OBJECT_CAPACITY = 1024_MB; 42 static constexpr size_t INITIAL_HUGE_OBJECT_CAPACITY = 1024_MB; 43 static constexpr size_t INITIAL_NONMOVALBE_OBJECT_CAPACITY = 1024_MB; 44 static constexpr size_t INCREMENT_HUGE_OBJECT_CAPACITY = 128_MB; 45 static constexpr size_t LARGE_POOL_SIZE = 480_MB; 46 static constexpr size_t MEDIUM_POOL_SIZE = 256_MB; 47 static constexpr size_t LOW_POOL_SIZE = 64_MB; 48 static constexpr size_t MIN_MEM_POOL_CAPACITY = 64_MB; 49 static constexpr size_t MAX_MEM_POOL_CAPACITY = 1536_MB; 52 static constexpr size_t MAX_GLOBAL_NATIVE_LIMIT = 512_MB; [all …]
|
| /arkcompiler/ets_frontend/ets2panda/linter/test/main/ |
| D | class_static_init.ets | 21 static a: A 25 static g: G 31 static a: A | undefined = undefined 32 static g: G; 36 static a: A 37 static g: G | undefined = undefined; 46 public static abc:string ; 59 static b: BB; 63 static count: number; 67 static config: { theme: string}; [all …]
|
| /arkcompiler/ets_frontend/es2panda/util/ |
| D | helpers.h | 59 * in abc2program and modify the ohmurl for dynamic and static imports. 92 static constexpr std::string_view DLL = ".dll"; 93 static constexpr std::string_view SO = ".so"; 94 static constexpr std::string_view DYLIB = ".dylib"; 124 static bool IsGlobalIdentifier(const util::StringView &str); 125 static bool ContainSpreadElement(const ArenaVector<ir::Expression *> &args); 126 static util::StringView LiteralToPropName(ArenaAllocator *allocator, const ir::Expression *lit); 129 static bool IsInteger(double number); 130 static bool IsIndex(double number); 131 static int64_t GetIndex(const util::StringView &str); [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 …]
|
| /arkcompiler/ets_runtime/ecmascript/builtins/ |
| D | builtins_ark_tools.h | 209 static JSTaggedValue ObjectDump(EcmaRuntimeCallInfo *info); 211 static JSTaggedValue ExcutePendingJob(EcmaRuntimeCallInfo *info); 213 static JSTaggedValue GetLexicalEnv(EcmaRuntimeCallInfo *info); 215 static JSTaggedValue CurrentEnvIsGlobal(EcmaRuntimeCallInfo *info); 217 static JSTaggedValue CompareHClass(EcmaRuntimeCallInfo *info); 219 static JSTaggedValue DumpHClass(EcmaRuntimeCallInfo *info); 221 static JSTaggedValue GetInlinedPropertiesCount(EcmaRuntimeCallInfo *info); 224 static JSTaggedValue IsTSHClass(EcmaRuntimeCallInfo *info); 226 static JSTaggedValue GetHClass(EcmaRuntimeCallInfo *info); 228 static JSTaggedValue IsSlicedString(EcmaRuntimeCallInfo *info); [all …]
|
| /arkcompiler/ets_runtime/ecmascript/module/ |
| D | module_path_helper.h | 64 static constexpr std::string_view EXT_NAME_ABC = ".abc"; 65 static constexpr std::string_view EXT_NAME_ETS = ".ets"; 66 static constexpr std::string_view EXT_NAME_TS = ".ts"; 67 static constexpr std::string_view EXT_NAME_JS = ".js"; 68 static constexpr std::string_view EXT_NAME_JSON = ".json"; 69 static constexpr std::string_view EXT_NAME_Z_SO = ".z.so"; 70 static constexpr std::string_view EXT_NAME_D_TS = ".d.ts"; 71 static constexpr std::string_view EXT_NAME_MJS = ".mjs"; 72 static constexpr std::string_view EXT_NAME_HQF = ".hqf"; 73 static constexpr std::string_view PREFIX_NORMALIZED = "@normalized:"; [all …]
|
| D | module_value_accessor.h | 25 static JSTaggedValue GetModuleValueInner(JSThread *thread, int32_t index); 26 static JSTaggedValue GetModuleValueInner(JSThread *thread, int32_t index, JSTaggedValue jsFunc); 27 …static JSTaggedValue GetModuleValueInner(JSThread *thread, int32_t index, JSHandle<JSTaggedValue> … 28 …static JSTaggedValue GetSendableModuleValueInner(JSThread *thread, int32_t index, JSTaggedValue js… 30 static JSTaggedValue GetModuleValueOuter(JSThread *thread, int32_t index); 31 static JSTaggedValue GetModuleValueOuter(JSThread *thread, int32_t index, JSTaggedValue jsFunc); 32 …static JSTaggedValue GetModuleValueOuter(JSThread *thread, int32_t index, JSHandle<JSTaggedValue> … 33 …static JSTaggedValue GetLazyModuleValueOuter(JSThread *thread, int32_t index, JSTaggedValue jsFunc… 34 …static JSTaggedValue GetSendableModuleValueOuter(JSThread *thread, int32_t index, JSTaggedValue js… 35 …static JSTaggedValue GetLazySendableModuleValueOuter(JSThread *thread, int32_t index, JSTaggedValu… [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/ets_runtime/ecmascript/napi/include/ |
| D | dfx_jsnapi.h | 73 …static void DumpHeapSnapshot(const EcmaVM *vm, const std::string &path, const DumpSnapShotOption &… 75 …static void DumpHeapSnapshot(const EcmaVM *vm, Stream *stream, const DumpSnapShotOption &dumpOptio… 78 static void DumpCpuProfile(const EcmaVM *vm); 79 static void DumpHeapSnapshot(const EcmaVM *vm, const DumpSnapShotOption &dumpOption); 80 …static void DumpHeapSnapshot(const EcmaVM *vm, const DumpSnapShotOption &dumpOption, uint32_t tid); 81 …static void DumpHeapSnapshotWithVm(const EcmaVM *vm, const DumpSnapShotOption &dumpOption, uint32_… 82 static void TriggerGC(const EcmaVM *vm, uint32_t tid); 83 static void TriggerGCWithVm(const EcmaVM *vm); 84 static void TriggerSharedGCWithVm(const EcmaVM *vm); 85 static void DestroyHeapProfiler(const EcmaVM *vm); [all …]
|
| /arkcompiler/ets_runtime/ecmascript/debugger/ |
| D | debugger_api.h | 79 static uint32_t GetStackDepth(const EcmaVM *ecmaVm); 80 static std::shared_ptr<FrameHandler> NewFrameHandler(const EcmaVM *ecmaVm); 81 …static bool StackWalker(const EcmaVM *ecmaVm, std::function<StackState(const FrameHandler *)> func… 82 static uint32_t GetStackDepthOverBuiltin(const EcmaVM *ecmaVm); 84 static uint32_t GetBytecodeOffset(const EcmaVM *ecmaVm); 85 static uint32_t GetBytecodeOffset(const FrameHandler *frameHandler); 86 static std::unique_ptr<PtMethod> GetMethod(const EcmaVM *ecmaVm); 87 static Method *GetMethod(const FrameHandler *frameHandler); 88 static bool IsNativeMethod(const EcmaVM *ecmaVm); 89 static bool IsNativeMethod(const FrameHandler *frameHandler); [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 …]
|