Home
last modified time | relevance | path

Searched full:static (Results 1 – 25 of 3345) sorted by relevance

12345678910>>...134

/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_ir/include/
Doption.h29 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/
Dclassstatic.ts22 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/
Dcg_option.h132 static const OptionFlag kDefaultOptions = OptionFlag(
148 static const GenerateFlag kDefaultGflags = GenerateFlag(0);
151 static CGOptions &GetInstance();
356 static bool DumpPhase(const std::string &phase);
357 static bool FuncFilter(const std::string &name);
462 static bool IsQuiet() in IsQuiet()
467 static void SetQuiet(bool flag) in SetQuiet()
472 static std::unordered_set<std::string> &GetDumpPhases() in GetDumpPhases()
477 static std::unordered_set<std::string> &GetSkipPhases() in GetSkipPhases()
482 static bool IsSkipPhase(const std::string &phaseName) in IsSkipPhase()
[all …]
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_util/include/
Dnamemangler.h54 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/
Djs_date.h25 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 …]
Djs_bigint.h33 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/ets_runtime/ecmascript/interpreter/
Dslow_runtime_stub.h29static 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 …]
Dinterpreter.h38 static const int16_t METHOD_HOTNESS_THRESHOLD = 0x700;
39 static const int16_t METHOD_HOTNESS_THRESHOLD_FACTOR = 10;
42 static inline JSTaggedValue Execute(EcmaRuntimeCallInfo *info);
43 static inline JSTaggedValue ExecuteNative(EcmaRuntimeCallInfo *info);
44 static EcmaRuntimeCallInfo* NewRuntimeCallInfo(
47 static EcmaRuntimeCallInfo* NewRuntimeCallInfo(
50 static EcmaRuntimeCallInfo* ReBuildRuntimeCallInfo(
52static inline JSTaggedValue GeneratorReEnterInterpreter(JSThread *thread, JSHandle<GeneratorContex…
53static inline JSTaggedValue GeneratorReEnterAot(JSThread *thread, JSHandle<GeneratorContext> conte…
55 static inline void RunInternal(JSThread *thread, const uint8_t *pc, JSTaggedType *sp);
[all …]
/arkcompiler/ets_runtime/ecmascript/base/
Dnumber_helper.h31 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 …]
/arkcompiler/ets_runtime/ecmascript/compiler/trampoline/aarch64/
Dcommon_call.h27 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 OCTUPLE_SLOT_SIZE = 64;
33 static constexpr int FRAME_SLOT_SIZE_LOG2 = 3;
35 static inline int64_t GetStackArgOffSetToFp(unsigned argId) in GetStackArgOffSetToFp()
55static void PushUndefinedWithArgc(ExtendedAssembler *assembler, Register glue, Register argc, Regi…
57static void PushArgsWithArgv(ExtendedAssembler *assembler, Register glue, Register argc, Register …
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/
Dets_panda_file_items.h27 static constexpr std::string_view ERROR = "Lescompat/Error;";
28 static constexpr std::string_view ARRAY_BUFFER = "Lescompat/ArrayBuffer;";
29 static constexpr std::string_view ASYNC = "Lets/coroutine/Async;";
30 static constexpr std::string_view EXCEPTION = "Lstd/core/Exception;";
31 static constexpr std::string_view CLASS = "Lstd/core/Class;";
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 VOID = "Lstd/core/void;";
35 static constexpr std::string_view INTERNAL_UNDEFINED = "Lstd/core/__internal_unde…
36 static constexpr std::string_view STRING = "Lstd/core/String;";
[all …]
/arkcompiler/ets_runtime/ecmascript/compiler/trampoline/x64/
Dcommon_call.h26 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/builtins/
Dbuiltins_ark_tools.h140 static JSTaggedValue ObjectDump(EcmaRuntimeCallInfo *info);
142 static JSTaggedValue ExcutePendingJob(EcmaRuntimeCallInfo *info);
144 static JSTaggedValue GetLexicalEnv(EcmaRuntimeCallInfo *info);
146 static JSTaggedValue CompareHClass(EcmaRuntimeCallInfo *info);
148 static JSTaggedValue DumpHClass(EcmaRuntimeCallInfo *info);
150 // return whether the hclass used for object is created by static ts type
151 static JSTaggedValue IsTSHClass(EcmaRuntimeCallInfo *info);
153 static JSTaggedValue GetHClass(EcmaRuntimeCallInfo *info);
155 static JSTaggedValue HasTSSubtyping(EcmaRuntimeCallInfo *info);
157 static JSTaggedValue IsSlicedString(EcmaRuntimeCallInfo *info);
[all …]
/arkcompiler/runtime_core/static_core/libpandafile/
Dmodifiers.h25 static constexpr uint32_t ACC_PUBLIC = 0x0001; // field, method, class
26 static constexpr uint32_t ACC_PRIVATE = 0x0002; // field, method, class
27 static constexpr uint32_t ACC_PROTECTED = 0x0004; // field, method, class
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/containers/
Dcontainers_vector.h25 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 …]
Dcontainers_lightweightmap.h25 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 …]
/arkcompiler/runtime_core/static_core/libpandabase/utils/
Darch.h46 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/runtime_core/libpandafile/
Dmodifiers.h25 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/
Darch.h46 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/
Ddebugger_api.h55 static uint32_t GetStackDepth(const EcmaVM *ecmaVm);
56 static std::shared_ptr<FrameHandler> NewFrameHandler(const EcmaVM *ecmaVm);
57static bool StackWalker(const EcmaVM *ecmaVm, std::function<StackState(const FrameHandler *)> func…
58 static uint32_t GetStackDepthOverBuiltin(const EcmaVM *ecmaVm);
60 static uint32_t GetBytecodeOffset(const EcmaVM *ecmaVm);
61 static uint32_t GetBytecodeOffset(const FrameHandler *frameHandler);
62 static std::unique_ptr<PtMethod> GetMethod(const EcmaVM *ecmaVm);
63 static Method *GetMethod(const FrameHandler *frameHandler);
64 static bool IsNativeMethod(const EcmaVM *ecmaVm);
65 static bool IsNativeMethod(const FrameHandler *frameHandler);
[all …]
/arkcompiler/ets_runtime/ecmascript/stubs/
Druntime_stubs.h398 static void Initialize(JSThread *thread);
401 static JSTaggedType name(uintptr_t argGlue, uint32_t argc, uintptr_t argv);
406 … inline static JSTaggedType GetTArg(uintptr_t argv, [[maybe_unused]] uint32_t argc, uint32_t index) in TEST_RUNTIME_STUB_GC_LIST()
412 … inline static JSTaggedValue GetArg(uintptr_t argv, [[maybe_unused]] uint32_t argc, uint32_t index) in GetArg()
419 … inline static JSHandle<T> GetHArg(uintptr_t argv, [[maybe_unused]] uint32_t argc, uint32_t index) in GetHArg()
426 inline static T *GetPtrArg(uintptr_t argv, [[maybe_unused]] uint32_t argc, uint32_t index) in GetPtrArg()
432 static void Dump(JSTaggedType value);
433 static void DebugDump(JSTaggedType value);
434 static void DumpWithHint(uintptr_t hintStrAddress, JSTaggedType value);
435 static void DebugDumpWithHint(uintptr_t hintStrAddress, JSTaggedType value);
[all …]
/arkcompiler/ets_frontend/es2panda/util/
Dhelpers.h64 static bool IsGlobalIdentifier(const util::StringView &str);
65 static bool ContainSpreadElement(const ArenaVector<ir::Expression *> &args);
66 static util::StringView LiteralToPropName(ArenaAllocator *allocator, const ir::Expression *lit);
69 static bool IsInteger(double number);
70 static bool IsIndex(double number);
71 static int64_t GetIndex(const util::StringView &str);
73 static bool FileExtensionIs(std::string_view filePath, std::string_view extension);
74 static bool EndsWith(std::string_view str, std::string_view suffix);
75 static std::string DoubleToString(double number);
76static int32_t GetIntegerSignificandBitCount(double number, int32_t &numberBitCount, char *signifi…
[all …]
/arkcompiler/ets_runtime/ecmascript/napi/include/
Ddfx_jsnapi.h64static void DumpHeapSnapshot(const EcmaVM *vm, int dumpFormat, const std::string &path, bool isVmM…
66static void DumpHeapSnapshot(const EcmaVM *vm, int dumpFormat, Stream *stream, Progress *progress …
69static void DumpCpuProfile(const EcmaVM *vm, int dumpFormat, bool isVmMode = true, bool isPrivate …
71static void DumpHeapSnapshot(const EcmaVM *vm, int dumpFormat, bool isVmMode = true, bool isPrivat…
73static void DumpHeapSnapshotAllVMs(const EcmaVM *vm, int dumpFormat, bool isVmMode = true, bool is…
75 static void DestroyHeapProfiler(const EcmaVM *vm);
77 static bool BuildNativeAndJsStackTrace(const EcmaVM *vm, std::string &stackTraceStr);
78 static bool BuildJsStackTrace(const EcmaVM *vm, std::string &stackTraceStr);
79 static bool StartHeapTracking(const EcmaVM *vm, double timeInterval, bool isVmMode = true,
81 static bool UpdateHeapTracking(const EcmaVM *vm, Stream *stream);
[all …]
/arkcompiler/runtime_core/static_core/runtime/tests/interpreter/
Dtest_runtime_interface.h109 static T *ToPointer(size_t value) in ToPointer()
116 static constexpr bool NEED_READ_BARRIER = false;
117 static constexpr bool NEED_WRITE_BARRIER = false;
157 static constexpr BytecodeId METHOD_ID {0xaabb};
158 static constexpr BytecodeId FIELD_ID {0xeeff};
159 static constexpr BytecodeId TYPE_ID {0x5566};
160 static constexpr BytecodeId LITERALARRAY_ID {0x7788};
162static coretypes::Array *ResolveLiteralArray([[maybe_unused]] PandaVM *vm, [[maybe_unused]] const … in ResolveLiteralArray()
170static Method *ResolveMethod([[maybe_unused]] ManagedThread *thread, [[maybe_unused]] const Method… in ResolveMethod()
177static Field *ResolveField([[maybe_unused]] ManagedThread *thread, [[maybe_unused]] const Method &… in ResolveField()
[all …]
/arkcompiler/ets_runtime/ecmascript/mem/
Dmem.h40 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 WORKER_NUM = 8;
48 static constexpr size_t PHY_SIZE_MULTIPLE = WORKER_NUM + 1;
49 static constexpr size_t STANDARD_POOL_SIZE = WORKER_NUM * DEFAULT_WORKER_HEAP_SIZE + DEFAULT_HEAP_S…
[all …]

12345678910>>...134