Home
last modified time | relevance | path

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

12

/arkcompiler/runtime_core/static_core/disassembler/
Ddisasm_backed_debug_info_extractor.cpp78 return GetDisassembly(methodId).sourceCode.c_str(); in GetSourceCode()
125 std::ostringstream sourceCode; in GetDisassemblySourceName() local
127 disassembler_.Serialize(method, sourceCode, true, &lineTable); in GetDisassemblySourceName()
148 … .emplace(methodId, Disassembly {sourceCode.str(), std::move(lineTable), std::move(parameterInfo), in GetDisassemblySourceName()
Ddisasm_backed_debug_info_extractor.h37 std::string sourceCode; member
/arkcompiler/ets_frontend/ets2panda/parser/
DETSparser.h63 ir::Expression *CreateExpression(std::string_view sourceCode,
67 …ir::Expression *CreateFormattedExpression(std::string_view sourceCode, std::vector<ir::AstNode *> …
71 …ir::Expression *CreateFormattedExpression(std::string_view const sourceCode, std::string_view cons… in CreateFormattedExpression() argument
77 return CreateFormattedExpression(sourceCode, insertingNodes, fileName); in CreateFormattedExpression()
80 ArenaVector<ir::Statement *> CreateStatements(std::string_view sourceCode,
83 ArenaVector<ir::Statement *> CreateFormattedStatements(std::string_view sourceCode,
88 ArenaVector<ir::Statement *> CreateFormattedStatements(std::string_view const sourceCode, in CreateFormattedStatements() argument
93 return CreateFormattedStatements(sourceCode, insertingNodes, fileName); in CreateFormattedStatements()
351 …ir::Statement *CreateStatement(std::string_view sourceCode, std::string_view fileName = DEFAULT_SO…
352 …ir::Statement *CreateFormattedStatement(std::string_view sourceCode, std::vector<ir::AstNode *> &i…
[all …]
DETSparser.cpp4959 ir::Statement *ETSParser::CreateStatement(std::string_view const sourceCode, std::string_view const… in CreateStatement() argument
4961 util::UString source {sourceCode, Allocator()}; in CreateStatement()
4984 ir::Statement *ETSParser::CreateFormattedStatement(std::string_view const sourceCode, in CreateFormattedStatement() argument
4989 auto const statement = CreateStatement(sourceCode, fileName); in CreateFormattedStatement()
4994 ArenaVector<ir::Statement *> ETSParser::CreateStatements(std::string_view const sourceCode, in CreateStatements() argument
4997 util::UString source {sourceCode, Allocator()}; in CreateStatements()
5005 ArenaVector<ir::Statement *> ETSParser::CreateFormattedStatements(std::string_view const sourceCode, in CreateFormattedStatements() argument
5010 auto statements = CreateStatements(sourceCode, fileName); in CreateFormattedStatements()
5015 … *ETSParser::CreateMethodDefinition(ir::ModifierFlags modifiers, std::string_view const sourceCode, in CreateMethodDefinition() argument
5018 util::UString source {sourceCode, Allocator()}; in CreateMethodDefinition()
[all …]
/arkcompiler/ets_runtime/ecmascript/jspandafile/
Ddebug_info_extractor.cpp250 static const std::string sourceCode = ""; in GetSourceCode() local
255 return sourceCode; in GetSourceCode()
257 return methods_[methodId.GetOffset()].sourceCode; in GetSourceCode()
260 return iter->second.sourceCode; in GetSourceCode()
308 const char *sourceCode = ""; in ExtractorMethodDebugInfo() local
310 sourceCode = reinterpret_cast<const char *>(handler.GetSourceCode()); in ExtractorMethodDebugInfo()
313 MethodDebugInfo methodDebugInfo = {sourceFile, sourceCode, handler.GetLineNumberTable(), in ExtractorMethodDebugInfo()
Ddebug_info_extractor.h233 std::string sourceCode; member
/arkcompiler/ets_frontend/ets2panda/ir/
DastDump.cpp25 AstDumper::AstDumper(const ir::AstNode *node, util::StringView sourceCode) : index_(sourceCode) in AstDumper() argument
27 isSrcEmpty_ = sourceCode.Empty(); in AstDumper()
DastDump.h192 explicit AstDumper(const ir::AstNode *node, util::StringView sourceCode = "");
/arkcompiler/runtime_core/static_core/libpandafile/
Ddebug_info_updater-inl.h110 … std::string sourceCode = utf::Mutf8AsCString(file_->GetStringData(sourceCodeId).data); in Scrap() local
111 This()->GetOrCreateStringItem(sourceCode); in Scrap()
218 … std::string sourceCode = utf::Mutf8AsCString(file_->GetStringData(sourceCodeId).data); in Emit() local
219 auto *sourceCodeItem = This()->GetOrCreateStringItem(sourceCode); in Emit()
Ddebug_info_extractor.cpp243 const char *sourceCode = utf::Mutf8AsCString(handler.GetSourceCode()); in Extract() local
244 …methods_.emplace(methodId, MethodDebugInfo {sourceFile, sourceCode, methodId, handler.GetLineNumbe… in Extract()
308 return it->second.sourceCode.c_str(); in GetSourceCode()
Ddebug_info_extractor.h85 std::string sourceCode; member
Dfile_items.cpp1508 …ineNumberProgramItem::EmitSetSourceCode(std::vector<uint8_t> *constantPool, StringItem *sourceCode) in EmitSetSourceCode() argument
1512 if (sourceCode == nullptr) { in EmitSetSourceCode()
1516 ASSERT(sourceCode->GetOffset() != 0); in EmitSetSourceCode()
1517 EmitUleb128(constantPool, sourceCode->GetOffset()); in EmitSetSourceCode()
/arkcompiler/ets_frontend/es2panda/parser/program/
Dprogram.h128 void SetSource(const std::string &sourceCode, const std::string &sourceFile, bool isDtsFile) in SetSource() argument
130 sourceCode_ = util::UString(sourceCode, Allocator()); in SetSource()
/arkcompiler/ets_frontend/ets2panda/parser/program/
Dprogram.h162 void SetSource(const util::StringView &sourceCode, const util::StringView &sourceFilePath, in SetSource() argument
165 sourceCode_ = sourceCode; in SetSource()
/arkcompiler/ets_frontend/es2panda/ir/
DastDump.cpp25 …r::AstDumper(const BlockStatement *program, util::StringView sourceCode) : index_(sourceCode), ind… in AstDumper() argument
DastDump.h148 explicit AstDumper(const BlockStatement *program, util::StringView sourceCode);
/arkcompiler/ets_runtime/ecmascript/builtins/
Dbuiltins_function.cpp345 const std::string &sourceCode = debugExtractor->GetSourceCode(method->GetMethodId()); in FunctionPrototypeToString() local
346 if (!sourceCode.empty()) { in FunctionPrototypeToString()
347 return GetTaggedString(thread, sourceCode.c_str()); in FunctionPrototypeToString()
/arkcompiler/ets_frontend/merge_abc/protos/
DassemblyFunction.proto68 bytes sourceCode = 8; field
/arkcompiler/ets_frontend/ts2panda/src/
Dts2panda.ts418 let sourceCode = undefined; variable
422 sourceCode = pg.getSourceCode();
456 sourceCode,
Dpandagen.ts228 private sourceCode: string | undefined = undefined; property in PandaGen
342 return this.sourceCode;
346 this.sourceCode = code;
/arkcompiler/runtime_core/static_core/assembler/
Dassembly-function.h81 std::string sourceCode; member
Dassembly-emitter.cpp1197 if (!func.sourceCode.empty()) { in CreateMethodItem()
1198 items->GetOrCreateStringItem(func.sourceCode); in CreateMethodItem()
1451 if (!func.sourceCode.empty()) { in EmitDebugInfo()
1452 auto *sourceCodeItem = items->GetOrCreateStringItem(func.sourceCode); in EmitDebugInfo()
/arkcompiler/ets_frontend/ets2panda/compiler/debugger/
DdebuginfoDumper.cpp185 WriteProperty("sourceCode", iter->second.sourceCode); in Dump()
/arkcompiler/toolchain/tooling/base/
Dpt_types.cpp942 std::string sourceCode; in DescriptionForFunction() local
944 sourceCode = "[native code]"; in DescriptionForFunction()
946 sourceCode = "[js code]"; in DescriptionForFunction()
949 std::string description = "function " + name->ToString() + "( { " + sourceCode + " }"; in DescriptionForFunction()
956 std::string sourceCode; in DescriptionForGeneratorFunction() local
958 sourceCode = "[native code]"; in DescriptionForGeneratorFunction()
960 sourceCode = "[js code]"; in DescriptionForGeneratorFunction()
963 std::string description = "function* " + name->ToString() + "( { " + sourceCode + " }"; in DescriptionForGeneratorFunction()
/arkcompiler/ets_frontend/ets2panda/compiler/core/
Demitter.cpp267 func->sourceCode = SourceCode().EscapeSymbol<util::StringView::Mutf8Encode>(); in GenSourceFileDebugInfo()

12