Home
last modified time | relevance | path

Searched refs:tag_ (Results 1 – 25 of 25) sorted by relevance

/arkcompiler/ets_frontend/es2panda/ir/expressions/literals/
DtaggedLiteral.h34 explicit TaggedLiteral(LiteralTag tag) : Literal(AstNodeType::TAGGED_LITERAL), tag_(tag) {} in TaggedLiteral()
36 : Literal(AstNodeType::TAGGED_LITERAL), str_(str), tag_(tag) in TaggedLiteral()
41 : Literal(AstNodeType::TAGGED_LITERAL), num_(num), tag_(tag) in TaggedLiteral()
52 return tag_ == other.tag_ && str_ == other.str_;
57 return tag_; in Tag()
62 …ASSERT(tag_ == LiteralTag::ACCESSOR || tag_ == LiteralTag::METHOD || tag_ == LiteralTag::GENERATOR… in Method()
63 tag_ == LiteralTag::ASYNC_GENERATOR_METHOD); in Method()
69 ASSERT(tag_ == LiteralTag::METHODAFFILIATE); in MethodAffiliate()
82 LiteralTag tag_ {LiteralTag::NULL_VALUE};
/arkcompiler/ets_frontend/es2panda/compiler/core/emitter/
DmoduleRecordEmitter.cpp24 ….tag_ = panda::panda_file::LiteralTag::INTEGER, .value_ = static_cast<uint32_t>(moduleRequests.siz… in GenModuleRequests()
28 .tag_ = panda::panda_file::LiteralTag::STRING, .value_ = request.Mutf8()}; in GenModuleRequests()
38 .tag_ = panda::panda_file::LiteralTag::INTEGER, in GenRegularImportEntries()
44 .tag_ = panda::panda_file::LiteralTag::STRING, .value_ = entry->localName_.Mutf8()}; in GenRegularImportEntries()
47 .tag_ = panda::panda_file::LiteralTag::STRING, .value_ = entry->importName_.Mutf8()}; in GenRegularImportEntries()
50 .tag_ = panda::panda_file::LiteralTag::METHODAFFILIATE, in GenRegularImportEntries()
61 .tag_ = panda::panda_file::LiteralTag::INTEGER, in GenNamespaceImportEntries()
66 .tag_ = panda::panda_file::LiteralTag::STRING, .value_ = entry->localName_.Mutf8()}; in GenNamespaceImportEntries()
69 .tag_ = panda::panda_file::LiteralTag::METHODAFFILIATE, in GenNamespaceImportEntries()
80 ….tag_ = panda::panda_file::LiteralTag::INTEGER, .value_ = static_cast<uint32_t>(localExportEntries… in GenLocalExportEntries()
[all …]
Demitter.cpp471 valueLit.tag_ = panda::panda_file::LiteralTag::BOOL; in GenBufferLiterals()
476 valueLit.tag_ = panda::panda_file::LiteralTag::INTEGER; in GenBufferLiterals()
481 valueLit.tag_ = panda::panda_file::LiteralTag::DOUBLE; in GenBufferLiterals()
486 valueLit.tag_ = panda::panda_file::LiteralTag::STRING; in GenBufferLiterals()
491 valueLit.tag_ = panda::panda_file::LiteralTag::ACCESSOR; in GenBufferLiterals()
496 valueLit.tag_ = panda::panda_file::LiteralTag::METHOD; in GenBufferLiterals()
501 valueLit.tag_ = panda::panda_file::LiteralTag::METHODAFFILIATE; in GenBufferLiterals()
506 valueLit.tag_ = panda::panda_file::LiteralTag::GENERATORMETHOD; in GenBufferLiterals()
511 valueLit.tag_ = panda::panda_file::LiteralTag::LITERALBUFFERINDEX; in GenBufferLiterals()
516 valueLit.tag_ = panda::panda_file::LiteralTag::LITERALARRAY; in GenBufferLiterals()
[all …]
DtypeExtractorEmitter.cpp60 typeTag.tag_ = panda::panda_file::LiteralTag::TAGVALUE; in GenTypeInfo()
63 typeValue.tag_ = panda::panda_file::LiteralTag::LITERALARRAY; in GenTypeInfo()
68 typeValue.tag_ = panda::panda_file::LiteralTag::BUILTINTYPEINDEX; in GenTypeInfo()
80 insnOrderTag.tag_ = panda::panda_file::LiteralTag::TAGVALUE; in GenInsnTypeInfo()
82 insnOrderValue.tag_ = panda::panda_file::LiteralTag::INTEGER; in GenInsnTypeInfo()
161 symbolTag.tag_ = panda::panda_file::LiteralTag::TAGVALUE; in GenImportOrDeclareTypeInfo()
163 symbolValue.tag_ = panda::panda_file::LiteralTag::STRING; in GenImportOrDeclareTypeInfo()
/arkcompiler/runtime_core/assembler/
Dassembly-literals.h30 panda_file::LiteralTag tag_; member
36 switch (tag_) { in IsBoolValue()
47 switch (tag_) { in IsByteValue()
61 switch (tag_) { in IsShortValue()
72 switch (tag_) { in IsIntegerValue()
84 switch (tag_) { in IsLongValue()
95 switch (tag_) { in IsFloatValue()
106 switch (tag_) { in IsDoubleValue()
117 switch (tag_) { in IsStringValue()
Dassembly-parser.cpp195 (curr_array_->literals_[0].tag_ == panda_file::LiteralTag::TAGVALUE)) { in IsConstArray()
339 curr_array_elem_->tag_ = in ParseArrayElement()
393 … curr_array_elem_->tag_ = panda::pandasm::LiteralArray::GetArrayTagFromComponentType(type.GetId()); in ParseArrayElementType()
398 curr_array_elem_->tag_ = panda_file::LiteralTag::ARRAY_STRING; in ParseArrayElementType()
1945 curr_array_elem_->value_ = static_cast<uint8_t>(curr_array_elem_->tag_); in ParseArrayFullSign()
1946 curr_array_elem_->tag_ = panda_file::LiteralTag::TAGVALUE; in ParseArrayFullSign()
1955 curr_array_elem_->tag_ = panda_file::LiteralTag::INTEGER; in ParseArrayFullSign()
Dassembly-emitter.cpp583 switch (literal.tag_) { in MakeLiteralItems()
/arkcompiler/ets_frontend/es2panda/ir/expressions/
DtaggedTemplateExpression.cpp36 cb(tag_); in Iterate()
43 {"tag", tag_}, in Dump()
54 if (tag_->IsMemberExpression()) { in Compile()
59 tag_->AsMemberExpression()->Compile(pg, thisReg); in Compile()
61 tag_->Compile(pg); in Compile()
98 tag_ = std::get<ir::AstNode *>(cb(tag_))->AsExpression(); in UpdateSelf()
DtaggedTemplateExpression.h39 …: Expression(AstNodeType::TAGGED_TEMPLATE_EXPRESSION), tag_(tag), quasi_(quasi), typeParams_(typeP… in TaggedTemplateExpression()
45 return tag_; in Tag()
65 Expression *tag_;
/arkcompiler/ets_runtime/ecmascript/compiler/
Dnumber_gate_info.h35 UseInfo(uint8_t tag) : tag_(tag) {} in UseInfo()
44 uint8_t oldTag = tag_; in AddUse()
45 tag_ |= UseInfo.tag_; in AddUse()
46 return oldTag != tag_; in AddUse()
50 return ((tag_ & BOOL) == BOOL); in UsedAsBool()
54 return ((tag_ & FLOAT64) == FLOAT64); in UsedAsFloat64()
58 return ((tag_ & NATIVE) != 0); in UsedAsNative()
62 return ((tag_ & TAGGED) != 0); in UsedAsTagged()
85 uint8_t tag_ {0};
/arkcompiler/runtime_core/assembler/tests/
Dassembler_parser_test.cpp1843 …EXPECT_EQ(item.Value().literalarray_table.at("array").literals_[0].tag_, panda::panda_file::Litera…
1846 …EXPECT_EQ(item.Value().literalarray_table.at("array").literals_[1].tag_, panda::panda_file::Litera…
1851 …EXPECT_EQ(item.Value().literalarray_table.at("array").literals_[2].tag_, panda::panda_file::Litera…
1854 …EXPECT_EQ(item.Value().literalarray_table.at("array").literals_[3].tag_, panda::panda_file::Litera…
1860 …EXPECT_EQ(item.Value().literalarray_table.at("array").literals_[4].tag_, panda::panda_file::Litera…
1863 …EXPECT_EQ(item.Value().literalarray_table.at("array").literals_[5].tag_, panda::panda_file::Litera…
1869 …EXPECT_EQ(item.Value().literalarray_table.at("array").literals_[6].tag_, panda::panda_file::Litera…
1872 …EXPECT_EQ(item.Value().literalarray_table.at("array").literals_[7].tag_, panda::panda_file::Litera…
1878 …EXPECT_EQ(item.Value().literalarray_table.at("array").literals_[8].tag_, panda::panda_file::Litera…
1901 …EXPECT_EQ(item.Value().literalarray_table.at("array").literals_[0].tag_, panda::panda_file::Litera…
[all …]
Dparser_test.cpp3568 …ASSERT_EQ(item.Value().literalarray_table.at("array").literals_[0].tag_, panda::panda_file::Litera… in TEST()
3570 …ASSERT_EQ(item.Value().literalarray_table.at("array").literals_[1].tag_, panda::panda_file::Litera… in TEST()
3572 …ASSERT_EQ(item.Value().literalarray_table.at("array").literals_[2].tag_, panda::panda_file::Litera… in TEST()
3575 …ASSERT_EQ(item.Value().literalarray_table.at("array").literals_[3].tag_, panda::panda_file::Litera… in TEST()
3577 …ASSERT_EQ(item.Value().literalarray_table.at("array").literals_[4].tag_, panda::panda_file::Litera… in TEST()
3580 …ASSERT_EQ(item.Value().literalarray_table.at("array").literals_[5].tag_, panda::panda_file::Litera… in TEST()
3582 …ASSERT_EQ(item.Value().literalarray_table.at("array").literals_[6].tag_, panda::panda_file::Litera… in TEST()
3585 …ASSERT_EQ(item.Value().literalarray_table.at("array").literals_[7].tag_, panda::panda_file::Litera… in TEST()
3587 …ASSERT_EQ(item.Value().literalarray_table.at("array").literals_[8].tag_, panda::panda_file::Litera… in TEST()
3603 …ASSERT_EQ(item.Value().literalarray_table.at("array").literals_[0].tag_, panda::panda_file::Litera… in TEST()
[all …]
Dassembler_emitter_test.cpp984 …program.Value().literalarray_table.at("array").literals_[0].tag_ = panda_file::LiteralTag::LITERAL…
1046 item.Value().literalarray_table.at("array").literals_[0].tag_ = panda_file::LiteralTag::BOOL;
1049 …item.Value().literalarray_table.at("array").literals_[1].tag_ = panda_file::LiteralTag::METHODAFFI…
1052 item.Value().literalarray_table.at("array").literals_[2].tag_ = panda_file::LiteralTag::FLOAT;
1055 item.Value().literalarray_table.at("array").literals_[3].tag_ = panda_file::LiteralTag::DOUBLE;
1058 item.Value().literalarray_table.at("array").literals_[4].tag_ = panda_file::LiteralTag::STRING;
1061 …item.Value().literalarray_table.at("array").literals_[5].tag_ = panda_file::LiteralTag::ASYNCGENER…
1064 …item.Value().literalarray_table.at("array").literals_[6].tag_ = panda_file::LiteralTag::LITERALARR…
/arkcompiler/ets_frontend/ts2panda/ts2abc/
Dts2abc.cpp244 tagLiteral.tag_ = panda::panda_file::LiteralTag::TAGVALUE; in ParseLiteral()
250 valueLiteral.tag_ = panda::panda_file::LiteralTag::BOOL; in ParseLiteral()
255 valueLiteral.tag_ = panda::panda_file::LiteralTag::INTEGER; in ParseLiteral()
260 valueLiteral.tag_ = panda::panda_file::LiteralTag::DOUBLE; in ParseLiteral()
265 valueLiteral.tag_ = panda::panda_file::LiteralTag::STRING; in ParseLiteral()
270 valueLiteral.tag_ = panda::panda_file::LiteralTag::METHOD; in ParseLiteral()
275 valueLiteral.tag_ = panda::panda_file::LiteralTag::GENERATORMETHOD; in ParseLiteral()
280 valueLiteral.tag_ = panda::panda_file::LiteralTag::ACCESSOR; in ParseLiteral()
285 valueLiteral.tag_ = panda::panda_file::LiteralTag::METHODAFFILIATE; in ParseLiteral()
293 valueLiteral.tag_ = panda::panda_file::LiteralTag::LITERALARRAY; in ParseLiteral()
[all …]
/arkcompiler/runtime_core/bytecode_optimizer/tests/
Dbcopt_type_adaption_test.cpp56 if (array[i].tag_ == panda_file::LiteralTag::LITERALARRAY) { in ExtractTypeinfo()
59 EXPECT_EQ(array[i].tag_, panda_file::LiteralTag::BUILTINTYPEINDEX); in ExtractTypeinfo()
80 order_tag.tag_ = panda::panda_file::LiteralTag::TAGVALUE; in AddTypeinfo()
85 order_val.tag_ = panda::panda_file::LiteralTag::INTEGER; in AddTypeinfo()
91 type_tag.tag_ = panda::panda_file::LiteralTag::TAGVALUE; in AddTypeinfo()
95 type_val.tag_ = panda::panda_file::LiteralTag::BUILTINTYPEINDEX; in AddTypeinfo()
100 type_val.tag_ = panda::panda_file::LiteralTag::LITERALARRAY; in AddTypeinfo()
131 tag.tag_ = panda::panda_file::LiteralTag::TAGVALUE; in AddAnTypeLiteralArray()
135 val.tag_ = panda::panda_file::LiteralTag::BUILTINTYPEINDEX; in AddAnTypeLiteralArray()
Dcommon.h741 … EXPECT_TRUE(prog->literalarray_table["0"].literals_[0].tag_ == panda_file::LiteralTag::TAGVALUE); in CheckConstArrayFilling()
742 … EXPECT_TRUE(prog->literalarray_table["0"].literals_[1].tag_ == panda_file::LiteralTag::INTEGER); in CheckConstArrayFilling()
743 … EXPECT_TRUE(prog->literalarray_table["0"].literals_[2].tag_ == panda_file::LiteralTag::ARRAY_I32); in CheckConstArrayFilling()
749 EXPECT_TRUE(elem.second.literals_[0].tag_ == panda_file::LiteralTag::TAGVALUE); in CheckConstArrayFilling()
750 EXPECT_TRUE(elem.second.literals_[1].tag_ == panda_file::LiteralTag::INTEGER); in CheckConstArrayFilling()
752 … EXPECT_TRUE(prog->literalarray_table["7"].literals_[2].tag_ == panda_file::LiteralTag::ARRAY_U1); in CheckConstArrayFilling()
753 … EXPECT_TRUE(prog->literalarray_table["6"].literals_[2].tag_ == panda_file::LiteralTag::ARRAY_I8); in CheckConstArrayFilling()
754 … EXPECT_TRUE(prog->literalarray_table["5"].literals_[2].tag_ == panda_file::LiteralTag::ARRAY_I16); in CheckConstArrayFilling()
755 … EXPECT_TRUE(prog->literalarray_table["4"].literals_[2].tag_ == panda_file::LiteralTag::ARRAY_I32); in CheckConstArrayFilling()
756 … EXPECT_TRUE(prog->literalarray_table["3"].literals_[2].tag_ == panda_file::LiteralTag::ARRAY_I64); in CheckConstArrayFilling()
[all …]
/arkcompiler/runtime_core/libpandabase/mem/
Dalloc_tracker.h151 return tag_; in GetTag()
175 const uint32_t tag_ = ALLOC_TAG;
188 return tag_; in GetTag()
197 const uint32_t tag_ = FREE_TAG;
/arkcompiler/ets_frontend/merge_abc/src/
DassemblyLiteralsProto.cpp122 protoLiteral.set_tag(static_cast<uint32_t>(literal.tag_)); in Serialize()
129 literal.tag_ = static_cast<panda::panda_file::LiteralTag>(protoLiteral.tag()); in Deserialize()
/arkcompiler/runtime_core/bytecode_optimizer/
Dcodegen.cpp133 order_tag.tag_ = LiteralTag::TAGVALUE; in AddOrderAndTypeInfoIndex()
138 order_lit.tag_ = LiteralTag::INTEGER; in AddOrderAndTypeInfoIndex()
143 type_tag.tag_ = LiteralTag::TAGVALUE; in AddOrderAndTypeInfoIndex()
147 type_lit.tag_ = LiteralTag::LITERALARRAY; in AddOrderAndTypeInfoIndex()
151 type_lit.tag_ = LiteralTag::BUILTINTYPEINDEX; in AddOrderAndTypeInfoIndex()
176 if (element.tag_ == LiteralTag::LITERALARRAY) { in UpdateTypeInfoIndexAnnotation()
180 ASSERT(element.tag_ == LiteralTag::BUILTINTYPEINDEX); in UpdateTypeInfoIndexAnnotation()
Doptimize_bytecode.cpp140 if (array[i].tag_ == panda_file::LiteralTag::LITERALARRAY) { in ExtractTypeInfo()
143 ASSERT(array[i].tag_ == panda_file::LiteralTag::BUILTINTYPEINDEX); in ExtractTypeInfo()
/arkcompiler/ets_frontend/es2panda/util/
Ddumper.cpp30 … unsigned(static_cast<std::underlying_type<panda::panda_file::LiteralTag>::type>(literal.tag_)) << in DumpLiterals()
DpatchFix.cpp201 … "tag: " << static_cast<std::underlying_type<panda::es2panda::ir::LiteralTag>::type>(literal.tag_); in ConvertLiteralToString()
235 switch (literal.tag_) { in GetLiteralMethods()
/arkcompiler/ets_runtime/ecmascript/ts_types/tests/
Dts_type_test_helper.h84 literalTag.tag_ = panda_file::LiteralTag::TAGVALUE; in AddTagValue()
89 literalValue.tag_ = tag; in AddTagValue()
/arkcompiler/runtime_core/libpandabase/os/
Ddebug_info.cpp29 DwarfGuard(Dwarf_Debug dbg, void *mem, Dwarf_Unsigned tag) : dbg_(dbg), mem_(mem), tag_(tag) {} in DwarfGuard()
39 dwarf_dealloc(dbg_, mem_, tag_); in Reset()
55 Dwarf_Unsigned tag_; member in panda::DwarfGuard
/arkcompiler/runtime_core/disassembler/
Ddisassembler.cpp206 lit.tag_ = tag; in FillLiteralArrayData()
215 lit.tag_ = tag; in FillLiteralArrayData()
226 lit.tag_ = tag; in FillLiteralData()
1056 const auto &tag = lit_array.literals_[0].tag_; in SerializeLiteralArray()
1131 switch (lit_array.literals_[0].tag_) { in SerializeValues()
1213 const auto &tag = lit_array.literals_[i].tag_; in SerializeLiterals()
1216 switch (lit_array.literals_[i].tag_) { in SerializeLiterals()