diff options
Diffstat (limited to 'runtime/instruction_set.cc')
-rw-r--r-- | runtime/instruction_set.cc | 93 |
1 files changed, 0 insertions, 93 deletions
diff --git a/runtime/instruction_set.cc b/runtime/instruction_set.cc index c1931a9414..5b6039647c 100644 --- a/runtime/instruction_set.cc +++ b/runtime/instruction_set.cc @@ -16,9 +16,6 @@ #include "instruction_set.h" -#include "globals.h" -#include "base/logging.h" // Logging is required for FATAL in the helper functions. - namespace art { const char* GetInstructionSetString(const InstructionSet isa) { @@ -63,75 +60,6 @@ InstructionSet GetInstructionSetFromString(const char* isa_str) { return kNone; } -size_t GetInstructionSetPointerSize(InstructionSet isa) { - switch (isa) { - case kArm: - // Fall-through. - case kThumb2: - return kArmPointerSize; - case kArm64: - return kArm64PointerSize; - case kX86: - return kX86PointerSize; - case kX86_64: - return kX86_64PointerSize; - case kMips: - return kMipsPointerSize; - case kNone: - LOG(FATAL) << "ISA kNone does not have pointer size."; - return 0; - default: - LOG(FATAL) << "Unknown ISA " << isa; - return 0; - } -} - -size_t GetBytesPerGprSpillLocation(InstructionSet isa) { - switch (isa) { - case kArm: - // Fall-through. - case kThumb2: - return 4; - case kArm64: - return 8; - case kX86: - return 4; - case kX86_64: - return 8; - case kMips: - return 4; - case kNone: - LOG(FATAL) << "ISA kNone does not have spills."; - return 0; - default: - LOG(FATAL) << "Unknown ISA " << isa; - return 0; - } -} - -size_t GetBytesPerFprSpillLocation(InstructionSet isa) { - switch (isa) { - case kArm: - // Fall-through. - case kThumb2: - return 4; - case kArm64: - return 8; - case kX86: - return 8; - case kX86_64: - return 8; - case kMips: - return 4; - case kNone: - LOG(FATAL) << "ISA kNone does not have spills."; - return 0; - default: - LOG(FATAL) << "Unknown ISA " << isa; - return 0; - } -} - size_t GetInstructionSetAlignment(InstructionSet isa) { switch (isa) { case kArm: @@ -155,27 +83,6 @@ size_t GetInstructionSetAlignment(InstructionSet isa) { } } -bool Is64BitInstructionSet(InstructionSet isa) { - switch (isa) { - case kArm: - case kThumb2: - case kX86: - case kMips: - return false; - - case kArm64: - case kX86_64: - return true; - - case kNone: - LOG(FATAL) << "ISA kNone does not have bit width."; - return 0; - default: - LOG(FATAL) << "Unknown ISA " << isa; - return 0; - } -} - std::string InstructionSetFeatures::GetFeatureString() const { std::string result; if ((mask_ & kHwDiv) != 0) { |