/art/compiler/optimizing/ |
D | sharpening.cc | 51 static bool BootImageAOTCanEmbedMethod(ArtMethod* method, const CompilerOptions& compiler_options) { in BootImageAOTCanEmbedMethod() argument 52 DCHECK(compiler_options.IsBootImage() || compiler_options.IsBootImageExtension()); in BootImageAOTCanEmbedMethod() 57 return compiler_options.IsImageClass(dex_file.StringByTypeIdx(klass->GetDexTypeIndex())); in BootImageAOTCanEmbedMethod() 88 const CompilerOptions& compiler_options = codegen->GetCompilerOptions(); in SharpenLoadMethod() local 99 } else if (compiler_options.IsBootImage() || compiler_options.IsBootImageExtension()) { in SharpenLoadMethod() 100 if (!compiler_options.GetCompilePic()) { in SharpenLoadMethod() 104 DCHECK(compiler_options.IsBootImageExtension()); in SharpenLoadMethod() 106 } else if (BootImageAOTCanEmbedMethod(callee, compiler_options)) { in SharpenLoadMethod() 116 } else if (compiler_options.IsJitCompiler()) { in SharpenLoadMethod() 120 compiler_options.IsJitCompilerForSharedCode())) { in SharpenLoadMethod() [all …]
|
D | codegen_test_utils.h | 56 CodeGenerator* CreateCodeGenerator(HGraph* graph, const CompilerOptions& compiler_options) { in CreateCodeGenerator() argument 57 return create_codegen_(graph, compiler_options); in CreateCodeGenerator() 88 TestCodeGeneratorARMVIXL(HGraph* graph, const CompilerOptions& compiler_options) in TestCodeGeneratorARMVIXL() argument 89 : arm::CodeGeneratorARMVIXL(graph, compiler_options) { in TestCodeGeneratorARMVIXL() 130 TestCodeGeneratorARM64(HGraph* graph, const CompilerOptions& compiler_options) in TestCodeGeneratorARM64() argument 131 : arm64::CodeGeneratorARM64(graph, compiler_options) {} in TestCodeGeneratorARM64() 148 TestCodeGeneratorX86(HGraph* graph, const CompilerOptions& compiler_options) in TestCodeGeneratorX86() argument 149 : x86::CodeGeneratorX86(graph, compiler_options) { in TestCodeGeneratorX86() 313 const CompilerOptions& compiler_options, in RunCode() argument 319 compiler_options)); in RunCode() [all …]
|
D | optimizing_compiler.cc | 106 const CompilerOptions& compiler_options) in PassObserver() argument 110 timing_logger_enabled_(compiler_options.GetDumpPassTimings()), in PassObserver() 115 visualizer_enabled_(!compiler_options.GetDumpCfgFileName().empty()), in PassObserver() 120 if (!IsVerboseMethod(compiler_options, GetMethodName())) { in PassObserver() 204 static bool IsVerboseMethod(const CompilerOptions& compiler_options, const char* method_name) { in IsVerboseMethod() argument 207 if (compiler_options.HasVerboseMethods()) { in IsVerboseMethod() 208 return compiler_options.IsVerboseMethod(method_name); in IsVerboseMethod() 271 explicit OptimizingCompiler(const CompilerOptions& compiler_options, 415 OptimizingCompiler::OptimizingCompiler(const CompilerOptions& compiler_options, in OptimizingCompiler() argument 417 : Compiler(compiler_options, storage, kMaximumCompilationTimeBeforeWarning) { in OptimizingCompiler() [all …]
|
D | codegen_test.cc | 84 std::unique_ptr<CompilerOptions> compiler_options = in TestCode() local 86 RunCode(target_config, *compiler_options, graph, [](HGraph*) {}, has_result, expected); in TestCode() 97 std::unique_ptr<CompilerOptions> compiler_options = in TestCodeLong() local 99 RunCode(target_config, *compiler_options, graph, [](HGraph*) {}, has_result, expected); in TestCodeLong() 450 std::unique_ptr<CompilerOptions> compiler_options = in TEST_F() local 452 PrepareForRegisterAllocation(graph, *compiler_options).Run(); in TEST_F() 461 RunCode(target_config, *compiler_options, graph, hook_before_codegen, true, 0); in TEST_F() 507 std::unique_ptr<CompilerOptions> compiler_options = in TEST_F() local 509 RunCode(target_config, *compiler_options, graph, hook_before_codegen, true, lhs[i] < rhs[i]); in TEST_F() 576 std::unique_ptr<CompilerOptions> compiler_options = in TEST_F() local [all …]
|
D | intrinsics.cc | 149 static bool CanReferenceBootImageObjects(HInvoke* invoke, const CompilerOptions& compiler_options) { in CanReferenceBootImageObjects() argument 153 if (compiler_options.IsAotCompiler() && in CanReferenceBootImageObjects() 157 if (!compiler_options.IsBootImage() && in CanReferenceBootImageObjects() 170 const CompilerOptions& compiler_options = codegen->GetCompilerOptions(); in ComputeIntegerValueOfLocations() local 171 if (!CanReferenceBootImageObjects(invoke, compiler_options)) { in ComputeIntegerValueOfLocations() 174 if (compiler_options.IsBootImage()) { in ComputeIntegerValueOfLocations() 175 if (!compiler_options.IsImageClass(kIntegerCacheDescriptor) || in ComputeIntegerValueOfLocations() 176 !compiler_options.IsImageClass(kIntegerDescriptor)) { in ComputeIntegerValueOfLocations() 228 if (compiler_options.IsJitCompiler()) { in ComputeIntegerValueOfLocations() 233 DCHECK(compiler_options.IsAotCompiler()); in ComputeIntegerValueOfLocations() [all …]
|
D | builder.cc | 72 const CompilerOptions& compiler_options = code_generator_->GetCompilerOptions(); in SkipCompilation() local 73 CompilerFilter::Filter compiler_filter = compiler_options.GetCompilerFilter(); in SkipCompilation() 79 if (compiler_options.IsHugeMethod(code_units)) { in SkipCompilation() 88 if (compiler_options.IsLargeMethod(code_units) && (number_of_branches == 0)) { in SkipCompilation()
|
D | prepare_for_register_allocation.h | 35 const CompilerOptions& compiler_options, 38 compiler_options_(compiler_options) {} in HGraphDelegateVisitor()
|
D | optimizing_compiler.h | 31 Compiler* CreateOptimizingCompiler(const CompilerOptions& compiler_options,
|
D | liveness_test.cc | 50 std::unique_ptr<CompilerOptions> compiler_options = in TestCode() local 52 PrepareForRegisterAllocation(graph, *compiler_options).Run(); in TestCode() 53 std::unique_ptr<CodeGenerator> codegen = CodeGenerator::Create(graph, *compiler_options); in TestCode()
|
D | linearize_test.cc | 44 std::unique_ptr<CompilerOptions> compiler_options = in TestCode() local 46 std::unique_ptr<CodeGenerator> codegen = CodeGenerator::Create(graph, *compiler_options); in TestCode()
|
D | code_generator.cc | 1003 const CompilerOptions& compiler_options, in Create() argument 1006 switch (compiler_options.GetInstructionSet()) { in Create() 1011 new (allocator) arm::CodeGeneratorARMVIXL(graph, compiler_options, stats)); in Create() 1017 new (allocator) arm64::CodeGeneratorARM64(graph, compiler_options, stats)); in Create() 1023 new (allocator) x86::CodeGeneratorX86(graph, compiler_options, stats)); in Create() 1029 new (allocator) x86_64::CodeGeneratorX86_64(graph, compiler_options, stats)); in Create() 1043 const CompilerOptions& compiler_options, in CodeGenerator() argument 1063 compiler_options_(compiler_options), in CodeGenerator()
|
D | scheduler_test.cc | 191 std::unique_ptr<CompilerOptions> compiler_options = in CompileWithRandomSchedulerAndRun() local 194 *compiler_options, in CompileWithRandomSchedulerAndRun()
|
D | instruction_builder.cc | 1482 static bool IsInBootImage(ObjPtr<mirror::Class> cls, const CompilerOptions& compiler_options) in IsInBootImage() argument 1487 if (compiler_options.IsBootImage() || compiler_options.IsBootImageExtension()) { in IsInBootImage() 1490 return compiler_options.IsImageClass(descriptor); in IsInBootImage() 1596 const CompilerOptions& compiler_options) in HasTrivialInitialization() argument 1603 if (klass->IsInitialized() && IsInBootImage(klass, compiler_options)) { in HasTrivialInitialization() 1619 if (iface->IsInitialized() && IsInBootImage(iface, compiler_options)) { in HasTrivialInitialization() 1636 const CompilerOptions& compiler_options = code_generator_->GetCompilerOptions(); in IsInitialized() local 1637 if (compiler_options.IsAotCompiler()) { in IsInitialized() 1640 if (IsInBootImage(cls, compiler_options)) { in IsInitialized() 1644 DCHECK(compiler_options.IsJitCompiler()); in IsInitialized() [all …]
|
D | intrinsics.h | 137 HInvoke* invoke, const CompilerOptions& compiler_options);
|
/art/compiler/ |
D | compiler.cc | 30 Compiler* Compiler::Create(const CompilerOptions& compiler_options, in Create() argument 40 return CreateOptimizingCompiler(compiler_options, storage); in Create()
|
D | compiler.h | 55 static Compiler* Create(const CompilerOptions& compiler_options, 101 Compiler(const CompilerOptions& compiler_options, in Compiler() argument 104 compiler_options_(compiler_options), in Compiler()
|
D | common_compiler_test.cc | 129 std::unique_ptr<CompilerOptions> compiler_options = std::make_unique<CompilerOptions>(); in CreateCompilerOptions() local 130 compiler_options->instruction_set_ = instruction_set; in CreateCompilerOptions() 132 compiler_options->instruction_set_features_ = in CreateCompilerOptions() 134 CHECK(compiler_options->instruction_set_features_ != nullptr) << error_msg; in CreateCompilerOptions() 135 return compiler_options; in CreateCompilerOptions()
|
/art/dex2oat/linker/ |
D | elf_writer_quick.cc | 88 ElfWriterQuick(const CompilerOptions& compiler_options, 137 std::unique_ptr<ElfWriter> CreateElfWriterQuick(const CompilerOptions& compiler_options, in CreateElfWriterQuick() argument 139 if (Is64BitInstructionSet(compiler_options.GetInstructionSet())) { in CreateElfWriterQuick() 140 return std::make_unique<ElfWriterQuick<ElfTypes64>>(compiler_options, elf_file); in CreateElfWriterQuick() 142 return std::make_unique<ElfWriterQuick<ElfTypes32>>(compiler_options, elf_file); in CreateElfWriterQuick() 147 ElfWriterQuick<ElfTypes>::ElfWriterQuick(const CompilerOptions& compiler_options, File* elf_file) in ElfWriterQuick() argument 149 compiler_options_(compiler_options), in ElfWriterQuick()
|
D | elf_writer_quick.h | 33 std::unique_ptr<ElfWriter> CreateElfWriterQuick(const CompilerOptions& compiler_options,
|
D | oat_writer_test.cc | 89 void SetupCompiler(const std::vector<std::string>& compiler_options) { in SetupCompiler() argument 91 if (!compiler_options_->ParseCompilerOptions(compiler_options, in SetupCompiler() 535 std::vector<std::string> compiler_options; in TEST_F() local 536 compiler_options.push_back("--compiler-filter=extract"); in TEST_F() 537 SetupCompiler(compiler_options); in TEST_F()
|
/art/compiler/jit/ |
D | jit_compiler.cc | 133 const CompilerOptions& compiler_options = GetCompilerOptions(); in TypesLoaded() local 134 if (compiler_options.GetGenerateDebugInfo()) { in TypesLoaded() 135 InstructionSet isa = compiler_options.GetInstructionSet(); in TypesLoaded() 136 const InstructionSetFeatures* features = compiler_options.GetInstructionSetFeatures(); in TypesLoaded()
|
/art/compiler/jni/quick/ |
D | jni_compiler.cc | 83 static JniCompiledMethod ArtJniCompileMethodInternal(const CompilerOptions& compiler_options, in ArtJniCompileMethodInternal() argument 94 InstructionSet instruction_set = compiler_options.GetInstructionSet(); in ArtJniCompileMethodInternal() 96 compiler_options.GetInstructionSetFeatures(); in ArtJniCompileMethodInternal() 164 jni_asm->cfi().SetEnabled(compiler_options.GenerateAnyDebugInfo()); in ArtJniCompileMethodInternal() 165 jni_asm->SetEmitRunTimeChecksInDebugMode(compiler_options.EmitRunTimeChecksInDebugMode()); in ArtJniCompileMethodInternal() 696 JniCompiledMethod ArtQuickJniCompileMethod(const CompilerOptions& compiler_options, in ArtQuickJniCompileMethod() argument 701 if (Is64BitInstructionSet(compiler_options.GetInstructionSet())) { in ArtQuickJniCompileMethod() 703 compiler_options, access_flags, method_idx, dex_file, allocator); in ArtQuickJniCompileMethod() 706 compiler_options, access_flags, method_idx, dex_file, allocator); in ArtQuickJniCompileMethod()
|
D | jni_compiler.h | 66 JniCompiledMethod ArtQuickJniCompileMethod(const CompilerOptions& compiler_options,
|
/art/dex2oat/driver/ |
D | compiler_driver.cc | 254 const CompilerOptions* compiler_options, in CompilerDriver() argument 258 : compiler_options_(compiler_options), in CompilerDriver() 270 compiler_.reset(Compiler::Create(*compiler_options, &compiled_method_storage_, compiler_kind)); in CompilerDriver() 415 static bool ShouldCompileBasedOnProfile(const CompilerOptions& compiler_options, in ShouldCompileBasedOnProfile() argument 420 if (!CompilerFilter::DependsOnProfile(compiler_options.GetCompilerFilter())) { in ShouldCompileBasedOnProfile() 424 DCHECK(compiler_options.GetProfileCompilationInfo() == nullptr || in ShouldCompileBasedOnProfile() 425 compiler_options.GetProfileCompilationInfo()->FindDexFile(*method_ref.dex_file) == in ShouldCompileBasedOnProfile() 429 DCHECK(CompilerFilter::DependsOnProfile(compiler_options.GetCompilerFilter())); in ShouldCompileBasedOnProfile() 431 compiler_options.GetProfileCompilationInfo(); in ShouldCompileBasedOnProfile() 475 const CompilerOptions& compiler_options = driver->GetCompilerOptions(); in CompileMethodQuick() local [all …]
|
/art/runtime/ |
D | common_runtime_test.cc | 440 std::vector<std::string> compiler_options = runtime->GetCompilerOptions(); in StartDex2OatCommandLine() local 441 argv->insert(argv->end(), compiler_options.begin(), compiler_options.end()); in StartDex2OatCommandLine() 495 std::vector<std::string> compiler_options = runtime->GetCompilerOptions(); in CompileBootImage() local 496 argv.insert(argv.end(), compiler_options.begin(), compiler_options.end()); in CompileBootImage()
|