summaryrefslogtreecommitdiffstats
path: root/compiler/optimizing/code_generator.cc
diff options
context:
space:
mode:
authorCalin Juravle <calin@google.com>2015-01-20 12:28:09 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2015-01-20 12:28:11 +0000
commite7fd3e3a8e7f10048b7ea558cc525331c97bbefa (patch)
treea5d1a942460fe34c82f3dce7846d004b90ebd08d /compiler/optimizing/code_generator.cc
parent606a81aab3b9289d37d828375793020b93718c6a (diff)
parentcd6dffedf1bd8e6dfb3fb0c933551f9a90f7de3f (diff)
downloadart-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.cc12
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;