| /arkcompiler/ets_frontend/ |
| D | README.md | 1 # ets_frontend <a name="EN-US_TOPIC_0000001137330686"></a> 3 - [ets_frontend <a name="EN-US_TOPIC_0000001137330686"></a>](#ets_frontend-) 4 - [Introduction<a name="section11660541593"></a>](#introduction) 5 - [Directory Structure<a name="section161941989596"></a>](#directory-structure) 6 - [Build<a name="section0446154755015"></a>](#Build) 7 - [Usage Guidelines<a name="section33105542504"></a>](#usage-guidelines) 8 - [Repositories Involved<a name="section1371113476307"></a>](#repositories-involved) 10 ## Introduction<a name="section11660541593"></a> 12 ets_frontend is a front-end tool in the ARK Runtime Subsystem. Combined with the ace-ets2bundle com… 20 ## Directory Structure<a name="section161941989596"></a> [all …]
|
| D | README_zh.md | 1 # ets_frontend组件<a name="ZH-CN_TOPIC_0000001137330686"></a> 3 - [ets_frontend组件<a name="ZH-CN_TOPIC_0000001137330686"></a>](#ets_frontend组件) 4 - [简介<a name="section11660541593"></a>](#简介) 5 - [目录<a name="section161941989596"></a>](#目录) 6 - [编译构建<a name="section0446154755015"></a>](#编译构建) 7 - [使用说明<a name="section33105542504"></a>](#使用说明) 8 - [相关仓<a name="section1371113476307"></a>](#相关仓) 10 ## 简介<a name="section11660541593"></a> 20 ## 目录<a name="section161941989596"></a> 47 ## 编译构建<a name="section0446154755015"></a> [all …]
|
| /arkcompiler/ets_runtime/docs/ |
| D | using-the-toolchain.md | 1 # Using the Toolchain<a name="EN-US_TOPIC_0000001128256014"></a> 23 <a name="table18706114344420"></a> 24 …29%" id="mcps1.1.6.1.1"><p id="p1970694310447"><a name="p1970694310447"></a><a name="p197069431044… 26 …29%" id="mcps1.1.6.1.2"><p id="p9548142314456"><a name="p9548142314456"></a><a name="p954814231445… 28 …4434%" id="mcps1.1.6.1.3"><p id="p170614318449"><a name="p170614318449"></a><a name="p170614318449… 30 …01%" id="mcps1.1.6.1.4"><p id="p1841257144811"><a name="p1841257144811"></a><a name="p184125714481… 32 …%" id="mcps1.1.6.1.5"><p id="p15894191313495"><a name="p15894191313495"></a><a name="p158941913134… 36 …eaders="mcps1.1.6.1.1 "><p id="p0706154312447"><a name="p0706154312447"></a><a name="p070615431244… 38 …eaders="mcps1.1.6.1.2 "><p id="p1654810236457"><a name="p1654810236457"></a><a name="p165481023645… 40 …ders="mcps1.1.6.1.3 "><p id="p12451427144913"><a name="p12451427144913"></a><a name="p124514271449… [all …]
|
| D | using-the-toolchain-zh.md | 1 # 方舟eTS编译器使用<a name="ZH-CN_TOPIC_0000001128256014"></a> 23 <a name="table18706114344420"></a> 24 …29%" id="mcps1.1.6.1.1"><p id="p1970694310447"><a name="p1970694310447"></a><a name="p197069431044… 26 …29%" id="mcps1.1.6.1.2"><p id="p9548142314456"><a name="p9548142314456"></a><a name="p954814231445… 28 …4434%" id="mcps1.1.6.1.3"><p id="p170614318449"><a name="p170614318449"></a><a name="p170614318449… 30 …01%" id="mcps1.1.6.1.4"><p id="p1841257144811"><a name="p1841257144811"></a><a name="p184125714481… 32 …%" id="mcps1.1.6.1.5"><p id="p15894191313495"><a name="p15894191313495"></a><a name="p158941913134… 36 …eaders="mcps1.1.6.1.1 "><p id="p0706154312447"><a name="p0706154312447"></a><a name="p070615431244… 38 …eaders="mcps1.1.6.1.2 "><p id="p1654810236457"><a name="p1654810236457"></a><a name="p165481023645… 40 …ders="mcps1.1.6.1.3 "><p id="p12451427144913"><a name="p12451427144913"></a><a name="p124514271449… [all …]
|
| D | development-example.md | 1 # Development Example<a name="EN-US_TOPIC_0000001128096218"></a> 8 ## HelloWorld<a name="section105987593810"></a> 120 ## Performing Test Case Test262<a name="section118471435115815"></a> 150 <a name="table11141827153017"></a> 151 …th="50%" id="mcps1.1.3.1.1"><p id="p51552743010"><a name="p51552743010"></a><a name="p51552743010"… 153 …th="50%" id="mcps1.1.3.1.2"><p id="p11592710304"><a name="p11592710304"></a><a name="p11592710304"… 157 … headers="mcps1.1.3.1.1 "><p id="p171592710306"><a name="p171592710306"></a><a name="p171592710306… 159 …ders="mcps1.1.3.1.2 "><p id="p13151527133011"><a name="p13151527133011"></a><a name="p131515271330… 162 …eaders="mcps1.1.3.1.1 "><p id="p1615182712308"><a name="p1615182712308"></a><a name="p161518271230… 164 …eaders="mcps1.1.3.1.2 "><p id="p9556101593120"><a name="p9556101593120"></a><a name="p955610159312… [all …]
|
| D | development-example-zh.md | 1 # 开发实例<a name="ZH-CN_TOPIC_0000001128096218"></a> 3 - [开发实例<a name="ZH-CN_TOPIC_0000001128096218"></a>](#开发实例) 4 - [HelloWorld<a name="section105987593810"></a>](#helloworld) 8 - [运行Test262测试用例<a name="section118471435115815"></a>](#运行test262测试用例) 16 ## HelloWorld<a name="section105987593810"></a> 135 ## 运行Test262测试用例<a name="section118471435115815"></a> 165 <a name="table11141827153017"></a> 166 …th="50%" id="mcps1.1.3.1.1"><p id="p51552743010"><a name="p51552743010"></a><a name="p51552743010"… 168 …th="50%" id="mcps1.1.3.1.2"><p id="p11592710304"><a name="p11592710304"></a><a name="p11592710304"… 172 … headers="mcps1.1.3.1.1 "><p id="p171592710306"><a name="p171592710306"></a><a name="p171592710306… [all …]
|
| /arkcompiler/runtime_core/tests/checked/ |
| D | inline_external.pa | 4 # You may obtain a copy of the License at 20 .record A { 26 .function i32 A.getConst() <static> { 31 .function i32 A.getConst_virt(A a0) { 36 .function i32 A.getParam(i32 a0) <static> { 41 .function i32 A.getParam_virt(A a0, i32 a1) { 46 .function void A.getVoid() <static> { 50 .function void A.getVoid_virt(A a0) { 54 .function i32 A.getObj(A a0) <static> { 55 ldobj a0, A.data [all …]
|
| D | inline.pa | 4 # You may obtain a copy of the License at 205 #! INST /CallStatic.*A::getConst/ 208 #! INST_NOT /CallStatic.*A::getConst/ 212 #! INST /CallVirtual.*A::getConst/ 215 #! INST_NOT /CallVirtual.*A::getConst/ 219 #! INST /CallStatic.*A::getParam/ 221 #! INST_NOT /CallStatic.*A::getParam/ 224 #! INST /CallVirtual.*A::getParam/ 226 #! INST_NOT /CallVirtual.*A::getParam/ 229 #! INST /CallStatic.*A::getVoid/ [all …]
|
| /arkcompiler/ets_frontend/es2panda/test/parser/ts/type_checker/ |
| D | objectLiteralAssignability.ts | 5 * You may obtain a copy of the License at 18 var obj2: { a: number, b: string } | { a: number, b: string, c: number } = { a: 5, b: "foo", ...obj… 19 obj2 = { a: 2, b: "bar", c: 3 }; 22 var obj4: { a: typeof obj3, b?: { a: number, b?: string } } = { a: {}, b: { a: 5 } }; 23 obj4 = { a: {}, b: { a: 5, b: "foo" } }; 24 obj4 = { a: {} }; 26 var obj5: { a: { a: number, b: string }, b: { a: boolean } } = { a: { a: 5, b: "foo" }, b: { a: tru… 27 var obj6: { a(a: number, b: string): number, b(): boolean }; 28 obj6 = { a: function (a: number, b: string): number { return 12; }, b: function () { return true } … 30 var obj7: {} | { a: number } | { a: string, b: number } | { a: boolean, b: string, c: number }; [all …]
|
| D | varRedeclaration.ts | 5 * You may obtain a copy of the License at 17 var a: any; variable 18 var a: any; variable 26 var d: { a: number, b: string }; 27 var d: { b: string, a: number }; variable 29 var e: (a: number, b: (string | number)[]) => void; 30 var e: (a: number, b: (string | number)[]) => void; 32 var f: { a: number, b: string } | { a: number[], b?: string }; 33 var f: { a: number, b: string } | { a: number[], b?: string }; 36 a: number, property [all …]
|
| D | expression_3.ts | 5 * You may obtain a copy of the License at 17 var a = 1; variable 19 a += a; 20 a *= a; 21 a -= a; 22 a = +a; 23 a = -a; 24 a++; 25 ++a; 26 a--; [all …]
|
| D | interfaceAssignment.ts | 5 * You may obtain a copy of the License at 17 interface A { interface 18 a: number, property 23 var a: A = { a: 1, b: "foo", c: true }; variable 25 interface B extends A { 26 d(a: number, b: string): number[]; 30 a: 2, b: "bar", c: false, d: function (a: number, b: string) { 37 (a: number, b: number): string, 41 (a: number, b: number): string, 42 (a: number, b: number): string, [all …]
|
| /arkcompiler/ets_frontend/es2panda/test/parser/js/ |
| D | test-binary-expression.js | 5 * You may obtain a copy of the License at 17 a | b 18 a ^ b 19 a & b 20 a == b 21 a != b 22 a === b 23 a !== b 24 a < b 25 a <= b [all …]
|
| D | test-do-while.js | 5 * You may obtain a copy of the License at 17 do a = 2 18 while (a > b) 20 do a = 2; while (a > b) 22 do { a = 2 } while (a > b) 24 do { a = 2; } while (a > b) 27 a = 2 33 a = 2; 38 do do a = 2 39 while (a > b) while (a > b) [all …]
|
| /arkcompiler/toolchain/tooling/test/testcases/js/ |
| D | step.js | 5 * You may obtain a copy of the License at 24 var a = 1; 25 a = 2; 26 a = 3; 27 a = 4; 29 a = 5; 30 a = 6; 31 a = 7; 32 a = 8; 33 a = 9; [all …]
|
| /arkcompiler/ets_frontend/es2panda/test/parser/ts/ |
| D | test-ts-type-predicate.ts | 5 * You may obtain a copy of the License at 17 function function1(a: number | string): asserts a { return }; 18 var var1: (a: number | string) => asserts a; 20 (a: number | string): asserts a; method 21 (a: number | string): asserts this; 27 a: number; property 29 (asserts: { a: number | string }): asserts is this; 35 a: number; property 37 (is: { a: number | string }): is is this; 40 function function4(a: number | string): a is number { return }; [all …]
|
| D | test_generic.ts | 5 * You may obtain a copy of the License at 17 function func1<Type, A, B extends readonly number[]>(arg: Type): Type { 21 function func2<A extends { a: number, b: string }>() { } 23 function func3<A extends keyof { a: { b: number, c: boolean }, b: [number, string] }>(a: A, b: stri… 30 a: number, property 34 interface U<A extends readonly [number, number, { a: number, b: string }], Z = boolean> extends R<[… 35 <A>(): number, 36 readonly<A extends number>(): [boolean, number[]]; 40 func2<<A>() => {}>(); 43 a: function <B, C extends typeof func1>() { }, [all …]
|
| /arkcompiler/ets_frontend/ts2panda/tests/expression/ |
| D | operationEqual.test.ts | 5 * You may obtain a copy of the License at 46 let insns = compileMainSnippet("let a = 2;\n" + 47 "a += 3;"); 49 IRNode.pg = new PandaGen("", creatAstFromSnippet("let a = 2;\n" + 50 "a += 3;"), 0, undefined); 54 new Sttoglobalrecord(new Imm(0), 'a'), 55 new Tryldglobalbyname(new Imm(1), 'a'), 59 new Trystglobalbyname(new Imm(3), 'a'), 66 let insns = compileMainSnippet("let a = 5;\n" + 67 "a -= 7;"); [all …]
|
| /arkcompiler/ets_runtime/ |
| D | README_zh.md | 1 # 方舟eTS运行时部件<a name="ZH-CN_TOPIC_0000001183610495"></a> 3 - [方舟eTS运行时部件<a name="ZH-CN_TOPIC_0000001183610495"></a>](#方舟eTS运行时部件) 4 - [简介<a name="section190813718209"></a>](#简介) 5 - [目录<a name="section161941989596"></a>](#目录) 6 - [约束<a name="section119744591305"></a>](#约束) 7 - [编译构建<a name="section137768191623"></a>](#编译构建) 8 - [接口说明<a name="section175841548124517"></a>](#接口说明) 9 - [使用说明<a name="section129654513264"></a>](#使用说明) 10 - [相关仓<a name="section1371113476307"></a>](#相关仓) 12 ### 简介<a name="section190813718209"></a> [all …]
|
| /arkcompiler/ets_runtime/test/moduletest/callframe/ |
| D | callframe.js | 5 * You may obtain a copy of the License at 23 function foo0(a) { argument 24 return a; 28 function foo1(a) { argument 30 return a; 32 this.a = a; 36 function foo2(a) { argument 38 return a; 43 function foo3(a) { argument 45 return a; [all …]
|
| /arkcompiler/ets_frontend/ts2panda/scripts/ |
| D | diagnosticMessages.json | 6 "A rest parameter or binding pattern may not have a trailing comma.": { 10 "A rest parameter must be last in a parameter list.": { 18 "A required parameter cannot follow an optional parameter.": { 22 "The 'readonly' modifier can only appear on a property declaration or index signature.": { 42 "A 'declare' modifier cannot be used in an already ambient context.": { 54 "'{0}' modifier cannot appear on a module or namespace element.": { 58 "A rest parameter cannot be optional.": { 62 "A rest parameter cannot have an initializer.": { 66 "'{0}' modifier cannot appear on a type member.": { 74 "A '{0}' modifier cannot be used with an import declaration.": { [all …]
|
| /arkcompiler/ets_runtime/test/aottest/inline/ |
| D | inline.ts | 3 class A { 4 add(a : number, b : number) : number { 5 return a + b; 8 select(a : number, b : number) : number { 9 return a > b ? a : b; 12 foo(a: number) : number { 13 return this.add(a*2, a); 16 bar(a: number) : number { 17 return this.select(a*2, a); 21 let a : A = new A(); variable [all …]
|
| /arkcompiler/runtime_core/tests/irtoc-interpreter-tests/ |
| D | initobj.pa | 4 # You may obtain a copy of the License at 14 .record A { 15 i32 a 18 .function void A.initshort(A a0, i32 a1, i32 a2) <ctor> { 21 stobj a0, A.a 25 .function void A.init(A a0, i32 a1, i32 a2, i32 a3) <ctor> { 28 stobj a0, A.a 35 initobj.short A.initshort, v0, v1 37 ldobj v2, A.a 40 initobj A.init, v0, v1, v0 [all …]
|
| /arkcompiler/runtime_core/assembler/ |
| D | asm_metadata.rb | 4 # You may obtain a copy of the License at 95 … attributes = Metadata::attributes.select { |a| a.applicable_to?(item_type) && a.bool? == is_bool } 99 attributes.each do |a| 100 body << "#{indent}if (attribute == \"#{attribute_name(a)}\") {" 102 unless a.multiple? 104 body << "#{indent * 3}return Error(\"Attribute '#{attribute_name(a)}' already defined\"," 109 if a.enum? 110 a.values.each do |v| 117 …body << "#{indent * 2}return Error(std::string(\"Attribute '#{attribute_name(a)}' have incorrect v… 118 …body << "#{indent * 2} R\"('. Should be one of #{a.values.map(&:value)})\", Error::Typ… [all …]
|
| /arkcompiler/ets_frontend/ts2panda/tests/ |
| D | hoist.test.ts | 5 * You may obtain a copy of the License at 44 let insns = compileMainSnippet("var a = 1;"); 45 IRNode.pg = new PandaGen("foo", creatAstFromSnippet("var a = 1;"), 0, undefined); 48 new Stglobalvar(new Imm(0), "a"), 50 new Stglobalvar(new Imm(1), "a"), 60 var a = 2; 63 var a = 2; 69 new Stglobalvar(new Imm(0), "a"), 74 new Stglobalvar(new Imm(1), "a"), 84 snippetCompiler.compile(`function a() {};`); [all …]
|