Home
last modified time | relevance | path

Searched refs:driver (Results 1 – 25 of 32) sorted by relevance

12

/art/compiler/
Dcompiled_method.cc143 CompiledMethod::CompiledMethod(CompilerDriver* driver, in CompiledMethod() argument
153 : CompiledCode(driver, instruction_set, quick_code), frame_size_in_bytes_(frame_size_in_bytes), in CompiledMethod()
155 mapping_table_(driver->DeduplicateMappingTable(mapping_table)), in CompiledMethod()
156 vmap_table_(driver->DeduplicateVMapTable(vmap_table)), in CompiledMethod()
157 gc_map_(driver->DeduplicateGCMap(native_gc_map)), in CompiledMethod()
158 cfi_info_(cfi_info.data() == nullptr ? nullptr : driver->DeduplicateCFIInfo(cfi_info)) { in CompiledMethod()
161 CompiledMethod::CompiledMethod(CompilerDriver* driver, in CompiledMethod() argument
167 : CompiledCode(driver, instruction_set, code), in CompiledMethod()
171 mapping_table_ = driver->DeduplicateMappingTable(ArrayRef<const uint8_t>()); in CompiledMethod()
172 vmap_table_ = driver->DeduplicateVMapTable(ArrayRef<const uint8_t>()); in CompiledMethod()
[all …]
Dcompiler.cc66 extern "C" void ArtInitCompilerContext(art::CompilerDriver* driver);
68 extern "C" void ArtUnInitCompilerContext(art::CompilerDriver* driver);
70 extern "C" art::CompiledMethod* ArtCompileMethod(art::CompilerDriver* driver,
79 extern "C" art::CompiledMethod* ArtLLVMJniCompileMethod(art::CompilerDriver* driver,
83 extern "C" void compilerLLVMSetBitcodeFileName(art::CompilerDriver* driver,
89 explicit LLVMCompiler(CompilerDriver* driver) : Compiler(driver, 1000) {} in LLVMCompiler() argument
141 bool is_host, const CompilerDriver& driver) const in WriteElf()
145 file, oat_writer, dex_files, android_root, is_host, driver); in WriteElf()
165 void SetBitcodeFileName(const CompilerDriver& driver, const std::string& filename) { in SetBitcodeFileName() argument
171 set_bitcode_file_name(driver, filename); in SetBitcodeFileName()
[all …]
Delf_patcher.h36 static bool Patch(const CompilerDriver* driver, ElfFile* elf_file,
42 static bool Patch(const CompilerDriver* driver, ElfFile* elf_file,
48 static bool Patch(const CompilerDriver* driver, ElfFile* elf_file, in Patch() argument
52 return ElfPatcher::Patch(driver, elf_file, oat_location, in Patch()
56 static bool Patch(const CompilerDriver* driver, ElfFile* elf_file, in Patch() argument
60 return ElfPatcher::Patch(driver, elf_file, oat_file, oat_data_begin, in Patch()
65 ElfPatcher(const CompilerDriver* driver, ElfFile* elf_file, const OatFile* oat_file, in ElfPatcher() argument
68 : compiler_driver_(driver), elf_file_(elf_file), oat_file_(oat_file), in ElfPatcher()
Dcompiler.h44 static Compiler* Create(CompilerDriver* driver, Kind kind);
90 void SetBitcodeFileName(const CompilerDriver& driver, const std::string& filename) { in SetBitcodeFileName() argument
91 UNUSED(driver); in SetBitcodeFileName()
107 virtual std::vector<uint8_t>* GetCallFrameInformationInitialization(const CompilerDriver& driver) in GetCallFrameInformationInitialization() argument
113 explicit Compiler(CompilerDriver* driver, uint64_t warning) : in Compiler() argument
114 driver_(driver), maximum_compilation_time_before_warning_(warning) { in Compiler()
Dcompiled_method.h109 CompiledMethod(CompilerDriver* driver,
121 CompiledMethod(CompilerDriver* driver,
129 CompiledMethod(CompilerDriver* driver, InstructionSet instruction_set, const std::string& code,
133 CompiledMethod(CompilerDriver* driver, InstructionSet instruction_set, const std::string& code,
138 static CompiledMethod* SwapAllocCompiledMethod(CompilerDriver* driver,
149 static CompiledMethod* SwapAllocCompiledMethod(CompilerDriver* driver,
156 static void ReleaseSwapAllocatedCompiledMethod(CompilerDriver* driver, CompiledMethod* m);
Dcompilers.cc26 extern "C" void ArtInitQuickCompilerContext(art::CompilerDriver* driver);
27 extern "C" void ArtUnInitQuickCompilerContext(art::CompilerDriver* driver);
28 extern "C" art::CompiledMethod* ArtQuickCompileMethod(art::CompilerDriver* driver,
37 extern "C" art::CompiledMethod* ArtQuickJniCompileMethod(art::CompilerDriver* driver,
132 const CompilerDriver& driver) const { in GetCallFrameInformationInitialization()
133 if (driver.GetInstructionSet() == kX86) { in GetCallFrameInformationInitialization()
136 if (driver.GetInstructionSet() == kX86_64) { in GetCallFrameInformationInitialization()
Dcompilers.h26 explicit QuickCompiler(CompilerDriver* driver) : Compiler(driver, 100) {} in QuickCompiler() argument
67 std::vector<uint8_t>* GetCallFrameInformationInitialization(const CompilerDriver& driver) const
76 explicit OptimizingCompiler(CompilerDriver* driver);
Delf_writer.h48 ElfWriter(const CompilerDriver& driver, File* elf_file) in ElfWriter() argument
49 : compiler_driver_(&driver), elf_file_(elf_file) { in ElfWriter()
Delf_writer_mclinker.h48 const CompilerDriver& driver)
60 ElfWriterMclinker(const CompilerDriver& driver, File* elf_file);
Delf_writer_quick.h34 const CompilerDriver& driver)
46 ElfWriterQuick(const CompilerDriver& driver, File* elf_file) in ElfWriterQuick() argument
47 : ElfWriter(driver, elf_file) {} in ElfWriterQuick()
Delf_patcher.cc39 bool ElfPatcher::Patch(const CompilerDriver* driver, ElfFile* elf_file, in Patch() argument
55 return ElfPatcher::Patch(driver, elf_file, oat_file, in Patch()
59 bool ElfPatcher::Patch(const CompilerDriver* driver, ElfFile* elf, const OatFile* oat_file, in Patch() argument
73 ElfPatcher p(driver, elf, oat_file, oat_header, oat_data_start, cb, cb_data, error_msg); in Patch()
Delf_writer_mclinker.cc47 ElfWriterMclinker::ElfWriterMclinker(const CompilerDriver& driver, File* elf_file) in ElfWriterMclinker() argument
48 : ElfWriter(driver, elf_file), oat_input_(nullptr) { in ElfWriterMclinker()
59 const CompilerDriver& driver) { in Create() argument
60 ElfWriterMclinker elf_writer(driver, elf_file); in Create()
/art/compiler/llvm/
Dcompiler_llvm.cc41 void CompileOneMethod(CompilerDriver& driver,
112 CompilerLLVM::CompilerLLVM(CompilerDriver* driver, InstructionSet insn_set) in CompilerLLVM() argument
113 : compiler_driver_(driver), insn_set_(insn_set), in CompilerLLVM()
178 static art::llvm::CompilerLLVM* ContextOf(art::CompilerDriver* driver) { in ContextOf() argument
179 void *compiler_context = driver->GetCompilerContext(); in ContextOf()
184 static art::llvm::CompilerLLVM* ContextOf(const art::CompilerDriver& driver) { in ContextOf() argument
185 void *compiler_context = driver.GetCompilerContext(); in ContextOf()
190 extern "C" void ArtInitCompilerContext(art::CompilerDriver* driver) { in ArtInitCompilerContext() argument
191 CHECK(driver->GetCompilerContext() == nullptr); in ArtInitCompilerContext()
193 art::llvm::CompilerLLVM* compiler_llvm = new art::llvm::CompilerLLVM(driver, in ArtInitCompilerContext()
[all …]
Dllvm_compilation_unit.h81 void SetCompilerDriver(CompilerDriver* driver) { in SetCompilerDriver() argument
82 driver_ = driver; in SetCompilerDriver()
Dcompiler_llvm.h60 CompilerLLVM(CompilerDriver* driver, InstructionSet insn_set);
/art/compiler/dex/
Dfrontend.cc35 extern "C" void ArtInitQuickCompilerContext(art::CompilerDriver* driver) { in ArtInitQuickCompilerContext() argument
36 CHECK(driver->GetCompilerContext() == nullptr); in ArtInitQuickCompilerContext()
39 extern "C" void ArtUnInitQuickCompilerContext(art::CompilerDriver* driver) { in ArtUnInitQuickCompilerContext() argument
40 CHECK(driver->GetCompilerContext() == nullptr); in ArtUnInitQuickCompilerContext()
618 static CompiledMethod* CompileMethod(CompilerDriver& driver, in CompileMethod() argument
643 if (!driver.GetCompilerOptions().IsCompilationEnabled()) { in CompileMethod()
648 CompilationUnit cu(driver.GetArenaPool()); in CompileMethod()
650 cu.compiler_driver = &driver; in CompileMethod()
652 cu.instruction_set = driver.GetInstructionSet(); in CompileMethod()
801 driver.GetTimingsLogger()->AddLogger(cu.timings); in CompileMethod()
[all …]
Ddex_to_dex_compiler.cc274 extern "C" void ArtCompileDEX(art::CompilerDriver& driver, const art::DexFile::CodeItem* code_item, in ArtCompileDEX() argument
282 driver.GetVerifiedMethod(&dex_file, method_idx)); in ArtCompileDEX()
283 art::optimizer::DexCompiler dex_compiler(driver, unit, dex_to_dex_compilation_level); in ArtCompileDEX()
Dfrontend.h117 extern "C" art::CompiledMethod* ArtCompileMethod(art::CompilerDriver& driver,
/art/compiler/optimizing/
Dbuilder.h37 CompilerDriver* driver = nullptr)
49 compiler_driver_(driver) {} in arena_()
Doptimizing_compiler.cc68 OptimizingCompiler::OptimizingCompiler(CompilerDriver* driver) : QuickCompiler(driver) { in OptimizingCompiler() argument
/art/compiler/jni/portable/
Djni_compiler.h57 CompilerDriver* driver,
Djni_compiler.cc53 CompilerDriver* driver, in JniCompiler() argument
55 : cunit_(cunit), driver_(driver), module_(cunit_->GetModule()), in JniCompiler()
/art/dex2oat/
Ddex2oat.cc390 std::unique_ptr<CompilerDriver> driver(new CompilerDriver(compiler_options_, in CreateOatFile() local
406 driver->GetCompiler()->SetBitcodeFileName(*driver.get(), bitcode_filename); in CreateOatFile()
408 driver->CompileAll(class_loader, dex_files, &timings); in CreateOatFile()
415 if (!driver->IsImage()) { in CreateOatFile()
432 driver.get(), in CreateOatFile()
437 if (!driver->WriteElf(android_root, is_host, dex_files, &oat_writer, oat_file)) { in CreateOatFile()
452 if (!driver->IsImage() && driver->GetCompilerOptions().GetIncludePatchInformation()) { in CreateOatFile()
455 if (!PatchOatCode(driver.get(), oat_file, oat_location, &error_msg)) { in CreateOatFile()
462 return driver.release(); in CreateOatFile()
/art/compiler/driver/
Dcompiler_driver.h821 typedef void (*CompilerCallbackFn)(CompilerDriver& driver);
822 typedef MutexLock* (*CompilerMutexLockFn)(CompilerDriver& driver);
826 typedef void (*DexToDexCompilerFn)(CompilerDriver& driver,
841 typedef void (*CompilerEnableAutoElfLoadingFn)(CompilerDriver& driver);
845 (const CompilerDriver& driver, const CompiledMethod* cm, const mirror::ArtMethod* method);
/art/compiler/jni/quick/
Djni_compiler.cc57 CompiledMethod* ArtJniCompileMethodInternal(CompilerDriver* driver, in ArtJniCompileMethodInternal() argument
65 InstructionSet instruction_set = driver->GetInstructionSet(); in ArtJniCompileMethodInternal()
437 return CompiledMethod::SwapAllocCompiledMethod(driver, in ArtJniCompileMethodInternal()

12