diff options
author | Calin Juravle <calin@google.com> | 2015-01-20 12:28:09 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2015-01-20 12:28:11 +0000 |
commit | e7fd3e3a8e7f10048b7ea558cc525331c97bbefa (patch) | |
tree | a5d1a942460fe34c82f3dce7846d004b90ebd08d /compiler/optimizing/code_generator.cc | |
parent | 606a81aab3b9289d37d828375793020b93718c6a (diff) | |
parent | cd6dffedf1bd8e6dfb3fb0c933551f9a90f7de3f (diff) | |
download | art-e7fd3e3a8e7f10048b7ea558cc525331c97bbefa.tar.gz art-e7fd3e3a8e7f10048b7ea558cc525331c97bbefa.tar.bz2 art-e7fd3e3a8e7f10048b7ea558cc525331c97bbefa.zip |
Merge "Add implicit null checks for the optimizing compiler"
Diffstat (limited to 'compiler/optimizing/code_generator.cc')
-rw-r--r-- | compiler/optimizing/code_generator.cc | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/compiler/optimizing/code_generator.cc b/compiler/optimizing/code_generator.cc index 85724fa7c8..cdfd989bb8 100644 --- a/compiler/optimizing/code_generator.cc +++ b/compiler/optimizing/code_generator.cc @@ -330,23 +330,25 @@ bool CodeGenerator::GoesToNextBlock(HBasicBlock* current, HBasicBlock* next) con CodeGenerator* CodeGenerator::Create(HGraph* graph, InstructionSet instruction_set, - const InstructionSetFeatures& isa_features) { + const InstructionSetFeatures& isa_features, + const CompilerOptions& compiler_options) { switch (instruction_set) { case kArm: case kThumb2: { return new arm::CodeGeneratorARM(graph, - isa_features.AsArmInstructionSetFeatures()); + *isa_features.AsArmInstructionSetFeatures(), + compiler_options); } case kArm64: { - return new arm64::CodeGeneratorARM64(graph); + return new arm64::CodeGeneratorARM64(graph, compiler_options); } case kMips: return nullptr; case kX86: { - return new x86::CodeGeneratorX86(graph); + return new x86::CodeGeneratorX86(graph, compiler_options); } case kX86_64: { - return new x86_64::CodeGeneratorX86_64(graph); + return new x86_64::CodeGeneratorX86_64(graph, compiler_options); } default: return nullptr; |