Home
last modified time | relevance | path

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

123

/art/tools/cpp-define-generator/
Dcode_item.def23 art::StandardDexFile::CodeItem::RegistersSizeOffset())
25 art::StandardDexFile::CodeItem::InsSizeOffset())
27 art::StandardDexFile::CodeItem::OutsSizeOffset())
29 art::StandardDexFile::CodeItem::InsnsOffset())
32 art::CompactDexFile::CodeItem::FieldsOffset())
34 art::CompactDexFile::CodeItem::InsnsCountAndFlagsOffset())
36 art::CompactDexFile::CodeItem::InsnsOffset())
39 art::CompactDexFile::CodeItem::kFlagPreHeaderRegistersSize |
40 art::CompactDexFile::CodeItem::kFlagPreHeaderInsSize |
41 art::CompactDexFile::CodeItem::kFlagPreHeaderOutsSize)
[all …]
/art/libdexfile/dex/
Dcode_item_accessors-inl.h38 inline void CodeItemInstructionAccessor::Init<CompactDexFile::CodeItem>(
39 const CompactDexFile::CodeItem& code_item) {
51 inline void CodeItemInstructionAccessor::Init<StandardDexFile::CodeItem>(
52 const StandardDexFile::CodeItem& code_item) {
57 const dex::CodeItem* code_item) { in Init()
61 Init(down_cast<const CompactDexFile::CodeItem&>(*code_item)); in Init()
64 Init(down_cast<const StandardDexFile::CodeItem&>(*code_item)); in Init()
71 const dex::CodeItem* code_item) { in CodeItemInstructionAccessor()
92 inline void CodeItemDataAccessor::Init<CompactDexFile::CodeItem>(
93 const CompactDexFile::CodeItem& code_item) {
[all …]
Dstandard_dex_file.h35 struct CodeItem : public dex::CodeItem { struct
39 return OFFSETOF_MEMBER(CodeItem, ins_size_); in InsSizeOffset() argument
43 return OFFSETOF_MEMBER(CodeItem, outs_size_); in OutsSizeOffset() argument
47 return OFFSETOF_MEMBER(CodeItem, registers_size_); in RegistersSizeOffset() argument
51 return OFFSETOF_MEMBER(CodeItem, insns_); in InsnsOffset() argument
55 CodeItem() = default;
77 DISALLOW_COPY_AND_ASSIGN(CodeItem); argument
104 uint32_t GetCodeItemSize(const dex::CodeItem& item) const override;
Dcode_item_accessors.h29 struct CodeItem;
44 const dex::CodeItem* code_item);
82 ALWAYS_INLINE void Init(const DexFile& dex_file, const dex::CodeItem* code_item);
99 ALWAYS_INLINE CodeItemDataAccessor(const DexFile& dex_file, const dex::CodeItem* code_item);
128 ALWAYS_INLINE void Init(const DexFile& dex_file, const dex::CodeItem* code_item);
149 const dex::CodeItem* code_item, in CodeItemDebugInfoAccessor()
155 const dex::CodeItem* code_item,
Dcode_item_accessors_test.cc74 const dex::CodeItem* item, in TEST()
91 StandardDexFile::CodeItem* dex_code_item = in TEST()
92 reinterpret_cast<StandardDexFile::CodeItem*>(const_cast<uint8_t*>(standard_dex->Begin())); in TEST()
100 CompactDexFile::CodeItem* cdex_code_item = in TEST()
101 reinterpret_cast<CompactDexFile::CodeItem*>(const_cast<uint8_t*>(compact_dex->Begin() + in TEST()
102 CompactDexFile::CodeItem::kMaxPreHeaderSize * sizeof(uint16_t))); in TEST()
Dcompact_dex_file_test.cc54 uint16_t buffer[sizeof(CompactDexFile::CodeItem) + in TEST()
55 CompactDexFile::CodeItem::kMaxPreHeaderSize] = {}; in TEST()
56 CompactDexFile::CodeItem* code_item = reinterpret_cast<CompactDexFile::CodeItem*>( in TEST()
57 &buffer[CompactDexFile::CodeItem::kMaxPreHeaderSize]); in TEST()
Dcompact_dex_file.h88 struct CodeItem : public dex::CodeItem { struct
94 return OFFSETOF_MEMBER(CodeItem, fields_); in FieldsOffset() argument
98 return OFFSETOF_MEMBER(CodeItem, insns_count_and_flags_); in InsnsCountAndFlagsOffset() argument
102 return OFFSETOF_MEMBER(CodeItem, insns_); in InsnsOffset() argument
123 CodeItem() = default; argument
263 DISALLOW_COPY_AND_ASSIGN(CodeItem); argument
292 uint32_t GetCodeItemSize(const dex::CodeItem& item) const override;
Ddex_file_tracking_registrar.cc161 const dex::CodeItem* code_item = method.GetCodeItem(); in SetAllCodeItemRegistration()
174 const dex::CodeItem* code_item = method.GetCodeItem(); in SetAllCodeItemStartRegistration()
192 const dex::CodeItem* code_item = method.GetCodeItem(); in SetAllInsnsRegistration()
209 const dex::CodeItem* code_item = method.GetCodeItem(); in SetCodeItemRegistration()
Ddex_file_structs.h99 struct CodeItem { struct
101 CodeItem() = default;
104 DISALLOW_COPY_AND_ASSIGN(CodeItem);
Dclass_accessor.h29 struct CodeItem;
108 const dex::CodeItem* GetCodeItem() const;
286 const dex::CodeItem* GetCodeItem(const Method& method) const;
Dstandard_dex_file.cc82 uint32_t StandardDexFile::GetCodeItemSize(const dex::CodeItem& item) const { in GetCodeItemSize()
/art/dexlayout/
Ddexlayout.h83 std::unordered_map<dex_ir::CodeItem*, LayoutType> code_item_layout_;
137 void DumpBytecodes(uint32_t idx, const dex_ir::CodeItem* code, uint32_t code_offset);
138 void DumpCatches(const dex_ir::CodeItem* code);
143 const dex_ir::CodeItem* code,
153 void DumpInstruction(const dex_ir::CodeItem* code,
159 void DumpLocalInfo(const dex_ir::CodeItem* code);
163 const dex_ir::CodeItem* code,
165 void DumpPositionInfo(const dex_ir::CodeItem* code);
186 void DumpCFG(const DexFile* dex_file, uint32_t dex_method_idx, const dex::CodeItem* code);
Dcompact_dex_writer.cc61 dex_ir::CodeItem* code_item = method.GetCodeItem(); in WriteDebugInfoOffsetTable()
143 dex_ir::CodeItem* code_item, in WriteCodeItem()
149 CompactDexFile::CodeItem::kAlignment, in WriteCodeItem()
152 CompactDexFile::CodeItem disk_code_item; in WriteCodeItem()
154 uint16_t preheader_storage[CompactDexFile::CodeItem::kMaxPreHeaderSize] = {}; in WriteCodeItem()
155 uint16_t* preheader_end = preheader_storage + CompactDexFile::CodeItem::kMaxPreHeaderSize; in WriteCodeItem()
197 stream->Write(&disk_code_item, OFFSETOF_MEMBER(CompactDexFile::CodeItem, insns_)); in WriteCodeItem()
248 dex_ir::CodeItem* code_item = method.GetCodeItem(); in SortDebugInfosByMethodIndex()
335 std::vector<dex_ir::CodeItem*> method_id_code_item(header_->MethodIds().Size(), nullptr); in CanGenerateCompactDex()
348 dex_ir::CodeItem* code_item = method.GetCodeItem(); in CanGenerateCompactDex()
Ddex_verify.h99 bool VerifyCode(dex_ir::CodeItem* orig, dex_ir::CodeItem* output, std::string* error_msg);
Ddex_ir.h45 class CodeItem; variable
98 virtual void Dispatch(CodeItem* code_item) = 0;
490 CollectionVector<CodeItem>& CodeItems() { return code_items_; } in CodeItems()
491 const CollectionVector<CodeItem>& CodeItems() const { return code_items_; } in CodeItems()
571 CollectionVector<CodeItem> code_items_;
743 MethodItem(uint32_t access_flags, const MethodId* method_id, CodeItem* code) in MethodItem()
751 CodeItem* GetCodeItem() { return code_; } in GetCodeItem()
758 CodeItem* code_; // This can be nullptr.
1036 class CodeItem : public Item {
1038 CodeItem(uint16_t registers_size, in CodeItem() function
[all …]
/art/runtime/verifier/
Dmethod_verifier.h51 struct CodeItem;
127 const dex::CodeItem* code_item, ArtMethod* method,
192 const CodeItemDataAccessor& CodeItem() const { in CodeItem() function
230 const dex::CodeItem* code_item,
268 const dex::CodeItem* code_item,
291 const dex::CodeItem* code_item,
315 const dex::CodeItem* code_item,
/art/compiler/driver/
Ddex_compilation_unit.h41 const dex::CodeItem* code_item,
69 const dex::CodeItem* GetCodeItem() const { in GetCodeItem()
167 const dex::CodeItem* const code_item_;
Ddex_compilation_unit.cc33 const dex::CodeItem* code_item, in DexCompilationUnit()
/art/compiler/
Dcompiler.h28 struct CodeItem;
61 virtual CompiledMethod* Compile(const dex::CodeItem* code_item,
96 static bool IsPathologicalCase(const dex::CodeItem& code_item,
Dcompiler.cc48 bool Compiler::IsPathologicalCase(const dex::CodeItem& code_item, in IsPathologicalCase()
/art/compiler/debug/
Dmethod_debug_info.h35 const dex::CodeItem* code_item;
/art/tools/dexfuzz/src/dexfuzz/program/
DProgram.java49 import dexfuzz.rawdex.CodeItem;
226 for (CodeItem codeItem : rawDexFile.codeItems) { in Program()
323 if (method.codeOff.getPointedToItem() instanceof CodeItem) { in associateMethod()
324 CodeItem codeItem = (CodeItem) method.codeOff.getPointedToItem(); in associateMethod()
342 private boolean legalToMutate(CodeItem codeItem) { in legalToMutate()
DCodeTranslator.java20 import dexfuzz.rawdex.CodeItem;
50 public MutatableCode codeItemToMutatableCode(Program program, CodeItem codeItem, in codeItemToMutatableCode()
140 public void mutatableCodeToCodeItem(CodeItem codeItem, MutatableCode mutatableCode) { in mutatableCodeToCodeItem()
214 private Map<Short,Integer> createTryHandlerOffsetToIndexMap(CodeItem codeItem) { in createTryHandlerOffsetToIndexMap()
249 private void readTryBlocks(CodeItem codeItem, MutatableCode mutatableCode, in readTryBlocks()
320 private void updateTryBlocks(CodeItem codeItem, MutatableCode mutatableCode) { in updateTryBlocks()
/art/tools/dexfuzz/src/dexfuzz/rawdex/
DMapList.java147 rawDexFile.codeItems = new ArrayList<CodeItem>(mapItem.size); in read()
149 CodeItem newCodeItem = new CodeItem(); in read()
DRawDexFile.java44 public List<CodeItem> codeItems;
250 for (CodeItem codeItem : codeItems) { in write()
376 for (CodeItem codeItem : codeItems) { in incrementIndex()

123