| /arkcompiler/ets_runtime/test/sharedtest/definesendableclass/ |
| D | definesendableclass.ts | 27 static sField: number = 0; 30 static get sAge() { 34 static set sAge(a: number) { 1096 static a0:string = ""; 1097 static a1:string = ""; 1098 static a2:string = ""; 1099 static a3:string = ""; 1100 static a4:string = ""; 1101 static a5:string = ""; 1102 static a6:string = ""; [all …]
|
| /arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_ir/include/ |
| D | option.h | 29 static Options &GetInstance(); 50 static bool DumpPhase(const std::string &phase) in DumpPhase() 58 static bool IsSkipPhase(const std::string &phaseName) in IsSkipPhase() 63 static bool DumpFunc() in DumpFunc() 67 static bool IsBigEndian() in IsBigEndian() 72 static bool dumpBefore; 73 static bool dumpAfter; 74 static std::string dumpPhase; 75 static std::string skipPhase; 76 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_be/include/cg/ |
| D | cg_option.h | 126 static const OptionFlag kDefaultOptions = OptionFlag( 142 static const GenerateFlag kDefaultGflags = GenerateFlag(0); 145 static CGOptions &GetInstance(); 350 static bool DumpPhase(const std::string &phase); 351 static bool FuncFilter(const std::string &name); 466 static bool IsQuiet() in IsQuiet() 471 static void SetQuiet(bool flag) in SetQuiet() 476 static std::unordered_set<std::string> &GetDumpPhases() in GetDumpPhases() 481 static std::unordered_set<std::string> &GetSkipPhases() in GetSkipPhases() 486 static bool IsSkipPhase(const std::string &phaseName) in IsSkipPhase() [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/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 …]
|
| D | interpreter.h | 39 static const int16_t METHOD_HOTNESS_THRESHOLD = 0x700; 40 static const int16_t METHOD_HOTNESS_THRESHOLD_FACTOR = 10; 41 static const int16_t CANCEL_METHOD_HOTNESS_THRESHOLD = 0; 44 static JSTaggedValue Execute(EcmaRuntimeCallInfo *info); 45 static JSTaggedValue ExecuteNative(EcmaRuntimeCallInfo *info); 46 static EcmaRuntimeCallInfo* NewRuntimeCallInfo( 49 static EcmaRuntimeCallInfo* NewRuntimeCallInfo( 52 static EcmaRuntimeCallInfo* ReBuildRuntimeCallInfo( 54 …static JSTaggedValue GeneratorReEnterInterpreter(JSThread *thread, JSHandle<GeneratorContext> cont… 55 static JSTaggedValue GeneratorReEnterAot(JSThread *thread, JSHandle<GeneratorContext> context); [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 kMaxLengthBits = 1 << 30; // ~1 billion. 36 static constexpr uint32_t MAXSIZE = MAXBITS / DATEBITS; // the maximum value of size 37 static constexpr uint32_t MAXOCTALVALUE = 7; // 7 : max octal value 38 static constexpr uint32_t BINARY = 2; // 2 : binary 40 static constexpr uint32_t OCTAL = 8; // 8 : octal 41 static constexpr uint32_t DECIMAL = 10; // 10 : decimal 42 static constexpr uint32_t HEXADECIMAL = 16; // 16 : hexadecimal 43 static constexpr uint32_t HALFDATEBITS = DATEBITS / 2; [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/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 char HALFCHAR = '5'; 38 static constexpr uint32_t MAX_PRECISION = 16; 39 static constexpr uint8_t BINARY = 2; 40 static constexpr uint8_t OCTAL = 8; 41 static constexpr uint8_t DECIMAL = 10; [all …]
|
| D | utf_helper.h | 27 static constexpr size_t CONST_2 = 2; 28 static constexpr size_t CONST_3 = 3; 29 static constexpr size_t CONST_4 = 4; 30 static constexpr size_t MASK1 = 0x80; 31 static constexpr size_t MASK2 = 0x20; 32 static constexpr size_t MASK3 = 0x10; 33 static constexpr size_t LOW_3BITS = 0x7; 34 static constexpr size_t LOW_4BITS = 0xF; 35 static constexpr size_t LOW_5BITS = 0x1F; 36 static constexpr size_t LOW_6BITS = 0x3F; [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/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 CLASS = "Lstd/core/Class;"; 33 static constexpr std::string_view OBJECT = "Lstd/core/Object;"; 34 static constexpr std::string_view PROMISE = "Lstd/core/Promise;"; 35 static constexpr std::string_view PROMISE_REF = "Lstd/core/PromiseRef;"; 36 static constexpr std::string_view INTERNAL_UNDEFINED = "Lstd/core/__internal_unde… [all …]
|
| /arkcompiler/ets_runtime/ecmascript/stubs/ |
| D | runtime_stubs.h | 48 static void Initialize(JSThread *thread); 51 static JSTaggedType name(uintptr_t argGlue, uint32_t argc, uintptr_t argv); 56 … inline static JSTaggedType GetTArg(uintptr_t argv, [[maybe_unused]] uint32_t argc, uint32_t index) in TEST_RUNTIME_STUB_GC_LIST() 62 … inline static JSTaggedValue GetArg(uintptr_t argv, [[maybe_unused]] uint32_t argc, uint32_t index) in GetArg() 69 … inline static JSHandle<T> GetHArg(uintptr_t argv, [[maybe_unused]] uint32_t argc, uint32_t index) in GetHArg() 76 inline static T *GetPtrArg(uintptr_t argv, [[maybe_unused]] uint32_t argc, uint32_t index) in GetPtrArg() 82 static void Dump(JSTaggedType value); 83 static void DebugDump(JSTaggedType value); 84 static void DumpWithHint(uintptr_t hintStrAddress, JSTaggedType value); 85 static void DebugDumpWithHint(uintptr_t hintStrAddress, JSTaggedType value); [all …]
|
| /arkcompiler/ets_runtime/ecmascript/builtins/ |
| D | builtins_ark_tools.h | 168 static JSTaggedValue ObjectDump(EcmaRuntimeCallInfo *info); 170 static JSTaggedValue ExcutePendingJob(EcmaRuntimeCallInfo *info); 172 static JSTaggedValue GetLexicalEnv(EcmaRuntimeCallInfo *info); 174 static JSTaggedValue CompareHClass(EcmaRuntimeCallInfo *info); 176 static JSTaggedValue DumpHClass(EcmaRuntimeCallInfo *info); 178 // return whether the hclass used for object is created by static ts type 179 static JSTaggedValue IsTSHClass(EcmaRuntimeCallInfo *info); 181 static JSTaggedValue GetHClass(EcmaRuntimeCallInfo *info); 183 static JSTaggedValue IsSlicedString(EcmaRuntimeCallInfo *info); 185 static JSTaggedValue IsNotHoleProperty(EcmaRuntimeCallInfo *info); [all …]
|
| /arkcompiler/ets_runtime/ecmascript/module/ |
| D | module_path_helper.h | 64 static constexpr char EXT_NAME_ABC[] = ".abc"; 65 static constexpr char EXT_NAME_ETS[] = ".ets"; 66 static constexpr char EXT_NAME_TS[] = ".ts"; 67 static constexpr char EXT_NAME_JS[] = ".js"; 68 static constexpr char EXT_NAME_JSON[] = ".json"; 69 static constexpr char EXT_NAME_Z_SO[] = ".z.so"; 70 static constexpr char EXT_NAME_D_TS[] = ".d.ts"; 71 static constexpr char EXT_NAME_MJS[] = ".mjs"; 72 static constexpr char EXT_NAME_HQF[] = ".hqf"; 73 static constexpr char PREFIX_NORMALIZED[] = "@normalized:"; [all …]
|
| /arkcompiler/ets_frontend/es2panda/util/ |
| D | helpers.h | 86 static constexpr std::string_view DLL = ".dll"; 87 static constexpr std::string_view SO = ".so"; 88 static constexpr std::string_view DYLIB = ".dylib"; 111 static bool IsGlobalIdentifier(const util::StringView &str); 112 static bool ContainSpreadElement(const ArenaVector<ir::Expression *> &args); 113 static util::StringView LiteralToPropName(ArenaAllocator *allocator, const ir::Expression *lit); 116 static bool IsInteger(double number); 117 static bool IsIndex(double number); 118 static int64_t GetIndex(const util::StringView &str); 120 static bool FileExtensionIs(std::string_view filePath, std::string_view extension); [all …]
|
| /arkcompiler/ets_runtime/ecmascript/napi/include/ |
| D | dfx_jsnapi.h | 66 …static void DumpHeapSnapshot(const EcmaVM *vm, const std::string &path, const DumpSnapShotOption &… 67 …static void DumpHeapSnapshot(const EcmaVM *vm, Stream *stream, const DumpSnapShotOption &dumpOptio… 69 static void DumpCpuProfile(const EcmaVM *vm); 70 static void DumpHeapSnapshot(const EcmaVM *vm, const DumpSnapShotOption &dumpOption); 71 …static void DumpHeapSnapshot(const EcmaVM *vm, const DumpSnapShotOption &dumpOption, uint32_t tid); 72 …static void GenerateHeapSnapshotByBinFile(const EcmaVM *vm, std::string &inputFilePath, std::strin… 73 …static void DumpHeapSnapshotWithVm(const EcmaVM *vm, const DumpSnapShotOption &dumpOption, uint32_… 74 static void TriggerGC(const EcmaVM *vm, uint32_t tid); 75 static void TriggerGCWithVm(const EcmaVM *vm); 76 static void TriggerSharedGCWithVm(const EcmaVM *vm); [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/mem/ |
| D | mem.h | 40 static constexpr size_t INITIAL_REGULAR_OBJECT_CAPACITY = 1024_MB; 41 static constexpr size_t INITIAL_HUGE_OBJECT_CAPACITY = 1024_MB; 42 static constexpr size_t INCREMENT_HUGE_OBJECT_CAPACITY = 128_MB; 43 static constexpr size_t LARGE_POOL_SIZE = 480_MB; 44 static constexpr size_t MEDIUM_POOL_SIZE = 256_MB; 45 static constexpr size_t LOW_POOL_SIZE = 64_MB; 46 static constexpr size_t MIN_MEM_POOL_CAPACITY = 64_MB; 47 static constexpr size_t MAX_MEM_POOL_CAPACITY = 1536_MB; 50 static constexpr size_t MAX_GLOBAL_NATIVE_LIMIT = 512_MB; 52 static constexpr size_t MAX_GLOBAL_NATIVE_LIMIT = 2048_MB; [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/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 …]
|