/arkcompiler/ets_frontend/merge_abc/src/ |
D | annotationProto.cpp | 19 void AnnotationData::Serialize(const panda::pandasm::AnnotationData &anno, protoPanda::AnnotationDa… in Serialize() 28 void AnnotationData::Deserialize(const protoPanda::AnnotationData &protoAnno, panda::pandasm::Annot… in Deserialize() 32 …panda::pandasm::AnnotationElement &element = AnnotationElement::Deserialize(protoElement, allocato… in Deserialize() 37 void AnnotationElement::Serialize(const panda::pandasm::AnnotationElement &element, in Serialize() 52 panda::pandasm::AnnotationElement &AnnotationElement::Deserialize(const protoPanda::AnnotationEleme… in Deserialize() 56 … panda::pandasm::ArrayValue &array = ArrayValue::Deserialize(protoElement.array(), allocator); in Deserialize() 57 auto *element = allocator->New<panda::pandasm::AnnotationElement>(protoElement.name(), in Deserialize() 58 std::make_unique<panda::pandasm::ArrayValue>(array)); in Deserialize() 61 panda::pandasm::ScalarValue scalar = ScalarValue::Deserialize(protoElement.scalar(), allocator); in Deserialize() 62 auto *element = allocator->New<panda::pandasm::AnnotationElement>(protoElement.name(), in Deserialize() [all …]
|
D | annotationProto.h | 27 …static void Serialize(const panda::pandasm::AnnotationData &anno, protoPanda::AnnotationData &prot… 28 …static void Deserialize(const protoPanda::AnnotationData &protoAnno, panda::pandasm::AnnotationDat… 34 static void Serialize(const panda::pandasm::AnnotationElement &element, 36 …static panda::pandasm::AnnotationElement &Deserialize(const protoPanda::AnnotationElement &protoEl… 42 …static void Serialize(const panda::pandasm::ScalarValue &scalar, protoPanda::ScalarValue &protoSca… 43 static panda::pandasm::ScalarValue Deserialize(const protoPanda::ScalarValue &protoScalar, 45 static panda::pandasm::ScalarValue CreateScalarValue(const panda::pandasm::Value::Type &type, 46 …std::variant<uint64_t, float, double, std::string, panda::pandasm::Type, panda::pandasm::Annotatio… 52 …static void Serialize(const panda::pandasm::ArrayValue &array, protoPanda::ArrayValue &protoArray); 53 static panda::pandasm::ArrayValue &Deserialize(const protoPanda::ArrayValue &protoArray,
|
D | metaProto.h | 28 …static void Serialize(const panda::pandasm::RecordMetadata &meta, protoPanda::RecordMetadata &prot… 30 std::unique_ptr<panda::pandasm::RecordMetadata> &meta, 36 static void Serialize(const panda::pandasm::FunctionMetadata &meta, 39 std::unique_ptr<panda::pandasm::FunctionMetadata> &meta, 45 …static void Serialize(const panda::pandasm::FieldMetadata &meta, protoPanda::FieldMetadata &protoM… 47 std::unique_ptr<panda::pandasm::FieldMetadata> &meta, 53 …static void Serialize(const panda::pandasm::ParamMetadata &meta, protoPanda::ParamMetadata &protoM… 55 std::unique_ptr<panda::pandasm::ParamMetadata> &meta, 61 …static void Serialize(const panda::pandasm::ItemMetadata &meta, protoPanda::ItemMetadata &protoMet… 62 …static void Deserialize(const protoPanda::ItemMetadata &protoMeta, panda::pandasm::ItemMetadata &m… [all …]
|
D | metaProto.cpp | 18 void RecordMetadata::Serialize(const panda::pandasm::RecordMetadata &meta, protoPanda::RecordMetada… in Serialize() 21 …ItemMetadata::Serialize(static_cast<const panda::pandasm::ItemMetadata &>(meta), *protoItemmetadat… in Serialize() 25 std::unique_ptr<panda::pandasm::RecordMetadata> &meta, in Deserialize() 38 void FunctionMetadata::Serialize(const panda::pandasm::FunctionMetadata &meta, in Serialize() 42 …ItemMetadata::Serialize(static_cast<const panda::pandasm::ItemMetadata &>(meta), *protoItemmetadat… in Serialize() 46 std::unique_ptr<panda::pandasm::FunctionMetadata> &meta, in Deserialize() 59 void FieldMetadata::Serialize(const panda::pandasm::FieldMetadata &meta, protoPanda::FieldMetadata … in Serialize() 73 std::unique_ptr<panda::pandasm::FieldMetadata> &meta, in Deserialize() 92 void ParamMetadata::Serialize(const panda::pandasm::ParamMetadata &meta, protoPanda::ParamMetadata … in Serialize() 95 …AnnotationMetadata::Serialize(static_cast<const panda::pandasm::AnnotationMetadata &>(meta), *prot… in Serialize() [all …]
|
/arkcompiler/runtime_core/assembler/tests/ |
D | annotation_test.cpp | 23 namespace panda::pandasm { namespace 40 ScalarValue insn_order(ScalarValue::Create<panda::pandasm::Value::Type::I32>(1)); 41 std::vector<panda::pandasm::ScalarValue> elements; 44 ArrayValue array_value(panda::pandasm::Value::Type::I32, elements); 57 ScalarValue insn_order1(ScalarValue::Create<panda::pandasm::Value::Type::U1>(1U)); 59 ArrayValue array_value_U1(panda::pandasm::Value::Type::U1, elements); 74 char type_u1 = Value::GetTypeAsChar(panda::pandasm::Value::Type::U1); 78 type_u1 = Value::GetTypeAsChar(panda::pandasm::Value::Type::I8); 82 type_u1 = Value::GetTypeAsChar(panda::pandasm::Value::Type::U8); 86 type_u1 = Value::GetTypeAsChar(panda::pandasm::Value::Type::I16); [all …]
|
D | ecmascript_meta_test.cpp | 23 namespace panda::pandasm { namespace 35 pandasm::extensions::ecmascript::RecordMetadata rmd; 36 pandasm::Metadata::Error err("Attribute 'ecmascript.extends' must have a value", 37 pandasm::Metadata::Error::Type::MISSING_VALUE); 39 std::optional<pandasm::Metadata::Error> result1 = rmd.SetAttribute("ecmascript.extends"); 44 std::optional<pandasm::Metadata::Error> result2 = rmd.SetAttribute("ecmascript.annotation"); 47 …std::optional<pandasm::Metadata::Error> result3 = rmd.SetAttributeValue("ecmascript.extends", "val… 50 …std::optional<pandasm::Metadata::Error> result4 = rmd.SetAttributeValue("ecmascript.annotation", "… 53 EXPECT_EQ(result4->GetType(), pandasm::Metadata::Error::Type::UNEXPECTED_VALUE); 55 std::optional<pandasm::Metadata::Error> result5 = rmd.SetAttributeValue("attribute", "bool"); [all …]
|
/arkcompiler/ets_frontend/ets2panda/compiler/core/ |
D | JSemitter.cpp | 25 pandasm::Function *JSFunctionEmitter::GenFunctionSignature() in GenFunctionSignature() 28 …auto *func = new pandasm::Function(Cg()->InternalName().Mutf8(), panda_file::SourceLang::ECMASCRIP… in GenFunctionSignature() 35 func->params.emplace_back(pandasm::Type("any", 0), panda_file::SourceLang::ECMASCRIPT); in GenFunctionSignature() 39 func->returnType = pandasm::Type("any", 0); in GenFunctionSignature() 47 void JSFunctionEmitter::GenVariableSignature(pandasm::debuginfo::LocalVariable &variableDebug, in GenVariableSignature() 54 void JSFunctionEmitter::GenFunctionAnnotations(pandasm::Function *func) in GenFunctionAnnotations() 56 pandasm::AnnotationData funcAnnotationData("_ESAnnotation"); in GenFunctionAnnotations() 57 pandasm::AnnotationElement icSizeAnnotationElement( in GenFunctionAnnotations() 58 "icSize", std::make_unique<pandasm::ScalarValue>( in GenFunctionAnnotations() 59 pandasm::ScalarValue::Create<pandasm::Value::Type::U32>(Pg()->IcSize()))); in GenFunctionAnnotations() [all …]
|
D | ETSemitter.cpp | 91 static pandasm::Function GenScriptFunction(CompilerContext const *context, const ir::ScriptFunction… in GenScriptFunction() 96 auto func = pandasm::Function(funcScope->InternalName().Mutf8(), EXTENSION); in GenScriptFunction() 103 func.params.emplace_back(pandasm::Type(ss.str(), var->TsType()->Rank()), EXTENSION); in GenScriptFunction() 109 func.returnType = pandasm::Type(Signatures::PRIMITIVE_VOID, 0); in GenScriptFunction() 115 func.returnType = pandasm::Type(ss.str(), returnType->Rank()); in GenScriptFunction() 126 pandasm::Function *ETSFunctionEmitter::GenFunctionSignature() in GenFunctionSignature() 129 auto *funcElement = new pandasm::Function(func.name, func.language); in GenFunctionSignature() 137 void ETSFunctionEmitter::GenVariableSignature(pandasm::debuginfo::LocalVariable &variableDebug, in GenVariableSignature() 144 void ETSFunctionEmitter::GenFunctionAnnotations([[maybe_unused]] pandasm::Function *func) {} in GenFunctionAnnotations() 147 static pandasm::Function GenExternalFunction(T signature, bool isCtor) in GenExternalFunction() [all …]
|
D | emitter.h | 29 namespace panda::pandasm { 66 virtual pandasm::Function *GenFunctionSignature() = 0; 67 virtual void GenFunctionAnnotations(pandasm::Function *func) = 0; 68 virtual void GenVariableSignature(pandasm::debuginfo::LocalVariable &variableDebug, 71 void GenInstructionDebugInfo(const IRNode *ins, panda::pandasm::Ins *pandaIns); 72 void GenFunctionInstructions(pandasm::Function *func); 73 void GenScopeVariableInfo(pandasm::Function *func, const varbinder::Scope *scope) const; 74 void GenSourceFileDebugInfo(pandasm::Function *func); 75 void GenFunctionCatchTables(panda::pandasm::Function *func); 76 void GenVariablesDebugInfo(pandasm::Function *func); [all …]
|
D | ETSemitter.h | 35 namespace panda::pandasm { 57 pandasm::Function *GenFunctionSignature() override; 59 void GenFunctionAnnotations(pandasm::Function *func) override; 60 void GenVariableSignature(pandasm::debuginfo::LocalVariable &variableDebug, 80 void EmitDefaultFieldValue(pandasm::Field &classField, const ir::Expression *init); 81 void GenClassField(const ir::ClassProperty *field, pandasm::Record &classRecord, bool external); 83 uint32_t accesFlags, pandasm::Record &record, bool external); 85 …void GenClassInheritedFields(const checker::ETSObjectType *baseType, pandasm::Record &classRecord); 86 pandasm::AnnotationData GenAnnotationSignature(const ir::ClassDefinition *classDef); 87 pandasm::AnnotationData GenAnnotationEnclosingClass(std::string_view className); [all …]
|
/arkcompiler/runtime_core/assembler/extensions/ |
D | ecmascript_meta.cpp | 18 namespace panda::pandasm::extensions::ecmascript { namespace 35 return pandasm::RecordMetadata::Validate(attribute); in Validate() 53 return pandasm::RecordMetadata::Validate(attribute, value); in Validate() 58 return pandasm::FieldMetadata::Validate(attribute); in Validate() 63 return pandasm::FieldMetadata::Validate(attribute, value); in Validate() 68 return pandasm::FunctionMetadata::Validate(attribute); in Validate() 73 return pandasm::FunctionMetadata::Validate(attribute, value); in Validate() 78 return pandasm::ParamMetadata::Validate(attribute); in Validate() 83 return pandasm::ParamMetadata::Validate(attribute, value); in Validate() 91 pandasm::RecordMetadata::SetFlags(attribute); in SetFlags() [all …]
|
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/types/ |
D | ets_typeapi_create.h | 40 pandasm::Program &Program() in Program() 62 std::string AddInitField(uint32_t id, const pandasm::Type &type); 85 pandasm::Record &GetTypeAPICtxDataRecord(); 87 pandasm::Record &AddRefTypeAsExternal(const std::string &name); 111 pandasm::Program prog_; 112 pandasm::Record ctxDataRecord_ {"", panda_file::SourceLang::ETS}; 114 pandasm::Function ctxDataRecordCctor_ {"", panda_file::SourceLang::ETS}; 131 virtual pandasm::Type GetType() const = 0; 146 … explicit ClassCreator(pandasm::Record *rec, TypeCreatorCtx *ctx) : TypeCreator(ctx), rec_(rec) {} in ClassCreator() 153 pandasm::Type GetType() const override in GetType() [all …]
|
D | ets_typeapi_create.cpp | 36 std::string TypeCreatorCtx::AddInitField(uint32_t id, const pandasm::Type &type) in AddInitField() 41 pandasm::Field fld {SourceLanguage::ETS}; in AddInitField() 52 ctxDataRecordCctor_.AddInstruction(pandasm::Create_LDAI(id)); in AddInitField() 53 ctxDataRecordCctor_.AddInstruction(pandasm::Create_LDARR_OBJ(TYPEAPI_CTX_DATA_CCTOR_ARR_REG)); in AddInitField() 54 ctxDataRecordCctor_.AddInstruction(pandasm::Create_CHECKCAST(type.GetPandasmName())); in AddInitField() 55 ctxDataRecordCctor_.AddInstruction(pandasm::Create_STSTATIC_OBJ(filedIdForIns)); in AddInitField() 66 ctxDataRecordCctor_.AddInstruction(pandasm::Create_RETURN_VOID()); in FlushTypeAPICtxDataRecordsToProgram() 77 pandasm::Type {typeapi_create_consts::TYPE_OBJECT, 1, true}.GetDescriptor(true).c_str()); in SaveObjects() 96 auto name = pandasm::Type(ctxDataRecordName_, 0).GetDescriptor(); in InitializeCtxDataRecord() 105 pandasm::Record &TypeCreatorCtx::GetTypeAPICtxDataRecord() in GetTypeAPICtxDataRecord() [all …]
|
/arkcompiler/runtime_core/static_core/bytecode_optimizer/ |
D | codegen.cpp | 20 void DoLdaObj(compiler::Register reg, std::vector<pandasm::Ins> &result) in DoLdaObj() 23 result.emplace_back(pandasm::Create_LDA_OBJ(reg)); in DoLdaObj() 27 void DoLda(compiler::Register reg, std::vector<pandasm::Ins> &result) in DoLda() 30 result.emplace_back(pandasm::Create_LDA(reg)); in DoLda() 34 void DoLda64(compiler::Register reg, std::vector<pandasm::Ins> &result) in DoLda64() 37 result.emplace_back(pandasm::Create_LDA_64(reg)); in DoLda64() 41 void DoStaObj(compiler::Register reg, std::vector<pandasm::Ins> &result) in DoStaObj() 44 result.emplace_back(pandasm::Create_STA_OBJ(reg)); in DoStaObj() 48 void DoSta(compiler::Register reg, std::vector<pandasm::Ins> &result) in DoSta() 51 result.emplace_back(pandasm::Create_STA(reg)); in DoSta() [all …]
|
/arkcompiler/ets_frontend/ts2panda/ts2abc/ |
D | ts2abc.cpp | 38 constexpr const auto LANG_EXT = panda::pandasm::extensions::Language::ECMASCRIPT; 66 std::unordered_map<int, panda::pandasm::Opcode> g_opcodeMap = { 67 …, name, optype, width, flags, def_idx, use_idxs) {g_opCodeIndex++, panda::pandasm::Opcode::opcode}, 70 {-1, panda::pandasm::Opcode::INVALID}, 74 static panda::pandasm::Record MakeRecordDefinition(const std::string &name) in MakeRecordDefinition() 76 auto record = panda::pandasm::Record(name, LANG_EXT); in MakeRecordDefinition() 80 static panda::pandasm::Function MakeFuncDefintion(const std::string &name, const std::string &retur… in MakeFuncDefintion() 82 auto function = panda::pandasm::Function( in MakeFuncDefintion() 91 function.return_type = panda::pandasm::Type(returnType.c_str(), 0); in MakeFuncDefintion() 95 static panda::pandasm::Label MakeLabel(const std::string &name) in MakeLabel() [all …]
|
/arkcompiler/runtime_core/bytecode_optimizer/tests/ |
D | bcopt_type_adaption_test.cpp | 23 using ArrayValue = panda::pandasm::ArrayValue; 24 using ScalarValue = panda::pandasm::ScalarValue; 25 using AnnotationData = panda::pandasm::AnnotationData; 26 using AnnotationElement = panda::pandasm::AnnotationElement; 36 …TypeInfoMap ExtractTypeinfo(const panda::pandasm::Function &fun, const panda::pandasm::Program &pr… in ExtractTypeinfo() 75 void AddTypeinfo(panda::pandasm::LiteralArray &lit_arr, int32_t order, TypeInfoIndex type) const in AddTypeinfo() 79 panda::pandasm::LiteralArray::Literal order_tag; in AddTypeinfo() 84 panda::pandasm::LiteralArray::Literal order_val; in AddTypeinfo() 89 panda::pandasm::LiteralArray::Literal type_tag; in AddTypeinfo() 90 panda::pandasm::LiteralArray::Literal type_val; in AddTypeinfo() [all …]
|
/arkcompiler/runtime_core/disassembler/ |
D | disassembler.h | 66 void GetRecord(pandasm::Record *record, const panda_file::File::EntityId &record_id); 68 void GetMethod(pandasm::Function *method, const panda_file::File::EntityId &method_id); 69 void GetLiteralArray(pandasm::LiteralArray *lit_array, size_t index) const; 74 void FillLiteralArrayData(pandasm::LiteralArray *lit_array, const panda_file::LiteralTag &tag, 87 …void FillLiteralData(pandasm::LiteralArray *lit_array, const panda_file::LiteralDataAccessor::Lite… 90 void GetFields(pandasm::Record *record, const panda_file::File::EntityId &record_id); 93 … void GetMethodAnnotations(pandasm::Function &method, const panda_file::File::EntityId &method_id); 94 void CreateAnnotationElement(panda_file::AnnotationDataAccessor &ada, pandasm::Function &method, 97 void AddAnnotationElement(pandasm::Function &method, const std::string &annotation_name, 99 void GetParams(pandasm::Function *method, const panda_file::File::EntityId &proto_id) const; [all …]
|
/arkcompiler/ets_frontend/es2panda/compiler/core/emitter/ |
D | commonjs.cpp | 21 constexpr const auto LANG_EXT = panda::pandasm::extensions::Language::ECMASCRIPT; 25 auto isCommonJsField = panda::pandasm::Field(LANG_EXT); in SetCommonjsField() 27 isCommonJsField.type = panda::pandasm::Type("u8", 0); in SetCommonjsField() 29 …panda::pandasm::ScalarValue::Create<panda::pandasm::Value::Type::U8>(static_cast<uint8_t>(isCommon… in SetCommonjsField() 35 auto commonjsRecord = panda::pandasm::Record("_CommonJsRecord", LANG_EXT); in GenCommonjsRecord() 37 auto isCommonJsField = panda::pandasm::Field(LANG_EXT); in GenCommonjsRecord() 39 isCommonJsField.type = panda::pandasm::Type("u8", 0); in GenCommonjsRecord() 41 … panda::pandasm::ScalarValue::Create<panda::pandasm::Value::Type::U8>(static_cast<uint8_t>(true))); in GenCommonjsRecord()
|
D | typeExtractorEmitter.h | 29 using AnnotationData = panda::pandasm::AnnotationData; 33 explicit TypeExtractorEmitter(const PandaGen *pg, panda::pandasm::Function *func); 38 …static void GenTypeInfoRecord(panda::pandasm::Program *prog, bool typeFlag, int64_t typeSummaryInd… 40 …static void GenTypeInfoRecordForMergeABC(panda::pandasm::Program *prog, bool typeFlag, int64_t typ… 42 …static void GenTypeLiteralBuffers(panda::pandasm::Program *prog, const extractor::TypeRecorder *re… 56 panda::pandasm::Function *func_; 59 void GenFunctionTypeInfo(panda::pandasm::Program *prog); 60 void GenExportTypeInfo(panda::pandasm::Program *prog); 61 void GenDeclareTypeInfo(panda::pandasm::Program *prog); 64 …void GenImportOrDeclareTypeInfo(panda::pandasm::Program *prog, const extractor::TypeRecorder *reco…
|
/arkcompiler/runtime_core/static_core/assembler/ |
D | pandasm.h | 21 namespace panda::pandasm { 23 void PrintError(const panda::pandasm::Error &e, const std::string &msg); 25 void PrintErrors(const panda::pandasm::ErrorList &warnings, const std::string &msg); 32 bool Tokenize(panda::pandasm::Lexer &lexer, std::vector<std::vector<panda::pandasm::Token>> &tokens, 35 bool ParseProgram(panda::pandasm::Parser &parser, std::vector<std::vector<panda::pandasm::Token>> &… 37 panda::Expected<panda::pandasm::Program, panda::pandasm::Error> &res); 39 bool DumpProgramInJson(panda::pandasm::Program &program, const panda::PandArg<std::string> &scopesF… 41 bool EmitProgramInBinary(panda::pandasm::Program &program, panda::PandArgParser &paParser, 45 bool BuildFiles(panda::pandasm::Program &program, panda::PandArgParser &paParser,
|
D | pandasm.cpp | 39 namespace panda::pandasm { namespace 41 void PrintError(const panda::pandasm::Error &e, const std::string &msg) in PrintError() 50 void PrintErrors(const panda::pandasm::ErrorList &warnings, const std::string &msg) in PrintErrors() 110 bool Tokenize(panda::pandasm::Lexer &lexer, std::vector<std::vector<panda::pandasm::Token>> &tokens, in Tokenize() 116 panda::pandasm::Tokens q = lexer.TokenizeString(s); in Tokenize() 120 if (e.err != panda::pandasm::Error::ErrorType::ERR_NONE) { in Tokenize() 132 bool ParseProgram(panda::pandasm::Parser &parser, std::vector<std::vector<panda::pandasm::Token>> &… in ParseProgram() 134 panda::Expected<panda::pandasm::Program, panda::pandasm::Error> &res) in ParseProgram() 145 bool DumpProgramInJson(panda::pandasm::Program &program, const panda::PandArg<std::string> &scopesF… in DumpProgramInJson() 161 bool EmitProgramInBinary(panda::pandasm::Program &program, panda::PandArgParser &paParser, in EmitProgramInBinary() [all …]
|
/arkcompiler/runtime_core/assembler/ |
D | pandasm.h | 21 namespace panda::pandasm { 23 void PrintError(const panda::pandasm::Error &e, const std::string &msg); 25 void PrintErrors(const panda::pandasm::ErrorList &warnings, const std::string &msg); 32 bool Tokenize(panda::pandasm::Lexer &lexer, std::vector<std::vector<panda::pandasm::Token>> &tokens, 35 bool ParseProgram(panda::pandasm::Parser &parser, std::vector<std::vector<panda::pandasm::Token>> &… 37 panda::Expected<panda::pandasm::Program, panda::pandasm::Error> &res); 39 bool DumpProgramInJson(panda::pandasm::Program &program, const panda::PandArg<std::string> &scopes_… 41 bool EmitProgramInBinary(panda::pandasm::Program &program, panda::PandArgParser &pa_parser, 45 bool BuildFiles(panda::pandasm::Program &program, panda::PandArgParser &pa_parser,
|
D | pandasm.cpp | 36 namespace panda::pandasm { namespace 38 void PrintError(const panda::pandasm::Error &e, const std::string &msg) in PrintError() 47 void PrintErrors(const panda::pandasm::ErrorList &warnings, const std::string &msg) in PrintErrors() 107 bool Tokenize(panda::pandasm::Lexer &lexer, std::vector<std::vector<panda::pandasm::Token>> &tokens, in Tokenize() 113 panda::pandasm::Tokens q = lexer.TokenizeString(s); in Tokenize() 117 if (e.err != panda::pandasm::Error::ErrorType::ERR_NONE) { in Tokenize() 129 bool ParseProgram(panda::pandasm::Parser &parser, std::vector<std::vector<panda::pandasm::Token>> &… in ParseProgram() 131 panda::Expected<panda::pandasm::Program, panda::pandasm::Error> &res) in ParseProgram() 142 bool DumpProgramInJson(panda::pandasm::Program &program, const panda::PandArg<std::string> &scopes_… in DumpProgramInJson() 158 bool EmitProgramInBinary(panda::pandasm::Program &program, panda::PandArgParser &pa_parser, in EmitProgramInBinary() [all …]
|
/arkcompiler/runtime_core/static_core/disassembler/ |
D | disassembler.h | 75 …PANDA_PUBLIC_API void Serialize(const pandasm::Function &method, std::ostream &os, bool printInfor… 77 …PANDA_PUBLIC_API void GetMethod(pandasm::Function *method, const panda_file::File::EntityId &metho… 88 void GetRecord(pandasm::Record *record, const panda_file::File::EntityId &recordId); 90 void GetLiteralArray(pandasm::LiteralArray *litArray, size_t index); 92 void FillLiteralArrayData(pandasm::LiteralArray *litArray, const panda_file::LiteralTag &tag, 94 …void FillLiteralData(pandasm::LiteralArray *litArray, const panda_file::LiteralDataAccessor::Liter… 100 void GetFields(pandasm::Record *record, const panda_file::File::EntityId &recordId); 102 void GetField(pandasm::Field &field, const panda_file::FieldDataAccessor &fieldAccessor); 106 void GetParams(pandasm::Function *method, const panda_file::File::EntityId &protoId) const; 107 IdList GetInstructions(pandasm::Function *method, panda_file::File::EntityId methodId, [all …]
|
/arkcompiler/ets_runtime/ecmascript/ts_types/tests/ |
D | ts_type_test_helper.h | 25 using namespace panda::pandasm; 30 static void AddLiteral(pandasm::Program &program, const std::string &literalId, in AddLiteral() 35 std::vector<pandasm::LiteralArray::Literal> literal {}; in AddLiteral() 39 pandasm::LiteralArray literalArray(literal); in AddLiteral() 43 static void AddTypeSummary(pandasm::Program &program, const std::vector<std::string> &typeIds) in AddTypeSummary() 53 auto typeSummaryIndexField = pandasm::Field(pandasm::extensions::Language::ECMASCRIPT); in AddTypeSummary() 55 typeSummaryIndexField.type = pandasm::Type("u32", 0); in AddTypeSummary() 57 pandasm::ScalarValue::Create<pandasm::Value::Type::LITERALARRAY>(typeSummaryId)); in AddTypeSummary() 62 static void AddCommonJsField(pandasm::Program &program) in AddCommonJsField() 69 auto isCommonJsField = pandasm::Field(pandasm::extensions::Language::ECMASCRIPT); in AddCommonJsField() [all …]
|