summaryrefslogtreecommitdiffstats
path: root/runtime/runtime.h
diff options
context:
space:
mode:
authorNicolas Geoffray <ngeoffray@google.com>2015-02-24 08:11:23 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2015-02-24 08:11:24 +0000
commitf548c54c69443ba94fcee89daca6f5f499d71e9a (patch)
treeaff0f707cb27e303d3b9de53f961bf48e38ad5be /runtime/runtime.h
parent9e87baff2eee8e8ae0700c7391ca4447dbe142b0 (diff)
parenta5ca888d715cd0c6c421313211caa1928be3e399 (diff)
downloadart-f548c54c69443ba94fcee89daca6f5f499d71e9a.tar.gz
art-f548c54c69443ba94fcee89daca6f5f499d71e9a.tar.bz2
art-f548c54c69443ba94fcee89daca6f5f499d71e9a.zip
Merge "Revert "Add JIT""
Diffstat (limited to 'runtime/runtime.h')
-rw-r--r--runtime/runtime.h31
1 files changed, 4 insertions, 27 deletions
diff --git a/runtime/runtime.h b/runtime/runtime.h
index 5078b7f1d6..944c8bd0dd 100644
--- a/runtime/runtime.h
+++ b/runtime/runtime.h
@@ -48,12 +48,6 @@ namespace gc {
class GarbageCollector;
} // namespace collector
} // namespace gc
-
-namespace jit {
- class Jit;
- class JitOptions;
-} // namespace jit
-
namespace mirror {
class ArtMethod;
class ClassLoader;
@@ -101,18 +95,12 @@ class Runtime {
static bool Create(const RuntimeOptions& options, bool ignore_unrecognized)
SHARED_TRYLOCK_FUNCTION(true, Locks::mutator_lock_);
- // IsAotCompiler for compilers that don't have a running runtime. Only dex2oat currently.
- bool IsAotCompiler() const {
- return !UseJit() && IsCompiler();
- }
-
- // IsCompiler is any runtime which has a running compiler, either dex2oat or JIT.
bool IsCompiler() const {
return compiler_callbacks_ != nullptr;
}
bool CanRelocate() const {
- return !IsAotCompiler() || compiler_callbacks_->IsRelocationPossible();
+ return !IsCompiler() || compiler_callbacks_->IsRelocationPossible();
}
bool ShouldRelocate() const {
@@ -351,7 +339,9 @@ class Runtime {
return !imt_conflict_method_.IsNull();
}
- void SetImtConflictMethod(mirror::ArtMethod* method);
+ void SetImtConflictMethod(mirror::ArtMethod* method) {
+ imt_conflict_method_ = GcRoot<mirror::ArtMethod>(method);
+ }
void SetImtUnimplementedMethod(mirror::ArtMethod* method) {
imt_unimplemented_method_ = GcRoot<mirror::ArtMethod>(method);
}
@@ -431,14 +421,6 @@ class Runtime {
kUnload,
kInitialize
};
-
- jit::Jit* GetJit() {
- return jit_.get();
- }
- bool UseJit() const {
- return jit_.get() != nullptr;
- }
-
void PreZygoteFork();
bool InitZygote();
void DidForkFromZygote(JNIEnv* env, NativeBridgeAction action, const char* isa);
@@ -543,8 +525,6 @@ class Runtime {
return zygote_max_failed_boots_;
}
- void CreateJit();
-
private:
static void InitPlatformSignalHandlers();
@@ -624,9 +604,6 @@ class Runtime {
JavaVMExt* java_vm_;
- std::unique_ptr<jit::Jit> jit_;
- std::unique_ptr<jit::JitOptions> jit_options_;
-
// Fault message, printed when we get a SIGSEGV.
Mutex fault_message_lock_ DEFAULT_MUTEX_ACQUIRED_AFTER;
std::string fault_message_ GUARDED_BY(fault_message_lock_);