summaryrefslogtreecommitdiffstats
path: root/runtime/runtime.cc
diff options
context:
space:
mode:
authorAndreas Gampe <agampe@google.com>2015-03-29 20:52:57 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2015-03-29 20:52:59 +0000
commit68e22f3b982ff9ccbdfb3b65b7cfc16fcae907ba (patch)
tree9de353620b2cd8712e3ae8e37352bcd6133217de /runtime/runtime.cc
parentd6c93101f81fbdcd68b0fa2965d8af3877d15ea4 (diff)
parent4585f876eb5dfb936bd0d6cb6acd78a1f2182ba6 (diff)
downloadart-68e22f3b982ff9ccbdfb3b65b7cfc16fcae907ba.zip
art-68e22f3b982ff9ccbdfb3b65b7cfc16fcae907ba.tar.gz
art-68e22f3b982ff9ccbdfb3b65b7cfc16fcae907ba.tar.bz2
Merge "ART: Some runtime cleanup"
Diffstat (limited to 'runtime/runtime.cc')
-rw-r--r--runtime/runtime.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/runtime/runtime.cc b/runtime/runtime.cc
index ffe3dc6..c462153 100644
--- a/runtime/runtime.cc
+++ b/runtime/runtime.cc
@@ -50,9 +50,11 @@
#include "arch/x86_64/registers_x86_64.h"
#include "asm_support.h"
#include "atomic.h"
+#include "base/arena_allocator.h"
#include "base/dumpable.h"
#include "base/unix_file/fd_file.h"
#include "class_linker.h"
+#include "compiler_callbacks.h"
#include "debugger.h"
#include "elf_file.h"
#include "entrypoints/runtime_asm_entrypoints.h"
@@ -1653,4 +1655,12 @@ void Runtime::CreateJit() {
}
}
+bool Runtime::CanRelocate() const {
+ return !IsAotCompiler() || compiler_callbacks_->IsRelocationPossible();
+}
+
+bool Runtime::IsCompilingBootImage() const {
+ return IsCompiler() && compiler_callbacks_->IsBootImage();
+}
+
} // namespace art