| /arkcompiler/ets_frontend/merge_abc/src/ |
| D | assemblyLiteralsProto.cpp | 104 for (const auto &literal : array.literals_) { in Serialize() local 106 Literal::Serialize(literal, *protoLiteral); in Serialize() 114 panda::pandasm::LiteralArray::Literal literal; in Deserialize() local 115 Literal::Deserialize(protoLiteral, literal); in Deserialize() 116 array.literals_.emplace_back(literal); in Deserialize() 120 void Literal::Serialize(const panda::pandasm::LiteralArray::Literal &literal, protoPanda::Literal &… in Serialize() argument 122 protoLiteral.set_tag(static_cast<uint32_t>(literal.tag_)); in Serialize() 124 VariantValue::Serialize(literal.value_, *value); in Serialize() 127 void Literal::Deserialize(const protoPanda::Literal &protoLiteral, panda::pandasm::LiteralArray::Li… in Deserialize() argument 129 literal.tag_ = static_cast<panda::panda_file::LiteralTag>(protoLiteral.tag()); in Deserialize() [all …]
|
| D | assemblyLiteralsProto.h | 36 class Literal { 38 …static void Serialize(const panda::pandasm::LiteralArray::Literal &literal, protoPanda::Literal &p… 39 …static void Deserialize(const protoPanda::Literal &protoLiteral, panda::pandasm::LiteralArray::Lit…
|
| /arkcompiler/ets_runtime/ecmascript/ts_types/ |
| D | ts_type_parser.cpp | 59 …JSHandle<TaggedArray> literal = LiteralDataExtractor::GetTypeLiteral(thread_, jsPandaFile, offset); in ParseType() local 60 if (literal->GetLength() == 0) { // typeLiteral maybe hole in d.abc in ParseType() 63 TSTypeKind kind = static_cast<TSTypeKind>(literal->Get(TYPE_KIND_INDEX_IN_LITERAL).GetInt()); in ParseType() 65 return ResolveImportType(jsPandaFile, recordName, literal, typeId); in ParseType() 86 … JSHandle<JSTaggedValue> type = ParseNonImportType(jsPandaFile, recordName, literal, kind, typeId); in ParseType() 97 JSHandle<TaggedArray> literal, uint32_t typeId) in ResolveImportType() argument 99 …JSHandle<EcmaString> importVarNamePath(thread_, literal->Get(IMPORT_PATH_OFFSET_IN_LITERAL)); // #… in ResolveImportType() 113 "whether the module request recorded in the import-type literal is correct."); in ResolveImportType() 135 JSHandle<TaggedArray> literal, TSTypeKind kind, uint32_t typeId) in ParseNonImportType() argument 139 … JSHandle<TSClassType> classType = ParseClassType(jsPandaFile, recordName, literal, typeId); in ParseNonImportType() [all …]
|
| D | ts_type_parser.h | 80 JSHandle<TaggedArray> literal, uint32_t typeId); 83 … JSHandle<TaggedArray> literal, TSTypeKind kind, uint32_t typeId); 86 const JSHandle<TaggedArray> &literal, uint32_t typeId); 89 const JSHandle<TaggedArray> &literal); 92 const JSHandle<TaggedArray> &literal); 95 const JSHandle<TaggedArray> &literal); 98 const JSHandle<TaggedArray> &literal); 101 const JSHandle<TaggedArray> &literal); 104 const JSHandle<TaggedArray> &literal); 109 const JSHandle<TaggedArray> &literal, [all …]
|
| /arkcompiler/ets_frontend/ts2panda/src/base/ |
| D | typeSystem.ts | 23 Literal, 26 } from "./literal"; 164 protected transferType2Literal(type: number, literals: Array<Literal>) { 167 literals.push(new Literal(LiteralTag.LITERALARRAY, litId)); 169 literals.push(new Literal(LiteralTag.BUILTINTYPEINDEX, type)); 254 let summaryLiterals: Array<Literal> = new Array<Literal>(); 259 summaryLiterals.push(new Literal(LiteralTag.INTEGER, definedTypeNum)); 262 summaryLiterals.push(new Literal(LiteralTag.LITERALARRAY, 265 summaryLiterals.push(new Literal(LiteralTag.INTEGER, this.anonymousRedirect.length)); 267 summaryLiterals.push(new Literal(LiteralTag.STRING, element)); [all …]
|
| D | literal.ts | 33 export class Literal { class 53 private lb: Literal[] = []; 57 addLiterals(...literals: Array<Literal>) {
|
| /arkcompiler/ets_frontend/es2panda/compiler/core/emitter/ |
| D | moduleRecordEmitter.cpp | 23 panda::pandasm::LiteralArray::Literal moduleSize = { in GenModuleRequests() 27 panda::pandasm::LiteralArray::Literal moduleRequest = { in GenModuleRequests() 37 panda::pandasm::LiteralArray::Literal entrySize = { in GenRegularImportEntries() 43 panda::pandasm::LiteralArray::Literal localName = { in GenRegularImportEntries() 46 panda::pandasm::LiteralArray::Literal importName = { in GenRegularImportEntries() 49 panda::pandasm::LiteralArray::Literal moduleRequest = { in GenRegularImportEntries() 60 panda::pandasm::LiteralArray::Literal entrySize = { in GenNamespaceImportEntries() 65 panda::pandasm::LiteralArray::Literal localName = { in GenNamespaceImportEntries() 68 panda::pandasm::LiteralArray::Literal moduleRequest = { in GenNamespaceImportEntries() 79 panda::pandasm::LiteralArray::Literal entrySize = { in GenLocalExportEntries() [all …]
|
| /arkcompiler/ets_frontend/es2panda/ir/expressions/ |
| D | literal.cpp | 16 #include "literal.h" 26 bool Literal::GetBoolean() const in GetBoolean() 32 uint32_t Literal::GetInt() const in GetInt() 38 double Literal::GetDouble() const in GetDouble() 44 const util::StringView &Literal::GetString() const in GetString() 50 const util::StringView &Literal::GetMethod() const in GetMethod() 56 uint16_t Literal::GetMethodAffiliate() const in GetMethodAffiliate() 62 std::optional<util::StringView> Literal::GetName() const in GetName()
|
| /arkcompiler/ets_frontend/es2panda/compiler/base/ |
| D | literals.h | 19 #include <ir/expressions/literal.h> 25 class Literal; variable 44 void Add(const ir::Literal *lit) in Add() 64 void ResetLiteral(size_t index, const ir::Literal *literal) in ResetLiteral() argument 66 literals_[index] = literal; in ResetLiteral() 69 const ArenaVector<const ir::Literal *> &Literals() const in Literals() 86 ArenaVector<const ir::Literal *> literals_;
|
| /arkcompiler/ets_frontend/ts2panda/src/expression/ |
| D | objectLiteralExpression.ts | 26 import { LiteralTag, Literal, LiteralBuffer } from "../base/literal"; 70 let nameLiteral = new Literal(LiteralTag.STRING, String(prop.getName())); 73 let valLiteral: Literal = createConstantLiteral(prop); 82 let valLiteral: Literal; 86 …valLiteral = new Literal(LiteralTag.GENERATOR, compilerDriver.getFuncInternalName(valueNode, compi… 88 …valLiteral = new Literal(LiteralTag.METHOD, compilerDriver.getFuncInternalName(valueNode, compiler… 90 … let affiliateLiteral = new Literal(LiteralTag.METHODAFFILIATE, getParamLengthOfFunc(valueNode)); 96 valLiteral = new Literal(LiteralTag.NULLVALUE, null); 102 let valLiteral = new Literal(LiteralTag.ACCESSOR, null); 121 function createConstantLiteral(prop: Property): Literal { [all …]
|
| D | arrayLiteralExpression.ts | 19 import { LiteralTag, Literal, LiteralBuffer } from "../base/literal"; 130 function parseConstantExpr(element: ts.Expression): Literal { 131 let elem: Literal; 134 elem = new Literal(LiteralTag.BOOLEAN, false); 137 elem = new Literal(LiteralTag.BOOLEAN, true); 140 elem = new Literal(LiteralTag.STRING, jshelpers.getTextOfIdentifierOrLiteral(element)); 145 elem = new Literal(LiteralTag.INTEGER, value); 147 elem = new Literal(LiteralTag.DOUBLE, value); 152 elem = new Literal(LiteralTag.NULLVALUE, null);
|
| /arkcompiler/ets_frontend/es2panda/ir/ |
| D | expression.h | 23 class Literal; variable 38 const Literal *AsLiteral() const in AsLiteral() 41 return reinterpret_cast<const Literal *>(this); in AsLiteral() 44 Literal *AsLiteral() in AsLiteral() 47 return reinterpret_cast<Literal *>(this); in AsLiteral()
|
| /arkcompiler/ets_frontend/es2panda/ir/expressions/literals/ |
| D | taggedLiteral.h | 19 #include <ir/expressions/literal.h> 32 class TaggedLiteral : public Literal { 34 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()
|
| D | numberLiteral.h | 19 #include <ir/expressions/literal.h> 33 class NumberLiteral : public Literal { 35 explicit NumberLiteral(double num) : Literal(AstNodeType::NUMBER_LITERAL), number_(num) {} in NumberLiteral() 37 : Literal(AstNodeType::NUMBER_LITERAL), number_(num), str_(str) in NumberLiteral()
|
| D | nullLiteral.h | 19 #include <ir/expressions/literal.h> 32 class NullLiteral : public Literal { 34 explicit NullLiteral() : Literal(AstNodeType::NULL_LITERAL) {} in NullLiteral()
|
| D | booleanLiteral.h | 19 #include <ir/expressions/literal.h> 32 class BooleanLiteral : public Literal { 34 explicit BooleanLiteral(bool value) : Literal(AstNodeType::BOOLEAN_LITERAL), boolean_(value) {} in BooleanLiteral()
|
| D | bigIntLiteral.h | 19 #include <ir/expressions/literal.h> 33 class BigIntLiteral : public Literal { 35 … explicit BigIntLiteral(util::StringView src) : Literal(AstNodeType::BIGINT_LITERAL), src_(src) {} in BigIntLiteral()
|
| D | stringLiteral.h | 19 #include <ir/expressions/literal.h> 33 class StringLiteral : public Literal { 35 … explicit StringLiteral(util::StringView str) : Literal(AstNodeType::STRING_LITERAL), str_(str) {} in StringLiteral()
|
| D | regExpLiteral.h | 19 #include <ir/expressions/literal.h> 33 class RegExpLiteral : public Literal { 36 : Literal(AstNodeType::REGEXP_LITERAL), pattern_(pattern), flags_(flags) in RegExpLiteral()
|
| /arkcompiler/ets_runtime/ecmascript/ts_types/tests/ |
| D | ts_type_test_helper.h | 35 std::vector<pandasm::LiteralArray::Literal> literal {}; in AddLiteral() 37 AddTagValue(literal, tags[i], values[i]); in AddLiteral() 39 pandasm::LiteralArray literalArray(literal); in AddLiteral() 79 static void AddTagValue(std::vector<LiteralArray::Literal> &literalArray, in AddTagValue() 83 pandasm::LiteralArray::Literal literalTag; in AddTagValue() 88 pandasm::LiteralArray::Literal literalValue; in AddTagValue()
|
| /arkcompiler/ets_frontend/ts2panda/tests/types/ |
| D | typeUtils.ts | 28 Literal 29 } from "../../src/base/literal"; 101 let literal = new Literal(rol[0], rol[1]); 102 literalBuffer.addLiterals(literal); 110 function printLiteralLog(expected: Literal, generated: Literal) {
|
| /arkcompiler/ets_runtime/ecmascript/dfx/hprof/ |
| D | heap_snapshot_json_serializer.cpp | 58 // NOLINTNEXTLINE(modernize-raw-string-literal) in SerializeSnapshotHeader() 61 // NOLINTNEXTLINE(modernize-raw-string-literal) in SerializeSnapshotHeader() 63 // NOLINTNEXTLINE(modernize-raw-string-literal) in SerializeSnapshotHeader() 65 // NOLINTNEXTLINE(modernize-raw-string-literal) in SerializeSnapshotHeader() 67 // NOLINTNEXTLINE(modernize-raw-string-literal) in SerializeSnapshotHeader() 69 // NOLINTNEXTLINE(modernize-raw-string-literal) in SerializeSnapshotHeader() 71 // NOLINTNEXTLINE(modernize-raw-string-literal) in SerializeSnapshotHeader() 73 // NOLINTNEXTLINE(modernize-raw-string-literal) in SerializeSnapshotHeader() 75 // NOLINTNEXTLINE(modernize-raw-string-literal) in SerializeSnapshotHeader() 77 // NOLINTNEXTLINE(modernize-raw-string-literal) in SerializeSnapshotHeader() [all …]
|
| /arkcompiler/ets_frontend/es2panda/util/ |
| D | dumper.cpp | 21 std::cout << "======> literal array buffer <======" << std::endl; in DumpLiterals() 26 for (auto literal : it.second.literals_) { in DumpLiterals() local 30 … unsigned(static_cast<std::underlying_type<panda::panda_file::LiteralTag>::type>(literal.tag_)) << in DumpLiterals() 38 }, literal.value_); in DumpLiterals()
|
| /arkcompiler/ets_frontend/es2panda/ir/ts/ |
| D | tsLiteralType.h | 34 …explicit TSLiteralType(Expression *literal) : TypeNode(AstNodeType::TS_LITERAL_TYPE), literal_(lit… in TSLiteralType() argument 36 const Expression *Literal() const in Literal() function
|
| /arkcompiler/ets_frontend/ts2panda/ts2abc/ |
| D | ts2abc.cpp | 237 static void ParseLiteral(const Json::Value &literal, std::vector<panda::pandasm::LiteralArray::Lite… in ParseLiteral() argument 239 panda::pandasm::LiteralArray::Literal tagLiteral; in ParseLiteral() 240 panda::pandasm::LiteralArray::Literal valueLiteral; in ParseLiteral() 242 uint8_t tagValue = static_cast<uint8_t>(literal["t"].asUInt()); in ParseLiteral() 251 valueLiteral.value_ = literal["v"].asBool(); in ParseLiteral() 256 valueLiteral.value_ = static_cast<uint32_t>(literal["v"].asInt()); in ParseLiteral() 261 valueLiteral.value_ = literal["v"].asDouble(); in ParseLiteral() 266 valueLiteral.value_ = ParseString(literal["v"].asString()); in ParseLiteral() 271 valueLiteral.value_ = ParseString(literal["v"].asString()); in ParseLiteral() 276 valueLiteral.value_ = ParseString(literal["v"].asString()); in ParseLiteral() [all …]
|