| /arkcompiler/ets_frontend/ts2panda/src/ |
| D | jshelpers.d.ts | 18 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 …]
|
| D | jshelpers.js | 18 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 …]
|
| /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 …]
|
| D | assemblyFunctionProto.h | 33 …static void Serialize(const panda::pandasm::Function::CatchBlock &block, protoPanda::CatchBlock &p… 34 …static void Deserialize(const protoPanda::CatchBlock &protoBlock, panda::pandasm::Function::CatchB… 39 …static void Serialize(const panda::pandasm::Function::Parameter ¶m, protoPanda::Parameter &pro… 40 …static void Deserialize(const protoPanda::Parameter &protoParam, panda::pandasm::Function::Paramet… 44 class Function { 46 …static void Serialize(const panda::pandasm::Function &function, protoPanda::Function &protoFunctio… 47 …static void Deserialize(const protoPanda::Function &protoFunction, panda::pandasm::Function &funct…
|
| /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_frontend/ts2panda/src/base/ |
| D | bcGenUtil.ts | 124 export function loadAccumulatorInt(value: number): IRNode { 128 export function loadAccumulatorFloat(value: number): IRNode { 132 export function loadAccumulatorString(value: string): IRNode { 136 export function loadAccumulator(vreg: VReg): IRNode { 140 export function storeAccumulator(vreg: VReg): IRNode { 144 export function deleteObjProperty(obj: VReg): IRNode { 148 export function moveVreg(vd: VReg, vs: VReg): IRNode { 152 export function jumpTarget(target: Label): IRNode { 156 export function creatDebugger(): IRNode { 160 export function throwException(): IRNode { [all …]
|
| /arkcompiler/runtime_core/runtime/tests/tooling/ |
| D | api_test.h | 23 using BreakpointCallback = std::function<bool(PtThread, Method *, const PtLocation &)>; 24 using LoadModuleCallback = std::function<bool(std::string_view)>; 25 using PausedCallback = std::function<bool(PauseReason)>; 27 …std::function<bool(PtThread, Method *, const PtLocation &, ObjectHeader *, Method *, const PtLocat… 28 using ExceptionCatchCallback = std::function<bool(PtThread, Method *, const PtLocation &, ObjectHea… 29 using PropertyAccessCallback = std::function<bool(PtThread, Method *, const PtLocation &, ObjectHea… 31 …std::function<bool(PtThread, Method *, const PtLocation &, ObjectHeader *, PtProperty, VRegValue)>; 32 using FramePopCallback = std::function<bool(PtThread, Method *, bool)>; 33 using GarbageCollectionStartCallback = std::function<bool()>; 34 using GarbageCollectionFinishCallback = std::function<bool()>; [all …]
|
| /arkcompiler/runtime_core/libark_defect_scan_aux/ |
| D | function.cpp | 16 #include "function.h" 22 const std::string &Function::GetFunctionName() const in GetFunctionName() 27 const AbcFile *Function::GetAbcFileInstance() const in GetAbcFileInstance() 32 const Graph &Function::GetGraph() const in GetGraph() 37 const Class *Function::GetClass() const in GetClass() 42 const Function *Function::GetParentFunction() const in GetParentFunction() 47 uint32_t Function::GetArgCount() const in GetArgCount() 52 size_t Function::GetDefinedClassCount() const in GetDefinedClassCount() 57 size_t Function::GetDefinedFunctionCount() const in GetDefinedFunctionCount() 62 size_t Function::GetCalleeInfoCount() const in GetCalleeInfoCount() [all …]
|
| /arkcompiler/ets_frontend/test262/ |
| D | dynamicImport_tests.txt | 8 nested-function-return-assignment-expr-not-optional.js 11 nested-function-not-extensible-args.js 14 nested-async-arrow-function-await-no-new-call-expression.js 16 nested-async-function-return-await-not-extensible-no-trailing-comma.js 18 nested-async-function-return-await-no-new-call-expression.js 19 nested-function-return-no-rest-param.js 20 nested-async-function-assignment-expr-not-optional.js 24 nested-async-function-return-await-assignment-expr-not-optional.js 28 nested-async-function-not-extensible-no-trailing-comma.js 40 nested-async-function-no-new-call-expression.js [all …]
|
| /arkcompiler/runtime_core/disassembler/tests/sources/ |
| D | calls.pa | 18 .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 …]
|
| /arkcompiler/ets_frontend/ts2panda/tests/ |
| D | hoist.test.ts | 40 describe("HoistTest", function () { 43 it('case 1;', function () { 58 it('case 2', function () { 81 // case 3: hoist function declaration in global scope 82 it('case 3', function () { 84 snippetCompiler.compile(`function a() {};`); 85 IRNode.pg = new PandaGen("foo", creatAstFromSnippet(`function a() {};`), 0, undefined); 96 …// case 4: In case that two function declared directly in global scope with the same name, hoist t… 97 it('case 4', function () { 99 snippetCompiler.compile(`function a() {}; function a() {}`); [all …]
|
| /arkcompiler/runtime_core/libark_defect_scan_aux/tests/unittest/ |
| D | callee_info_test.js | 19 function func1(o1, o2) { } 21 // call scope-defined function/global function 22 function foo(o1, o2) { 42 function foo1(o1, o2, o3) { 44 function fn(x, y) { 74 function func5() { 84 // call function of across module 85 function func6(o1, o2) { 88 function func7() { 95 // call member function [all …]
|
| /arkcompiler/runtime_core/libark_defect_scan_aux/include/ |
| D | abc_file.h | 34 class Function; variable 47 using FuncInstPair = std::pair<const Function *, Inst>; 59 const Function *GetDefinedFunctionByIndex(size_t index) const; 60 const Function *GetFunctionByName(std::string_view func_name) const; 61 const Function *GetExportFunctionByExportName(std::string_view export_func_name) const; 65 ssize_t GetLineNumberByInst(const Function *func, const Inst &inst) const; 99 void ExtractClassAndFunctionInfo(Function *func); 100 void ExtractClassInheritInfo(const Function *func) const; 101 void ExtractFunctionCalleeInfo(Function *func); 102 void BuildFunctionDefineChain(Function *parent_func, Function *child_func) const; [all …]
|
| D | function.h | 28 class Function; variable 31 class Function final { 33 …Function(std::string_view func_name, panda_file::File::EntityId m_id, uint32_t arg_count, const Gr… in Function() function 38 ~Function() = default; 39 NO_COPY_SEMANTIC(Function); 40 NO_MOVE_SEMANTIC(Function); 46 const Function *GetParentFunction() const; 52 const Function *GetDefinedFunctionByIndex(size_t index) const; 59 void SetParentFunction(const Function *parent_func); 62 void AddDefinedFunction(const Function *def_func); [all …]
|
| /arkcompiler/runtime_core/tests/checked/ |
| D | inline_external.pa | 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> { 59 .function i32 A.getObj_virt(A a0) { 64 .function void A.setObj(A a0, i32 a1) <static> { 70 .function void A.setObjConst_virt(A a0) { [all …]
|
| D | inline.pa | 30 .function i32 func(i32 a0) { 38 .function i32 small_func(i32 a0) { 44 .function i32 Test1.main() { 60 .function i32 func_rec(i32 a0) { 70 .function i32 Test1.main_depth() { 85 .function void farray(f64[] a0) { 92 .function i32 main() { 100 #! CHECKER Inline function with dead loop 109 .function i32 foo1() { 118 .function i32 main1() { [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/bytecode_optimizer/ |
| D | optimize_bytecode.cpp | 92 void BuildMapFromPcToIns(pandasm::Function &function, BytecodeOptIrInterface &ir_interface, in BuildMapFromPcToIns() argument 95 function.local_variable_debug.clear(); in BuildMapFromPcToIns() 97 pc_ins_map->reserve(function.ins.size()); in BuildMapFromPcToIns() 102 pandasm::Ins &ins = function.ins[idx++]; in BuildMapFromPcToIns() 104 if (idx >= function.ins.size()) { in BuildMapFromPcToIns() 110 static void ExtractTypeInfo(const pandasm::Function &function, compiler::RuntimeInterface *adapter, in ExtractTypeInfo() argument 113 const auto &annos = function.metadata->GetAnnotations(); in ExtractTypeInfo() 156 static void BuildMapFromPcToType(const pandasm::Function &function, const compiler::Graph *graph, in BuildMapFromPcToType() argument 160 ExtractTypeInfo(function, graph->GetRuntime(), &tmp_order_type_map, prog); in BuildMapFromPcToType() 184 static void ColumnNumberPropagate(pandasm::Function *function) in ColumnNumberPropagate() argument [all …]
|
| /arkcompiler/ets_runtime/ecmascript/tests/ |
| D | js_dataview_test.cpp | 53 * 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 …]
|
| /arkcompiler/runtime_core/docs/ |
| D | runtime-compiled_code-interaction.md | 23 …compiler is aimed to translate managed function's bytecode to native code. The compiler has an int… 24 `panda::CompilerInterface::CompileMethodSync` which starts compilation. When the function gets comp… 25 changes its entrypoint to newly generated code. Next time when the function gets called native code… 29 …mpiled code of a managed function must accept one extra argumnent: the pointer to `panda::Method` … 33 Consider a function int max(int a, int b). 34 When the compiler generates native code for this function for ARM target it must consider that 35 the function accepts 3 arguments: 40 The function must return the result in the register R0. 54 must contains a valid pointer to `panda::ManagedThread` on entry to each compiled function. 57 Runtime serves compiled code via runtime entrypoints. A runtime entrypoint is a function which conf… [all …]
|
| /arkcompiler/ets_frontend/legacy_bin/api8/src/ |
| D | index.js | 2 …function(){const r=e.apply(n,arguments);return`[${r+t}m`},a=(e,t)=>function(){const r=e.apply(n,a…
|
| /arkcompiler/runtime_core/tests/cts-generator/cts-template/ |
| D | call.polymorphic.range.yaml | 32 … .function panda.Object panda.reflect.Field.get(panda.reflect.Field a0, panda.Object a1) <external> 33 .function panda.reflect.Field panda.Class.getField(panda.Class a0, panda.String a1) <external> 34 .function panda.Class panda.Class.forName(panda.String a0) <external> 35 … .function panda.invoke.MethodHandles$Lookup panda.invoke.MethodHandles.lookup() <external, static> 36 ….function panda.invoke.MethodHandle panda.invoke.MethodHandles$Lookup.findStatic(panda.invoke.Meth… 37 ….function panda.invoke.MethodHandle panda.invoke.MethodHandles$Lookup.findVirtual(panda.invoke.Met… 38 ….function panda.invoke.VarHandle panda.invoke.MethodHandles$Lookup.findVarHandle(panda.invoke.Meth… 52 .function panda.Class R.getPrimitiveType(panda.String a0) <static, panda.access=public> { 61 .function i32 main() { 86 ….function i32 panda.invoke.MethodHandle.invoke(panda.invoke.MethodHandle a0, R a1, R a2, R a3) <ex… [all …]
|
| D | calle.polymorphic.range.yaml | 32 … .function panda.Object panda.reflect.Field.get(panda.reflect.Field a0, panda.Object a1) <external> 33 .function panda.reflect.Field panda.Class.getField(panda.Class a0, panda.String a1) <external> 34 .function panda.Class panda.Class.forName(panda.String a0) <external> 35 … .function panda.invoke.MethodHandles$Lookup panda.invoke.MethodHandles.lookup() <external, static> 36 ….function panda.invoke.MethodHandle panda.invoke.MethodHandles$Lookup.findStatic(panda.invoke.Meth… 37 ….function panda.invoke.MethodHandle panda.invoke.MethodHandles$Lookup.findVirtual(panda.invoke.Met… 38 ….function panda.invoke.VarHandle panda.invoke.MethodHandles$Lookup.findVarHandle(panda.invoke.Meth… 52 .function panda.Class R.getPrimitiveType(panda.String a0) <static, panda.access=public> { 61 .function i32 main() { 86 ….function i32 panda.invoke.MethodHandle.invokeExact(panda.invoke.MethodHandle a0, R a1, R a2, R a3… [all …]
|
| D | call.polymorphic.yaml | 32 … .function panda.Object panda.reflect.Field.get(panda.reflect.Field a0, panda.Object a1) <external> 33 .function panda.reflect.Field panda.Class.getField(panda.Class a0, panda.String a1) <external> 34 .function panda.Class panda.Class.forName(panda.String a0) <external> 35 … .function panda.invoke.MethodHandles$Lookup panda.invoke.MethodHandles.lookup() <external, static> 36 ….function panda.invoke.MethodHandle panda.invoke.MethodHandles$Lookup.findStatic(panda.invoke.Meth… 37 ….function panda.invoke.MethodHandle panda.invoke.MethodHandles$Lookup.findVirtual(panda.invoke.Met… 38 ….function panda.invoke.VarHandle panda.invoke.MethodHandles$Lookup.findVarHandle(panda.invoke.Meth… 52 .function panda.Class R.getPrimitiveType(panda.String a0) <static, panda.access=public> { 61 .function i32 main() { 86 ….function i32 panda.invoke.MethodHandle.invoke(panda.invoke.MethodHandle a0, R a1, R a2, R a3) <ex… [all …]
|
| /arkcompiler/ets_frontend/es2panda/test/parser/ts/ |
| D | test-func-param.ts | 17 function func1(a: number, b: string) { } 18 function func2(a: boolean = true, ...b: number[]) { } 19 function func3(a = 6, [c, d], b?) { } 20 function func4({ }: number, [a, b]: string[]) { } 21 function func5([a, b]: [number, string] = [1, "foo"]) { } 22 function func6({ a, b }: { a: number, b: number } = { a: 0, b: 0 }) { } 23 declare function func7([a, b]: [number, string]) 24 declare function func8({ a, b }: { a: number, b: number }) 25 declare function func9([a, b]?: [number, string]) 26 declare function func10({ a, b }?: { a: number, b: number })
|