/art/libartbase/arch/ |
D | instruction_set.h | 29 enum class InstructionSet { enum 39 std::ostream& operator<<(std::ostream& os, InstructionSet rhs); 42 static constexpr InstructionSet kRuntimeISA = InstructionSet::kArm; 44 static constexpr InstructionSet kRuntimeISA = InstructionSet::kArm64; 46 static constexpr InstructionSet kRuntimeISA = InstructionSet::kRiscv64; 48 static constexpr InstructionSet kRuntimeISA = InstructionSet::kX86; 50 static constexpr InstructionSet kRuntimeISA = InstructionSet::kX86_64; 52 static constexpr InstructionSet kRuntimeISA = InstructionSet::kNone; 84 const char* GetInstructionSetString(InstructionSet isa); 87 InstructionSet GetInstructionSetFromString(const char* instruction_set); [all …]
|
D | instruction_set.cc | 27 void InstructionSetAbort(InstructionSet isa) { in InstructionSetAbort() 29 case InstructionSet::kArm: in InstructionSetAbort() 30 case InstructionSet::kThumb2: in InstructionSetAbort() 31 case InstructionSet::kArm64: in InstructionSetAbort() 32 case InstructionSet::kRiscv64: in InstructionSetAbort() 33 case InstructionSet::kX86: in InstructionSetAbort() 34 case InstructionSet::kX86_64: in InstructionSetAbort() 35 case InstructionSet::kNone: in InstructionSetAbort() 43 const char* GetInstructionSetString(InstructionSet isa) { in GetInstructionSetString() 45 case InstructionSet::kArm: in GetInstructionSetString() [all …]
|
D | instruction_set_test.cc | 26 EXPECT_EQ(InstructionSet::kArm, GetInstructionSetFromString("arm")); in TEST() 27 EXPECT_EQ(InstructionSet::kArm64, GetInstructionSetFromString("arm64")); in TEST() 28 EXPECT_EQ(InstructionSet::kX86, GetInstructionSetFromString("x86")); in TEST() 29 EXPECT_EQ(InstructionSet::kX86_64, GetInstructionSetFromString("x86_64")); in TEST() 30 EXPECT_EQ(InstructionSet::kNone, GetInstructionSetFromString("none")); in TEST() 31 EXPECT_EQ(InstructionSet::kNone, GetInstructionSetFromString("random-string")); in TEST() 35 EXPECT_STREQ("arm", GetInstructionSetString(InstructionSet::kArm)); in TEST() 36 EXPECT_STREQ("arm", GetInstructionSetString(InstructionSet::kThumb2)); in TEST() 37 EXPECT_STREQ("arm64", GetInstructionSetString(InstructionSet::kArm64)); in TEST() 38 EXPECT_STREQ("x86", GetInstructionSetString(InstructionSet::kX86)); in TEST() [all …]
|
/art/runtime/arch/ |
D | instruction_set_features.cc | 34 InstructionSet isa, const std::string& variant, std::string* error_msg) { in FromVariant() 36 case InstructionSet::kArm: in FromVariant() 37 case InstructionSet::kThumb2: in FromVariant() 39 case InstructionSet::kArm64: in FromVariant() 41 case InstructionSet::kRiscv64: in FromVariant() 43 case InstructionSet::kX86: in FromVariant() 45 case InstructionSet::kX86_64: in FromVariant() 56 InstructionSet isa, const std::string& variant, std::string* error_msg) { in FromVariantAndHwcap() 67 if (isa == InstructionSet::kArm64) { in FromVariantAndHwcap() 82 std::unique_ptr<const InstructionSetFeatures> InstructionSetFeatures::FromBitmap(InstructionSet isa, in FromBitmap() [all …]
|
/art/runtime/oat/ |
D | jni_stub_hash_map.cc | 38 static char TranslateReturnTypeToJniShorty(char ch, InstructionSet isa = InstructionSet::kNone) { in TranslateReturnTypeToJniShorty() 53 case InstructionSet::kArm64: in TranslateReturnTypeToJniShorty() 56 case InstructionSet::kX86_64: in TranslateReturnTypeToJniShorty() 65 static constexpr size_t GetMaxIntLikeRegisterArgs(InstructionSet isa) { in GetMaxIntLikeRegisterArgs() 67 case InstructionSet::kArm64: in GetMaxIntLikeRegisterArgs() 69 case InstructionSet::kX86_64: in GetMaxIntLikeRegisterArgs() 77 static constexpr size_t GetMaxFloatOrDoubleRegisterArgs(InstructionSet isa) { in GetMaxFloatOrDoubleRegisterArgs() 79 case InstructionSet::kArm64: in GetMaxFloatOrDoubleRegisterArgs() 81 case InstructionSet::kX86_64: in GetMaxFloatOrDoubleRegisterArgs() 109 template<InstructionSet kIsa> [all …]
|
D | oat_file_assistant.h | 166 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, 545 const InstructionSet isa_ = InstructionSet::kNone;
|
/art/odrefresh/ |
D | odr_config.h | 128 InstructionSet isa_; 150 isa_(InstructionSet::kNone), in OdrConfig() 152 artifact_dir_(GetApexDataDalvikCacheDirectory(InstructionSet::kNone)), in OdrConfig() 157 std::vector<InstructionSet> GetBootClasspathIsas() const { in GetBootClasspathIsas() 161 CHECK_NE(isa32, art::InstructionSet::kNone); in GetBootClasspathIsas() 164 CHECK_NE(isa32, art::InstructionSet::kNone); in GetBootClasspathIsas() 165 CHECK_NE(isa64, art::InstructionSet::kNone); in GetBootClasspathIsas() 168 CHECK_NE(isa32, art::InstructionSet::kNone); in GetBootClasspathIsas() 169 CHECK_NE(isa64, art::InstructionSet::kNone); in GetBootClasspathIsas() 172 CHECK_NE(isa64, art::InstructionSet::kNone); in GetBootClasspathIsas() [all …]
|
/art/runtime/arch/x86/ |
D | instruction_set_features_x86_test.cc | 24 const bool is_runtime_isa = kRuntimeISA == InstructionSet::kX86; in TEST() 27 InstructionSetFeatures::FromVariant(InstructionSet::kX86, "default", &error_msg)); in TEST() 29 EXPECT_EQ(x86_features->GetInstructionSet(), InstructionSet::kX86); in TEST() 42 InstructionSetFeatures::FromVariant(InstructionSet::kX86, "atom", &error_msg)); in TEST() 44 EXPECT_EQ(x86_features->GetInstructionSet(), InstructionSet::kX86); in TEST() 52 InstructionSetFeatures::FromVariant(InstructionSet::kX86_64, "atom", &error_msg)); in TEST() 54 EXPECT_EQ(x86_64_features->GetInstructionSet(), InstructionSet::kX86_64); in TEST() 67 InstructionSetFeatures::FromVariant(InstructionSet::kX86, "sandybridge", &error_msg)); in TEST() 69 EXPECT_EQ(x86_features->GetInstructionSet(), InstructionSet::kX86); in TEST() 77 InstructionSetFeatures::FromVariant(InstructionSet::kX86_64, "sandybridge", &error_msg)); in TEST() [all …]
|
/art/disassembler/ |
D | disassembler.cc | 49 Disassembler* Disassembler::Create(InstructionSet instruction_set, DisassemblerOptions* options) { in Create() 52 case InstructionSet::kArm: in Create() 53 case InstructionSet::kThumb2: in Create() 57 case InstructionSet::kArm64: in Create() 61 case InstructionSet::kRiscv64: in Create() 65 case InstructionSet::kX86: in Create() 69 case InstructionSet::kX86_64: in Create() 88 Disassembler* create_disassembler(InstructionSet instruction_set, DisassemblerOptions* options) { in create_disassembler()
|
/art/libartbase/base/ |
D | file_utils_test.cc | 70 GetSystemImageFilename("/system/framework/boot.art", InstructionSet::kArm).c_str()); in TEST_F() 194 GetApexDataOatFilename("/product/javalib/beep.jar", InstructionSet::kArm)); in TEST_F() 197 EXPECT_EQ(std::string{}, GetApexDataOatFilename(art_apex_jar, InstructionSet::kArm)); in TEST_F() 200 EXPECT_EQ(std::string{}, GetApexDataOatFilename(i18n_jar, InstructionSet::kArm)); in TEST_F() 204 GetApexDataOatFilename("/system/framework/lace.jar", InstructionSet::kX86)); in TEST_F() 212 GetApexDataOdexFilename("/data/some/code.dex", InstructionSet::kArm)); in TEST_F() 217 GetApexDataOdexFilename(art_apex_jar, InstructionSet::kArm)); in TEST_F() 222 GetApexDataOdexFilename(i18n_jar, InstructionSet::kArm)); in TEST_F() 227 GetApexDataOdexFilename("/system/framework/cookie.jar", InstructionSet::kX86)); in TEST_F() 244 const InstructionSet isa = InstructionSet::kArm64; in TEST_F() [all …]
|
/art/runtime/ |
D | prebuilt_tools_test.cc | 30 static void CheckToolsExist(InstructionSet isa) { in CheckToolsExist() 40 CheckToolsExist(InstructionSet::kX86); in TEST_F() 41 CheckToolsExist(InstructionSet::kX86_64); in TEST_F() 45 CheckToolsExist(InstructionSet::kThumb2); in TEST_F() 46 CheckToolsExist(InstructionSet::kArm64); in TEST_F()
|
D | nterp_helpers.cc | 91 static constexpr size_t NterpGetFrameEntrySize(InstructionSet isa) { in NterpGetFrameEntrySize() 96 case InstructionSet::kX86: in NterpGetFrameEntrySize() 102 case InstructionSet::kX86_64: in NterpGetFrameEntrySize() 107 case InstructionSet::kArm: in NterpGetFrameEntrySize() 108 case InstructionSet::kThumb2: in NterpGetFrameEntrySize() 112 case InstructionSet::kArm64: in NterpGetFrameEntrySize() 116 case InstructionSet::kRiscv64: in NterpGetFrameEntrySize() 129 static uint16_t GetNumberOfOutRegs(const CodeItemDataAccessor& accessor, InstructionSet isa) { in GetNumberOfOutRegs() 132 case InstructionSet::kX86: { in GetNumberOfOutRegs() 143 static uint16_t GetNumberOfOutRegs(ArtMethod* method, InstructionSet isa) in GetNumberOfOutRegs() [all …]
|
/art/runtime/arch/arm64/ |
D | instruction_set_features_arm64_test.cc | 27 InstructionSetFeatures::FromVariant(InstructionSet::kArm64, "default", &error_msg)); in TEST() 29 EXPECT_EQ(arm64_features->GetInstructionSet(), InstructionSet::kArm64); in TEST() 35 InstructionSetFeatures::FromVariant(InstructionSet::kArm64, "cortex-a57", &error_msg)); in TEST() 37 EXPECT_EQ(cortex_a57_features->GetInstructionSet(), InstructionSet::kArm64); in TEST() 45 InstructionSetFeatures::FromVariant(InstructionSet::kArm64, "cortex-a73", &error_msg)); in TEST() 47 EXPECT_EQ(cortex_a73_features->GetInstructionSet(), InstructionSet::kArm64); in TEST() 59 InstructionSetFeatures::FromVariant(InstructionSet::kArm64, "cortex-a35", &error_msg)); in TEST() 61 EXPECT_EQ(cortex_a35_features->GetInstructionSet(), InstructionSet::kArm64); in TEST() 68 InstructionSetFeatures::FromVariant(InstructionSet::kArm64, "kryo", &error_msg)); in TEST() 70 EXPECT_EQ(kryo_features->GetInstructionSet(), InstructionSet::kArm64); in TEST() [all …]
|
/art/compiler/debug/ |
D | elf_debug_loc_writer.h | 34 static Reg GetDwarfCoreReg(InstructionSet isa, int machine_reg) { in GetDwarfCoreReg() 36 case InstructionSet::kArm: in GetDwarfCoreReg() 37 case InstructionSet::kThumb2: in GetDwarfCoreReg() 39 case InstructionSet::kArm64: in GetDwarfCoreReg() 41 case InstructionSet::kRiscv64: in GetDwarfCoreReg() 43 case InstructionSet::kX86: in GetDwarfCoreReg() 45 case InstructionSet::kX86_64: in GetDwarfCoreReg() 47 case InstructionSet::kNone: in GetDwarfCoreReg() 53 static Reg GetDwarfFpReg(InstructionSet isa, int machine_reg) { in GetDwarfFpReg() 55 case InstructionSet::kArm: in GetDwarfFpReg() [all …]
|
/art/compiler/jni/quick/ |
D | calling_convention.cc | 53 InstructionSet instruction_set) { in Create() 56 case InstructionSet::kArm: in Create() 57 case InstructionSet::kThumb2: in Create() 63 case InstructionSet::kArm64: in Create() 69 case InstructionSet::kRiscv64: in Create() 75 case InstructionSet::kX86: in Create() 81 case InstructionSet::kX86_64: in Create() 154 InstructionSet instruction_set) { in Create() 157 case InstructionSet::kArm: in Create() 158 case InstructionSet::kThumb2: in Create() [all …]
|
/art/runtime/entrypoints/quick/ |
D | callee_save_frame.h | 72 template <InstructionSet> 77 struct CSFSelector<InstructionSet::kArm> { 81 struct CSFSelector<InstructionSet::kArm64> { 85 struct CSFSelector<InstructionSet::kRiscv64> { 89 struct CSFSelector<InstructionSet::kX86> { 93 struct CSFSelector<InstructionSet::kX86_64> {
|
/art/runtime/entrypoints/jni/ |
D | jni_entrypoints.cc | 145 case InstructionSet::kArm: in artCriticalNativeFrameSize() 146 case InstructionSet::kThumb2: in artCriticalNativeFrameSize() 148 case InstructionSet::kArm64: in artCriticalNativeFrameSize() 150 case InstructionSet::kRiscv64: in artCriticalNativeFrameSize() 152 case InstructionSet::kX86: in artCriticalNativeFrameSize() 154 case InstructionSet::kX86_64: in artCriticalNativeFrameSize() 182 case InstructionSet::kArm: in artCriticalNativeFrameSize() 183 case InstructionSet::kThumb2: in artCriticalNativeFrameSize() 185 case InstructionSet::kArm64: in artCriticalNativeFrameSize() 187 case InstructionSet::kRiscv64: in artCriticalNativeFrameSize() [all …]
|
/art/compiler/ |
D | common_compiler_test.h | 47 static std::unique_ptr<CompilerOptions> CreateCompilerOptions(InstructionSet instruction_set, 56 InstructionSet instruction_set); 72 void OverrideInstructionSetFeatures(InstructionSet instruction_set, const std::string& variant); 76 InstructionSet instruction_set_ = 77 (kRuntimeISA == InstructionSet::kArm) ? InstructionSet::kThumb2 : kRuntimeISA;
|
D | common_compiler_test.cc | 53 InstructionSet instruction_set) { in CodeAndMetadata() 134 CompiledMethod* CreateCompiledMethod(InstructionSet instruction_set, in CreateCompiledMethod() 141 CHECK_EQ(instruction_set_, InstructionSet::kNone); in CreateCompiledMethod() 142 CHECK_NE(instruction_set, InstructionSet::kNone); in CreateCompiledMethod() 167 InstructionSet GetInstructionSet() const { in GetInstructionSet() 168 CHECK_NE(instruction_set_, InstructionSet::kNone); in GetInstructionSet() 183 InstructionSet instruction_set_ = InstructionSet::kNone; 189 InstructionSet instruction_set, const std::string& variant) { in CreateCompilerOptions() 205 InstructionSet instruction_set) { in MakeExecutable() 229 if (instruction_set_ == InstructionSet::kThumb2) { in ApplyInstructionSet() [all …]
|
/art/test/dexpreopt/ |
D | dexpreopt_test.cc | 63 android::base::Result<std::vector<std::pair<std::string, InstructionSet>>> GetZygoteNamesAndIsas() { in GetZygoteNamesAndIsas() 64 std::vector<std::pair<std::string, InstructionSet>> names_and_isas; in GetZygoteNamesAndIsas() 73 case InstructionSet::kArm: in GetZygoteNamesAndIsas() 74 case InstructionSet::kArm64: in GetZygoteNamesAndIsas() 76 names_and_isas.push_back(std::make_pair(kZygote32, InstructionSet::kArm)); in GetZygoteNamesAndIsas() 79 names_and_isas.push_back(std::make_pair(kZygote64, InstructionSet::kArm64)); in GetZygoteNamesAndIsas() 82 case InstructionSet::kX86: in GetZygoteNamesAndIsas() 83 case InstructionSet::kX86_64: in GetZygoteNamesAndIsas() 85 names_and_isas.push_back(std::make_pair(kZygote32, InstructionSet::kX86)); in GetZygoteNamesAndIsas() 88 names_and_isas.push_back(std::make_pair(kZygote64, InstructionSet::kX86_64)); in GetZygoteNamesAndIsas() [all …]
|
/art/simulator/ |
D | code_simulator.cc | 23 CodeSimulator* CodeSimulator::CreateCodeSimulator(InstructionSet target_isa) { in CreateCodeSimulator() 25 case InstructionSet::kArm64: in CreateCodeSimulator() 32 CodeSimulator* CreateCodeSimulator(InstructionSet target_isa) { in CreateCodeSimulator()
|
/art/dex2oat/driver/ |
D | compiled_method.h | 42 InstructionSet instruction_set, 47 InstructionSet GetInstructionSet() const { in GetInstructionSet() 59 static size_t AlignCode(size_t offset, InstructionSet instruction_set); 67 MinimumBitsToStore(static_cast<size_t>(InstructionSet::kLast)); 90 using InstructionSetField = BitField<InstructionSet, 0u, kInstructionSetFieldSize>; 106 InstructionSet instruction_set, 116 InstructionSet instruction_set,
|
/art/runtime/arch/arm/ |
D | instruction_set_features_arm_test.cc | 27 InstructionSetFeatures::FromVariant(InstructionSet::kArm, "krait", &error_msg)); in TEST() 30 ASSERT_EQ(krait_features->GetInstructionSet(), InstructionSet::kArm); in TEST() 39 InstructionSetFeatures::FromVariant(InstructionSet::kArm, "kryo", &error_msg)); in TEST() 42 ASSERT_EQ(kryo_features->GetInstructionSet(), InstructionSet::kArm); in TEST() 51 InstructionSetFeatures::FromVariant(InstructionSet::kArm, "generic", &error_msg)); in TEST() 64 InstructionSetFeatures::FromVariant(InstructionSet::kArm, "arm6", &error_msg)); in TEST() 72 InstructionSetFeatures::FromVariant(InstructionSet::kArm, "generic", &error_msg)); in TEST() 80 ASSERT_EQ(krait_features->GetInstructionSet(), InstructionSet::kArm); in TEST() 92 ASSERT_EQ(kryo_features->GetInstructionSet(), InstructionSet::kArm); in TEST()
|
/art/compiler/utils/ |
D | jni_macro_assembler.cc | 52 InstructionSet instruction_set, in Create() 59 case InstructionSet::kArm: in Create() 60 case InstructionSet::kThumb2: in Create() 64 case InstructionSet::kX86: in Create() 79 InstructionSet instruction_set, in Create() 86 case InstructionSet::kArm64: in Create() 90 case InstructionSet::kRiscv64: in Create() 94 case InstructionSet::kX86_64: in Create()
|
/art/dex2oat/linker/ |
D | relative_patcher.cc | 41 InstructionSet instruction_set, in Create() 103 case InstructionSet::kX86: in Create() 107 case InstructionSet::kX86_64: in Create() 111 case InstructionSet::kArm: in Create() 113 case InstructionSet::kThumb2: in Create() 118 case InstructionSet::kArm64: in Create() 125 case InstructionSet::kRiscv64: in Create()
|