Lines Matching refs:jit
17 #include "jit.h"
32 namespace jit {
46 void Jit::DumpInfo(std::ostream& os) {
54 void Jit::AddTimingLogger(const TimingLogger& logger) {
58 Jit::Jit()
61 cumulative_timings_("JIT timings") {
64 Jit* Jit::Create(JitOptions* options, std::string* error_msg) {
65 std::unique_ptr<Jit> jit(new Jit);
66 jit->dump_info_on_shutdown_ = options->DumpJitInfoOnShutdown();
67 if (!jit->LoadCompiler(error_msg)) {
70 jit->code_cache_.reset(JitCodeCache::Create(options->GetCodeCacheCapacity(), error_msg));
71 if (jit->GetCodeCache() == nullptr) {
74 LOG(INFO) << "JIT created with code_cache_capacity="
77 return jit.release();
80 bool Jit::LoadCompiler(std::string* error_msg) {
85 oss << "JIT could not load libart-compiler.so: " << dlerror();
93 *error_msg = "JIT couldn't find jit_load entry point";
100 *error_msg = "JIT couldn't find jit_unload entry point";
107 *error_msg = "JIT couldn't find jit_compile_method entry point";
111 VLOG(jit) << "Calling JitLoad interpreter_only="
116 *error_msg = "JIT couldn't load compiler";
121 *error_msg = "JIT compiler callbacks were not set";
129 bool Jit::CompileMethod(ArtMethod* method, Thread* self) {
132 VLOG(jit) << "JIT not compiling " << PrettyMethod(method) << " due to breakpoint";
142 void Jit::CreateThreadPool() {
147 void Jit::DeleteThreadPool() {
153 Jit::~Jit() {
166 void Jit::CreateInstrumentationCache(size_t compile_threshold) {
170 // Add Jit interpreter instrumentation, tells the interpreter when to notify the jit to compile
172 instrumentation_cache_.reset(new jit::JitInstrumentationCache(compile_threshold));
174 new jit::JitInstrumentationListener(instrumentation_cache_.get()),
180 } // namespace jit