Home
last modified time | relevance | path

Searched refs:quick_code (Results 1 – 10 of 10) sorted by relevance

/art/compiler/
Dcompiled_method.cc23 const ArrayRef<const uint8_t>& quick_code, bool owns_code_array) in CompiledCode() argument
26 SetCode(&quick_code); in CompiledCode()
29 void CompiledCode::SetCode(const ArrayRef<const uint8_t>* quick_code) { in SetCode() argument
30 if (quick_code != nullptr) { in SetCode()
31 CHECK(!quick_code->empty()); in SetCode()
35 quick_code_ = new SwapVector<uint8_t>(quick_code->begin(), quick_code->end(), in SetCode()
38 quick_code_ = compiler_driver_->DeduplicateCode(*quick_code); in SetCode()
126 const ArrayRef<const uint8_t>& quick_code, in CompiledMethod() argument
136 : CompiledCode(driver, instruction_set, quick_code, !driver->DedupeEnabled()), in CompiledMethod()
173 const ArrayRef<const uint8_t>& quick_code, in SwapAllocCompiledMethod() argument
[all …]
Doat_test.cc66 const SwapVector<uint8_t>* quick_code = compiled_method->GetQuickCode(); in CheckMethod() local
67 EXPECT_TRUE(quick_code != nullptr); in CheckMethod()
68 size_t code_size = quick_code->size() * sizeof(quick_code[0]); in CheckMethod()
69 EXPECT_EQ(0, memcmp(quick_oat_code, &quick_code[0], code_size)) in CheckMethod()
71 CHECK_EQ(0, memcmp(quick_oat_code, &quick_code[0], code_size)); in CheckMethod()
Dcompiled_method.h38 const ArrayRef<const uint8_t>& quick_code, bool owns_code_array);
50 void SetCode(const ArrayRef<const uint8_t>* quick_code);
314 const ArrayRef<const uint8_t>& quick_code,
330 const ArrayRef<const uint8_t>& quick_code,
Dimage_writer.cc1335 const uint8_t* quick_code = GetOatAddress(quick_oat_code_offset); in GetQuickCode() local
1337 if (quick_code != nullptr && (!method->IsStatic() || method->IsConstructor() || in GetQuickCode()
1340 DCHECK_GE(quick_code, oat_data_begin_); in GetQuickCode()
1341 } else if (quick_code == nullptr && method->IsNative() && in GetQuickCode()
1344 quick_code = GetOatAddress(quick_generic_jni_trampoline_offset_); in GetQuickCode()
1345 DCHECK_GE(quick_code, oat_data_begin_); in GetQuickCode()
1346 } else if (quick_code == nullptr && !method->IsNative()) { in GetQuickCode()
1348 quick_code = GetOatAddress(quick_to_interpreter_bridge_offset_); in GetQuickCode()
1350 DCHECK_GE(quick_code, oat_data_begin_); in GetQuickCode()
1355 quick_code = GetOatAddress(quick_resolution_trampoline_offset_); in GetQuickCode()
[all …]
Doat_writer.cc376 const SwapVector<uint8_t>* quick_code = compiled_method->GetQuickCode(); in VisitMethod() local
377 CHECK(quick_code != nullptr); in VisitMethod()
378 uint32_t code_size = quick_code->size() * sizeof(uint8_t); in VisitMethod()
691 const SwapVector<uint8_t>* quick_code = compiled_method->GetQuickCode(); in VisitMethod() local
692 if (quick_code != nullptr) { in VisitMethod()
694 ArrayRef<const uint8_t> wrapped(*quick_code); in VisitMethod()
695 uint32_t code_size = quick_code->size() * sizeof(uint8_t); in VisitMethod()
733 patched_code_.assign(quick_code->begin(), quick_code->end()); in VisitMethod()
/art/compiler/jit/
Djit_compiler.cc217 const auto* quick_code = compiled_method->GetQuickCode(); in WriteMethodHeaderAndCode() local
219 CHECK_LE(quick_code->size(), static_cast<size_t>(reserve_end - reserve_begin)); in WriteMethodHeaderAndCode()
226 const auto code_size = quick_code->size(); in WriteMethodHeaderAndCode()
228 std::copy(quick_code->data(), quick_code->data() + code_size, code_ptr); in WriteMethodHeaderAndCode()
242 const auto* quick_code = compiled_method->GetQuickCode(); in AddToCodeCache() local
243 if (quick_code == nullptr) { in AddToCodeCache()
246 const auto code_size = quick_code->size(); in AddToCodeCache()
270 const size_t reserve_size = sizeof(OatQuickMethodHeader) + quick_code->size() + 32; in AddToCodeCache()
280 reinterpret_cast<char*>(code_ptr + quick_code->size())); in AddToCodeCache()
/art/runtime/
Dinstrumentation.cc89 static void UpdateEntrypoints(ArtMethod* method, const void* quick_code) in UpdateEntrypoints() argument
101 method->SetEntryPointFromQuickCompiledCode(quick_code); in UpdateEntrypoints()
104 if (class_linker->IsQuickToInterpreterBridge(quick_code) || in UpdateEntrypoints()
105 (class_linker->IsQuickResolutionStub(quick_code) && in UpdateEntrypoints()
659 void Instrumentation::UpdateMethodsCode(ArtMethod* method, const void* quick_code) { in UpdateMethodsCode() argument
663 new_quick_code = quick_code; in UpdateMethodsCode()
669 if (class_linker->IsQuickResolutionStub(quick_code) || in UpdateMethodsCode()
670 class_linker->IsQuickToInterpreterBridge(quick_code)) { in UpdateMethodsCode()
671 new_quick_code = quick_code; in UpdateMethodsCode()
675 new_quick_code = quick_code; in UpdateMethodsCode()
[all …]
Dinstrumentation.h208 void UpdateMethodsCode(ArtMethod* method, const void* quick_code)
Dclass_linker.cc2121 static bool NeedsInterpreter(ArtMethod* method, const void* quick_code) in NeedsInterpreter() argument
2123 if (quick_code == nullptr) { in NeedsInterpreter()
2171 const void* quick_code = nullptr; in FixupStaticTrampolines() local
2174 quick_code = oat_method.GetQuickCode(); in FixupStaticTrampolines()
2176 const bool enter_interpreter = NeedsInterpreter(method, quick_code); in FixupStaticTrampolines()
2180 if (quick_code == nullptr && method->IsNative()) { in FixupStaticTrampolines()
2181 quick_code = GetQuickGenericJniStub(); in FixupStaticTrampolines()
2183 quick_code = GetQuickToInterpreterBridge(); in FixupStaticTrampolines()
2186 runtime->GetInstrumentation()->UpdateMethodsCode(method, quick_code); in FixupStaticTrampolines()
/art/oatdump/
Doatdump.cc1165 const void* quick_code = oat_method.GetQuickCode(); in DumpGcMap() local
1168 const uint8_t* native_pc = reinterpret_cast<const uint8_t*>(quick_code) + in DumpGcMap()
1176 const void* quick_code = oat_method.GetQuickCode(); in DumpMappingTable() local
1177 if (quick_code == nullptr) { in DumpMappingTable()
1327 const void* quick_code = oat_method.GetQuickCode(); in DumpCode() local
1332 if (code_size == 0 || quick_code == nullptr) { in DumpCode()
1336 const uint8_t* quick_native_pc = reinterpret_cast<const uint8_t*>(quick_code); in DumpCode()
1667 const void* quick_code = m->GetEntryPointFromQuickCompiledCodePtrSize( in GetQuickOatCodeBegin() local
1669 if (Runtime::Current()->GetClassLinker()->IsQuickResolutionStub(quick_code)) { in GetQuickOatCodeBegin()
1670 quick_code = oat_dumper_->GetQuickOatCode(m); in GetQuickOatCodeBegin()
[all …]