Home
last modified time | relevance | path

Searched full:function (Results 1 – 25 of 6482) sorted by relevance

12345678910>>...260

/arkcompiler/ets_runtime/test/aottest/tryldglobalbyname_global_object/
Dexpect_output.txt14 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/ets_frontend/merge_abc/src/
DassemblyFunctionProto.cpp19 void CatchBlock::Serialize(const panda::pandasm::Function::CatchBlock &block, protoPanda::CatchBloc… in Serialize()
29 void CatchBlock::Deserialize(const protoPanda::CatchBlock &protoBlock, panda::pandasm::Function::Ca… in Deserialize()
39 void Parameter::Serialize(const panda::pandasm::Function::Parameter &param, protoPanda::Parameter &… in Serialize()
45 void Function::Serialize(const panda::pandasm::Function &function, protoPanda::Function &protoFunct… in Serialize() argument
47 protoFunction.set_name(function.name); in Serialize()
48 protoFunction.set_language(static_cast<uint32_t>(function.language)); in Serialize()
51 FunctionMetadata::Serialize(*function.metadata, *protoFuncMeta); in Serialize()
53 for (const auto &[name, label] : function.label_table) { in Serialize()
60 for (const auto &insn : function.ins) { in Serialize()
65 for (const auto &debug : function.local_variable_debug) { in Serialize()
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/11.function_call_expression/step_1_selection_of_function/
Dstep1.params.yaml18 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/runtime_core/static_core/plugins/ets/tests/ets-templates/17.experimental_features/07.function_and_method_overloading/01.function_overloading/
Dfn_overloading.sts21 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 …]
Dfn_overloading_n.params.yaml17 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/libabckit/include/cpp/headers/arkts/
Dfunction.h19 #include "../core/function.h"
25 * @brief Function
27 class Function final : public core::Function {
33 /// @brief abckit::DefaultHash<Function>
34 friend class abckit::DefaultHash<Function>;
36 friend class abckit::traits::TargetCheckCast<Function>;
40 * @brief Constructor Arkts API Function from the Core API with compatibility check
41 * @param other - Core API Function
43 explicit Function(const core::Function &other);
46 * @brief Construct a new Function object
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/01.evaluation_of_expressions/
Dtyp.sts24 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/
Dexpect_output.txt14 [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/
Dexpect_output.txt14 [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/runtime_core/static_core/plugins/ets/tests/interop_js/tests/generic_as_parameter/ts_to_sts/
Dgeneric_as_parameter.js73 function anyTypeParameter(arg) {
76 function anyTypeParameterExplicitCallFromTsInt() {
79 function anyTypeParameterExplicitCallFromTsString() {
82 function anyTypeParameterExplicitCallFromTsBool() {
85 function anyTypeParameterExplicitCallFromTsArr() {
88 function anyTypeParameterExplicitCallFromTsObj() {
91 function anyTypeParameterExplicitCallFromTsUnion() {
94 function anyTypeParameterExplicitCallFromTsTuple() {
97 function anyTypeParameterExplicitCallFromTsLiteral() {
100 let genericTypeFunctionReturnAny = function (arg) {
[all …]
Dgeneric_as_parameter.sts100 function checkAnyTypeParameterInt(): boolean {
104 function checkAnyTypeParameterString(): boolean {
108 function checkAnyTypeParameterBool(): boolean {
112 function checkAnyTypeParameterArr(): boolean {
119 function checkAnyTypeParameterObj(): boolean {
123 function checkAnyTypeParameterUnion(): boolean {
127 function checkAnyTypeParameterTuple(): boolean {
136 function checkAnyTypeParameterExplicitCallInt(): boolean {
140 function checkAnyTypeParameterExplicitCallString(): boolean {
144 function checkAnyTypeParameterExplicitCallBool(): boolean {
[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_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/
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/jittest/bytecode_to_cir_with_insufficient_profile_004/
Dexpect_output.txt14 function without args.
15 function with one arg: 1
16 function with two args: 1, 2
17 function with three args: 1, 2, 3
18 function with four args: 1, 2, 3, 4
19 class function with args.
20 class function with one arg: 1
21 class function with two args: 1, 2
22 class function with three args: 1, 2, 3
23 class function with four args: 1, 2, 3, 4
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/doc/tutorial/
Dfunctions.rst20 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/plugins/ets/tests/interop_js/tests/test_incorrect_conversion_types/ts_to_arkts/
Dincorrect_conversion_types.sts38 function isTypeError(error: Error): boolean{
46 function falseIfThrows(fn: () => void): boolean {
56 function conversionTsObjToStr(): boolean { return falseIfThrows(() => { testInterface as string } )…
57 function conversionTsArrayNumToStr(): boolean { return falseIfThrows(() => { tsArrayNum as string }…
58 function conversionTsArrayStrToStr(): boolean { return falseIfThrows(() => { tsArrayStr as string }…
59 function conversionTsArrayNumToNum(): boolean { return falseIfThrows(() => { tsArrayNum as number }…
60 function conversionTsStrToBool(): boolean { return falseIfThrows(() => { tsString as boolean } ) }
61 function conversionTsStrToNum(): boolean { return falseIfThrows(() => { tsString as number } ) }
62 function conversionTsStrToInt(): boolean { return falseIfThrows(() => { tsString as int } ) }
63 function conversionTsStrToByte(): boolean { return falseIfThrows(() => { tsString as byte } ) }
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/class_method/ts_to_sts/
Dmain.js16 let __extends = (this && this.__extends) || (function () {
17 let extendStatics = function (d, b) {
19 ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
20function (d, b) { for (let p in b) { if (Object.prototype.hasOwnProperty.call(b, p)) { d[p] = b[p]…
23 return function (d, b) {
24 if (typeof b !== 'function' && b !== null) {
27 function ConstrFoo() { this.constructor = d; }
46 let UserClass = /** @class */ (function () {
47 function UserClass() {
50 UserClass.prototype.get = function () {
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/generic_static/ts_to_sts/
Dmain.js16 let __extends = (this && this.__extends) || (function () {
17 let ExtendStatics = function (d, b) {
19 ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
20function (d, b) { for (let p in b) { if (Object.prototype.hasOwnProperty.call(b, p)) { d[p] = b[p]…
23 return function (d, b) {
24 if (typeof b !== 'function' && b !== null) {
27 function ConstrFoo() { this.constructor = d; }
55 let GenericStatic = /** @class */ (function () {
56 function genericStatic() {
58 genericStatic.get = function (value) {
[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/runtime_core/static_core/plugins/ets/tests/ets-templates/04.names_declarations_and_scopes/05.accesible/
Dtype_name_const_enum.sts23 - Function or method name is used to call the function or method
29 function foo(i: byte) {
33 function foo(i: short) {
37 function foo(i: int) {
41 function foo(i: long) {
45 function foo(i: float) {
49 function foo(i: number) {
53 function foo(i: char) {
57 function foo(i: boolean) {
61 function foo(i: Byte) {
[all …]
Dtype_name_const.sts23 - Function or method name is used to call the function or method
29 function foo(i: byte) {
33 function foo(i: short) {
37 function foo(i: int) {
41 function foo(i: long) {
45 function foo(i: float) {
49 function foo(i: number) {
53 function foo(i: char) {
57 function foo(i: boolean) {
61 function foo(i: Byte) {
[all …]
/arkcompiler/ets_frontend/ets2panda/linter/test/main/
Dfunction_expression.sts16 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/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/ets_runtime/test/aottest/builtin_inlining/bigint/Constructor/
DbuiltinBigIntConstructor.ts19 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/runtime_core/libabckit/include/cpp/headers/core/
Dfunction.h29 * @brief Function
31 class Function : public ViewInResource<AbckitCoreFunction *, const File *> {
41 /// @brief abckit::DefaultHash<Function>
42 friend class abckit::DefaultHash<Function>;
52 using CoreViewT = Function;
56 * @brief Construct a new empty Function object
58 Function() : ViewInResource(nullptr), conf_(nullptr) in Function() function
64 * @brief Construct a new Function object
67Function(const Function &other) = default; // CC-OFF(G.CLS.07): design decision, detail: base_con…
72 * @return Function&
[all …]

12345678910>>...260