Home
last modified time | relevance | path

Searched full:method (Results 1 – 25 of 721) sorted by relevance

12345678910>>...29

/arkcompiler/ets_runtime/ecmascript/debugger/
Dnotification_manager.h34 virtual void BytecodePcChanged(JSThread *thread, JSHandle<Method> method,
37 virtual bool HandleDebuggerStmt(JSHandle<Method> method, uint32_t bcOffset) = 0;
41 virtual void MethodEntry(JSHandle<Method> method) = 0;
42 virtual void MethodExit(JSHandle<Method> method) = 0;
68 void BytecodePcChangedEvent(JSThread *thread, Method *method, uint32_t bcOffset) const in BytecodePcChangedEvent() argument
72 JSHandle<Method> methodHandle(thread, method); in BytecodePcChangedEvent()
77 void DebuggerStmtEvent(JSThread *thread, Method *method, uint32_t bcOffset) const in DebuggerStmtEvent() argument
80 JSHandle<Method> methodHandle(thread, method); in DebuggerStmtEvent()
105 void MethodEntryEvent(JSThread *thread, Method *method) const in MethodEntryEvent() argument
108 JSHandle<Method> methodHandle(thread, method); in MethodEntryEvent()
[all …]
Djs_debugger.cpp75 void JSDebugger::BytecodePcChanged(JSThread *thread, JSHandle<Method> method, uint32_t bcOffset) in BytecodePcChanged() argument
77 ASSERT(bcOffset < method->GetCodeSize() && "code size of current Method less then bcOffset"); in BytecodePcChanged()
78 HandleExceptionThrowEvent(thread, method, bcOffset); in BytecodePcChanged()
81 if (!HandleStep(method, bcOffset)) { in BytecodePcChanged()
82 HandleBreakpoint(method, bcOffset); in BytecodePcChanged()
86 bool JSDebugger::HandleBreakpoint(JSHandle<Method> method, uint32_t bcOffset) in HandleBreakpoint() argument
88 auto breakpoint = FindBreakpoint(method, bcOffset); in HandleBreakpoint()
112 JSPtLocation location {method->GetJSPandaFile(), method->GetMethodId(), bcOffset, in HandleBreakpoint()
119 bool JSDebugger::HandleDebuggerStmt(JSHandle<Method> method, uint32_t bcOffset) in HandleDebuggerStmt() argument
125 JSPtLocation location {method->GetJSPandaFile(), method->GetMethodId(), bcOffset}; in HandleDebuggerStmt()
[all …]
Djs_debugger.h118 bool HandleDebuggerStmt(JSHandle<Method> method, uint32_t bcOffset) override;
122 void BytecodePcChanged(JSThread *thread, JSHandle<Method> method, uint32_t bcOffset) override;
151 void MethodEntry(JSHandle<Method> method) override;
152 void MethodExit(JSHandle<Method> method) override;
155 std::optional<JSBreakpoint> FindBreakpoint(JSHandle<Method> method, uint32_t bcOffset) const;
157 …void HandleExceptionThrowEvent(const JSThread *thread, JSHandle<Method> method, uint32_t bcOffset);
158 bool HandleStep(JSHandle<Method> method, uint32_t bcOffset);
159 bool HandleBreakpoint(JSHandle<Method> method, uint32_t bcOffset);
/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
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 …]
Ddebug_info_extractor.cpp257 for (const auto &method : methods_) { in GetLineNumberTable() local
258 if (method.method_id == method_id) { in GetLineNumberTable()
259 return method.line_number_table; in GetLineNumberTable()
269 for (const auto &method : methods_) { in GetColumnNumberTable() local
270 if (method.method_id == method_id) { in GetColumnNumberTable()
271 return method.column_number_table; in GetColumnNumberTable()
281 for (const auto &method : methods_) { in GetLocalVariableTable() local
282 if (method.method_id == method_id) { in GetLocalVariableTable()
283 return method.local_variable_table; in GetLocalVariableTable()
293 for (const auto &method : methods_) { in GetParameterInfo() local
[all …]
/arkcompiler/ets_frontend/es2panda/test/compiler/js/
Dreserved-words-as-method-name-expected.txt1 method break
2 method case
3 method catch
4 method await
5 method async
6 method instanceof
7 method in
Dreserved-words-as-method-name.js18 print("method break")
21 print("method case")
24 print("method catch")
27 print("method await")
30 print("method async")
33 print("method instanceof")
36 print("method in")
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/
DcontextuallyTypedByDiscriminableUnion.ts23 method(x: string): number;
26 method(x: number): string;
36 item.method("");
37 AssertType(item.method(""), "number");
38 AssertType(item.method, "(string) => number");
42 item.method(42);
43 AssertType(item.method(42), "string");
44 AssertType(item.method, "(number) => string");
51 AssertType({ kind: "a", method(a) { return +a; }}, "{ kind: "a"; method(string): nu…
52 AssertType(invoke({ kind: "a", method(a) { return +a; }}), "void");
[all …]
DinferentialTypingObjectLiteralMethod1.ts22 method(x: T): U;
25 foo("", { method(p1) {
26 AssertType(foo("", { method(p1) { return p1.length } }, { method(p2) { return undefined } }), "stri…
29 AssertType({ method(p1) { return p1.length } }, "{ method(string): number; }");
30 AssertType(method, "(string) => number");
33 AssertType({ method(p2) { return undefined } }, "{ method(number): any; }");
34 AssertType(method, "(number) => any");
37 return p1.length } }, { method(p2) { return undefined } });
DinterfaceClassMerging.ts22 method(a: number): string;
32 AssertType(this.method(0), "string");
33 AssertType(this.method, "(number) => string");
36 return this.method(0);
41 method(a: number) { method in Bar
54 bar.method(0);
55 AssertType(bar.method(0), "string");
56 AssertType(bar.method, "(number) => string");
79 AssertType(obj, "{ method(number): string; property: string; additionalProperty: string; additional…
81 method(a: number): string; variable
[all …]
DsuperCallParameterContextualTyping3.ts22 method(parameter: T): void;
38 AssertType(super({ method(p) { p.length; } }), "void");
40 AssertType({ method(p) { p.length; } }, "{ method(strin…
42 method(p) {
43 AssertType(method, "(string) => void");
54 AssertType(super.foo({ method(p) { p.length; } }), "voi…
57 AssertType({ method(p) { p.length; } }, "{ method(strin…
59 method(p) {
60 AssertType(method, "(string) => void");
DinferentialTypingObjectLiteralMethod2.ts25 foo("", { method(p1) {
26 AssertType(foo("", { method(p1) { return p1.length } }, { method(p2) { return undefined } }), "stri…
29 AssertType({ method(p1) { return p1.length } }, "{ method(string): number; }");
30 AssertType(method, "(string) => number");
33 AssertType({ method(p2) { return undefined } }, "{ method(number): any; }");
34 AssertType(method, "(number) => any");
37 return p1.length } }, { method(p2) { return undefined } });
DcontextualTypeShouldBeLiteral.ts24 method(): void;
30 method(): void; method
36 AssertType(foo({ type: 'y', value: 'done', method() { this; this.type; …
38 …y', value: 'done', method() { this; this.type; this.value; }}, "{ ty…
48 method() {
49 AssertType(method, "() => void");
67 method(): void; method
73 method(): void; method
79 AssertType(foo2({ type2: 'y', value: 'done', method() { this; this.value; …
81 …type2: 'y', value: 'done', method() { this; this.value; }}, "{ type2: "y"; …
[all …]
DsuperMethodCall.ts22 method?() { }
26 method() { method in Derived
27 AssertType(super.method?.(), "union");
28 AssertType(super.method, "union");
30 return super.method?.();
34 AssertType(super.method?.(), "union");
35 AssertType(super.method, "union");
37 return super.method?.();
DtypeGuardsObjectMethods.ts35 AssertType(obj1, "{ method(union): union; prop: union; }");
36method method(param: string | number) { // global lets in function declaration nu…
38 // Inside method
39 method(param: string | number) {
40 AssertType(method, "(union) => union");
156 // return expression of the method
157 strOrNum = typeof obj1.method(strOrNum) === "string" && obj1.method(strOrNum);
158 AssertType(strOrNum = typeof obj1.method(strOrNum) === "string" && obj1.method(strOrNum), "union");
160 AssertType(typeof obj1.method(strOrNum) === "string" && obj1.method(strOrNum), "union");
161 AssertType(typeof obj1.method(strOrNum) === "string", "boolean");
[all …]
DgenericIndexedAccessMethodIntersectionCanBeAccessed.ts34 ….forEach(key => { const method = (ServiceCtr)[key as keyof T]; const {__$daemonMode,…
41 ….forEach(key => { const method = (ServiceCtr)[key as keyof T]; const {__$daemonMode,…
46 …sertType(key => { const method = (ServiceCtr)[key as keyof T]; const {__$daemonMode,…
49 const method = (ServiceCtr)[key as keyof T];
50 AssertType(method, "(ExtendedService<T> & Service<T>)[keyof T]");
57 const {__$daemonMode, __$action, id} = method;
61 AssertType(method, "(ExtendedService<T> & Service<T>)[keyof T]");
/arkcompiler/ets_runtime/ecmascript/
Dmethod.cpp16 #include "ecmascript/method.h"
22 std::string Method::ParseFunctionName() const in ParseFunctionName()
28 const char *Method::GetMethodName() const in GetMethodName()
34 const char *Method::GetMethodName(const JSPandaFile *file) const in GetMethodName()
39 const CString Method::GetRecordName() const in GetRecordName()
45 uint32_t Method::GetCodeSize() const in GetCodeSize()
51 const JSPandaFile *Method::GetJSPandaFile() const in GetJSPandaFile()
62 MethodLiteral *Method::GetMethodLiteral() const in GetMethodLiteral()
72 uint32_t Method::FindCatchBlock(uint32_t pc) const in FindCatchBlock()
92 JSHandle<Method> Method::Create(JSThread *thread, const JSPandaFile *jsPandaFile, MethodLiteral *me… in Create()
[all …]
/arkcompiler/runtime_core/compiler/docs/
Dinterface_inline_cache.md4 `Interface Inline Cache` is an optimization for speeding up find method in interface method call.
5 … to be inherited, and uses the itable table to dynamically query the address of the target method.
6 `Interface Inline Cache` will stores the parsing result of the previous method address as the cache…
11 * There is a 90% - 95% chance that the same method will be used in real-world application test.
15 * `Slow path`: Call runtime RESOLVE_VIRTUAL_CALL_AOT to get method address and save method addr a…
38 use cache.offset(method) |
41 save method‘s offset to cache >------|
43 call method
60 1. The purpose of `offset addr` is to obtain the `method addr` through calculation.
61 2. `offset addr` = ((`method addr`) - ([`class addr`].`methods_` addr)) / 2 ^ 3
[all …]
Dplt.md16 `SlowPath` also can be used, as we can cache gathered Method or Class pointer into a slot in GOT ta…
17 … a `SlowPath` would be actually required only once when we first time reach appropriate `method Id`
22 For each pair of File (input for `ark_aot` compiler) and callee `method Id` (`panda_file::File::Ent…
23 …reserved in PLT-GOT table. `FirstSlot` is filled during AOT file creation and contains `method Id`.
25 `ThirdSlot` would actually store `Method pointer` after resolving, but during AOT file loading it i…
28 During calls, first parameter is always a callee `Method pointer`, so the trick from previous parag…
36 -YY-16: FirstSlot - method Id
49 XX+04: ldr x0, [x0] ; Load value stored in ThirdSlot ; (&FirstSlot)-48 ; Method Pointer
51 XX+12: blr x30 ; Call ; Call Resolver ; Call Method
56 value in `x0`, so it may load `ldr x1, [x0, #48]` to get `method Id` from `FirstSlot`.
[all …]
/arkcompiler/runtime_core/bytecode_optimizer/
Druntime_adapter.h40 BinaryFilePtr GetBinaryFileForMethod([[maybe_unused]] MethodPtr method) const override in GetBinaryFileForMethod() argument
50 MethodId GetMethodId(MethodPtr method) const override in GetMethodId() argument
52 return static_cast<MethodId>(reinterpret_cast<uintptr_t>(method)); in GetMethodId()
55 size_t GetMethodTotalArgumentsCount(MethodPtr method) const override in GetMethodTotalArgumentsCount() argument
57 panda_file::MethodDataAccessor mda(panda_file_, MethodCast(method)); in GetMethodTotalArgumentsCount()
73 size_t GetMethodRegistersCount(MethodPtr method) const override in GetMethodRegistersCount() argument
75 panda_file::MethodDataAccessor mda(panda_file_, MethodCast(method)); in GetMethodRegistersCount()
83 const uint8_t *GetMethodCode(MethodPtr method) const override in GetMethodCode() argument
85 panda_file::MethodDataAccessor mda(panda_file_, MethodCast(method)); in GetMethodCode()
93 size_t GetMethodCodeSize(MethodPtr method) const override in GetMethodCodeSize() argument
[all …]
/arkcompiler/runtime_core/compiler/optimizer/ir/
Druntime_interface.h74 virtual BinaryFilePtr GetBinaryFileForMethod([[maybe_unused]] MethodPtr method) const in GetBinaryFileForMethod() argument
79 virtual MethodId GetMethodId([[maybe_unused]] MethodPtr method) const in GetMethodId() argument
84 // Return total arguments count including this for instance method
85 virtual size_t GetMethodTotalArgumentsCount([[maybe_unused]] MethodPtr method) const in GetMethodTotalArgumentsCount() argument
93 virtual size_t GetMethodArgumentsCount([[maybe_unused]] MethodPtr method) const in GetMethodArgumentsCount() argument
97 virtual size_t GetMethodRegistersCount([[maybe_unused]] MethodPtr method) const in GetMethodRegistersCount() argument
101 virtual const uint8_t *GetMethodCode([[maybe_unused]] MethodPtr method) const in GetMethodCode() argument
105 virtual size_t GetMethodCodeSize([[maybe_unused]] MethodPtr method) const in GetMethodCodeSize() argument
110 virtual SourceLanguage GetMethodSourceLanguage([[maybe_unused]] MethodPtr method) const in GetMethodSourceLanguage() argument
115 virtual std::string GetClassNameFromMethod([[maybe_unused]] MethodPtr method) const in GetClassNameFromMethod() argument
[all …]
/arkcompiler/toolchain/tooling/test/
Ddebugger_params_test.cpp75 msg = std::string() + R"({"id":0,"method":"Debugger.Test","params":{}})"; in HWTEST_F_L0()
81 … msg = std::string() + R"({"id":0,"method":"Debugger.Test","params":{"maxScriptsCacheSize":100}})"; in HWTEST_F_L0()
93 msg = std::string() + R"({"id":0,"method":"Debugger.Test","params":{}})"; in HWTEST_F_L0()
99 msg = std::string() + R"({"id":0,"method":"Debugger.Test","params":{"unknownKey":100}})"; in HWTEST_F_L0()
105 msg = std::string() + R"({"id":0,"method":"Debugger.Test","params":{"samplingInterval":true}})"; in HWTEST_F_L0()
110 … msg = std::string() + R"({"id":0,"method":"Debugger.Test","params":{"samplingInterval":"Test"}})"; in HWTEST_F_L0()
115 msg = std::string() + R"({"id":0,"method":"Debugger.Test","params":{"samplingInterval":1000}})"; in HWTEST_F_L0()
127 msg = std::string() + R"({"id":0,"method":"Debugger.Test","params":{}})"; in HWTEST_F_L0()
133 msg = std::string() + R"({"id":0,"method":"Debugger.Test","params":{"unknownKey":100}})"; in HWTEST_F_L0()
139 msg = std::string() + R"({"id":0,"method":"Debugger.Test","params":{"trackAllocations":10}})"; in HWTEST_F_L0()
[all …]
/arkcompiler/ets_runtime/ecmascript/compiler/
Dbytecode_info_collector.cpp136 MethodLiteral *method = jsPandaFile_->GetMethodLiteralByIndex(index.GetOffset()); in ProcessClasses() local
137 if (method != nullptr) { in ProcessClasses()
138 method->SetFunctionKind(FunctionKind::CLASS_CONSTRUCTOR); in ProcessClasses()
139 method->SetIsFastCall(false); in ProcessClasses()
152 void BytecodeInfoCollector::CollectClassLiteralInfo(const MethodLiteral *method, in CollectClassLiteralInfo() argument
156 IterateLiteral(method, classOffsetVec); in CollectClassLiteralInfo()
179 void BytecodeInfoCollector::CollectInnerFuncType(const MethodLiteral *method, uint32_t innerMethodI… in CollectInnerFuncType() argument
182 auto methodId = method->GetMethodId().GetOffset(); in CollectInnerFuncType()
194 void BytecodeInfoCollector::IterateLiteral(const MethodLiteral *method, in IterateLiteral() argument
197 panda_file::File::EntityId fieldId = method->GetMethodId(); in IterateLiteral()
[all …]
/arkcompiler/ets_runtime/ecmascript/dfx/vmstat/
Dfunction_call_timer.cpp38 void FunctionCallTimer::StopCount(Method *method) in StopCount() argument
40 size_t id = method->GetMethodId().GetOffset(); in StopCount()
44 << GetFullName(method) << "has been skipped"; in StopCount()
52 CString FunctionCallTimer::GetFullName(Method *method) in GetFullName() argument
54 CString funcName(method->GetMethodName()); in GetFullName()
55 CString recordName = method->GetRecordName(); in GetFullName()
60 void FunctionCallTimer::InitialStatAndTimer(Method *method, size_t methodId, bool isAot) in InitialStatAndTimer() argument
65 CString funcName = GetFullName(method); in InitialStatAndTimer()
72 CString funcName = GetFullName(method); in InitialStatAndTimer()
/arkcompiler/runtime_core/tests/checked/
DREADME.md18 - *force_jit: bool* - run jit compilation for every executed method
29 * **METHOD** (name: string) start check of specified method, all following checks that require spec…
32 …n) search specified instruction in the ir dump file specified by commands `METHOD` and `PASS_AFTER`
35 … phrase and counts the number in the ir dump file specified by commands `METHOD` and `PASS_AFTER`,…
39 …** (name: string) select a specified method in disasm file, next "ASM*" checks will be applied onl…

12345678910>>...29