Home
last modified time | relevance | path

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

12345678910>>...37

/ark/runtime_core/pandastdlib/
Dpandastdlib.pa133 .function void panda.NullPointerException.ctor(panda.NullPointerException a0, panda.String a1, pand…
141 .function panda.String panda.NullPointerException.getMessage(panda.NullPointerException a0) {
146 .function panda.Object panda.NullPointerException.getCause(panda.NullPointerException a0) {
151 .function void panda.ArrayIndexOutOfBoundsException.ctor(panda.ArrayIndexOutOfBoundsException a0, p…
159 .function panda.String panda.ArrayIndexOutOfBoundsException.getMessage(panda.ArrayIndexOutOfBoundsE…
164 .function panda.Object panda.ArrayIndexOutOfBoundsException.getCause(panda.ArrayIndexOutOfBoundsExc…
169 .function void panda.IndexOutOfBoundsException.ctor(panda.IndexOutOfBoundsException a0, panda.Strin…
177 .function panda.String panda.IndexOutOfBoundsException.getMessage(panda.IndexOutOfBoundsException a…
182 .function panda.Object panda.IndexOutOfBoundsException.getCause(panda.IndexOutOfBoundsException a0)…
187 .function void panda.IllegalStateException.ctor(panda.IllegalStateException a0, panda.String a1, pa…
[all …]
/ark/ts2abc/ts2panda/src/
Djshelpers.d.ts18 export function getSymbol(node: ts.Node): ts.Symbol;
19 export function tsStringToString(str: ts.__String): string;
20 export function getTextOfIdentifierOrLiteral(node: ts.Node): string;
21 export function isJsFile(file: ts.SourceFile): boolean;
22 export function createEmptyNodeArray<T extends ts.Node>(): ts.NodeArray<T>;
23 export function getFlowNode(stmt: ts.Statement): ts.Node;
24 export function bindSourceFile(sourceFile: ts.SourceFile, options: ts.CompilerOptions);
25 export function createDiagnosticForNode(node: ts.Node, message: ts.DiagnosticMessage, ...args: (str…
26 export function createCompilerDiagnostic(message: ts.DiagnosticMessage, ...args: (string | number |…
27 export function createFileDiagnostic(file: ts.SourceFile, start: number, length: number, message: t…
[all …]
Djshelpers.js18 function getSymbol(node) {
22 function tsStringToString(str) {
26 function getTextOfIdentifierOrLiteral(node) {
30 function isJsFile(file) {
34 function createEmptyNodeArray() {
38 function getFlowNode(stmt) {
42 function bindSourceFile(sourceFile, options) {
46 function createDiagnosticForNode(node, message, ...args) {
50 function createCompilerDiagnostic(message, ...args) {
54 function createFileDiagnostic(file, start, length, message, ...args) {
[all …]
DsyntaxCheckHelper.ts19 export function isOctalNumber(num: string): boolean {
32 export function isNewOrCallExpression(node: ts.Node): boolean {
36 export function stringLiteralIsInRegExp(node: ts.Node) {
50 export function isIncludeOctalEscapeSequence(text: string): boolean {
72 export function isEvalOrArgumentsIdentifier(node: ts.Node): boolean {
76 export function isLeftHandSideExpressionKind(kind: ts.SyntaxKind) {
112 export function isLeftHandSideExpression(node: ts.Node) {
116 export function isAssignmentOperator(token: ts.SyntaxKind) {
120 export function isOriginalKeyword(node: ts.Identifier): boolean {
129 export function isFunctionLikeDeclaration(node: ts.Node): node is ts.FunctionLikeDeclaration {
[all …]
/ark/ts2abc/ts2panda/src/base/
DbcGenUtil.ts108 export function loadAccumulatorInt(value: number): IRNode {
112 export function loadAccumulatorFloat(value: number): IRNode {
116 export function loadAccumulatorString(value: string): IRNode {
120 export function loadAccumulator(vreg: VReg): IRNode {
124 export function storeAccumulator(vreg: VReg): IRNode {
128 export function deleteObjProperty(obj: VReg, prop: VReg): IRNode {
132 export function moveVreg(vd: VReg, vs: VReg): IRNode {
136 export function jumpTarget(target: Label): IRNode {
140 export function creatDebugger(): IRNode {
144 export function throwException(): IRNode {
[all …]
Dutil.ts32 export function containSpreadElement(args?: ts.NodeArray<ts.Expression>): boolean {
46 export function hasExportKeywordModifier(node: ts.Node): boolean {
59 export function hasDefaultKeywordModifier(node: ts.Node): boolean {
72 export function setVariableExported(varName: string, scope: Scope) {
82 export function execute(cmd: string, args: Array<string>) {
101 export function addUnicodeEscape(text: string) {
127 export function isBindingPattern(node: ts.Node) {
131 export function isObjectBindingOrAssignmentPattern(node: ts.Node) {
135 export function isArrayBindingOrAssignmentPattern(node: ts.Node) {
139 export function isBindingOrAssignmentPattern(node: ts.Node) {
[all …]
DbuiltIn.ts33 export function expandHole(pandaGen: PandaGen): IRNode[] {
41 export function expandNaN(pandaGen: PandaGen): IRNode[] {
49 export function expandInfinity(pandaGen: PandaGen): IRNode[] {
57 export function expandGlobal(pandaGen: PandaGen): IRNode[] {
65 export function expandUndefined(pandaGen: PandaGen): IRNode[] {
73 export function expandSymbol(pandaGen: PandaGen): IRNode[] {
81 export function expandNull(pandaGen: PandaGen): IRNode[] {
89 export function expandTrue(pandaGen: PandaGen): IRNode[] {
97 export function expandFalse(pandaGen: PandaGen): IRNode[] {
105 export function expandFunc(pandaGen: PandaGen): IRNode[] {
/ark/runtime_core/disassembler/tests/sources/
Dcalls.pa18 .function u8 B.Bhandler_unspec(B a0) {
22 .function u8 B.Bhandler_short(B a0, u1 a1) {
26 .function u8 B.Bhandler_short2(B a0, u1 a1, i64 a2) {
30 .function u16 B.Bhandler_long(B a0, i8 a1, i16 a2, i32 a3) {
34 .function u16 B.Bhandler_long2(B a0, i8 a1, i16 a2, i32 a3, i64 a4) {
38 .function u16 B.Bhandler_range(B a0, i8 a1, i16 a2, i32 a3, i8 a4, i16 a5, i32 a6) {
42 .function u16 long_function(i8 a0, i16 a1, i32 a2, i8 a3, i16 a4, i32 a5, i64 a6, f32 a7) {
48 .function u8 handler_unspec() {
52 .function u8 handler_short(u1 a0) {
56 .function u8 handler_short2(u1 a0, i64 a1) {
[all …]
/ark/ts2abc/ts2panda/tests/
Dhoist.test.ts38 describe("HoistTest", function () {
41 it('case 1;', function () {
55 it('case 2', function () {
75 // case 3: hoist function declaration in global scope
76 it('case 3', function () {
78 snippetCompiler.compile(`function a() {};`);
89 …// case 4: In case that two function declared directly in global scope with the same name, hoist t…
90 it('case 4', function () {
92 snippetCompiler.compile(`function a() {}; function a() {}`);
104 …// case 5: hoisting of function declaration is of higher priority than var declared variables with…
[all …]
/ark/js_runtime/ecmascript/tests/
Djs_dataview_test.cpp53 * Function: GetElementSize
56 …* CaseDescription: Check whether the returned value through "GetElementSize" function is within ex…
73 * Function: SetDataView
76 …* CaseDescription: Check whether the returned value through "GetDataView" function is within expec…
77 * calling "SetDataView" function.
94 // Call "SetDataView" function through "NewJSDataView" function of "object_factory.cpp" in HWTEST_F_L0()
99 // Call "SetDataView" function in this HWTEST_F_L0. in HWTEST_F_L0()
108 * Function: SetViewedArrayBuffer
111 …* CaseDescription: Check whether the returned value through "GetViewedArrayBuffer" function is wit…
112 * after calling "SetViewedArrayBuffer" function.
[all …]
Djs_array_iterator_test.cpp53 * Function: SetIteratedArray
56 …* CaseDescription: Call the "SetIteratedArray" function, check whether the result returned through…
57 * function from the JSArrayIterator is within expectations.
79 … // Call "SetIteratedArray" function through "NewJSArrayIterator" function of "object_factory.cpp". in HWTEST_F_L0()
90 // Call "SetIteratedArray" function in this HWTEST_F_L0. in HWTEST_F_L0()
103 * Function: SetNextIndex
106 …seDescription: Call the "SetNextIndex" function, check whether the result returned through "GetNex…
122 // Call "SetNextIndex" function through "NewJSArrayIterator" function of "object_factory.cpp". in HWTEST_F_L0()
129 // Call "SetNextIndex" function in this HWTEST_F_L0. in HWTEST_F_L0()
137 * Function: SetIterationKind
[all …]
Decma_module_test.cpp60 * Function: AddItem
63 …* CaseDescription: Add an item for a EcmaModule that has called "SetNameDictionary" function in th…
64 * check its value through 'GetItem' function.
84 * Function: AddItem
87 …* CaseDescription: Add an item for a EcmaModule that has not called "SetNameDictionary" function i…
88 * and check its value through 'GetItem' function.
99 …// This EcmaModule calls 'SetNameDictionary' function through 'AddItem' function of "ecma_module.c… in HWTEST_F_L0()
106 * Function: RemoveItem
109 …* CaseDescription: Add an item for an empty EcmaModule through 'AddItem' function, then remove the…
110 …* EcmaModule through 'RemoveItem' function, finally check whether the item obtain…
[all …]
/ark/ts2abc/ts2panda/tests/statements/
DfunctionDeclaration.test.ts42 describe("FunctionDeclarationTest", function () {
43 it('function definition in the global scope', function () {
45 snippetCompiler.compile("function foo() {}");
60 it('function redefinition in the global scope', function () {
63 function foo() {}
64 function foo() {}
79 it('function definition inside a function', function () {
81 snippetCompiler.compile(`function out() {function foo() {}}`);
101 it("function expression", function () {
103 snippetCompiler.compile("let foo = function() {}");
[all …]
/ark/runtime_core/docs/
Druntime-compiled_code-interaction.md22 `panda::CompilerInterface::CompileMethodSync` for compilation. When a function is compiled, the com…
23 its entrypoint to the native code generated. When the function is called next time, the native code…
27 …ompiled code of a managed function must accept one extra argument: the pointer to `panda::Method` …
31 Consider a function int max(int a, int b).
32 When the compiler generates native code for this function for ARM target it must consider that
33 the function accepts 3 arguments:
38 The function must return the result in the register R0.
52 must contain a valid pointer to `panda::ManagedThread` on entry to each compiled function.
55 Runtime serves compiled code via runtime entrypoints. A runtime entrypoint is a function which conf…
59 `panda::Method` describes a managed function in the runtime.
[all …]
Dassembly_format.md86 There are keys that indicate bool values. For example, weither a function must have an implementati…
89 ### Function metadata annotations
93 A definition of a function is assumed.
100 A declaration of a function is assumed.
104 | `external` | Marks an externally defined function. Does not require value. |
105 | `native` | Marks an externally defined function. Does not require value. |
106 | `noimpl` | Marks a function without implementation. Does not require value. |
107 | `static` | Marks a function as static. Does not require value. |
108 | `ctor` | Marks a function as object constructor. It will be renamed in binary file according to…
109 | `cctor` | Marks a function as static constructor. It will be renamed in binary file according to…
[all …]
/ark/runtime_core/tests/cts-generator/cts-template/
Dreturn.void.yaml38 .function %s func(%s) {
42 .function i32 main() {
62 description: Return type of function does not match 'void' type.
90 .function %s func() {
94 .function i32 main() {
97 description: Check 'return.void' is used in function with not void return type.
116 .function void func() {
120 .function i32 main() {
154 .function void func(%s) {
159 .function i32 main() {
[all …]
Dreturn.yaml19 .function void Obj.ctor(Obj a0) <ctor> {
42 .function i32 func(%s) {
47 .function i32 main() {
108 .function %s func() {
113 .function i32 main() {
116 description: Check 'return' is used in function with not i32 return type and null value.
135 .function i32 func() {
140 .function i32 main() {
163 .function i32 func() {
168 .function i32 main() {
[all …]
Dreturn.64.yaml19 .function void Obj.ctor(Obj a0) <ctor> {
43 .function i64 func(%s) {
48 .function i32 main() {
105 .function f64 func(%s) {
110 .function i32 main() {
171 .function %s func() {
176 .function i32 main() {
179 description: Check 'return.64' is used in function with not i32 return type.
197 .function f64 func() {
202 .function i32 main() {
[all …]
Dcall.short.yaml52 .function void f1(%s) {
55 .function i32 main() {
118 .function void f1(panda.String a0) {
121 .function i32 main() {
153 description: Verifier should check usage of uninitialized arguments passed to function.
156 .function void f1(%s) {
160 .function i32 main() {
166 # 1st argument is function arguments
182 description: Check usage of uninitialized register in function frame.
185 description: Check usage of uninitialized register in function frame.
[all …]
Dinitobj.short.yaml51 .function void A.c2(A a0, u32 a1, u32 a2) <ctor> {
54 .function void A.c1(A a0, u64 a1) <ctor> {
57 .function void A.c0(A a0) <ctor> {
60 .function void A.aFunc(A a0) {
63 .function i32 main() {
140 .function void R.ctor(R a0%s) <ctor> {
143 .function i32 main() {
189 .function void R.c(R a0, i32 a1, i32 a2) <ctor> {
193 .function i32 main() {
220 .function void R.c(R a0, i32 a1, i32 a2) <ctor> {
[all …]
Dinitobj.range.yaml51 .function void A.c2(A a0, u32 a1, u32 a2) <ctor> {
54 .function void A.c1(A a0, u64 a1) <ctor> {
57 .function void A.c0(A a0) <ctor> {
60 .function void A.aFunc(A a0) {
63 .function i32 main() {
140 .function void R.ctor(R a0, %s) <ctor> {
143 .function i32 main() {
194 .function void R.c(R a0, i32 a1, i32 a2, i32 a3, i32 a4, i32 a5) <ctor> {
198 .function i32 main() {
231 .function void R.c(R a0, i32 a1, i32 a2, i32 a3, i32 a4) <ctor> {
[all …]
Dinitobj.yaml51 .function void A.c4(A a0, u1 a1, u1 a2, u1 a3, u1 a4) <ctor> {
54 .function void A.c3(A a0, u16 a1, u16 a2, u16 a3) <ctor> {
57 .function void A.c2(A a0, u32 a1, u32 a2) <ctor> {
60 .function void A.c1(A a0, u64 a1) <ctor> {
63 .function void A.c0(A a0) <ctor> {
66 .function void A.aFunc(A a0) {
69 .function i32 main() {
146 .function void R.ctor(R a0, %s) <ctor> {
149 .function i32 main() {
221 .function void R.c(R a0, i32 a1, i32 a2, i32 a3, i32 a4) <ctor> {
[all …]
/ark/ts2abc/ts2panda/ts2abc/
Dts2abc.cpp77 static panda::pandasm::Function MakeFuncDefintion(const std::string &name, const std::string &retur… in MakeFuncDefintion()
79 auto function = panda::pandasm::Function( in MakeFuncDefintion() local
88 function.return_type = panda::pandasm::Type(returnType.c_str(), 0); in MakeFuncDefintion()
89 return function; in MakeFuncDefintion()
434 static int ParseVariablesDebugInfo(const Json::Value &function, panda::pandasm::Function &pandaFunc) in ParseVariablesDebugInfo() argument
440 if (function.isMember("v") && function["v"].isArray()) { in ParseVariablesDebugInfo()
441 for (Json::ArrayIndex i = 0; i < function["v"].size(); ++i) { in ParseVariablesDebugInfo()
442 if (!function["v"][i].isObject()) { in ParseVariablesDebugInfo()
447 auto variable = function["v"][i]; in ParseVariablesDebugInfo()
479 static int ParseSourceFileDebugInfo(const Json::Value &function, panda::pandasm::Function &pandaFun… in ParseSourceFileDebugInfo() argument
[all …]
/ark/runtime_core/docs/bc_verification/
Dtype_system.md38 - `function`
46 - `function(-i32(), -i16(), +i8())`
47 - `function(-function(-i8(), +i16()), +i16())`
52 - `function(-i32(), -i16(), +i8()) <: function(-i16(), -i8(), +i32())`
53 - `function(-function(-i8(), +i16()), +i16()) <: function(function(-16(), +8()), +i32())`
/ark/ts2abc/test262/
Dskip_tests.json39 "language/statements/class/subclass/builtin-objects/Function/instance-length.js",
40 "language/statements/class/subclass/builtin-objects/Function/instance-name.js",
41 "language/statements/class/subclass/builtin-objects/Function/regular-subclassing.js",
70 "built-ins/Function/15.3.2.1-11-1.js",
71 "built-ins/Function/15.3.2.1-11-2-s.js",
72 "built-ins/Function/15.3.2.1-11-3.js",
73 "built-ins/Function/15.3.2.1-11-4-s.js",
74 "built-ins/Function/15.3.2.1-11-5.js",
75 "built-ins/Function/15.3.2.1-11-6-s.js",
76 "built-ins/Function/15.3.2.1-11-7-s.js",
[all …]

12345678910>>...37