| /arkcompiler/runtime_core/taihe/test/ani_record/idl/ |
| D | record_test.taihe | 22 function GetCpuSize(r : @record Map<String, ICpu>) : i32; 24 function GetASize(r : @record Map<i32, Opaque>) : i32; 26 function GetStringIntSize(r : @record Map<String, i32>) : i32; 28 function CreateStringString(a : i32) : @record Map<String, String>; 35 function GetMapfromArray(d : Array<Data>): @record Map<String, i32>; 37 function GetDatafromMap(m : @record Map<String, Data>, k : String) : Data; 39 function ForeachMap(r: @record Map<String, String>); 42 function Mapfunc01(m : @record Map<String, bool>): bool; 43 function Mapfunc02(m : @record Map<String, i8>): bool; 44 function Mapfunc03(m : @record Map<String, i16>): bool; [all …]
|
| /arkcompiler/ets_frontend/merge_abc/src/ |
| D | assemblyRecordProto.cpp | 19 void Record::Serialize(const panda::pandasm::Record &record, protoPanda::Record &protoRecord) in Serialize() argument 21 protoRecord.set_name(record.name); in Serialize() 22 protoRecord.set_conflict(record.conflict); in Serialize() 23 protoRecord.set_language(static_cast<uint32_t>(record.language)); in Serialize() 25 RecordMetadata::Serialize(*record.metadata, *proto_record_meta); in Serialize() 27 for (const auto &field : record.field_list) { in Serialize() 32 protoRecord.set_paramsnum(record.params_num); in Serialize() 33 protoRecord.set_bodypresence(record.body_presence); in Serialize() 34 protoRecord.set_sourcefile(record.source_file); in Serialize() 36 const auto &location = record.file_location; in Serialize() [all …]
|
| D | assemblyRecordProto.h | 26 class Record { 28 static void Serialize(const panda::pandasm::Record &record, protoPanda::Record &protoRecord); 29 static void Deserialize(const protoPanda::Record &protoRecord, panda::pandasm::Record &record,
|
| /arkcompiler/runtime_core/taihe/test/ani_record/user/ |
| D | main.ets | 26 // test function getCpuSize(r: Record<string, ICpu>): int 29 let cpus: Record<string, ICpu> = { 39 // test function getASize(r: Record<int, Object>): int 43 let As: Record<int, Object> = { 54 // test function getStringIntSize(r: Record<string, int>): int 55 let record: Record<string, int> = { 61 let ret2: int = record_test.GetStringIntSize(record); 67 // test function createStringString(a: int): Record<string, string> 68 let strRecord: Record<string, string> = record_test.CreateStringString(5); 74 // test function getMapfromArray(d: (Data[])): Record<string, int> [all …]
|
| /arkcompiler/runtime_core/static_core/abc2program/ |
| D | abc_class_processor.cpp | 37 pandasm::Record record("", keyData_.GetFileLanguage()); in FillRecord() local 38 record.name = keyData_.GetFullRecordNameById(entityId_); in FillRecord() 39 FillRecordMetaData(record); in FillRecord() 41 FillRecordData(record); in FillRecord() 43 std::string name = record.name; in FillRecord() 45 program_->recordTable.emplace(name, std::move(record)); in FillRecord() 48 void AbcClassProcessor::FillRecordData(pandasm::Record &record) in FillRecordData() argument 51 FillFields(record); in FillRecordData() 53 FillRecordSourceFile(record); in FillRecordData() 56 void AbcClassProcessor::FillRecordMetaData(pandasm::Record &record) in FillRecordMetaData() argument [all …]
|
| D | abc_class_processor.h | 32 void FillRecordData(pandasm::Record &record); 33 void FillRecordSourceFile(pandasm::Record &record); 34 void FillRecordMetaData(pandasm::Record &record); 35 void FillFields(pandasm::Record &record);
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/escompat/ |
| D | JsonStringifyTest.ets | 120 let record: Record<string, NullishType> = new Record<string, NullishType>(); 121 record["name"] = "arkts"; 122 record["version"] = 1; 124 let jsonStr = JSON.stringify(record); 133 const rec: Record<string, NullishType> = { "name": "Rec", "version": 2 } 139 let record: Record<string, NullishType> = new Record<string, NullishType>(); 140 record["name"] = "arkts"; 141 record["version"] = 1.0; 142 record["ignore"] = undefined; 144 let jsonStr = JSON.stringify(record); [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/assembler/extension/ |
| D | metadata.yaml | 25 type: record 28 - record 31 type: record 34 - record 40 - record 46 - record 53 - record 59 - record 69 - record 72 type: record [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/integrational/ |
| D | mock_stdlib.pa | 16 .record std.core.String 17 .record std.core.StringBuilder 18 .record std.core.Object 19 .record std.core.Class 20 .record std.core.__NullValue 21 .record std.core.StackOverflowError 22 .record std.core.DoubleToStringCacheElement 23 .record std.core.FloatToStringCacheElement 24 .record std.core.LongToStringCacheElement 25 .record std.core.StackTraceElement [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/05.object_literal/03.object_literal_of_record_type/ |
| D | re_n.params.yaml | 17 let a: Record< "1"|"2"|"3"|"4"|"5", number> = { 28 let a: Record< "1"|"2"|"3"|"4"|"5", number> = { 37 let a: Record<string, number> = { 45 let a: Record<string, number> = { 53 let a: Record<string, number> = { 60 let a: Record<number, number> = { 67 let a: Record<number | boolean, number> = { 74 let a: Record<Error, string> = {} // CTE, wrong key type, Error is not allowed 78 let a: Record<number, number> = { 85 let a: Record<number, string> = { [all …]
|
| D | re.params.yaml | 18 let a: Record<number, string> = {} 19 let b: Record<number, string> = {} 20 assertEQ(a instanceof Record, true) 21 assertEQ(b instanceof Record, true) 26 let a: Record<number, string> = { 46 let a: Record<number, string> = { 62 let a: Record<string, number> = { 81 let a: Record<"Zero" | "One" | "Two", number> = { 92 let a: Record<string | "Zero" | "One" | "Two", number> = { 107 // string literals to Record [all …]
|
| /arkcompiler/ets_frontend/ets2panda/linter/test/main/ |
| D | record_type.ets | 23 let persons : Record<string, Person> = { 31 let persons2 : Record<string, OptionalPerson> = { 40 let persons3 : Record<string, Person | undefined> = { 49 type R1 = Record<number, string>; // ok 50 type R2 = Record<1 | 2, string>; // ok 51 type R3 = Record<"salary" | "bonus", number>; // ok 54 let x: Record<Keys, number> = { 65 // Initializing Record<K, T> 66 let m1: Record<string, number | undefined> = { // OK 78 let persons : Record<string, OptionalPerson> = { // OK [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/05.generics/03.utility_types/04.record_utility_type/ |
| D | rec.params.yaml | 18 type R1 = Record<string, Error> 31 type R1<T> = Record<T, Error> 45 let r: Record<string, number>[] = new Record<string, number>[3] 55 let r = new Array<Record<string, number>>() 66 let r: [Record<number, string>, Record<string, (p: number) => string>] = [ 79 // fields of Record type 81 f1: Record<String, Boolean> = {} 82 f2: Record<Number, Boolean> = {} 95 // generic argument of record type 103 let r: Record<"a"|"b"|"c", number> = { [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/interfaces/interface_method_returns_value/arkts_interface/interface_method_return_value/ |
| D | test.ets | 46 mappedProperty: Record<number, string> 50 getRecord(): Record<number, Record<number, string>> 65 function helperMakeNestedRecord(): Record<number, Record<number, string>> { 66 const childRef: Record<number, string> = { 0: "child_0", 1: "child_1", 100: "child_100"} 67 const parentRef: Record<number, Record<number, string>> = { 0: childRef } 79 mappedProperty: Record<number, string> = { 1: 'one', 2: 'two', 3: 'three'} 97 getRecord(): Record<number, Record<number, string>> { 98 const childRef: Record<number, string> = { 1: "child_1", 2: "child_2", 100: "child_100"} 99 const parentRef: Record<number, Record<number, string>> = { 0: childRef } 158 public mappedProperty: Record<number, string> = { 1: 'one', 2: 'two', 3: 'three'} [all …]
|
| /arkcompiler/runtime_core/taihe/test/ani_union/idl/ |
| D | test_union.taihe | 39 mapValue1: @record Map<String, i8>; 44 mapValue2: @record Map<String, i16>; 49 mapValue3: @record Map<String, i32>; 54 mapValue4: @record Map<String, i64>; 59 mapValue5: @record Map<String, f32>; 64 mapValue6: @record Map<String, f64>; 69 mapValue7: @record Map<String, bool>; 74 mapValue8: @record Map<String, String>; 79 mapValue9: @record Map<i32, i32>; 86 mapValue1: @record Map<String, i8>; [all …]
|
| /arkcompiler/runtime_core/panda_guard/obfuscate/ |
| D | node.h | 46 * Find PkgName field in pandasm::Record 48 static bool FindPkgName(const pandasm::Record &record, std::string &pkgName); 51 * record is json file 52 * @param record record 55 static bool IsJsonFile(const pandasm::Record &record); 58 * init type pkgName with record 59 * @param record IR record 61 void InitWithRecord(const pandasm::Record &record); 66 * get origin IR program record 67 * @return pandasm::Record [all …]
|
| D | program.cpp | 34 for (const auto &[_, record] : this->prog_->record_table) { in Create() 35 this->CreateNode(record); in Create() 41 void panda::guard::Program::CreateNode(const pandasm::Record &record) in CreateNode() argument 43 auto node = std::make_shared<Node>(this, record.name); in CreateNode() 44 node->InitWithRecord(record); in CreateNode() 48 this->nodeTable_.emplace(record.name, node); in CreateNode() 54 LOG(INFO, PANDAGUARD) << TAG << "skip record: " << record.name; in CreateNode() 59 this->nodeTable_.emplace(record.name, node); in CreateNode() 64 this->CreateAnnotation(record); in CreateNode() 68 void panda::guard::Program::CreateAnnotation(const pandasm::Record &record) in CreateAnnotation() argument [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/runtime/interop_js/ |
| D | interop_stacks.h | 31 startAddr_ = reinterpret_cast<Record *>(pool); in InteropCallStack() 32 endAddr_ = reinterpret_cast<Record *>(ToUintPtr(pool) + POOL_SIZE); in InteropCallStack() 41 struct Record { struct 42 … Record(void *etsCurFrame, char const *codeDescr) : etsFrame(etsCurFrame), descr(codeDescr) {} in Record() function 49 Record *AllocRecord(Args &&...args) in AllocRecord() 51 return new (Alloc()) Record(args...); in AllocRecord() 60 (curAddr_--)->~Record(); in PopRecord() 66 Record *Current() in Current() 72 Span<Record> GetRecords() in GetRecords() 74 return {startAddr_, (ToUintPtr(curAddr_) - ToUintPtr(startAddr_)) / sizeof(Record)}; in GetRecords() [all …]
|
| /arkcompiler/ets_runtime/ecmascript/module/ |
| D | js_module_entry.h | 20 #include "ecmascript/record.h" 23 class ImportEntry final : public Record { 27 static constexpr size_t IMPORT_ENTRY_OFFSET = Record::SIZE; 37 class LocalExportEntry : public Record { 42 static constexpr size_t LOCAL_EXPORT_ENTRY_OFFSET = Record::SIZE; 52 class IndirectExportEntry : public Record { 56 static constexpr size_t INDIRECT_EXPORT_ENTRY_OFFSET = Record::SIZE; 66 class StarExportEntry : public Record { 70 static constexpr size_t STAR_EXPORT_ENTRY_OFFSET = Record::SIZE;
|
| /arkcompiler/runtime_core/static_core/static_linker/tests/data/single/ |
| D | exceptions.pa | 14 .record IO <external> 15 .record panda.String <external> 19 .record E {} 21 .record E1 <> {} 23 .record E2 <> {} 27 .record T {} 33 .record T1 {} 40 .record T2 {} 47 .record T3 {}
|
| /arkcompiler/ets_frontend/ets2panda/test/ast/compiler/ets/ |
| D | comparability_of_never_type01.ets | 16 const a: readonly Array<Record<string, never>> = new Array<Record<string, never>>() 17 const b: readonly Array<Record<never, never>> = new Array<Record<never, never>>() 18 const c: readonly Array<Record<never, string>> = new Array<Record<never, string>>()
|
| /arkcompiler/runtime_core/static_core/disassembler/tests/ |
| D | metadata_test.cpp | 41 .record B <external> in TEST() 43 .record A { in TEST() 78 EXPECT_TRUE(prog.find(".record A {\n}") != std::string::npos); in TEST() 79 EXPECT_TRUE(prog.find(".record B <external>") != std::string::npos); in TEST() 96 .record B <external> { in TEST() 117 EXPECT_TRUE(prog.find(".record B <external> {") != std::string::npos); in TEST() 133 .record A <access.record=public> { in GetTestSource1() 137 .record B <access.record=protected> { } in GetTestSource1() 139 .record C <access.record=private> { in GetTestSource1() 148 .record A <access.record=protected> { in GetTestSource2() [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/runtime/types/ |
| D | ets_class_file_test.cpp | 35 .record Test {} in InSamePackagePrologue() 119 .record A {} in TEST_F() 120 .record B <ets.extends = A> {} in TEST_F() 121 .record C <ets.extends = B> {} in TEST_F() 138 .record ITest <ets.abstract, ets.interface>{} in TEST_F() 154 .record A { in TEST_F() 169 .record B {} in TEST_F() 184 .record TestObject {} in TEST_F() 185 .record A { in TEST_F() 201 .record B { in TEST_F() [all …]
|
| /arkcompiler/runtime_core/docs/ |
| D | assembly_format.md | 110 ### Record metadata annotations 114 A definition of a record is assumed. 121 A declaration of a record is assumed. 125 | `external` | Marks an externally defined record. Does not require value. | 155 | `java.access` | Used to specify access level of record, field or function. Possible values: `priv… 156 …ava.extends` | Used to specify inheritance between records. Value is the name of the base record. | 157 …nterface inheritance between records. Value is the name of the interface record. Allowed multiple … 158 | `java.interface` | Used to specify that the record represents Java interface. | 159 | `java.enum` | Used to specify that the record and its fields represent Java enum. | 160 | `java.annotation` | Used to specify that the record represents Java annotation. | [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_test_suite/modules/verification_wrong_this/incompatible/ |
| D | bar.pa | 16 .record std.core.Object <external> 17 .record @verification_mode.bar.ETSGLOBAL <ets.abstract, ets.extends=std.core.Object, access.record=… 20 .record @verification_mode.bar.A <ets.extends=std.core.Object, access.record=public> { 29 .record @verification_mode.bar.B <ets.extends=std.core.Object, access.record=public> {
|