Home
last modified time | relevance | path

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

12345678910>>...73

/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/
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* ReBuildRuntimeCallInfo(
49static inline JSTaggedValue GeneratorReEnterInterpreter(JSThread *thread, JSHandle<GeneratorContex…
50static inline JSTaggedValue GeneratorReEnterAot(JSThread *thread, JSHandle<GeneratorContext> conte…
52 static inline void RunInternal(JSThread *thread, const uint8_t *pc, JSTaggedType *sp);
54 static inline void InitStackFrame(JSThread *thread);
[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 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 …]
/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 DECUPLE_SLOT_SIZE = 80;
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/ets_runtime/ecmascript/builtins/
Dbuiltins_typedarray.h26 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 …]
Dbuiltins_math.h25 static constexpr double E = 2.718281828459045;
27 static constexpr double LN10 = 2.302585092994046;
29 static constexpr double LN2 = 0.6931471805599453;
31 static constexpr double LOG10E = 0.4342944819032518;
33 static constexpr double LOG2E = 1.4426950408889634;
35 static constexpr double PI = 3.141592653589793;
37 static constexpr double SQRT1_2 = 0.7071067811865476;
39 static constexpr double SQRT2 = 1.4142135623730951;
41 static JSTaggedValue Abs(EcmaRuntimeCallInfo *argv);
43 static JSTaggedValue Acos(EcmaRuntimeCallInfo *argv);
[all …]
Dbuiltins_array.h22 static constexpr uint8_t INDEX_TWO = 2;
23 static constexpr uint8_t INDEX_THREE = 3;
24 static const CString STRING_SEPERATOR = ",";
28 static JSTaggedValue ArrayConstructor(EcmaRuntimeCallInfo *argv);
31 static JSTaggedValue From(EcmaRuntimeCallInfo *argv);
33 static JSTaggedValue IsArray(EcmaRuntimeCallInfo *argv);
35 static JSTaggedValue Of(EcmaRuntimeCallInfo *argv);
37 static JSTaggedValue Species(EcmaRuntimeCallInfo *argv);
41 static JSTaggedValue Concat(EcmaRuntimeCallInfo *argv);
43 static JSTaggedValue CopyWithin(EcmaRuntimeCallInfo *argv);
[all …]
Dbuiltins_string.h35 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 …]
Dbuiltins_global.h23 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 …]
/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/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/stubs/
Druntime_stubs.h320 static void Initialize(JSThread *thread);
323 static JSTaggedType name(uintptr_t argGlue, uint32_t argc, uintptr_t argv);
328 … inline static JSTaggedType GetTArg(uintptr_t argv, [[maybe_unused]] uint32_t argc, uint32_t index) in TEST_RUNTIME_STUB_GC_LIST()
334 … inline static JSTaggedValue GetArg(uintptr_t argv, [[maybe_unused]] uint32_t argc, uint32_t index) in GetArg()
341 … inline static JSHandle<T> GetHArg(uintptr_t argv, [[maybe_unused]] uint32_t argc, uint32_t index) in GetHArg()
348 inline static T *GetPtrArg(uintptr_t argv, [[maybe_unused]] uint32_t argc, uint32_t index) in GetPtrArg()
354 static void DebugPrint(int fmtMessageId, ...);
355 static void DebugPrintInstruction([[maybe_unused]] uintptr_t argGlue, const uint8_t *pc);
356 static void Comment(uintptr_t argStr);
357static void ProfileCall(uintptr_t argGlue, uintptr_t func, uintptr_t target, int32_t pcOffset, uin…
[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 …]
Dcontainers_arraylist.h28 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 …]
Dcontainers_linked_list.h25 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 …]
Dcontainers_private.h47 static JSTaggedValue Load(EcmaRuntimeCallInfo *msg);
50static JSHandle<JSFunction> NewContainerConstructor(JSThread *thread, const JSHandle<JSObject> &pr…
52static JSHandle<JSFunction> NewFunction(JSThread *thread, const JSHandle<JSTaggedValue> &key, Ecma…
55static void SetFrozenFunction(JSThread *thread, const JSHandle<JSObject> &obj, const char *key, Ec…
58static void SetFrozenConstructor(JSThread *thread, const JSHandle<JSObject> &obj, const char *keyC…
60static 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,
70static JSTaggedValue InitializeContainer(JSThread *thread, const JSHandle<JSObject> &obj, Initiali…
[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/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…
59 static uint32_t GetBytecodeOffset(const EcmaVM *ecmaVm);
60 static uint32_t GetBytecodeOffset(const FrameHandler *frameHandler);
61 static std::unique_ptr<PtMethod> GetMethod(const EcmaVM *ecmaVm);
62 static Method *GetMethod(const FrameHandler *frameHandler);
63 static bool IsNativeMethod(const EcmaVM *ecmaVm);
64 static bool IsNativeMethod(const FrameHandler *frameHandler);
65 static JSPandaFile *GetJSPandaFile(const EcmaVM *ecmaVm);
[all …]
/arkcompiler/ets_frontend/es2panda/util/
Dhelpers.h61 static bool IsGlobalIdentifier(const util::StringView &str);
62 static bool ContainSpreadElement(const ArenaVector<ir::Expression *> &args);
63 static util::StringView LiteralToPropName(ArenaAllocator *allocator, const ir::Expression *lit);
66 static bool IsInteger(double number);
67 static bool IsIndex(double number);
68 static int64_t GetIndex(const util::StringView &str);
70 static bool FileExtensionIs(std::string_view filePath, std::string_view extension);
71 static bool EndsWith(std::string_view str, std::string_view suffix);
72 static std::string DoubleToString(double number);
73static int32_t GetIntegerSignificandBitCount(double number, int32_t &numberBitCount, char *signifi…
[all …]
/arkcompiler/ets_runtime/ecmascript/module/
Dmodule_path_helper.h62 static constexpr char EXT_NAME_ABC[] = ".abc";
63 static constexpr char EXT_NAME_ETS[] = ".ets";
64 static constexpr char EXT_NAME_TS[] = ".ts";
65 static constexpr char EXT_NAME_JS[] = ".js";
66 static constexpr char EXT_NAME_JSON[] = ".json";
67 static constexpr char PREFIX_BUNDLE[] = "@bundle:";
68 static constexpr char PREFIX_MODULE[] = "@module:";
69 static constexpr char PREFIX_PACKAGE[] = "@package:";
70 static constexpr char REQUIRE_NAITVE_MODULE_PREFIX[] = "@native:";
71 static constexpr char REQUIRE_NAPI_OHOS_PREFIX[] = "@ohos:";
[all …]
/arkcompiler/ets_runtime/ecmascript/napi/include/
Ddfx_jsnapi.h53static void DumpHeapSnapshot(const EcmaVM *vm, int dumpFormat, const std::string &path, bool isVmM…
55static void DumpHeapSnapshot(const EcmaVM *vm, int dumpFormat, Stream *stream, Progress *progress …
57static void DumpHeapSnapshot(const EcmaVM *vm, int dumpFormat, bool isVmMode = true, bool isPrivat…
59 static void DestroyHeapProfiler(const EcmaVM *vm);
61 static bool BuildNativeAndJsStackTrace(const EcmaVM *vm, std::string &stackTraceStr);
62 static bool BuildJsStackTrace(const EcmaVM *vm, std::string &stackTraceStr);
63 static bool StartHeapTracking(const EcmaVM *vm, double timeInterval, bool isVmMode = true,
65 static bool UpdateHeapTracking(const EcmaVM *vm, Stream *stream);
66static bool StopHeapTracking(const EcmaVM *vm, const std::string &filePath, bool newThread = true);
67static bool StopHeapTracking(const EcmaVM *vm, Stream *stream, Progress *progress = nullptr, bool …
[all …]

12345678910>>...73