| /arkcompiler/runtime_core/bytecode_optimizer/tests/benchmark/ |
| D | README.md | 54 annotation_item section: 34 55 class_idx_item section: 32 56 class_item section: 223 57 code_item section: 158 58 debug_info_item section: 25 59 foreign_item section: 226 60 header_item section: 40 61 proto_item section: 61 62 string_item section: 239 66 annotation_item section: 16 [all …]
|
| D | compare.py | 58 de_optimized_files = 0 # code_item section is bigger than baseline 59 empty_files = 0 # files with no code_item section 72 if exists("code_item section", new_res[filename]): 73 old_size = old_res[filename]["code_item section"] 74 new_size = new_res[filename]["code_item section"] 97 …print("Classes that have been optimized:\n Code_item section size:\n|Old: |New: |Diff:|Per: |Fil… 107 \n Total code_item section size of baseline files: {:d} bytes\ 108 \n Total code_item section size of compared files: {:d} bytes\ 112 \n Files with no code item section: {:d}\ 122 \n Total code_item section size of baseline files: {:d} bytes\ [all …]
|
| /arkcompiler/runtime_core/static_core/bytecode_optimizer/tests/benchmark/ |
| D | README.md | 54 annotation_item section: 34 55 class_idx_item section: 32 56 class_item section: 223 57 code_item section: 158 58 debug_info_item section: 25 59 foreign_item section: 226 60 header_item section: 40 61 proto_item section: 61 62 string_item section: 239 66 annotation_item section: 16 [all …]
|
| D | compare.py | 59 de_optimized_files = 0 # code_item section is bigger than baseline 60 empty_files = 0 # files with no code_item section 73 if exists("code_item section", new_res[filename]): 74 old_size = old_res[filename]["code_item section"] 75 new_size = new_res[filename]["code_item section"] 100 …logging.info("Classes that have been optimized:\n Code_item section size:\n|Old: |New: |Diff:|Per… 110 \n Total code_item section size of baseline files: %d bytes\ 111 \n Total code_item section size of compared files: %d bytes\ 115 \n Files with no code item section: %d\ 125 \n Total code_item section size of baseline files: %d bytes\ [all …]
|
| /arkcompiler/ets_runtime/ecmascript/dfx/dump_code/ |
| D | jit_dump_elf.cpp | 74 void JsJitDumpElf::UpdateSectionOffset(Section §ion) in UpdateSectionOffset() argument 76 if (section.GetType() != SHT_NOBITS) { in UpdateSectionOffset() 77 section.SetOffset(globalOffset); in UpdateSectionOffset() 79 section.SetOffset(0); in UpdateSectionOffset() 83 void JsJitDumpElf::UpdateGlobalOffset(Section §ion) in UpdateGlobalOffset() argument 85 if (section.GetType() != SHT_NOBITS) { in UpdateGlobalOffset() 86 globalOffset += section.GetSectionSize(); in UpdateGlobalOffset() 95 for (auto *section : sections) { in LayoutSections() local 96 …section->SetSectionHeaderNameIndex(static_cast<maplebe::Word>(strTabSection->AddString(section->Ge… in LayoutSections() 99 for (auto *section : sections) { in LayoutSections() local [all …]
|
| D | jit_dump_elf.h | 42 class Section { 44 …Section(const std::string &name, maplebe::Word type, maplebe::Xword flags, maplebe::Xword align) :… in Section() function 51 virtual ~Section() = default; 75 void SetLink(const Section §ion) in SetLink() argument 77 sectionHeader.sh_link = static_cast<maplebe::Word>(section.GetIndex()); in SetLink() 149 }; /* class Section */ 151 class RelaSection : public Section { 154 maplebe::Xword align, const Section &link) : Section(name, type, flags, align) in RelaSection() 182 class SymbolSection : public Section { 185 const Section &link) : Section(name, type, flags, align) in SymbolSection() [all …]
|
| /arkcompiler/runtime_core/static_core/verification/config/process/ |
| D | config_process.cpp | 28 using ark::verifier::config::Section; 30 bool ProcessConfigSection(Config *cfg, const Section §ion, const ark::PandaString &path = "") in ProcessConfigSection() argument 34 return sectionHandlers.at(path)(cfg, section); in ProcessConfigSection() 36 for (const auto &s : section.sections) { in ProcessConfigSection() 48 …figHandler(Config *cfg, const PandaString &path, callable<bool(Config *, const Section &)> handler) in RegisterConfigHandler() 54 bool ProcessConfig(Config *cfg, const Section §ion) in ProcessConfig() argument 56 return ProcessConfigSection(cfg, section, section.name); in ProcessConfig()
|
| D | config_process.h | 29 bool ProcessConfig(Config *cfg, const Section §ion); 31 …igHandler(Config *cfg, const PandaString &path, callable<bool(Config *, const Section &)> handler);
|
| /arkcompiler/runtime_core/static_core/libllvmbackend/object_code/ |
| D | created_object_file.cpp | 34 for (auto section : objectFile_->sections()) { in CreatedObjectFile() local 35 sectionIndex_[cantFail(section.getName())] = section; in CreatedObjectFile() 72 LLVM_DEBUG(llvm::dbgs() << "Getting section = '" << name << "'\n"); in GetSection() 73 … ASSERT(sectionIndex_.find(name) != sectionIndex_.end() && "Attempt to access an unknown section"); in GetSection() 74 const auto §ion = sectionIndex_.at(name); in GetSection() local 75 auto contents = cantFail(section.getContents()); in GetSection() 77 return SectionReference {memory, contents.size(), name, section.getAlignment()}; in GetSection() 83 LLVM_DEBUG(llvm::dbgs() << "Got section by function = " << fullFunctionName in GetSectionByFunctionName() 84 << " section's size = " << sectionReference.GetSize() << "\n"); in GetSectionByFunctionName() 92 "Attempt to access unknown section '.rela.llvm_stackmaps'"); in GetStackMapInfo() [all …]
|
| D | ark_aot_linker.cpp | 76 // Check if we've inserted section reference. in RememberAllocation() 77 // If we did not, then there is a section duplicate, which we cannot handle in RememberAllocation() 99 ASSERT(sections.find(name) != sections.end() && "Attempt to access an unknown linked section"); in GetLinkedSection() 113 for (const auto §ion : file->GetRoDataSections()) { in GetLinkedRoDataSections() local 114 references.push_back(GetLinkedSection(section.GetName())); in GetLinkedRoDataSections() 125 for (auto section : objectFile->GetObjectFile()->sections()) { in RelocateSections() local 126 llvm::StringRef name = cantFail(section.getName()); in RelocateSections() 160 // Section name = ".text." + fullMethodName in RelocateFunctionSection() 171 LLVM_DEBUG(llvm::dbgs() << "Relocated section '" << sectionReference.GetName() in RelocateFunctionSection() 193 LLVM_DEBUG(llvm::dbgs() << "Relocated section '" << sectionReference.GetName() in RelocateSection()
|
| /arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/ |
| D | elf_types.h | 60 #define SHT_NULL 0 /* Section header table entry unused */ 72 #define STT_SECTION 3 /* Symbol associated with a section */ 88 uint64_t e_shoff; /* Section header table file offset */ 99 uint32_t sh_name; /* Section name, index in string tbl */ 100 uint32_t sh_type; /* Type of section */ 101 uint64_t sh_flags; /* Miscellaneous section attributes */ 102 uint64_t sh_addr; /* Section virtual addr at execution */ 103 uint64_t sh_offset; /* Section file offset */ 104 uint64_t sh_size; /* Size of section in bytes */ 105 uint32_t sh_link; /* Index of another section */ [all …]
|
| D | ifile.h | 101 class Section { 103 …Section(std::string name, Word type, Word flags, uint32 align, ObjEmitter &emitter, MemPool &memPo… 105 virtual ~Section() = default; 133 void SetLink(const Section §ion) in SetLink() argument 135 secHeader.sh_link = section.GetIndex(); in SetLink() 217 class DataSection : public Section { 220 : Section(name, type, flags, align, emitter, inputMemPool), in DataSection() 355 class SymbolSection : public Section { 358 const Section &link) in SymbolSection() 359 … : Section(name, type, flags, align, emitter, memPool), alloc(&memPool), symbols(alloc.Adapter()) in SymbolSection() [all …]
|
| D | obj_emit.h | 427 for (auto *section : sections) { in HandleGlobalFixup() 428 section->HandleGlobalFixup(globalLabel2Offset); in HandleGlobalFixup() 447 void UpdateSectionOffsetAddr(Section *section) in UpdateSectionOffsetAddr() argument 449 if (section->GetType() != SHT_NOBITS) { in UpdateSectionOffsetAddr() 450 section->SetOffset(globalOffset); in UpdateSectionOffsetAddr() 452 section->SetOffset(0); in UpdateSectionOffsetAddr() 456 void UpdateGlobalOffsetAddr(Section *section) in UpdateGlobalOffsetAddr() argument 458 if ((section->GetFlags() & SHF_ALLOC) != 0) { in UpdateGlobalOffsetAddr() 459 globalAddr += section->GetDataSize(); in UpdateGlobalOffsetAddr() 461 if (section->GetType() != SHT_NOBITS) { in UpdateGlobalOffsetAddr() [all …]
|
| /arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/x86_64/assembler/ |
| D | elf_file.h | 38 class Section { 40 Section(const std::string &name, Word type, Xword flags, Xword align) : name(name) in Section() function 47 virtual ~Section() = default; 71 void SetLink(const Section §ion) in SetLink() argument 73 sectionHeader.sh_link = static_cast<Word>(section.GetIndex()); in SetLink() 145 }; /* class Section */ 147 class DataSection : public Section { 149 …DataSection(const std::string &name, Word type, Xword flags, Xword align) : Section(name, type, fl… in DataSection() 213 class RelaSection : public Section { 215 …ction(const std::string &name, Word type, Xword flags, Word info, Xword align, const Section &link) in RelaSection() [all …]
|
| /arkcompiler/runtime_core/static_core/verification/config/handlers/ |
| D | config_handler_method_options.cpp | 36 using ark::verifier::config::Section; 230 static bool MethodOptionsProcessorProcessSection(const struct Section &s, const Section §ion, in MethodOptionsProcessorProcessSection() argument 257 … LOG(ERROR, VERIFIER) << "Failed to parse '" << name << "' under '" << section.name << "'"; in MethodOptionsProcessorProcessSection() 274 …LOG(ERROR, VERIFIER) << "Unexpected section name: '" << name << "' under '" << section.name << "'"; in MethodOptionsProcessorProcessSection() 283 static const auto PROCESS_METHOD_OPTIONS = [](Config *cfg, const Section §ion) { in MethodOptionsProcessor() argument 285 MethodOptions &options = allOptions.NewOptions(section.name); in MethodOptionsProcessor() 287 for (const auto &s : section.sections) { in MethodOptionsProcessor() 288 if (!MethodOptionsProcessorProcessSection(s, section, allOptions, options)) { in MethodOptionsProcessor() 303 …tatic const auto CONFIG_DEBUG_METHOD_OPTIONS_VERIFIER = [](Config *ddcfg, const Section §ion) { in RegisterConfigHandlerMethodOptions() argument 305 for (const auto &s : section.sections) { in RegisterConfigHandlerMethodOptions() [all …]
|
| D | config_handler_whitelist.cpp | 34 using ark::verifier::config::Section; 60 static bool RegisterConfigHandlerWhitelistSectionHandler(Config *config, const struct Section &s) in RegisterConfigHandlerWhitelistSectionHandler() 70 LOG(DEBUG, VERIFIER) << "Wrong debug verifier whitelist section: '" << s.name << "'"; in RegisterConfigHandlerWhitelistSectionHandler() 95 static const auto CONFIG_DEBUG_WHITELIST_VERIFIER = [](Config *config, const Section §ion) { in RegisterConfigHandlerWhitelist() argument 96 for (const auto &s : section.sections) { in RegisterConfigHandlerWhitelist()
|
| /arkcompiler/ets_runtime/ecmascript/compiler/aot_file/ |
| D | elf_checker.h | 79 ELF_TYPE_DYN, /* Dynamic section record. */ 86 ELF_TYPE_SHDR, /* Section header. */ 100 ELF_TYPE_GNUHASH, /* GNU-style hash section. */ 172 int64_t sectionOffset; /* Offset into section. */ 173 size_t sectionAlignment; /* Alignment in section. */ 187 /* List of `ElfData' descriptors. This is what makes up the section 196 /* Descriptor for ELF section. */ 202 ElfSectionData rawData; /* Uninterpreted data of the section. */ 204 int dataRead; /* Nonzero if the section was created by the 207 int extendSectionHeaderIndex; /* Index of the extended section index [all …]
|
| /arkcompiler/runtime_core/static_core/compiler/aot/aot_builder/ |
| D | elf_builder.h | 115 class Section { 120 … Section(ElfBuilder &builder, const std::string &name, Section *link, const ElfShdrParams ¶ms) in Section() function 129 virtual ~Section() = default; 130 NO_MOVE_SEMANTIC(Section); 131 NO_COPY_SEMANTIC(Section); 182 Section *link_ {}; 188 class DataSection : public Section { 190 using Section::Section; 222 class SymbolSection : public Section { 225 using typename Section::ElfShdrParams; [all …]
|
| D | llvm_aot_builder.cpp | 62 // At runtime the .text section is placed right after the .aot_got section in GetSectionsAddressesImpl() 64 // of the .aot_got section. in GetSectionsAddressesImpl() 66 for (auto section : *roDataSections) { in GetSectionsAddressesImpl() 67 sectionAddresses.emplace(section->GetName(), section->GetOffset()); in GetSectionsAddressesImpl()
|
| /arkcompiler/runtime_core/static_core/plugins/ets/doc/ |
| D | validate-recipes | 137 my $section = shift; 140 if (exists $skip_list->{$r->{id}} && $skip_list->{$r->{id}}{$section}) { 141 if ($skip_list->{$r->{id}}{$section} eq 'skip') { 270 die 'Recipes anchor should be in intro section' 289 die 'Expected preceding section: id' if $current_section ne 'id'; 298 die 'Expected preceding section: desc_brief' 309 die 'Expected current section: desc_detailed' 314 die 'Expected current section: desc_detailed' 320 die 'Expected current section: desc_detailed' 325 die 'Expected current section: desc_detailed' [all …]
|
| /arkcompiler/runtime_core/docs/ |
| D | aot.md | 23 …ns compiled native code. Code of each compiled method is placed sequentially into this section with 25 …- Contains table of the runtime's entrypoint handlers. Must be placed right before `.text` section. 30 - `code` - points to the start of `.text` section 31 - `code_end` - points to the end of `.text` section 32 - `aot` - points to the start of `.aot` section 33 - `aot_end` - points to the end of `.aot` section 37 `.aot` section contains combination of the following structures: 49 ## Special `.aot_got` section 51 There is one strict rule: `.text` section must be placed right after `.aot_got` section, and this s…
|
| /arkcompiler/runtime_core/static_core/docs/ |
| D | aot.md | 23 …ns compiled native code. Code of each compiled method is placed sequentially into this section with 25 …- Contains table of the runtime's entrypoint handlers. Must be placed right before `.text` section. 30 - `code` - points to the start of `.text` section 31 - `code_end` - points to the end of `.text` section 32 - `aot` - points to the start of `.aot` section 33 - `aot_end` - points to the end of `.aot` section 37 `.aot` section contains combination of the following structures: 49 ## Special `.aot_got` section 51 There is one strict rule: `.text` section must be placed right after `.aot_got` section, and this s…
|
| /arkcompiler/runtime_core/static_core/verification/config/ |
| D | config.h | 29 struct Section { struct 32 std::vector<struct Section> sections; argument 51 const Section &operator[](const PandaString &title) const argument 58 LOG(FATAL, VERIFIER) << "config section '" << title << "' not found";
|
| /arkcompiler/runtime_core/static_core/verification/config/parse/ |
| D | config_parse.cpp | 29 using ark::verifier::config::Section; 34 Section current; 35 std::vector<Section> sections; 83 bool ParseConfig(const char *str, Section &cfg) in ParseConfig() 123 …static const auto SECTION = ~WS >> SECTION_START >> ~WS >> *sectionRec >> *ITEM >> SECTION_END >> … in ParseConfig() local 126 sectionRec = SECTION; in ParseConfig() 132 if (SECTION(context, str, &str[std::strlen(str)])) { // NOLINT in ParseConfig()
|
| /arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/ |
| D | ifile.cpp | 23 Section::Section(std::string secName, Word type, Word flags, uint32 align, ObjEmitter &objEmitter, … in Section() function in maplebe::Section 32 void Section::Layout() in Layout()
|