Home
last modified time | relevance | path

Searched refs:isa (Results 1 – 25 of 88) sorted by relevance

1234

/art/compiler/jni/
Djni_cfi_test.cc41 void TestImpl(InstructionSet isa, in TestImpl() argument
45 if (Is64BitInstructionSet(isa)) { in TestImpl()
46 TestImplSized<PointerSize::k64>(isa, isa_str, expected_asm, expected_cfi); in TestImpl()
48 TestImplSized<PointerSize::k32>(isa, isa_str, expected_asm, expected_cfi); in TestImpl()
54 void TestImplSized(InstructionSet isa, in TestImplSized() argument
73 isa)); in TestImplSized()
76 &allocator, is_static, is_synchronized, shorty, isa)); in TestImplSized()
82 JNIMacroAssembler<kPointerSize>::Create(&allocator, isa)); in TestImplSized()
105 isa, in TestImplSized()
116 #define TEST_ISA(isa) \ argument
[all …]
/art/libartbase/arch/
Dinstruction_set.h84 const char* GetInstructionSetString(InstructionSet isa);
90 NO_RETURN void InstructionSetAbort(InstructionSet isa);
92 constexpr PointerSize GetInstructionSetPointerSize(InstructionSet isa) { in GetInstructionSetPointerSize() argument
93 switch (isa) { in GetInstructionSetPointerSize()
110 InstructionSetAbort(isa); in GetInstructionSetPointerSize()
113 constexpr bool IsValidInstructionSet(InstructionSet isa) { in IsValidInstructionSet() argument
114 switch (isa) { in IsValidInstructionSet()
129 constexpr size_t GetInstructionSetInstructionAlignment(InstructionSet isa) { in GetInstructionSetInstructionAlignment() argument
130 switch (isa) { in GetInstructionSetInstructionAlignment()
147 InstructionSetAbort(isa); in GetInstructionSetInstructionAlignment()
[all …]
Dinstruction_set.cc27 void InstructionSetAbort(InstructionSet isa) { in InstructionSetAbort() argument
28 switch (isa) { in InstructionSetAbort()
36 LOG(FATAL) << "Unsupported instruction set " << isa; in InstructionSetAbort()
39 LOG(FATAL) << "Unknown ISA " << isa; in InstructionSetAbort()
43 const char* GetInstructionSetString(InstructionSet isa) { in GetInstructionSetString() argument
44 switch (isa) { in GetInstructionSetString()
59 LOG(FATAL) << "Unknown ISA " << isa; in GetInstructionSetString()
/art/compiler/optimizing/
Doptimizing_cfi_test.cc48 void SetUpFrame(InstructionSet isa) { in SetUpFrame() argument
49 OverrideInstructionSetFeatures(isa, "default"); in SetUpFrame()
92 void Check(InstructionSet isa, in Check() argument
102 GenerateExpected(stdout, isa, isa_str, actual_asm, actual_cfi); in Check()
109 void TestImpl(InstructionSet isa, const char* in TestImpl() argument
113 SetUpFrame(isa); in TestImpl()
115 Check(isa, isa_str, expected_asm, expected_cfi); in TestImpl()
128 #define TEST_ISA(isa) \ argument
129 TEST_F(OptimizingCFITest, isa) { \
131 expected_asm_##isa, \
[all …]
Dinstruction_simplifier_shared.h44 inline bool HasShifterOperand(HInstruction* instr, InstructionSet isa) { in HasShifterOperand() argument
48 (isa == InstructionSet::kArm64 && instr->IsNeg()) || in HasShifterOperand()
64 bool TryCombineMultiplyAccumulate(HMul* mul, InstructionSet isa);
/art/runtime/
Dnterp_helpers.cc91 static constexpr size_t NterpGetFrameEntrySize(InstructionSet isa) { in NterpGetFrameEntrySize() argument
95 switch (isa) { in NterpGetFrameEntrySize()
122 InstructionSetAbort(isa); in NterpGetFrameEntrySize()
126 static_cast<size_t>(InstructionSetPointerSize(isa)); in NterpGetFrameEntrySize()
129 static uint16_t GetNumberOfOutRegs(const CodeItemDataAccessor& accessor, InstructionSet isa) { in GetNumberOfOutRegs() argument
131 switch (isa) { in GetNumberOfOutRegs()
143 static uint16_t GetNumberOfOutRegs(ArtMethod* method, InstructionSet isa) in GetNumberOfOutRegs() argument
146 return GetNumberOfOutRegs(accessor, isa); in GetNumberOfOutRegs()
153 static size_t NterpGetFrameSizeWithoutPadding(ArtMethod* method, InstructionSet isa) in NterpGetFrameSizeWithoutPadding() argument
157 const uint16_t out_regs = GetNumberOfOutRegs(accessor, isa); in NterpGetFrameSizeWithoutPadding()
[all …]
Dnterp_helpers-inl.h26 InstructionSet isa) { in GetNterpFastPathFlags() argument
47 if (isa != InstructionSet::kRiscv64 && all_parameters_are_reference_or_int && no_float_return) { in GetNterpFastPathFlags()
49 } else if (isa == InstructionSet::kRiscv64 && all_parameters_are_reference && no_float_return) { in GetNterpFastPathFlags()
Dprebuilt_tools_test.cc30 static void CheckToolsExist(InstructionSet isa) { in CheckToolsExist() argument
33 std::string path = GetAndroidTool(tool, isa); in CheckToolsExist()
/art/runtime/entrypoints/quick/
Dquick_trampoline_entrypoints_test.cc42 static ArtMethod* CreateCalleeSaveMethod(InstructionSet isa, CalleeSaveType type) in CreateCalleeSaveMethod() argument
50 r->SetInstructionSet(isa); in CreateCalleeSaveMethod()
57 static void CheckPCOffset(InstructionSet isa, CalleeSaveType type, size_t pc_offset) in CheckPCOffset() argument
59 ArtMethod* save_method = CreateCalleeSaveMethod(isa, type); in CheckPCOffset()
64 << " fp spills=" << frame_info.FpSpillMask() << std::dec << " ISA " << isa; in CheckPCOffset()
/art/runtime/oat/
Djni_stub_hash_map.cc38 static char TranslateReturnTypeToJniShorty(char ch, InstructionSet isa = InstructionSet::kNone) { in TranslateReturnTypeToJniShorty() argument
52 switch (isa) { in TranslateReturnTypeToJniShorty()
65 static constexpr size_t GetMaxIntLikeRegisterArgs(InstructionSet isa) { in GetMaxIntLikeRegisterArgs() argument
66 switch (isa) { in GetMaxIntLikeRegisterArgs()
72 LOG(FATAL) << "Unrecognized isa: " << isa << " for " << __FUNCTION__; in GetMaxIntLikeRegisterArgs()
77 static constexpr size_t GetMaxFloatOrDoubleRegisterArgs(InstructionSet isa) { in GetMaxFloatOrDoubleRegisterArgs() argument
78 switch (isa) { in GetMaxFloatOrDoubleRegisterArgs()
84 LOG(FATAL) << "Unrecognized isa: " << isa << " for " << __FUNCTION__; in GetMaxFloatOrDoubleRegisterArgs()
179 JniStubKeyHash::JniStubKeyHash(InstructionSet isa) { in JniStubKeyHash() argument
180 switch (isa) { in JniStubKeyHash()
[all …]
Doat_file_assistant_context.cc104 for (InstructionSet isa : isas) { in FetchAll() local
105 GetBootImageInfoList(isa); in FetchAll()
117 OatFileAssistantContext::GetBootImageInfoList(InstructionSet isa) { in GetBootImageInfoList() argument
118 if (auto it = boot_image_info_list_by_isa_.find(isa); it != boot_image_info_list_by_isa_.end()) { in GetBootImageInfoList()
133 if (!layout.LoadFromSystem(isa, /*allow_in_memory_compilation=*/false, &error_msg)) { in GetBootImageInfoList()
138 return boot_image_info_list_by_isa_[isa]; in GetBootImageInfoList()
141 std::vector<BootImageInfo>& boot_image_info_list = boot_image_info_list_by_isa_[isa]; in GetBootImageInfoList()
Doat_file_assistant.h166 const InstructionSet isa,
176 const InstructionSet isa,
265 InstructionSet isa,
322 InstructionSet isa,
335 InstructionSet isa,
343 InstructionSet isa,
355 InstructionSet isa,
370 InstructionSet isa,
/art/libartservice/service/java/com/android/server/art/
DUtils.java112 String isa = getTranslatedIsa(VMRuntime.getInstructionSet(pkgSecondaryCpuAbi)); in getAllAbis() local
113 if (isa != null) { in getAllAbis()
114 abis.add(Abi.create(nativeIsaToAbi(isa), isa, false /* isPrimaryAbi */)); in getAllAbis() local
118 if (abis.size() == 2 && abis.get(0).isa().equals(abis.get(1).isa())) { in getAllAbis()
147 String isa = getTranslatedIsa(VMRuntime.getInstructionSet(primaryCpuAbi)); in getPrimaryAbi() local
149 if (isa != null) { in getPrimaryAbi()
150 return Abi.create(nativeIsaToAbi(isa), isa, true /* isPrimaryAbi */); in getPrimaryAbi()
170 private static String getTranslatedIsa(@NonNull String isa) { in getTranslatedIsa() argument
173 if ((abi64 != null && isa.equals(VMRuntime.getInstructionSet(abi64))) in getTranslatedIsa()
174 || (abi32 != null && isa.equals(VMRuntime.getInstructionSet(abi32)))) { in getTranslatedIsa()
[all …]
DAidlUtils.java37 private static ArtifactsPath buildArtifactsPath(@NonNull String dexPath, @NonNull String isa, in buildArtifactsPath() argument
41 artifactsPath.isa = isa; in buildArtifactsPath()
49 @NonNull String dexPath, @NonNull String isa, boolean isInDalvikCache) { in buildArtifactsPathAsInput() argument
52 return buildArtifactsPath(dexPath, isa, isInDalvikCache, false /* isPreReboot */); in buildArtifactsPathAsInput()
57 @NonNull String dexPath, @NonNull String isa, boolean isInDalvikCache) { in buildArtifactsPathAsInputPreReboot() argument
60 return buildArtifactsPath(dexPath, isa, isInDalvikCache, true /* isPreReboot */); in buildArtifactsPathAsInputPreReboot()
97 public static OutputArtifacts buildOutputArtifacts(@NonNull String dexPath, @NonNull String isa, in buildOutputArtifacts() argument
102 buildArtifactsPath(dexPath, isa, isInDalvikCache, isPreReboot); in buildOutputArtifacts()
210 @NonNull String packageName, @NonNull String dexPath, @NonNull String isa) { in buildRuntimeArtifactsPath() argument
214 runtimeArtifactsPath.isa = isa; in buildRuntimeArtifactsPath()
/art/compiler/debug/
Delf_debug_loc_writer.h34 static Reg GetDwarfCoreReg(InstructionSet isa, int machine_reg) { in GetDwarfCoreReg() argument
35 switch (isa) { in GetDwarfCoreReg()
53 static Reg GetDwarfFpReg(InstructionSet isa, int machine_reg) { in GetDwarfFpReg() argument
54 switch (isa) { in GetDwarfFpReg()
92 InstructionSet isa) { in GetVariableLocations() argument
110 const uint32_t pc_offset = stack_map.GetNativePcOffset(isa); in GetVariableLocations()
178 InstructionSet isa, in WriteDebugLocEntry() argument
195 isa); in WriteDebugLocEntry()
200 const bool is64bit = Is64BitInstructionSet(isa); in WriteDebugLocEntry()
221 expr.WriteOpReg(GetDwarfCoreReg(isa, value).num()); in WriteDebugLocEntry()
[all …]
Delf_debug_writer.cc115 InstructionSet isa, in MakeMiniDebugInfoInternal() argument
125 std::unique_ptr<ElfBuilder<ElfTypes>> builder(new ElfBuilder<ElfTypes>(isa, &out)); in MakeMiniDebugInfoInternal()
149 InstructionSet isa, in MakeMiniDebugInfo() argument
156 if (Is64BitInstructionSet(isa)) { in MakeMiniDebugInfo()
157 return MakeMiniDebugInfoInternal<ElfTypes64>(isa, in MakeMiniDebugInfo()
165 return MakeMiniDebugInfoInternal<ElfTypes32>(isa, in MakeMiniDebugInfo()
175 std::vector<uint8_t> MakeElfFileForJIT(InstructionSet isa, in MakeElfFileForJIT() argument
180 CHECK_EQ(sizeof(ElfTypes::Addr), static_cast<size_t>(GetInstructionSetPointerSize(isa))); in MakeElfFileForJIT()
187 std::unique_ptr<ElfBuilder<ElfTypes>> builder(new ElfBuilder<ElfTypes>(isa, &out)); in MakeElfFileForJIT()
211 method_info.code_address + GetInstructionSetEntryPointAdjustment(isa)); in MakeElfFileForJIT()
[all …]
Delf_debug_writer.h45 InstructionSet isa,
54 InstructionSet isa,
66 InstructionSet isa,
/art/libartbase/base/
Dfile_utils.h137 std::string GetApexDataDalvikCacheDirectory(InstructionSet isa);
141 std::string GetApexDataOatFilename(std::string_view location, InstructionSet isa);
145 std::string GetApexDataOdexFilename(std::string_view location, InstructionSet isa);
159 InstructionSet isa,
164 std::string GetSystemImageFilename(const char* location, InstructionSet isa);
174 std::string GetSystemOdexFilenameForApex(std::string_view location, InstructionSet isa);
Dfile_utils.cc651 std::string GetApexDataDalvikCacheDirectory(InstructionSet isa) { in GetApexDataDalvikCacheDirectory() argument
652 if (isa != InstructionSet::kNone) { in GetApexDataDalvikCacheDirectory()
653 return GetDalvikCacheDirectory(GetArtApexData(), GetInstructionSetString(isa)); in GetApexDataDalvikCacheDirectory()
659 InstructionSet isa, in GetApexDataDalvikCacheFilename() argument
666 std::string apex_data_dalvik_cache = GetApexDataDalvikCacheDirectory(isa); in GetApexDataDalvikCacheFilename()
685 std::string GetApexDataOatFilename(std::string_view location, InstructionSet isa) { in GetApexDataOatFilename() argument
686 return GetApexDataDalvikCacheFilename(location, isa, /*is_boot_classpath_location=*/true, "oat"); in GetApexDataOatFilename()
689 std::string GetApexDataOdexFilename(std::string_view location, InstructionSet isa) { in GetApexDataOdexFilename() argument
691 location, isa, /*is_boot_classpath_location=*/false, "odex"); in GetApexDataOdexFilename()
709 InstructionSet isa, in GetApexDataDalvikCacheFilename() argument
[all …]
/art/compiler/utils/
Dassembler_test_base.h79 InstructionSet isa = GetIsa(); in Driver() local
92 if (Is64BitInstructionSet(isa)) { in Driver()
105 if (Is64BitInstructionSet(isa)) { in Driver()
106 WriteElf</*IsElf64=*/true>(art_obj_file, isa, art_code); in Driver()
108 WriteElf</*IsElf64=*/false>(art_obj_file, isa, art_code); in Driver()
145 InstructionSet isa = GetIsa(); in GetAssemblerCommand() local
146 switch (isa) { in GetAssemblerCommand()
162 LOG(FATAL) << "Unknown instruction set: " << isa; in GetAssemblerCommand()
242 void WriteElf(const std::string& filename, InstructionSet isa, const std::vector<uint8_t>& code) { in WriteElf() argument
247 std::unique_ptr<ElfBuilder<ElfTypes>> builder(new ElfBuilder<ElfTypes>(isa, &out)); in WriteElf()
/art/runtime/arch/
Dinstruction_set_features.cc34 InstructionSet isa, const std::string& variant, std::string* error_msg) { in FromVariant() argument
35 switch (isa) { in FromVariant()
51 UNIMPLEMENTED(FATAL) << isa; in FromVariant()
56 InstructionSet isa, const std::string& variant, std::string* error_msg) { in FromVariantAndHwcap() argument
57 auto variant_features = FromVariant(isa, variant, error_msg); in FromVariantAndHwcap()
67 if (isa == InstructionSet::kArm64) { in FromVariantAndHwcap()
82 std::unique_ptr<const InstructionSetFeatures> InstructionSetFeatures::FromBitmap(InstructionSet isa, in FromBitmap() argument
85 switch (isa) { in FromBitmap()
104 UNIMPLEMENTED(FATAL) << isa; in FromBitmap()
/art/odrefresh/
Dodrefresh.h225 std::string GetPrimaryBootImagePath(bool on_system, bool minimal, InstructionSet isa) const;
233 std::string GetSystemBootImageFrameworkExtensionPath(InstructionSet isa) const;
239 std::string GetBootImageMainlineExtensionPath(bool on_system, InstructionSet isa) const;
243 std::vector<std::string> GetBestBootImages(InstructionSet isa,
265 InstructionSet isa,
272 InstructionSet isa,
314 InstructionSet isa,
331 InstructionSet isa,
342 InstructionSet isa,
350 InstructionSet isa,
Dodrefresh.cc458 InstructionSet isa, in AddDex2OatInstructionSet() argument
460 const char* isa_str = GetInstructionSetString(isa); in AddDex2OatInstructionSet()
537 InstructionSet isa, in AddCompiledBootClasspathFdsIfAny() argument
558 image_path = GetSystemImageFilename(image_path.c_str(), isa); in AddCompiledBootClasspathFdsIfAny()
647 for (InstructionSet isa : odr.Config().GetBootClasspathIsas()) { in CompileAll() local
649 isa, BootImages{.primary_boot_image = true, .boot_image_mainline_extension = true}); in CompileAll()
679 for (const auto& [isa, boot_images] : boot_images_to_generate_for_isas) { in CompilationUnitCount()
940 InstructionSet isa) const { in GetPrimaryBootImagePath()
942 return GetSystemImageFilename(GetPrimaryBootImage(on_system, minimal).c_str(), isa); in GetPrimaryBootImagePath()
953 std::string OnDeviceRefresh::GetSystemBootImageFrameworkExtensionPath(InstructionSet isa) const { in GetSystemBootImageFrameworkExtensionPath()
[all …]
/art/compiler/trampolines/
Dtrampoline_compiler.h39 InstructionSet isa, EntryPointCallingConvention abi, ThreadOffset32 entry_point_offset);
41 InstructionSet isa, EntryPointCallingConvention abi, ThreadOffset64 entry_point_offset);
/art/artd/
Dpath_utils_test.cc59 .dexPath = "/a/b.apk", .isa = "arm64", .isInDalvikCache = false, .isPreReboot = false}), in TEST_F()
68 .dexPath = "/a/b.apk", .isa = "arm64", .isInDalvikCache = false, .isPreReboot = true}), in TEST_F()
77 .dexPath = "/a/b.apk", .isa = "arm64", .isInDalvikCache = true, .isPreReboot = false}), in TEST_F()
89 .dexPath = "/a/b.apk", .isa = "arm64", .isInDalvikCache = true, .isPreReboot = true}), in TEST_F()
101 .dexPath = "a/b.apk", .isa = "arm64", .isInDalvikCache = false, .isPreReboot = false}), in TEST_F()
108 .dexPath = "/a/b.apk", .isa = "invalid", .isInDalvikCache = false, .isPreReboot = false}), in TEST_F()
254 BuildVdexPath(ArtifactsPath{.dexPath = "/a/b.apk", .isa = "arm64", .isInDalvikCache = false}), in TEST_F()

1234