Home
last modified time | relevance | path

Searched refs:function (Results 1 – 25 of 4324) sorted by relevance

12345678910>>...173

/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/17.experimental_features/05.statements/05.function_overloading/
Dfn_overloading.ets21 override-equivalent, then the function name is said to be overloaded.
25 function foo(a: byte): int {
28 function foo(a: short): int {
31 function foo(a: char): int {
34 function foo(a: int): int {
37 function foo(a: long): int {
40 function foo(a: float): int {
43 function foo(a: double): int {
46 function foo(a: boolean): int {
49 function foo(a: Byte): int {
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/02.evaluation_of_expressions/01.type_of_expression/
Dtyp.ets24 function foo(a: byte): int {
27 function foo(a: short): int {
30 function foo(a: char): int {
33 function foo(a: int): int {
36 function foo(a: long): int {
39 function foo(a: float): int {
42 function foo(a: double): int {
45 function foo(a: boolean): int {
48 function foo(a: Byte): int {
51 function foo(a: Short): int {
[all …]
/arkcompiler/ets_frontend/es2panda/test/compiler/js/language/arguments-object/
Dtest-key-named-called-func-bound-value-expected.txt1 function() {
5 function() {
9 function() {
13 function() {
17 function() {
21 function() {
25 function() {
29 function() {
33 function() {
37 function() {
[all …]
/arkcompiler/ets_runtime/test/aottest/pgo_call_recursive_js/
Dexpect_output.txt14 [trace] aot inline function name: foo@pgo_call_recursive_js caller function name: func_main_0@pgo_c…
15 [trace] aot inline function name: foo1@pgo_call_recursive_js caller function name: foo@pgo_call_rec…
16 [trace] aot inline function name: foo2@pgo_call_recursive_js caller function name: foo1@pgo_call_re…
17 [trace] aot inline function name: foo1@pgo_call_recursive_js caller function name: foo@pgo_call_rec…
18 [trace] aot inline function name: foo2@pgo_call_recursive_js caller function name: foo1@pgo_call_re…
19 [trace] aot inline function name: foo2@pgo_call_recursive_js caller function name: foo@pgo_call_rec…
20 [trace] aot inline function name: foo@pgo_call_recursive_js caller function name: foo2@pgo_call_rec…
21 [trace] aot inline function name: foo2@pgo_call_recursive_js caller function name: foo@pgo_call_rec…
22 [trace] aot inline function name: foo@pgo_call_recursive_js caller function name: foo2@pgo_call_rec…
23 [trace] aot inline function name: foo1@pgo_call_recursive_js caller function name: foo@pgo_call_rec…
[all …]
/arkcompiler/runtime_core/static_core/runtime/tests/tooling/
Dapi_test.h23 using BreakpointCallback = std::function<bool(PtThread, Method *, const PtLocation &)>;
24 using LoadModuleCallback = std::function<bool(std::string_view)>;
25 using PausedCallback = std::function<bool(PauseReason)>;
27 …std::function<bool(PtThread, Method *, const PtLocation &, ObjectHeader *, Method *, const PtLocat…
28 using ExceptionCatchCallback = std::function<bool(PtThread, Method *, const PtLocation &, ObjectHea…
29 using PropertyAccessCallback = std::function<bool(PtThread, Method *, const PtLocation &, ObjectHea…
31 …std::function<bool(PtThread, Method *, const PtLocation &, ObjectHeader *, PtProperty, VRegValue)>;
32 using FramePopCallback = std::function<bool(PtThread, Method *, bool)>;
33 using GarbageCollectionStartCallback = std::function<bool()>;
34 using GarbageCollectionFinishCallback = std::function<bool()>;
[all …]
/arkcompiler/ets_runtime/test/aottest/ts_multi_inline_max_call/
Dexpect_output.txt14 [trace] aot inline function name: foo@ts_multi_inline_max_call caller function name: func_main_0@ts…
15 [trace] aot inline function name: foo1@ts_multi_inline_max_call caller function name: foo@ts_multi_…
16 [trace] aot inline function name: bar@ts_multi_inline_max_call caller function name: foo1@ts_multi_…
18 [trace] aot inline function name: foo2@ts_multi_inline_max_call caller function name: foo@ts_multi_…
19 [trace] aot inline function name: bar@ts_multi_inline_max_call caller function name: foo2@ts_multi_…
21 [trace] aot inline function name: foo3@ts_multi_inline_max_call caller function name: foo@ts_multi_…
22 [trace] aot inline function name: bar@ts_multi_inline_max_call caller function name: foo3@ts_multi_…
24 [trace] aot inline function name: foo4@ts_multi_inline_max_call caller function name: foo@ts_multi_…
25 [trace] aot inline function name: bar@ts_multi_inline_max_call caller function name: foo4@ts_multi_…
27 [trace] aot inline function name: foo5@ts_multi_inline_max_call caller function name: foo@ts_multi_…
[all …]
/arkcompiler/ets_frontend/merge_abc/src/
DassemblyFunctionProto.cpp54 void Function::Serialize(const panda::pandasm::Function &function, protoPanda::Function &protoFunct… in Serialize() argument
56 protoFunction.set_name(function.name); in Serialize()
57 protoFunction.set_language(static_cast<uint32_t>(function.language)); in Serialize()
60 FunctionMetadata::Serialize(*function.metadata, *protoFuncMeta); in Serialize()
62 for (const auto &[name, label] : function.label_table) { in Serialize()
69 for (const auto &insn : function.ins) { in Serialize()
74 for (const auto &debug : function.local_variable_debug) { in Serialize()
79 protoFunction.set_sourcefile(function.source_file); in Serialize()
80 protoFunction.set_sourcecode(function.source_code); in Serialize()
82 for (const auto &block : function.catch_blocks) { in Serialize()
[all …]
/arkcompiler/ets_runtime/test/aottest/tryldglobalbyname_global_object/
Dexpect_output.txt14 function Function() { [native code] }
17 function RangeError() { [native code] }
20 function Error() { [native code] }
23 function Object() { [native code] }
26 function SyntaxError() { [native code] }
29 function TypeError() { [native code] }
32 function ReferenceError() { [native code] }
35 function URIError() { [native code] }
38 function Symbol() { [native code] }
41 function EvalError() { [native code] }
[all …]
/arkcompiler/ets_runtime/test/aottest/pgo_call/
Dexpect_output.txt14 [trace] aot inline function name: foo@pgo_call caller function name: callFoo1@pgo_call
15 [trace] aot inline function name: foo@pgo_call caller function name: callFoo1@pgo_call
17 [trace] aot inline function name: callFoo2@pgo_call caller function name: func_main_0@pgo_call
18 [trace] aot inline function name: callFoo2@pgo_call caller function name: func_main_0@pgo_call
20 [trace] aot inline function name: callFoo2@pgo_call caller function name: func_main_0@pgo_call
21 [trace] aot inline function name: callFoo2@pgo_call caller function name: func_main_0@pgo_call
23 [trace] aot inline function name: callFoo3@pgo_call caller function name: func_main_0@pgo_call
24 [trace] aot inline function name: callFoo2@pgo_call caller function name: func_main_0@pgo_call
26 [trace] aot inline function name: callFoo2@pgo_call caller function name: func_main_0@pgo_call
28 [trace] aot inline function name: callFoo1@pgo_call caller function name: func_main_0@pgo_call
[all …]
/arkcompiler/ets_runtime/test/aottest/pgo_call_js/
Dexpect_output.txt14 [trace] aot inline function name: foo@pgo_call_js caller function name: callFoo1@pgo_call_js
15 [trace] aot inline function name: foo@pgo_call_js caller function name: callFoo1@pgo_call_js
16 [trace] aot inline function name: callFoo2@pgo_call_js caller function name: func_main_0@pgo_call_js
17 [trace] aot inline function name: callFoo2@pgo_call_js caller function name: func_main_0@pgo_call_js
18 [trace] aot inline function name: callFoo2@pgo_call_js caller function name: func_main_0@pgo_call_js
19 [trace] aot inline function name: callFoo2@pgo_call_js caller function name: func_main_0@pgo_call_js
20 [trace] aot inline function name: callFoo3@pgo_call_js caller function name: func_main_0@pgo_call_js
21 [trace] aot inline function name: callFoo2@pgo_call_js caller function name: func_main_0@pgo_call_js
22 [trace] aot inline function name: callFoo2@pgo_call_js caller function name: func_main_0@pgo_call_js
23 [trace] aot inline function name: callFoo1@pgo_call_js caller function name: func_main_0@pgo_call_js
[all …]
/arkcompiler/runtime_core/static_core/runtime/tooling/inspector/
Dinspector_server.h45 …std::function<void(FrameId, std::string_view, std::string_view, size_t, const std::vector<Scope> &…
56 void OnValidate(std::function<void()> &&handler);
57 void OnOpen(std::function<void()> &&handler);
58 void OnFail(std::function<void()> &&handler);
62 const std::function<void(const FrameInfoHandler &)> &enumerateFrames);
71 …void OnCallDebuggerContinueToLocation(std::function<void(PtThread, std::string_view, size_t)> &&ha…
73 std::function<std::set<size_t>(std::string_view, size_t, size_t, bool)> &&handler);
74 void OnCallDebuggerGetScriptSource(std::function<std::string(std::string_view)> &&handler);
75 void OnCallDebuggerPause(std::function<void(PtThread)> &&handler);
76 void OnCallDebuggerRemoveBreakpoint(std::function<void(PtThread, BreakpointId)> &&handler);
[all …]
Ddebuggable_thread.h30 …std::function<void(ObjectRepository &, const std::vector<BreakpointId> &, ObjectHeader *)> &&preSu…
31 …std::function<void(ObjectRepository &, const std::vector<BreakpointId> &, ObjectHeader *)> &&postS…
32 std::function<void()> &&preWaitSuspension, std::function<void()> &&postWaitSuspension,
33 std::function<void()> &&preResume, std::function<void()> &&postResume);
82 bool RequestToObjectRepository(std::function<void(ObjectRepository &)> request);
111 …std::function<void(ObjectRepository &, const std::vector<BreakpointId> &, ObjectHeader *)> preSusp…
112 …std::function<void(ObjectRepository &, const std::vector<BreakpointId> &, ObjectHeader *)> postSus…
113 std::function<void()> preWaitSuspension_;
114 std::function<void()> postWaitSuspension_;
115 std::function<void()> preResume_;
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/doc/tutorial/
Dfunctions.rst23 A function declaration introduces a named function by specifying its name,
26 Below is an example of a simple function with two string parameters and string
31 function add(x: string, y: string): string {
36 Every parameter's type annotation must be specified. When calling a function,
38 parameter of a function can be a rest parameter (see below).
49 function hello(name?: string) {
58 corresponding argument to such parameter is omitted in a function call,
63 function multiply(n: number, coeff: number = 2): number {
74 The last parameter of a function can be a rest parameter. As a result,
79 function sum(...numbers: number[]): number {
[all …]
/arkcompiler/runtime_core/static_core/pandastdlib/
Dpandastdlib.pa150 .function void panda.Object.ctor(panda.Object a0) <ctor> {
154 .function void panda.StackOverflowException.ctor(panda.StackOverflowException a0, panda.String a1, …
162 .function panda.String panda.StackOverflowException.getMessage(panda.StackOverflowException a0) {
167 .function panda.String panda.StackOverflowException.getCause(panda.StackOverflowException a0) {
172 .function void panda.NullPointerException.ctor(panda.NullPointerException a0, panda.String a1, pand…
180 .function panda.String panda.NullPointerException.getMessage(panda.NullPointerException a0) {
185 .function panda.Object panda.NullPointerException.getCause(panda.NullPointerException a0) {
190 .function void panda.ArrayIndexOutOfBoundsException.ctor(panda.ArrayIndexOutOfBoundsException a0, p…
198 .function panda.String panda.ArrayIndexOutOfBoundsException.getMessage(panda.ArrayIndexOutOfBoundsE…
203 .function panda.Object panda.ArrayIndexOutOfBoundsException.getCause(panda.ArrayIndexOutOfBoundsExc…
[all …]
/arkcompiler/ets_frontend/ets2panda/test/compiler/ets/
Dconversion_w_functions.ets16 function getI(i : int): int {
20 function getD(d : double): double {
24 function apple(): Byte {
28 function banana(): Short {
32 function cherry(): Int {
36 function date(): Long {
40 function elderberry(): Float {
44 function fig(): Float {
48 function grape(): Double {
52 function honeydewmelon(): Double {
[all …]
Dconversion_w_functions_w_try-stmts.ets16 function getI(i : int): int {
22 function getD(d : double): double {
28 function apple(): Byte {
32 function banana(): Short {
36 function cherry(): Int {
40 function date(): Long {
44 function elderberry(): Float {
48 function fig(): Float {
52 function grape(): Double {
56 function honeydewmelon(): Double {
[all …]
/arkcompiler/ets_frontend/testTs/instype/
Drecordthis-expected.txt1 Handle types for function: #1#A
3 Handle types for function: getName
5 Handle types for function: getId
7 Handle types for function: setName
9 Handle types for function: setId
11 Handle types for function: dump
13 Handle types for function: stest
15 Handle types for function: test
17 Handle types for function: testwiththis
19 Handle types for function: add
[all …]
/arkcompiler/runtime_core/pandastdlib/
Dpandastdlib.pa148 .function void panda.StackOverflowException.ctor(panda.StackOverflowException a0, panda.String a1, …
156 .function void panda.NullPointerException.ctor(panda.NullPointerException a0, panda.String a1, pand…
164 .function panda.String panda.NullPointerException.getMessage(panda.NullPointerException a0) {
169 .function panda.Object panda.NullPointerException.getCause(panda.NullPointerException a0) {
174 .function void panda.ArrayIndexOutOfBoundsException.ctor(panda.ArrayIndexOutOfBoundsException a0, p…
182 .function panda.String panda.ArrayIndexOutOfBoundsException.getMessage(panda.ArrayIndexOutOfBoundsE…
187 .function panda.Object panda.ArrayIndexOutOfBoundsException.getCause(panda.ArrayIndexOutOfBoundsExc…
192 .function void panda.IndexOutOfBoundsException.ctor(panda.IndexOutOfBoundsException a0, panda.Strin…
200 .function panda.String panda.IndexOutOfBoundsException.getMessage(panda.IndexOutOfBoundsException a…
205 .function panda.Object panda.IndexOutOfBoundsException.getCause(panda.IndexOutOfBoundsException a0)…
[all …]
/arkcompiler/runtime_core/static_core/libllvmbackend/transforms/passes/inline_ir/
Dremove_unused_functions.cpp51 for (auto &function : module.functions()) { in run() local
52 if (function.getMetadata(LLVMArkInterface::FUNCTION_MD_INLINE_MODULE) != nullptr) { in run()
53 LLVM_DEBUG(llvm::dbgs() << "Skip " << function.getName() << " from inline module\n"); in run()
56 if (function.isDeclaration()) { in run()
59 LLVM_DEBUG(llvm::dbgs() << function.getName() << " is root\n"); in run()
61 VisitValue(usedFunctions, function, seen); in run()
65 for (auto &function : module.functions()) { in run() local
66 if (!usedFunctions.contains(&function)) { in run()
67 LLVM_DEBUG(llvm::dbgs() << "Deleted body of " << function.getName() << "\n"); in run()
68 convertToDeclaration(function); in run()
[all …]
Dcleanup_inline_module.cpp137 auto function = inlineFailurePath_[inlineFailurePath_.size() - 1]; in PrintForHasAddressTaken() local
138 ASSERT(isa<Function>(function)); in PrintForHasAddressTaken()
139 …*output << "address of the function = '" << function->getName() << "' is taken. Won't inline chain… in PrintForHasAddressTaken()
149 auto function = FindLastFunctionInPath(); in PrintForUsesInternalVariable() local
150 …Internal variable = '" << variable->getName() << "' is used in function = '" << function->getName() in PrintForUsesInternalVariable()
158 if (auto function = llvm::dyn_cast<Function>(*it)) { in FindLastFunctionInPath() local
159 return function; in FindLastFunctionInPath()
217 for (auto &function : module.functions()) { in RemoveNonInlinableFunctions() local
218 if (function.isDeclaration()) { in RemoveNonInlinableFunctions()
222 … ScopedInlineFailurePathElement inlineFailurePathElement {&inlineFailurePath_, &function}; in RemoveNonInlinableFunctions()
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/01.kinds_of_contexts/03.numeric_operator_contexts/01.unary_numeric_promotion/
Dshift.ets24 function foo(p: byte): int {
28 function foo(p: short): int {
32 function foo(p: int): int {
36 function foo(p: long): int {
40 function foo(p: char): int {
44 function foo(p: boolean): int {
48 function foo(p: float): int {
52 function foo(p: double): int {
56 function foo(p: Byte): int {
60 function foo(p: Short): int {
[all …]
/arkcompiler/ets_runtime/test/aottest/ts_multi_inline/
Dexpect_output.txt14 [trace] aot inline function name: foo1@ts_multi_inline caller function name: func_main_0@ts_multi_i…
16 [trace] aot inline function name: foo2@ts_multi_inline caller function name: foo1@ts_multi_inline
18 [trace] aot inline function name: foo3@ts_multi_inline caller function name: foo2@ts_multi_inline
20 [trace] aot inline function name: foo4@ts_multi_inline caller function name: foo3@ts_multi_inline
22 [trace] aot inline function name: foo5@ts_multi_inline caller function name: foo4@ts_multi_inline
24 [trace] aot inline function name: foo6@ts_multi_inline caller function name: foo5@ts_multi_inline
/arkcompiler/ets_runtime/test/aottest/ts_inline_max_call/
Dexpect_output.txt14 [trace] aot inline function name: foo1@ts_inline_max_call caller function name: func_main_0@ts_inli…
16 [trace] aot inline function name: foo2@ts_inline_max_call caller function name: func_main_0@ts_inli…
18 [trace] aot inline function name: foo3@ts_inline_max_call caller function name: func_main_0@ts_inli…
20 [trace] aot inline function name: foo4@ts_inline_max_call caller function name: func_main_0@ts_inli…
22 [trace] aot inline function name: foo5@ts_inline_max_call caller function name: func_main_0@ts_inli…
24 [trace] aot inline function name: foo6@ts_inline_max_call caller function name: func_main_0@ts_inli…
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/scenarios/js_to_ets/
Dscenarios.ets21 function Test_standalone_function_call(): boolean {
25 function Test_class_method_call(): boolean {
30 function Test_interface_method_call(): boolean {
35 function Test_class_getter(): boolean {
39 function Test_class_setter(): boolean {
45 function Test_lambda_function_call(): boolean {
49 function Test_generic_function_call(): boolean {
61 function Test_extend_class(): boolean {
66 function Test_function_arg_type_any(): boolean {
71 function Test_function_arg_type_unknown(): boolean {
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/01.kinds_of_contexts/03.numeric_operator_contexts/02.binary_numeric_promotion/
Dresult_type_arith.ets31 function foo(p: byte): int {
35 function foo(p: short): int {
39 function foo(p: int): int {
43 function foo(p: long): int {
47 function foo(p: char): int {
51 function foo(p: boolean): int {
55 function foo(p: float): int {
59 function foo(p: double): int {
63 function foo(p: Byte): int {
67 function foo(p: Short): int {
[all …]

12345678910>>...173