| /arkcompiler/ets_runtime/test/aottest/tryldglobalbyname_global_object/ |
| D | expect_output.txt | 14 function Function() { [native code] } 15 Function 16 ReferenceError: Function is not defined 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] } [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/11.function_call_expression/step_1_selection_of_function/ |
| D | step1.params.yaml | 18 function foo(p: Number): string { 21 function foo(p: Number|null): string { 24 function foo(p: UT): string { 28 // select the most-specific function 34 function foo(p: Number|null): string { 37 function foo(p: UT): string { 41 // select the most-specific function 47 function foo(p: Number|null): string { 50 function foo(p: UT): string { 53 function foo(p: number): string { [all …]
|
| /arkcompiler/ets_frontend/merge_abc/src/ |
| D | assemblyFunctionProto.cpp | 20 void CatchBlock::Serialize(const panda::pandasm::Function::CatchBlock &block, protoPanda::CatchBloc… in Serialize() 30 void CatchBlock::Deserialize(const protoPanda::CatchBlock &protoBlock, panda::pandasm::Function::Ca… in Deserialize() 40 void Parameter::Serialize(const panda::pandasm::Function::Parameter ¶m, protoPanda::Parameter &… in Serialize() 48 void Parameter::Deserialize(const protoPanda::Parameter &protoParam, panda::pandasm::Function::Para… in Deserialize() 54 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() [all …]
|
| /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 …]
|
| D | fn_overloading_n.params.yaml | 17 function foo() {} 18 function foo(): void {} 21 function foo(): void throws {} 22 function foo(): void {} 25 function foo(): int { 28 native function foo(): void; 31 function foo(): int { 34 function foo(): short { 39 function foo(... a: byte): void {} 40 native function foo(... b: byte): long; [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_frontend/ets2panda/linter/test/ |
| D | sendable_function.ts.json | 21 …: "Only \"@Sendable\" decorator can be used on \"Sendable\" function (arkts-sendable-function-deco… 27 …laring \"@Sendable\" overloaded function, needs to add \"@Sendable\" decorator on each function (a… 33 …: "Only \"@Sendable\" decorator can be used on \"Sendable\" function (arkts-sendable-function-deco… 84 …: "Only \"@Sendable\" decorator can be used on \"Sendable\" function (arkts-sendable-function-deco… 90 …": "Only imported variables can be captured by \"Sendable\" function (arkts-sendable-function-impo… 96 …": "Only imported variables can be captured by \"Sendable\" function (arkts-sendable-function-impo… 116 … "rule": "The property of \"Sendable\" function is limited (arkts-sendable-function-property)" 122 … "rule": "The property of \"Sendable\" function is limited (arkts-sendable-function-property)" 128 … "rule": "The property of \"Sendable\" function is limited (arkts-sendable-function-property)" 134 …": "Only \"Sendable\" function or \"Sendable\" typeAlias object can be assigned to \"Sendable\" ty… [all …]
|
| 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 …]
|
| /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/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/runtime_core/static_core/plugins/ets/doc/tutorial/ |
| D | functions.rst | 20 Function Declarations 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, [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/ets_runtime/test/aottest/builtin_inlining/number/ParseFloat/ |
| D | builtinNumberParseFloat.ts | 16 declare function print(arg:any):string; 18 function testNumberParseFloat(a : any, shouldThrow = 0): any 37 function testParseFloat(a : any, shouldThrow = 0): any 59 function test(a : any) 65 function valueTest(testFunc : any) { 85 //aot: [trace] aot inline builtin: Number.parseFloat, caller function name:#*#testParseFloat@builti… 87 //aot: [trace] aot inline function name: #*#test@builtinNumberParseFloat caller function name: #*#v… 89 //aot: [trace] aot inline builtin: Number.parseFloat, caller function name:#*#testParseFloat@builti… 91 //aot: [trace] aot inline function name: #*#test@builtinNumberParseFloat caller function name: #*#v… 93 //aot: [trace] aot inline builtin: Number.parseFloat, caller function name:#*#testParseFloat@builti… [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/ets_runtime/test/aottest/builtin_inlining/bigint/Constructor/ |
| D | builtinBigIntConstructor.ts | 19 declare function print(arg:any):string; 20 function replace(a) 25 function checkBigInt(x) { 34 function checkNotBigInt(x) { 45 //aot: [trace] aot inline builtin: BigInt, caller function name:func_main_0@builtinBigIntConstructor 48 //aot: [trace] aot inline builtin: BigInt, caller function name:func_main_0@builtinBigIntConstructor 52 //aot: [trace] aot inline builtin: BigInt, caller function name:func_main_0@builtinBigIntConstructor 56 //aot: [trace] aot inline function name: #*#checkBigInt@builtinBigIntConstructor caller function na… 57 //aot: [trace] aot inline builtin: BigInt, caller function name:#*#checkBigInt@builtinBigIntConstru… 59 //aot: [trace] aot inline function name: #*#checkBigInt@builtinBigIntConstructor caller function na… [all …]
|
| /arkcompiler/ets_runtime/test/aottest/builtin_inlining/math/Fround/ |
| D | builtinMathFround.ts | 19 declare function print(arg:any):string; 20 function replace(a : number) 25 function printZero(x: any) { 33 function doFround(x: any): number { 37 function printFround(x: any) { 45 //aot: [trace] aot inline builtin: Math.fround, caller function name:func_main_0@builtinMathFround 49 //aot: [trace] aot inline builtin: Math.fround, caller function name:func_main_0@builtinMathFround 51 //aot: [trace] aot inline builtin: Math.fround, caller function name:func_main_0@builtinMathFround 53 //aot: [trace] aot inline builtin: Math.fround, caller function name:func_main_0@builtinMathFround 57 //aot: [trace] aot inline builtin: Math.fround, caller function name:func_main_0@builtinMathFround [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() 187 llvm::Function *LenArray(llvm::Module *module) in LenArray() 189 auto function = module->getFunction(LEN_ARRAY_BUILTIN); in LenArray() local 190 if (function != nullptr) { in LenArray() 191 return function; 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_runtime/test/aottest/builtin_inlining/math/Round/ |
| D | builtinMathRound.ts | 19 declare function print(arg:any):string; 20 function replace(a : number) 25 function printZero(x: any) { 33 function doRound(x: any): number { 37 function printRound(x: any) { 45 //aot: [trace] aot inline builtin: Math.round, caller function name:func_main_0@builtinMathRound 49 //aot: [trace] aot inline builtin: Math.round, caller function name:func_main_0@builtinMathRound 51 //aot: [trace] aot inline builtin: Math.round, caller function name:func_main_0@builtinMathRound 53 //aot: [trace] aot inline builtin: Math.round, caller function name:func_main_0@builtinMathRound 57 //aot: [trace] aot inline builtin: Math.round, caller function name:func_main_0@builtinMathRound [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/interface/ts_to_ets/ |
| D | interface_method.js | 42 const AnyTypeMethodClass = /** @class */ (function () { 43 function anyTypeMethodClass() {} 44 anyTypeMethodClass.prototype.get = function (a) { 50 function createInterfaceClassAnyTypeMethod() { 54 const UnionTypeMethodClass = /** @class */ (function () { 55 function unionTypeMethodClass() {} 56 unionTypeMethodClass.prototype.get = function (a) { 62 function createInterfaceClassUnionTypeMethod() { 66 function subsetByRefInterface(obj) { 70 const UserClass = /** @class */ (function () { [all …]
|
| /arkcompiler/runtime_core/abc2program/ |
| D | program_dump.h | 44 void DumpFunction(std::ostream &os, const pandasm::Function &function); 45 void DumpFunctionKind(std::ostream &os, const pandasm::Function &function) const; 46 void DumpFunctionAnnotations(std::ostream &os, const pandasm::Function &function) const; 47 void DumpFunctionHead(std::ostream &os, const pandasm::Function &function) const; 48 void DumpFunctionReturnType(std::ostream &os, const pandasm::Function &function) const; 49 void DumpFunctionName(std::ostream &os, const pandasm::Function &function) const; 50 void DumpFunctionParams(std::ostream &os, const pandasm::Function &function) const; 51 …void DumpFunctionParamAtIndex(std::ostream &os, const pandasm::Function::Parameter ¶m, size_t … 52 void DumpFunctionAttributes(std::ostream &os, const pandasm::Function &function) const; 53 void DumpFunctionBody(std::ostream &os, const pandasm::Function &function); [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/getter/ts_to_ets/ |
| D | getter.js | 18 (function () { 19 let extendStatics = function (d, b) { 23 function (d, b) { 26 function (d, b) { 35 return function (d, b) { 36 if (typeof b !== 'function' && b !== null) { 40 function AdhocConstruct() { 85 const PublicGetterClass = /** @class */ (function () { 86 function publicGetterClass() { 90 get: function () { [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 …]
|