| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_es_checked/ |
| D | string.yaml | 46 - method: anchor 49 - method: big 50 - method: blink 51 - method: bold 52 - method: charAt 55 - method: charCodeAt 58 - method: codePointAt 61 - method: concat 64 - method: endsWith 68 - method: fixed [all …]
|
| D | math.yaml | 19 - method: Math.abs 22 - method: Math.acos 25 - method: Math.acosh 28 - method: Math.asin 31 - method: Math.asinh 34 - method: Math.atan 37 - method: Math.atan2 44 - method: Math.atanh 47 - method: Math.cbrt 53 - method: Math.ceil [all …]
|
| /arkcompiler/runtime_core/static_core/runtime/ |
| D | cha.cpp | 38 for (const auto &method : klass->GetVTable()) { in Update() local 39 SetHasSingleImplementation(method, true); in Update() 46 PandaSet<Method *> invalidatedMethods; in Update() 49 auto method = klass->GetVTable()[i]; in Update() local 51 if (method == parentMethod || method->IsDefaultInterfaceMethod()) { in Update() 59 UpdateMethod(method); in Update() 63 auto method = klass->GetVTable()[i]; in Update() local 64 if (method->IsDefaultInterfaceMethod()) { in Update() 67 UpdateMethod(method); in Update() 73 bool ClassHierarchyAnalysis::HasSingleImplementation(Method *method) in HasSingleImplementation() argument [all …]
|
| D | compiler.h | 30 #include "runtime/include/method.h" 46 inline ark::Method *MethodCast(RuntimeInterface::MethodPtr method) in MethodCast() argument 48 return static_cast<ark::Method *>(method); in MethodCast() 57 RuntimeInterface::MethodPtr GetSingleImplementation(RuntimeInterface::MethodPtr method) override in GetSingleImplementation() argument 59 return static_cast<Method *>(method)->GetSingleImplementation(); in GetSingleImplementation() 61 bool IsSingleImplementation(RuntimeInterface::MethodPtr method) override in IsSingleImplementation() argument 63 return static_cast<Method *>(method)->HasSingleImplementation(); in IsSingleImplementation() 76 bool AddTableSlot(RuntimeInterface::MethodPtr method, uint32_t typeId, SlotKind kind) override; 77 …uintptr_t GetTableSlot(RuntimeInterface::MethodPtr method, uint32_t typeId, SlotKind kind) const o… 126 BinaryFilePtr GetBinaryFileForMethod(MethodPtr method) const override in GetBinaryFileForMethod() argument [all …]
|
| D | cha.h | 25 void AddDependency(Method *callee, Method *caller); 28 void InvalidateMethod(Method *method, PandaSet<Method *> *dependentMethods); 29 void InvalidateMethods(const PandaSet<Method *> &methods); 30 void UpdateMethod(Method *method); 31 bool HasSingleImplementation(Method *method); 32 void SetHasSingleImplementation(Method *method, bool singleImplementation); 39 PandaMap<Method *, PandaSet<Method *>> dependencyMap_;
|
| /arkcompiler/runtime_core/static_core/runtime/tests/ |
| D | compilation_status_test.cpp | 21 #include "runtime/include/method.h" 41 Method *GetMethod(Class *klass, size_t num); 57 Method *CompilationStatusTest::GetMethod(Class *klass, size_t num) in GetMethod() 61 Method *method = klass->GetDirectMethod(utf::CStringAsMutf8(ss.str().c_str())); in GetMethod() local 62 return method; in GetMethod() 95 Method *method = GetMethod(klass, 0); in TEST_F() local 96 auto status = method->GetCompilationStatus(); in TEST_F() 97 ASSERT_EQ(status, Method::NOT_COMPILED); in TEST_F() 99 ASSERT_EQ(method->AtomicSetCompilationStatus(status, Method::WAITING), true); in TEST_F() 100 status = method->GetCompilationStatus(); in TEST_F() [all …]
|
| /arkcompiler/ets_frontend/ets2panda/checker/types/ets/ |
| D | etsEnumType.h | 102 struct Method { struct 107 [[nodiscard]] Method ToStringMethod() const noexcept; argument 108 void SetToStringMethod(Method const &method) noexcept in SetToStringMethod() argument 110 toStringMethod_ = method; in SetToStringMethod() 113 [[nodiscard]] Method ValueOfMethod() const noexcept; 114 void SetValueOfMethod(Method const &method) noexcept in SetValueOfMethod() argument 116 valueOfMethod_ = method; in SetValueOfMethod() 119 [[nodiscard]] Method GetNameMethod() const noexcept; 120 void SetGetNameMethod(Method const &method) noexcept in SetGetNameMethod() argument 122 getNameMethod_ = method; in SetGetNameMethod() [all …]
|
| /arkcompiler/ets_runtime/ecmascript/debugger/ |
| D | notification_manager.h | 23 #include "ecmascript/method.h" 35 virtual void BytecodePcChanged(JSThread *thread, JSHandle<Method> method, 38 virtual bool HandleDebuggerStmt(JSHandle<Method> method, uint32_t bcOffset) = 0; 43 virtual void MethodEntry(JSHandle<Method> method, JSHandle<JSTaggedValue> envHandle) = 0; 44 virtual void MethodExit(JSHandle<Method> method) = 0; 77 void BytecodePcChangedEvent(JSThread *thread, Method *method, uint32_t bcOffset) const in BytecodePcChangedEvent() argument 80 JSHandle<Method> methodHandle(thread, method); in BytecodePcChangedEvent() 86 void DebuggerStmtEvent(JSThread *thread, Method *method, uint32_t bcOffset) const in DebuggerStmtEvent() argument 88 JSHandle<Method> methodHandle(thread, method); in DebuggerStmtEvent() 121 void MethodEntryEvent(JSThread *thread, Method *method, JSTaggedValue env) const in MethodEntryEvent() argument [all …]
|
| /arkcompiler/toolchain/tooling/agent/ |
| D | profiler_impl.cpp | 41 Method method = GetMethodEnum(request.GetMethod()); in Dispatch() local 43 switch (method) { in Dispatch() 44 case Method::DISABLE: in Dispatch() 47 case Method::ENABLE: in Dispatch() 50 case Method::START: in Dispatch() 53 case Method::STOP: in Dispatch() 56 case Method::SET_SAMPLING_INTERVAL: in Dispatch() 59 case Method::GET_BEST_EFFORT_COVERAGE: in Dispatch() 62 case Method::STOP_PRECISE_COVERAGE: in Dispatch() 65 case Method::TAKE_PRECISE_COVERAGE: in Dispatch() [all …]
|
| /arkcompiler/runtime_core/static_core/libpandafile/ |
| D | modifiers.h | 25 constexpr uint32_t ACC_PUBLIC = 0x0001; // field, method, class 26 constexpr uint32_t ACC_PRIVATE = 0x0002; // field, method, class 27 constexpr uint32_t ACC_PROTECTED = 0x0004; // field, method, class 28 constexpr uint32_t ACC_STATIC = 0x0008; // field, method 29 constexpr uint32_t ACC_FINAL = 0x0010; // field, method, class 31 constexpr uint32_t ACC_SYNCHRONIZED = 0x0020; // method 32 constexpr uint32_t ACC_BRIDGE = 0x0040; // method 35 constexpr uint32_t ACC_VARARGS = 0x0080; // method 36 constexpr uint32_t ACC_NATIVE = 0x0100; // method 38 constexpr uint32_t ACC_ABSTRACT = 0x0400; // method, class [all …]
|
| /arkcompiler/runtime_core/static_core/compiler/docs/ |
| D | inlining.md | 6 Inlining optimization replaces a method call site with the body of the called method. 13 Inlining of these instructions has two main difference: method resolving and guards. 15 Resolving of the CallStatic method is quite simple, since target method is explicitly determined by… 18 CallVirtual instruction also contains method ID, that should be called, but it also contains input … 19 is instance of some class, that, in turn, determines which implementation of the method should be c… 21 To devirtualize virtual calls, i.e. determine target method in compile time, we use following techn… 34 here, we know receiver class (A) at compile time and we can inline A.foo method without any specula… 41 the analysis is a flag in Method class, that indicates that method has a single implementation. 59 newobj v0, A # CHA set SingleImplementation for A.foo method 61 newobj v0, B # CHA set SingleImplementation for B.foo method and reset it for A.foo [all …]
|
| /arkcompiler/ets_frontend/arkguard/src/configs/test262filename/ |
| D | filterFilenameList.json | 409 "language/expressions/class/elements/after-same-line-gen-rs-private-method-alt.js", 412 "language/expressions/class/elements/after-same-line-gen-rs-private-method.js", 419 …"language/expressions/class/elements/after-same-line-gen-rs-static-generator-method-privatename-id… 420 …"language/expressions/class/elements/after-same-line-gen-rs-static-async-method-privatename-identi… 421 …"language/expressions/class/elements/after-same-line-gen-rs-static-async-generator-method-privaten… 422 …"language/expressions/class/elements/after-same-line-gen-rs-static-generator-method-privatename-id… 423 …"language/expressions/class/elements/after-same-line-gen-rs-static-method-privatename-identifier.j… 424 …"language/expressions/class/elements/after-same-line-gen-rs-static-async-method-privatename-identi… 426 …"language/expressions/class/elements/after-same-line-gen-rs-static-async-generator-method-privaten… 428 …"language/expressions/class/elements/after-same-line-gen-rs-static-method-privatename-identifier-a… [all …]
|
| /arkcompiler/ets_runtime/test/sharedtest/sharedcollectionsexception/ |
| D | expect_output.txt | 15 call boundAt fail. err: BusinessError: The at method cannot be bound., errCode: 10200011 16 Call boundConcat fail. err: BusinessError: The concat method cannot be bound., errCode: 10200011 17 Call boundEntries failed. err: BusinessError: The entries method cannot be bound., errCode: 10200011 18 Call boundFill failed. err: BusinessError: The fill method cannot be bound., errCode: 10200011 19 Call boundFilter failed. err: BusinessError: The filter method cannot be bound., errCode: 10200011 20 Call boundFind failed. err: BusinessError: The find method cannot be bound., errCode: 10200011 21 Call boundFindIndex failed. err: BusinessError: The findIndex method cannot be bound., errCode: 102… 22 Call boundForEach failed. err: BusinessError: The forEach method cannot be bound., errCode: 10200011 23 Call boundIndexOf failed. err: BusinessError: The indexOf method cannot be bound., errCode: 10200011 24 Call boundJoin failed. err: BusinessError: The join method cannot be bound., errCode: 10200011 [all …]
|
| /arkcompiler/runtime_core/static_core/compiler/aot/aot_builder/ |
| D | llvm_aot_builder.h | 39 * Put method header for a given method. 40 * The method will be patched later (see AdjustMethod below). 42 void AddMethodHeader(Method *method, size_t methodIndex) in AddMethodHeader() argument 45 methods_.emplace_back(arch_, method, methodIndex); in AddMethodHeader() 46 methodHeader.methodId = method->GetFileId().GetOffset(); in AddMethodHeader() 52 /// Adjust a method's header according to the supplied method 53 void AdjustMethodHeader(const CompiledMethod &method, size_t index) in AdjustMethodHeader() argument 57 methodHeader.codeSize = method.GetOverallSize(); in AdjustMethodHeader() 62 /// Adjust a method stored in this aot builder according to the supplied method 63 void AdjustMethod(const CompiledMethod &method, size_t index) in AdjustMethod() argument [all …]
|
| /arkcompiler/runtime_core/static_core/runtime/entrypoints/ |
| D | entrypoints.h | 26 extern "C" Frame *CreateFrameWithSize(uint32_t size, uint32_t nregs, Method *method, Frame *prev); 29 Method *method, Frame *prev); 32 … uint32_t numActualArgs, Method *method, 35 extern "C" Frame *CreateFrameForMethod(Method *method, Frame *prev); 37 extern "C" Frame *CreateFrameForMethodDyn(Method *method, Frame *prev); 39 extern "C" Frame *CreateFrameForMethodWithActualArgs(uint32_t numActualArgs, Method *method, Frame … 41 extern "C" Frame *CreateFrameForMethodWithActualArgsDyn(uint32_t numActualArgs, Method *method, Fra…
|
| /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 31 static constexpr uint32_t ACC_SYNCHRONIZED = 0x0020; // method 32 static constexpr uint32_t ACC_BRIDGE = 0x0040; // method 35 static constexpr uint32_t ACC_VARARGS = 0x0080; // method 36 static constexpr uint32_t ACC_NATIVE = 0x0100; // method 38 static constexpr uint32_t ACC_ABSTRACT = 0x0400; // method, class [all …]
|
| /arkcompiler/runtime_core/static_core/runtime/interpreter/ |
| D | runtime_interface.h | 28 #include "runtime/include/method.h" 40 static Method *ResolveMethod(ManagedThread *thread, const Method &caller, BytecodeId id) in ResolveMethod() 44 auto *method = classLinker->GetMethod(caller, resolvedId); in ResolveMethod() local 45 if (method == nullptr) { in ResolveMethod() 49 auto *klass = method->GetClass(); in ResolveMethod() 54 return method; in ResolveMethod() 57 static const uint8_t *GetMethodName(const Method *caller, BytecodeId methodId) in GetMethodName() 65 static Class *GetMethodClass(const Method *caller, BytecodeId methodId) in GetMethodClass() 76 static uint32_t GetMethodArgumentsCount(Method *caller, BytecodeId methodId) in GetMethodArgumentsCount() 85 static Field *ResolveField(ManagedThread *thread, const Method &caller, BytecodeId id) in ResolveField() [all …]
|
| /arkcompiler/runtime_core/static_core/verification/ |
| D | public.cpp | 105 static void ReportStatus(Service const *service, Method const *method, std::string const &status) in ReportStatus() argument 108 …LOG(DEBUG, VERIFIER) << "Verification result for method " << method->GetFullName(true) << ": " << … in ReportStatus() 133 static std::optional<Status> CheckBeforeVerification(Service *service, ark::Method *method, Verific… in CheckBeforeVerification() argument 135 using VStage = Method::VerificationStage; in CheckBeforeVerification() 136 if (method->IsIntrinsic()) { in CheckBeforeVerification() 141 * Races are possible where the same method gets simultaneously verified on different threads. in CheckBeforeVerification() 144 auto stage = method->GetVerificationStage(); in CheckBeforeVerification() 153 ReportStatus(service, method, "SKIP"); in CheckBeforeVerification() 156 if (method->GetInstructions() == nullptr) { in CheckBeforeVerification() 157 … LOG(DEBUG, VERIFIER) << method->GetFullName(true) << " has no code, no meaningful verification"; in CheckBeforeVerification() [all …]
|
| /arkcompiler/ets_frontend/test262/ |
| D | es2022_tests.txt | 135 language/expressions/object/method-definition/static-init-await-binding-accessor.js 136 language/expressions/object/method-definition/static-init-await-binding-generator.js 137 language/expressions/object/method-definition/static-init-await-binding-normal.js 138 language/expressions/object/method-definition/static-init-await-reference-accessor.js 139 language/expressions/object/method-definition/static-init-await-reference-generator.js 140 language/expressions/object/method-definition/static-init-await-reference-normal.js 211 language/expressions/class/elements/after-same-line-method-rs-field-identifier.js 220 language/expressions/class/elements/new-sc-line-method-computed-symbol-names.js 221 language/expressions/class/elements/new-sc-line-method-string-literal-names.js 223 language/expressions/class/elements/new-sc-line-method-literal-names.js [all …]
|
| /arkcompiler/ets_frontend/ets2panda/test/runtime/ets/ |
| D | local-class-standard-example2.sts | 18 method (parameter: number) { 22 method (): void 27 override method () { 29 assert(this.field == "`instance method instance field value`") 34 field: string = "`instance method instance field value`" 37 assert(LocalClass.s_field == "`instance method class/static field value`") 39 static s_field: string = "`instance method class/static field value`" 43 lc.method() 50 method (): void 55 override method () { [all …]
|
| /arkcompiler/runtime_core/static_core/runtime/include/ |
| D | vtable_builder_standard-inl.h | 24 bool StandardVTableBuilder<OverridePred>::IsOverriddenBy(Method::ProtoId const &base, Method::Proto… in IsOverriddenBy() 45 …VTableConflict(errorHandler_, ClassLinker::Error::OVERRIDES_FINAL, "Method overrides final method", in ProcessClassMethod() 73 // there is at least one implementing method, so skip default method in ScanConflictingDefaultMethods() 79 …// NOTE(vpukhov): that method is possibly a conflict, but we traverse the whole itable to handle s… in ScanConflictingDefaultMethods() 89 // more specific compatible method is defined, so skip default method in ScanConflictingDefaultMethods() 101 …VTableBuilder<OverridePred>::IsMaxSpecificInterfaceMethod(const Class *iface, const Method &method, in IsMaxSpecificInterfaceMethod() argument 110 if (method.GetName() != curmethod.GetName()) { in IsMaxSpecificInterfaceMethod() 113 if (IsOverriddenBy(method.GetProtoId(), curmethod.GetProtoId())) { in IsMaxSpecificInterfaceMethod() 130 Method *method = methodInfo->GetMethod(); in ProcessDefaultMethod() local 132 // if the default method is added for the first time, just add it. in ProcessDefaultMethod() [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/runtime/ |
| D | ets_entrypoints.cpp | 47 static inline bool Launch(EtsCoroutine *currentCoro, Method *method, const EtsHandle<EtsPromise> &p… in Launch() argument 57 …auto *coro = currentCoro->GetCoroutineManager()->Launch(evt, method, std::move(args), CoroutineLau… in Launch() 67 void LaunchCoroutine(Method *method, ObjectHeader *obj, uint64_t *args, ObjectHeader *thisObj) in LaunchCoroutine() argument 74 ASSERT(!method->IsStatic()); in LaunchCoroutine() 78 ASSERT(method->IsStatic()); in LaunchCoroutine() 82 ARCH_COPY_METHOD_ARGS(method, argReader, writer); in LaunchCoroutine() 87 bool successfulLaunch = Launch(currentCoro, method, promiseHandle, std::move(values)); in LaunchCoroutine() 94 extern "C" void CreateLaunchStaticCoroutineEntrypoint(Method *method, ObjectHeader *obj, uint64_t *… in CreateLaunchStaticCoroutineEntrypoint() argument 96 LaunchCoroutine(method, obj, args, nullptr); in CreateLaunchStaticCoroutineEntrypoint() 99 extern "C" void CreateLaunchVirtualCoroutineEntrypoint(Method *method, ObjectHeader *obj, uint64_t … in CreateLaunchVirtualCoroutineEntrypoint() argument [all …]
|
| /arkcompiler/ets_runtime/ecmascript/ |
| D | method.cpp | 16 #include "ecmascript/method.h" 21 std::string Method::ParseFunctionName() const in ParseFunctionName() 27 std::pair<std::string_view, bool> Method::ParseFunctionNameView() const in ParseFunctionNameView() 33 const char *Method::GetMethodName() const in GetMethodName() 39 const char *Method::GetMethodName(const JSPandaFile *file) const in GetMethodName() 44 const CString Method::GetRecordNameStr() const in GetRecordNameStr() 50 uint32_t Method::GetCodeSize() const in GetCodeSize() 56 const JSPandaFile *Method::GetJSPandaFile() const in GetJSPandaFile() 67 MethodLiteral *Method::GetMethodLiteral() const in GetMethodLiteral() 78 bool Method::IsDeoptimized() const in IsDeoptimized() [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/runtime/intrinsics/ |
| D | compiler_intrinsics.cpp | 46 Field *TryGetField(ark::Method *method, Field *rawField, uint32_t pc, ark::Class *klass) in TryGetField() argument 51 auto address = method->GetInstructions() + (useIc ? pc : 0); in TryGetField() 53 auto *res = cache->template Get<Field>(address, method); in TryGetField() 61 cache->template Set(address, field, method); in TryGetField() 67 ark::Method *TryGetCallee(ark::Method *method, Field *rawField, uint32_t pc, ark::Class *klass) in TryGetCallee() argument 72 auto address = method->GetInstructions() + (useIc ? pc : 0); in TryGetCallee() 74 auto *res = cache->template Get<Method>(address, method); in TryGetCallee() 76 auto methodPtr = reinterpret_cast<Method *>(resUint & ~METHOD_FLAG_MASK); in TryGetCallee() 81 ark::Method *callee; in TryGetCallee() 90 cache->template Set(address, reinterpret_cast<Method *>(mUint | METHOD_FLAG_MASK), method); in TryGetCallee() [all …]
|
| /arkcompiler/ets_frontend/es2panda/test/compiler/js/ |
| D | reserved-words-as-method-name-expected.txt | 1 method break 2 method case 3 method catch 4 method await 5 method async 6 method instanceof 7 method in
|