diff options
author | Andreas Gampe <agampe@google.com> | 2017-05-30 15:03:54 -0700 |
---|---|---|
committer | Andreas Gampe <agampe@google.com> | 2017-06-08 13:13:15 -0700 |
commit | 8228cdf4ad6322ec8133564aaa51f966d36c0f17 (patch) | |
tree | 6d2f5cf4e742ad644ad30eb96a9f943c9ebcb34b /compiler/common_compiler_test.cc | |
parent | 83b140474aa1759739c8ee4464bf226c4fa0f6d7 (diff) |
ART: Move CalleeSaveType to callee_save_type.h
Move the type out of runtime to decrease dependencies. Make it
a proper enum class. Fix up usage.
Test: m test-art-host
Change-Id: Id84c44bf3c59f37c8a43548e720c5fb65707b198
Diffstat (limited to 'compiler/common_compiler_test.cc')
-rw-r--r-- | compiler/common_compiler_test.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/compiler/common_compiler_test.cc b/compiler/common_compiler_test.cc index a1ee68faeb..3683695a1b 100644 --- a/compiler/common_compiler_test.cc +++ b/compiler/common_compiler_test.cc @@ -19,6 +19,7 @@ #include "arch/instruction_set_features.h" #include "art_field-inl.h" #include "art_method-inl.h" +#include "base/callee_save_type.h" #include "base/enums.h" #include "class_linker.h" #include "compiled_method.h" @@ -166,8 +167,8 @@ void CommonCompilerTest::SetUp() { instruction_set_features_ = InstructionSetFeatures::FromCppDefines(); runtime_->SetInstructionSet(instruction_set); - for (int i = 0; i < Runtime::kLastCalleeSaveType; i++) { - Runtime::CalleeSaveType type = Runtime::CalleeSaveType(i); + for (uint32_t i = 0; i < static_cast<uint32_t>(CalleeSaveType::kLastCalleeSaveType); ++i) { + CalleeSaveType type = CalleeSaveType(i); if (!runtime_->HasCalleeSaveMethod(type)) { runtime_->SetCalleeSaveMethod(runtime_->CreateCalleeSaveMethod(), type); } |