| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/17.experimental_features/07.function_and_method_overloading/01.function_overloading/ |
| D | fn_overloading.sts | 21 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/ets_frontend/merge_abc/src/ |
| D | assemblyFunctionProto.cpp | 46 void Function::Serialize(const panda::pandasm::Function &function, protoPanda::Function &protoFunct… in Serialize() argument 48 protoFunction.set_name(function.name); in Serialize() 49 protoFunction.set_language(static_cast<uint32_t>(function.language)); in Serialize() 52 FunctionMetadata::Serialize(*function.metadata, *protoFuncMeta); in Serialize() 54 for (const auto &[name, label] : function.label_table) { in Serialize() 61 for (const auto &insn : function.ins) { in Serialize() 66 for (const auto &debug : function.local_variable_debug) { in Serialize() 71 protoFunction.set_sourcefile(function.source_file); in Serialize() 72 protoFunction.set_sourcecode(function.source_code); in Serialize() 74 for (const auto &block : function.catch_blocks) { in Serialize() [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/01.evaluation_of_expressions/ |
| D | typ.sts | 24 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_runtime/test/aottest/ts_multi_inline_max_call/ |
| D | expect_output.txt | 14 [trace] aot inline function name: #*#foo@ts_multi_inline_max_call caller function name: func_main_0… 15 [trace] aot inline function name: #*#foo1@ts_multi_inline_max_call caller function name: #*#foo@ts_… 16 [trace] aot inline function name: #*#bar@ts_multi_inline_max_call caller function name: #*#foo1@ts_… 18 [trace] aot inline function name: #*#foo2@ts_multi_inline_max_call caller function name: #*#foo@ts_… 19 [trace] aot inline function name: #*#bar@ts_multi_inline_max_call caller function name: #*#foo2@ts_… 21 [trace] aot inline function name: #*#foo3@ts_multi_inline_max_call caller function name: #*#foo@ts_… 22 [trace] aot inline function name: #*#bar@ts_multi_inline_max_call caller function name: #*#foo3@ts_… 24 [trace] aot inline function name: #*#foo4@ts_multi_inline_max_call caller function name: #*#foo@ts_… 25 [trace] aot inline function name: #*#bar@ts_multi_inline_max_call caller function name: #*#foo4@ts_… 27 [trace] aot inline function name: #*#foo5@ts_multi_inline_max_call caller function name: #*#foo@ts_… [all …]
|
| /arkcompiler/ets_runtime/test/aottest/pgo_call_recursive_js/ |
| D | expect_output.txt | 14 [trace] aot inline function name: #*#foo@pgo_call_recursive_js caller function name: func_main_0@pg… 15 [trace] aot inline function name: #*#foo1@pgo_call_recursive_js caller function name: #*#foo@pgo_ca… 16 [trace] aot inline function name: #*#foo2@pgo_call_recursive_js caller function name: #*#foo1@pgo_c… 17 [trace] aot inline function name: #*#foo1@pgo_call_recursive_js caller function name: #*#foo@pgo_ca… 18 [trace] aot inline function name: #*#foo2@pgo_call_recursive_js caller function name: #*#foo1@pgo_c… 19 [trace] aot inline function name: #*#foo2@pgo_call_recursive_js caller function name: #*#foo@pgo_ca… 20 [trace] aot inline function name: #*#foo2@pgo_call_recursive_js caller function name: #*#foo@pgo_ca… 21 [trace] aot inline function name: #*#foo1@pgo_call_recursive_js caller function name: #*#foo@pgo_ca… 22 [trace] aot inline function name: #*#foo2@pgo_call_recursive_js caller function name: #*#foo1@pgo_c… 23 [trace] aot inline function name: #*#foo2@pgo_call_recursive_js caller function name: #*#foo@pgo_ca… [all …]
|
| /arkcompiler/ets_runtime/test/aottest/tryldglobalbyname_global_object/ |
| D | expect_output.txt | 14 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_frontend/ets2panda/linter/test/ |
| D | function_expression.sts | 16 const empty = function () {}; 18 const multiply = function (x: number, y): number { 22 function createFunc(): () => number { 23 return function () { 28 const foobar = (function () { 32 (function () { 36 void (function () { 41 const double = array.map(function (e) { 44 const even = array.filter(function (x) { 48 const retTypeInfer = function (p: any) { [all …]
|
| D | func_return_type.sts | 16 function q(x: number) { // Need fix 19 function w(x: number) { 23 function e(x: string) { // Need fix 26 function r(x: string) { 29 function t(x: string): string { 33 function y() { // Need fix 36 function u() { 40 function f(x: number) { // Not fixable 46 function g(x: number) { // Not fixable 50 function h(x: number, y: number) { [all …]
|
| /arkcompiler/ets_runtime/test/aottest/pgo_call/ |
| D | expect_output.txt | 14 [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/ |
| D | expect_output.txt | 14 [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_cal… 17 [trace] aot inline function name: #*#callFoo2@pgo_call_js caller function name: func_main_0@pgo_cal… 18 [trace] aot inline function name: #*#callFoo2@pgo_call_js caller function name: func_main_0@pgo_cal… 19 [trace] aot inline function name: #*#callFoo2@pgo_call_js caller function name: func_main_0@pgo_cal… 20 [trace] aot inline function name: #*#callFoo3@pgo_call_js caller function name: func_main_0@pgo_cal… 21 [trace] aot inline function name: #*#callFoo2@pgo_call_js caller function name: func_main_0@pgo_cal… 22 [trace] aot inline function name: #*#callFoo2@pgo_call_js caller function name: func_main_0@pgo_cal… 23 [trace] aot inline function name: #*#callFoo1@pgo_call_js caller function name: func_main_0@pgo_cal… [all …]
|
| /arkcompiler/runtime_core/static_core/runtime/tests/tooling/ |
| D | api_test.h | 24 using BreakpointCallback = std::function<bool(PtThread, Method *, const PtLocation &)>; 25 using LoadModuleCallback = std::function<bool(std::string_view)>; 26 using PausedCallback = std::function<bool(PauseReason)>; 28 …std::function<bool(PtThread, Method *, const PtLocation &, ObjectHeader *, Method *, const PtLocat… 29 using ExceptionCatchCallback = std::function<bool(PtThread, Method *, const PtLocation &, ObjectHea… 30 using PropertyAccessCallback = std::function<bool(PtThread, Method *, const PtLocation &, ObjectHea… 32 …std::function<bool(PtThread, Method *, const PtLocation &, ObjectHeader *, PtProperty, VRegValue)>; 33 using FramePopCallback = std::function<bool(PtThread, Method *, bool)>; 34 using GarbageCollectionStartCallback = std::function<bool()>; 35 using GarbageCollectionFinishCallback = std::function<bool()>; [all …]
|
| /arkcompiler/runtime_core/static_core/runtime/tooling/inspector/ |
| D | inspector_server.h | 44 using FrameInfoHandler = std::function<void(FrameId, std::string_view, std::string_view, size_t, 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); 72 …void OnCallDebuggerContinueToLocation(std::function<void(PtThread, std::string_view, size_t)> &&ha… 74 std::function<std::set<size_t>(std::string_view, size_t, size_t, bool)> &&handler); 75 void OnCallDebuggerGetScriptSource(std::function<std::string(std::string_view)> &&handler); 76 void OnCallDebuggerPause(std::function<void(PtThread)> &&handler); 77 void OnCallDebuggerRemoveBreakpoint(std::function<void(PtThread, BreakpointId)> &&handler); [all …]
|
| /arkcompiler/runtime_core/static_core/libllvmbackend/transforms/ |
| D | builtins.cpp | 68 auto function = continuation->getParent(); in FastClassLoadingHelper() local 70 llvm::Value *methodValue = function->arg_begin(); in FastClassLoadingHelper() 87 auto function = initialBb->getParent(); in SlowClassLoadingHelper() local 88 auto module = function->getParent(); in SlowClassLoadingHelper() 139 auto function = initialBb->getParent(); in LowerLoadClassHelper() local 154 auto functionMd = function->getMetadata(LLVMArkInterface::FUNCTION_MD_CLASS_ID); in LowerLoadClassHelper() 189 auto function = module->getFunction(LEN_ARRAY_BUILTIN); in LenArray() local 190 if (function != nullptr) { in LenArray() 191 return function; in LenArray() 197 …function = llvm::Function::Create(type, llvm::Function::ExternalLinkage, LEN_ARRAY_BUILTIN, module… in LenArray() [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/15.semantic_rules/07.overloading_and_overriding/03.overloading_for_functions/modules/ |
| D | function_export_all.sts | 25 export function foo(): int { 29 export function foo(i: boolean): int { 33 export function foo(i: Boolean): int { 37 export function foo(i: char): int { 41 export function foo(i: Char): int { 45 export function foo(i: short): int { 49 export function foo(i: Short): int { 53 export function foo(i: int): int { 57 export function foo(i: Int): int { 61 export function foo(i: long): int { [all …]
|
| /arkcompiler/ets_frontend/ets2panda/linter/test_rules/ |
| D | rule92.sts | 18 function addNum(a: number, b: number): void { 19 function logToConsole(message: String): void { 29 function addNum2(a: number, b: number): void { 30 // Use lambda instead of a nested function: 41 function NestedOne(a: number, b: number): void { 42 function NestedTwo(message: String): void { 43 function NestedThree(message: String): void { 50 function NestedOne1(a: number, b: number): void { 51 function NestedTwo(message: String): void { 55 function NestedTooToo(message: String): void { [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/doc/tutorial/ |
| D | functions.rst | 23 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/ets_runtime/test/aottest/builtins_parseint/ |
| D | expect_output.txt | 14 [trace] aot inline function name: #*#testFileInfo@builtins_parseint caller function name: func_main… 15 [trace] aot inline function name: #*#randomStrId@builtins_parseint caller function name: #*#testFil… 16 [trace] aot inline builtin: Number.parseInt, caller function name:#*#randomStrId@builtins_parseint 17 [trace] aot inline builtin: Number.parseInt, caller function name:#*#randomStrId@builtins_parseint 18 [trace] aot inline builtin: Number.parseInt, caller function name:#*#randomStrId@builtins_parseint 19 [trace] aot inline builtin: Number.parseInt, caller function name:#*#randomStrId@builtins_parseint 20 [trace] aot inline builtin: Number.parseInt, caller function name:#*#randomStrId@builtins_parseint 21 [trace] aot inline builtin: Number.parseInt, caller function name:#*#randomStrId@builtins_parseint 22 [trace] aot inline builtin: Number.parseInt, caller function name:#*#randomStrId@builtins_parseint 23 [trace] aot inline builtin: Number.parseInt, caller function name:#*#randomStrId@builtins_parseint [all …]
|
| /arkcompiler/ets_frontend/ets2panda/test/compiler/ets/ |
| D | conversion_w_functions.sts | 16 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 …]
|
| /arkcompiler/ets_frontend/testTs/instype/ |
| D | recordthis-expected.txt | 1 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/static_core/pandastdlib/ |
| D | pandastdlib.pa | 150 .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/runtime_core/static_core/plugins/ets/tests/interop_js/tests/scenarios/ets_to_js/ |
| D | scenarios.sts | 24 function standaloneFunctionEts(): int { 46 function newInterfaceWithMethodEts(): InterfaceWithMethodEts { 66 function getLambdaFunctionEts(): () => int { 70 function genericFunctionEts<T>(arg: T): T { 80 function functionArgTypeAnyEts(arg: JSValue): JSValue { 84 function functionArgTypeUnknownEts(arg: JSValue): JSValue { 88 function functionArgTypeUndefinedEts(arg: JSValue): JSValue { 92 function functionArgTypeTupleEts(arg: [number, string]): number { 96 function functionArgTypeCallableEts(functionToCall: () => JSValue): JSValue { 100 function genericTypeParameterEts<T>(arg: T): String { [all …]
|
| /arkcompiler/toolchain/inspector/ |
| D | connect_inspector.h | 47 void SetConnectCallback(const std::function<void(bool)>& callback); 55 void SetDebugModeCallBack(const std::function<void()>& setDebugMode); 57 void SetSwitchCallBack(const std::function<void(bool)>& setSwitchStatus, 58 const std::function<void(int32_t)>& createLayoutInfo, int32_t instanceId); 60 void SetProfilerCallback(const std::function<void(bool)> &setArkUIStateProfilerStatus); 62 void SetRecordCallback(const std::function<void(void)> &startRecordFunc, 63 const std::function<void(void)> &stopRecordFunc); 87 std::function<void(bool)> setSwitchStatus_; 88 std::function<void(bool)> setArkUIStateProfilerStatus_; 89 std::function<void(int32_t)> createLayoutInfo_; [all …]
|
| /arkcompiler/runtime_core/pandastdlib/ |
| D | pandastdlib.pa | 148 .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/ |
| D | remove_unused_functions.cpp | 51 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 …]
|
| /arkcompiler/ets_frontend/ets2panda/test/ast/compiler/ets/ |
| D | conversion_w_functions_w_try-stmts.sts | 16 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 …]
|