Home
last modified time | relevance | path

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

123

/art/compiler/jni/
Djni_cfi_test.cc43 void TestImpl(InstructionSet isa, in TestImpl() argument
47 if (Is64BitInstructionSet(isa)) { in TestImpl()
48 TestImplSized<PointerSize::k64>(isa, isa_str, expected_asm, expected_cfi); in TestImpl()
50 TestImplSized<PointerSize::k32>(isa, isa_str, expected_asm, expected_cfi); in TestImpl()
56 void TestImplSized(InstructionSet isa, in TestImplSized() argument
75 isa)); in TestImplSized()
78 &allocator, is_static, is_synchronized, shorty, isa)); in TestImplSized()
84 JNIMacroAssembler<kPointerSize>::Create(&allocator, isa)); in TestImplSized()
107 isa, in TestImplSized()
118 #define TEST_ISA(isa) \ argument
[all …]
/art/libartbase/arch/
Dinstruction_set.h76 const char* GetInstructionSetString(InstructionSet isa);
82 NO_RETURN void InstructionSetAbort(InstructionSet isa);
84 constexpr PointerSize GetInstructionSetPointerSize(InstructionSet isa) { in GetInstructionSetPointerSize() argument
85 switch (isa) { in GetInstructionSetPointerSize()
100 InstructionSetAbort(isa); in GetInstructionSetPointerSize()
103 constexpr size_t GetInstructionSetInstructionAlignment(InstructionSet isa) { in GetInstructionSetInstructionAlignment() argument
104 switch (isa) { in GetInstructionSetInstructionAlignment()
119 InstructionSetAbort(isa); in GetInstructionSetInstructionAlignment()
122 constexpr bool IsValidInstructionSet(InstructionSet isa) { in IsValidInstructionSet() argument
123 switch (isa) { in IsValidInstructionSet()
[all …]
Dinstruction_set.cc25 void InstructionSetAbort(InstructionSet isa) { in InstructionSetAbort() argument
26 switch (isa) { in InstructionSetAbort()
33 LOG(FATAL) << "Unsupported instruction set " << isa; in InstructionSetAbort()
36 LOG(FATAL) << "Unknown ISA " << isa; in InstructionSetAbort()
40 const char* GetInstructionSetString(InstructionSet isa) { in GetInstructionSetString() argument
41 switch (isa) { in GetInstructionSetString()
54 LOG(FATAL) << "Unknown ISA " << isa; in GetInstructionSetString()
74 size_t GetInstructionSetAlignment(InstructionSet isa) { in GetInstructionSetAlignment() argument
75 switch (isa) { in GetInstructionSetAlignment()
90 LOG(FATAL) << "Unknown ISA " << isa; in GetInstructionSetAlignment()
/art/compiler/optimizing/
Doptimizing_cfi_test.cc50 void SetUpFrame(InstructionSet isa) { in SetUpFrame() argument
51 OverrideInstructionSetFeatures(isa, "default"); in SetUpFrame()
94 void Check(InstructionSet isa, in Check() argument
104 GenerateExpected(stdout, isa, isa_str, actual_asm, actual_cfi); in Check()
111 void TestImpl(InstructionSet isa, const char* in TestImpl() argument
115 SetUpFrame(isa); in TestImpl()
117 Check(isa, isa_str, expected_asm, expected_cfi); in TestImpl()
148 #define TEST_ISA(isa) \ argument
149 TEST_F(OptimizingCFITest, isa) { \
151 expected_asm_##isa, \
[all …]
Dinstruction_simplifier_shared.h41 inline bool HasShifterOperand(HInstruction* instr, InstructionSet isa) { in HasShifterOperand() argument
45 (isa == InstructionSet::kArm64 && instr->IsNeg()) || in HasShifterOperand()
61 bool TryCombineMultiplyAccumulate(HMul* mul, InstructionSet isa);
/art/runtime/
Dnterp_helpers.cc90 static constexpr size_t NterpGetFrameEntrySize(InstructionSet isa) { in NterpGetFrameEntrySize() argument
94 switch (isa) { in NterpGetFrameEntrySize()
116 InstructionSetAbort(isa); in NterpGetFrameEntrySize()
120 static_cast<size_t>(InstructionSetPointerSize(isa)); in NterpGetFrameEntrySize()
123 static uint16_t GetNumberOfOutRegs(ArtMethod* method, InstructionSet isa) in GetNumberOfOutRegs() argument
127 switch (isa) { in GetNumberOfOutRegs()
139 size_t NterpGetFrameSize(ArtMethod* method, InstructionSet isa) { in NterpGetFrameSize() argument
142 const uint16_t out_regs = GetNumberOfOutRegs(method, isa); in NterpGetFrameSize()
143 size_t pointer_size = static_cast<size_t>(InstructionSetPointerSize(isa)); in NterpGetFrameSize()
148 DCHECK(IsAlignedParam(NterpGetFrameEntrySize(isa), pointer_size)); in NterpGetFrameSize()
[all …]
Doat_file_assistant.h114 const InstructionSet isa,
123 const InstructionSet isa,
190 InstructionSet isa,
246 InstructionSet isa,
257 InstructionSet isa,
266 InstructionSet isa,
Dprebuilt_tools_test.cc30 static void CheckToolsExist(InstructionSet isa) { in CheckToolsExist() argument
33 std::string path = GetAndroidTool(tool, isa); in CheckToolsExist()
Dnterp_helpers.h29 size_t NterpGetFrameSize(ArtMethod* method, InstructionSet isa = kRuntimeISA)
81 bool CanMethodUseNterp(ArtMethod* method, InstructionSet isa = kRuntimeISA)
/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/compiler/debug/
Delf_debug_loc_writer.h34 static Reg GetDwarfCoreReg(InstructionSet isa, int machine_reg) { in GetDwarfCoreReg() argument
35 switch (isa) { in GetDwarfCoreReg()
51 static Reg GetDwarfFpReg(InstructionSet isa, int machine_reg) { in GetDwarfFpReg() argument
52 switch (isa) { in GetDwarfFpReg()
88 InstructionSet isa) { in GetVariableLocations() argument
106 const uint32_t pc_offset = stack_map.GetNativePcOffset(isa); in GetVariableLocations()
174 InstructionSet isa, in WriteDebugLocEntry() argument
191 isa); in WriteDebugLocEntry()
196 const bool is64bit = Is64BitInstructionSet(isa); in WriteDebugLocEntry()
217 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()
176 InstructionSet isa, in MakeElfFileForJIT() argument
181 CHECK_EQ(sizeof(ElfTypes::Addr), static_cast<size_t>(GetInstructionSetPointerSize(isa))); in MakeElfFileForJIT()
188 std::unique_ptr<ElfBuilder<ElfTypes>> builder(new ElfBuilder<ElfTypes>(isa, &out)); in MakeElfFileForJIT()
211 DCHECK_EQ(sym.st_value, method_info.code_address + CompiledMethod::CodeDelta(isa)); in MakeElfFileForJIT()
[all …]
Delf_debug_writer.h45 InstructionSet isa,
54 InstructionSet isa,
66 InstructionSet isa,
/art/libartbase/base/
Dfile_utils.h102 std::string GetApexDataDalvikCacheDirectory(InstructionSet isa);
106 std::string GetApexDataOatFilename(std::string_view location, InstructionSet isa);
110 std::string GetApexDataOdexFilename(std::string_view location, InstructionSet isa);
124 InstructionSet isa,
129 std::string GetSystemImageFilename(const char* location, InstructionSet isa);
139 std::string GetSystemOdexFilenameForApex(std::string_view location, InstructionSet isa);
Dfile_utils.cc452 std::string GetApexDataDalvikCacheDirectory(InstructionSet isa) { in GetApexDataDalvikCacheDirectory() argument
453 if (isa != InstructionSet::kNone) { in GetApexDataDalvikCacheDirectory()
454 return GetDalvikCacheDirectory(GetArtApexData(), GetInstructionSetString(isa)); in GetApexDataDalvikCacheDirectory()
460 InstructionSet isa, in GetApexDataDalvikCacheFilename() argument
467 std::string apex_data_dalvik_cache = GetApexDataDalvikCacheDirectory(isa); in GetApexDataDalvikCacheFilename()
486 std::string GetApexDataOatFilename(std::string_view location, InstructionSet isa) { in GetApexDataOatFilename() argument
487 return GetApexDataDalvikCacheFilename(location, isa, /*is_boot_classpath_location=*/true, "oat"); in GetApexDataOatFilename()
490 std::string GetApexDataOdexFilename(std::string_view location, InstructionSet isa) { in GetApexDataOdexFilename() argument
492 location, isa, /*is_boot_classpath_location=*/false, "odex"); in GetApexDataOdexFilename()
510 InstructionSet isa, in GetApexDataDalvikCacheFilename() argument
[all …]
Dfile_utils_test.cc247 const InstructionSet isa = InstructionSet::kArm64; in TEST_F() local
248 const std::string boot_image_filename = GetSystemImageFilename(boot_image.c_str(), isa); in TEST_F()
250 EXPECT_EQ(accompanying_oat_file, GetApexDataOatFilename(system_jar.c_str(), isa)); in TEST_F()
268 const InstructionSet isa = InstructionSet::kX86_64; in TEST_F() local
269 const std::string image_filename = GetSystemImageFilename(image.c_str(), isa); in TEST_F()
271 EXPECT_EQ(accompanying_odex_file, GetApexDataOdexFilename(jar, isa)); in TEST_F()
/art/compiler/utils/
Dassembler_test_base.h78 InstructionSet isa = GetIsa(); in Driver() local
91 if (Is64BitInstructionSet(isa)) { in Driver()
104 if (Is64BitInstructionSet(isa)) { in Driver()
105 WriteElf</*IsElf64=*/true>(art_obj_file, isa, art_code); in Driver()
107 WriteElf</*IsElf64=*/false>(art_obj_file, isa, art_code); in Driver()
141 InstructionSet isa = GetIsa(); in GetAssemblerCommand() local
142 switch (isa) { in GetAssemblerCommand()
148 LOG(FATAL) << "Unknown instruction set: " << isa; in GetAssemblerCommand()
214 void WriteElf(const std::string& filename, InstructionSet isa, const std::vector<uint8_t>& code) { in WriteElf() argument
219 std::unique_ptr<ElfBuilder<ElfTypes>> builder(new ElfBuilder<ElfTypes>(isa, &out)); in WriteElf()
/art/compiler/trampolines/
Dtrampoline_compiler.h39 std::unique_ptr<const std::vector<uint8_t>> CreateTrampoline32(InstructionSet isa,
42 std::unique_ptr<const std::vector<uint8_t>> CreateTrampoline64(InstructionSet isa,
Dtrampoline_compiler.cc172 std::unique_ptr<const std::vector<uint8_t>> CreateTrampoline64(InstructionSet isa, in CreateTrampoline64() argument
177 switch (isa) { in CreateTrampoline64()
189 LOG(FATAL) << "Unexpected InstructionSet: " << isa; in CreateTrampoline64()
194 std::unique_ptr<const std::vector<uint8_t>> CreateTrampoline32(InstructionSet isa, in CreateTrampoline32() argument
199 switch (isa) { in CreateTrampoline32()
211 LOG(FATAL) << "Unexpected InstructionSet: " << isa; in CreateTrampoline32()
/art/odrefresh/
Dodrefresh.h101 std::string GetBootImagePath(bool on_system, bool minimal, const InstructionSet isa) const;
109 std::string GetSystemBootImageExtensionPath(const InstructionSet isa) const;
129 const InstructionSet isa,
168 const InstructionSet isa,
185 WARN_UNUSED bool CompileBootClasspathArtifacts(const InstructionSet isa,
Dodrefresh.cc405 void AddDex2OatInstructionSet(/*inout*/ std::vector<std::string>& args, InstructionSet isa) { in AddDex2OatInstructionSet() argument
406 const char* isa_str = GetInstructionSetString(isa); in AddDex2OatInstructionSet()
469 const InstructionSet isa, in AddCompiledBootClasspathFdsIfAny() argument
480 image_path = GetSystemImageFilename(image_path.c_str(), isa); in AddCompiledBootClasspathFdsIfAny()
752 const InstructionSet isa) const { in GetBootImagePath()
754 return GetSystemImageFilename(GetBootImage(on_system, minimal).c_str(), isa); in GetBootImagePath()
769 std::string OnDeviceRefresh::GetSystemBootImageExtensionPath(const InstructionSet isa) const { in GetSystemBootImageExtensionPath()
771 return GetSystemImageFilename(GetSystemBootImageExtension().c_str(), isa); in GetSystemBootImageExtensionPath()
805 const InstructionSet isa, in BootClasspathArtifactsExist() argument
808 std::string path = GetBootImagePath(on_system, minimal, isa); in BootClasspathArtifactsExist()
[all …]
/art/runtime/base/
Dquasi_atomic.h49 static constexpr bool NeedSwapMutexes(InstructionSet isa ATTRIBUTE_UNUSED) { in NeedSwapMutexes()
151 static bool LongAtomicsUseMutexes(InstructionSet isa) { in LongAtomicsUseMutexes() argument
152 return NeedSwapMutexes(isa); in LongAtomicsUseMutexes()
/art/runtime/arch/
Dinstruction_set_features.cc37 InstructionSet isa, const std::string& variant, std::string* error_msg) { in FromVariant() argument
38 switch (isa) { in FromVariant()
52 UNIMPLEMENTED(FATAL) << isa; in FromVariant()
56 std::unique_ptr<const InstructionSetFeatures> InstructionSetFeatures::FromBitmap(InstructionSet isa, in FromBitmap() argument
59 switch (isa) { in FromBitmap()
75 UNIMPLEMENTED(FATAL) << isa; in FromBitmap()
/art/test/generate-boot-image/
Dgenerate-boot-image.cc68 std::string isa = GetInstructionSetString(kRuntimeISA); in GenerateBootImage() local
80 args.push_back("--instruction-set=" + isa); in GenerateBootImage()
91 std::string path = StringPrintf("%s/%s", dir.c_str(), isa.c_str()); in GenerateBootImage()
/art/tools/checker/match/
Dtest.py104 def assertMatches(self, checker_string, c1_string, isa=None, instruction_set_features=None): argument
110 if isa:
111 meta_data += "isa:" + isa
150 def assertDoesNotMatch(self, checker_string, c1_string, isa=None, instruction_set_features=None): argument
152 self.assertMatches(checker_string, c1_string, isa, instruction_set_features)

123