Lines Matching full:compiled_method
31 #include "compiled_method.h"
97 inline uint32_t CodeAlignmentSize(uint32_t header_offset, const CompiledMethod& compiled_method) {
100 uint32_t aligned_code_offset = compiled_method.AlignCode(unaligned_code_offset);
751 CompiledMethod* compiled_method = writer_->compiler_driver_->GetCompiledMethod(
753 if (HasCompiledCode(compiled_method)) {
754 for (const LinkerPatch& patch : compiled_method->GetPatches()) {
777 DCHECK(compiled_method == nullptr || compiled_method->GetPatches().empty());
817 CompiledMethod* compiled_method =
819 compiled_methods_.push_back(compiled_method);
820 if (HasCompiledCode(compiled_method)) {
882 CompiledMethod* compiled_method = oat_class->GetCompiledMethod(class_def_method_index);
884 if (HasCompiledCode(compiled_method)) {
888 ArrayRef<const uint8_t> quick_code = compiled_method->GetQuickCode();
890 uint32_t thumb_offset = compiled_method->CodeDelta();
901 quick_code_offset = NewQuickCodeOffset(compiled_method, it, thumb_offset);
906 compiled_method,
907 [this, &deduped, compiled_method, &it, thumb_offset]() {
909 return NewQuickCodeOffset(compiled_method, it, thumb_offset);
933 if (!compiled_method->GetQuickCode().empty()) {
950 uint32_t frame_size_in_bytes = compiled_method->GetFrameSizeInBytes();
951 uint32_t core_spill_mask = compiled_method->GetCoreSpillMask();
952 uint32_t fp_spill_mask = compiled_method->GetFpSpillMask();
965 if (!compiled_method->GetPatches().empty()) {
967 for (const LinkerPatch& patch : compiled_method->GetPatches()) {
987 info.isa = compiled_method->GetInstructionSet();
994 info.frame_size_in_bytes = compiled_method->GetFrameSizeInBytes();
995 info.code_info = has_code_info ? compiled_method->GetVmapTable().data() : nullptr;
996 info.cfi = compiled_method->GetCFIInfo();
1030 uint32_t NewQuickCodeOffset(CompiledMethod* compiled_method,
1034 offset_, compiled_method, MethodReference(dex_file_, it.GetMemberIndex()));
1035 offset_ += CodeAlignmentSize(offset_, *compiled_method);
1037 GetInstructionSetAlignment(compiled_method->GetInstructionSet()));
1057 CompiledMethod* compiled_method = oat_class->GetCompiledMethod(class_def_method_index);
1059 if (HasCompiledCode(compiled_method)) {
1063 ArrayRef<const uint8_t> map = compiled_method->GetVmapTable();
1096 CompiledMethod* compiled_method = oat_class->GetCompiledMethod(class_def_method_index);
1098 if (HasCompiledCode(compiled_method)) {
1101 ArrayRef<const uint8_t> map = compiled_method->GetMethodInfo();
1189 CompiledMethod* compiled_method = oat_class->GetCompiledMethod(class_def_method_index);
1192 if (HasCompiledCode(compiled_method)) {
1230 compiled_method != nullptr &&
1231 compiled_method->GetQuickCode().size() != 0) {
1326 const CompiledMethod* compiled_method = oat_class->GetCompiledMethod(class_def_method_index);
1330 if (HasCompiledCode(compiled_method)) {
1334 ArrayRef<const uint8_t> quick_code = compiled_method->GetQuickCode();
1345 uint32_t alignment_size = CodeAlignmentSize(offset_, *compiled_method);
1355 GetInstructionSetAlignment(compiled_method->GetInstructionSet()));
1357 offset_ + sizeof(OatQuickMethodHeader) + compiled_method->CodeDelta())
1369 if (!compiled_method->GetPatches().empty()) {
1372 for (const LinkerPatch& patch : compiled_method->GetPatches()) {
1620 const CompiledMethod* compiled_method = oat_class->GetCompiledMethod(class_def_method_index);
1622 if (HasCompiledCode(compiled_method)) {
1630 DCHECK((compiled_method->GetVmapTable().size() == 0u && map_offset == 0u) ||
1631 (compiled_method->GetVmapTable().size() != 0u && map_offset != 0u))
1632 << compiled_method->GetVmapTable().size() << " " << map_offset << " "
1639 map_offset = (code_offset - compiled_method->CodeDelta()) - map_offset;
1643 ArrayRef<const uint8_t> map = compiled_method->GetVmapTable();
1682 const CompiledMethod* compiled_method = oat_class->GetCompiledMethod(class_def_method_index);
1684 if (HasCompiledCode(compiled_method)) {
1690 DCHECK((compiled_method->GetMethodInfo().size() == 0u && map_offset == 0u) ||
1691 (compiled_method->GetMethodInfo().size() != 0u && map_offset != 0u))
1692 << compiled_method->GetMethodInfo().size() << " " << map_offset << " "
1696 map_offset = (code_offset - compiled_method->CodeDelta()) - map_offset;
1700 ArrayRef<const uint8_t> map = compiled_method->GetMethodInfo();
2061 CompiledMethod* compiled_method =
2064 if (HasQuickeningInfo(compiled_method)) {
2065 ArrayRef<const uint8_t> map = compiled_method->GetVmapTable();
2128 CompiledMethod* compiled_method =
2130 if (HasQuickeningInfo(compiled_method)) {
2132 uint32_t offset = offset_map_.Get(compiled_method->GetVmapTable().data());
3443 CompiledMethod* compiled_method = compiled_methods_[i];
3444 if (HasCompiledCode(compiled_method)) {