summaryrefslogtreecommitdiff
path: root/runtime/entrypoints/entrypoint_utils.h
diff options
context:
space:
mode:
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
commit8228cdf4ad6322ec8133564aaa51f966d36c0f17 (patch)
tree6d2f5cf4e742ad644ad30eb96a9f943c9ebcb34b /runtime/entrypoints/entrypoint_utils.h
parent83b140474aa1759739c8ee4464bf226c4fa0f6d7 (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 'runtime/entrypoints/entrypoint_utils.h')
-rw-r--r--runtime/entrypoints/entrypoint_utils.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/runtime/entrypoints/entrypoint_utils.h b/runtime/entrypoints/entrypoint_utils.h
index 69ee3ebe75..eed08aabad 100644
--- a/runtime/entrypoints/entrypoint_utils.h
+++ b/runtime/entrypoints/entrypoint_utils.h
@@ -20,6 +20,7 @@
#include <jni.h>
#include <stdint.h>
+#include "base/callee_save_type.h"
#include "base/macros.h"
#include "base/mutex.h"
#include "dex_instruction.h"
@@ -28,7 +29,6 @@
#include "handle.h"
#include "invoke_type.h"
#include "jvalue.h"
-#include "runtime.h"
namespace art {
@@ -178,7 +178,7 @@ template <typename INT_TYPE, typename FLOAT_TYPE>
inline INT_TYPE art_float_to_integral(FLOAT_TYPE f);
ArtMethod* GetCalleeSaveMethodCaller(ArtMethod** sp,
- Runtime::CalleeSaveType type,
+ CalleeSaveType type,
bool do_caller_check = false)
REQUIRES_SHARED(Locks::mutator_lock_);
@@ -187,11 +187,10 @@ struct CallerAndOuterMethod {
ArtMethod* outer_method;
};
-CallerAndOuterMethod GetCalleeSaveMethodCallerAndOuterMethod(Thread* self,
- Runtime::CalleeSaveType type)
+CallerAndOuterMethod GetCalleeSaveMethodCallerAndOuterMethod(Thread* self, CalleeSaveType type)
REQUIRES_SHARED(Locks::mutator_lock_);
-ArtMethod* GetCalleeSaveOuterMethod(Thread* self, Runtime::CalleeSaveType type)
+ArtMethod* GetCalleeSaveOuterMethod(Thread* self, CalleeSaveType type)
REQUIRES_SHARED(Locks::mutator_lock_);
} // namespace art