Home
last modified time | relevance | path

Searched refs:isa (Results 1 – 25 of 66) 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
74 isa)); in TestImplSized()
77 &allocator, is_static, is_synchronized, shorty, isa)); in TestImplSized()
83 JNIMacroAssembler<kPointerSize>::Create(&allocator, isa)); in TestImplSized()
106 isa, in TestImplSized()
117 #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.cc88 static constexpr size_t NterpGetFrameEntrySize(InstructionSet isa) { in NterpGetFrameEntrySize() argument
92 switch (isa) { in NterpGetFrameEntrySize()
112 InstructionSetAbort(isa); in NterpGetFrameEntrySize()
116 static_cast<size_t>(InstructionSetPointerSize(isa)); in NterpGetFrameEntrySize()
119 size_t NterpGetFrameSize(ArtMethod* method, InstructionSet isa) { in NterpGetFrameSize() argument
123 size_t pointer_size = static_cast<size_t>(InstructionSetPointerSize(isa)); in NterpGetFrameSize()
128 DCHECK(IsAlignedParam(NterpGetFrameEntrySize(isa), pointer_size)); in NterpGetFrameSize()
131 NterpGetFrameEntrySize(isa) + in NterpGetFrameSize()
190 bool CanMethodUseNterp(ArtMethod* method, InstructionSet isa) { in CanMethodUseNterp() argument
199 NterpGetFrameSize(method, isa) <= interpreter::kNterpMaxFrame; in CanMethodUseNterp()
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)
Doat_file_assistant.cc80 const InstructionSet isa, in OatFileAssistant() argument
85 isa, in OatFileAssistant()
95 const InstructionSet isa, in OatFileAssistant() argument
103 isa_(isa), in OatFileAssistant()
126 if (load_executable_ && isa != kRuntimeISA) { in OatFileAssistant()
474 InstructionSet isa, in AnonymousDexVdexLocation() argument
493 if (!DexLocationToOdexFilename(*dex_location, isa, &odex_filename, &error_msg)) { in AnonymousDexVdexLocation()
520 InstructionSet isa, in DexLocationToOdexFilename() argument
543 dir += "/" + std::string(GetInstructionSetString(isa)); in DexLocationToOdexFilename()
559 InstructionSet isa, in DexLocationToOatFilename() argument
[all …]
/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/compiler/utils/
Dassembler_test_base.h77 InstructionSet isa = GetIsa(); in Driver() local
90 if (Is64BitInstructionSet(isa)) { in Driver()
103 if (Is64BitInstructionSet(isa)) { in Driver()
104 WriteElf</*IsElf64=*/true>(art_obj_file, isa, art_code); in Driver()
106 WriteElf</*IsElf64=*/false>(art_obj_file, isa, art_code); in Driver()
138 InstructionSet isa = GetIsa(); in GetAssemblerCommand() local
139 switch (isa) { in GetAssemblerCommand()
145 LOG(FATAL) << "Unknown instruction set: " << isa; in GetAssemblerCommand()
211 void WriteElf(const std::string& filename, InstructionSet isa, const std::vector<uint8_t>& code) { in WriteElf() argument
216 std::unique_ptr<ElfBuilder<ElfTypes>> builder(new ElfBuilder<ElfTypes>(isa, &out)); in WriteElf()
/art/libartbase/base/
Dfile_utils.cc424 static std::string GetApexDataDalvikCacheDirectory(InstructionSet isa) { in GetApexDataDalvikCacheDirectory() argument
425 if (isa != InstructionSet::kNone) { in GetApexDataDalvikCacheDirectory()
426 return GetDalvikCacheDirectory(GetArtApexData(), GetInstructionSetString(isa)); in GetApexDataDalvikCacheDirectory()
432 InstructionSet isa, in GetApexDataDalvikCacheFilename() argument
438 std::string apex_data_dalvik_cache = GetApexDataDalvikCacheDirectory(isa); in GetApexDataDalvikCacheFilename()
457 std::string GetApexDataOatFilename(std::string_view location, InstructionSet isa) { in GetApexDataOatFilename() argument
458 return GetApexDataDalvikCacheFilename(location, isa, /*encode_location=*/false, "oat"); in GetApexDataOatFilename()
461 std::string GetApexDataOdexFilename(std::string_view location, InstructionSet isa) { in GetApexDataOdexFilename() argument
462 return GetApexDataDalvikCacheFilename(location, isa, /*encode_location=*/true, "odex"); in GetApexDataOdexFilename()
480 InstructionSet isa, in GetApexDataDalvikCacheFilename() argument
[all …]
Dfile_utils.h94 std::string GetApexDataOatFilename(std::string_view location, InstructionSet isa);
98 std::string GetApexDataOdexFilename(std::string_view location, InstructionSet isa);
112 InstructionSet isa,
117 std::string GetSystemImageFilename(const char* location, InstructionSet isa);
Dfile_utils_test.cc217 const InstructionSet isa = InstructionSet::kArm64; in TEST_F() local
218 const std::string boot_image_filename = GetSystemImageFilename(boot_image.c_str(), isa); in TEST_F()
220 EXPECT_EQ(accompanying_oat_file, GetApexDataOatFilename(system_jar.c_str(), isa)); in TEST_F()
237 const InstructionSet isa = InstructionSet::kX86_64; in TEST_F() local
238 const std::string image_filename = GetSystemImageFilename(image.c_str(), isa); in TEST_F()
240 EXPECT_EQ(accompanying_odex_file, GetApexDataOdexFilename(jar, isa)); in TEST_F()
/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.cc468 WARN_UNUSED bool BootExtensionArtifactsExistOnData(const InstructionSet isa, in BootExtensionArtifactsExistOnData() argument
470 const std::string apexdata_image_location = GetBootImageExtensionImagePath(isa); in BootExtensionArtifactsExistOnData()
633 auto cleanup_boot_extensions_return = [this](ExitCode exit_code, InstructionSet isa) { in CheckArtifactsAreUpToDate() argument
634 return RemoveBootExtensionArtifactsFromData(isa) ? exit_code : ExitCode::kCleanupFailed; in CheckArtifactsAreUpToDate()
637 for (const InstructionSet isa : config_.GetBootExtensionIsas()) { in CheckArtifactsAreUpToDate() local
638 if (!BootExtensionArtifactsExistOnData(isa, &error_msg)) { in CheckArtifactsAreUpToDate()
641 return cleanup_boot_extensions_return(ExitCode::kCompilationRequired, isa); in CheckArtifactsAreUpToDate()
688 InstructionSet isa) { in AddDex2OatInstructionSet() argument
689 const char* isa_str = GetInstructionSetString(isa); in AddDex2OatInstructionSet()
851 WARN_UNUSED bool VerifyBootExtensionArtifactsAreUpToDate(const InstructionSet isa, in VerifyBootExtensionArtifactsAreUpToDate() argument
[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()
Dinstruction_set_features.h38 static std::unique_ptr<const InstructionSetFeatures> FromVariant(InstructionSet isa,
43 static std::unique_ptr<const InstructionSetFeatures> FromBitmap(InstructionSet isa,
/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