summaryrefslogtreecommitdiff
path: root/compiler/optimizing/code_generator.cc
diff options
context:
space:
mode:
author Nicolas Geoffray <ngeoffray@google.com> 2015-01-12 10:46:18 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2015-01-12 10:46:18 +0000
commit11adb76fbc2dc3d8cbb6665945ff5d6733e2a8e6 (patch)
treef1a5cb2ce14e1592dd557c28bd1e1ba3c5ea071e /compiler/optimizing/code_generator.cc
parentf3401f7a21c99ebec7355de27ab7bc0840f28726 (diff)
parent12df9ebf72255544b0147c81b1dca6644a29764e (diff)
Merge "Move code around in OptimizingCompiler::Compile to reduce stack space."
Diffstat (limited to 'compiler/optimizing/code_generator.cc')
-rw-r--r--compiler/optimizing/code_generator.cc11
1 files changed, 5 insertions, 6 deletions
diff --git a/compiler/optimizing/code_generator.cc b/compiler/optimizing/code_generator.cc
index ada0fb75d7..0c1ff9bff5 100644
--- a/compiler/optimizing/code_generator.cc
+++ b/compiler/optimizing/code_generator.cc
@@ -325,26 +325,25 @@ bool CodeGenerator::GoesToNextBlock(HBasicBlock* current, HBasicBlock* next) con
return current->GetBlockId() + 1 == next->GetBlockId();
}
-CodeGenerator* CodeGenerator::Create(ArenaAllocator* allocator,
- HGraph* graph,
+CodeGenerator* CodeGenerator::Create(HGraph* graph,
InstructionSet instruction_set,
const InstructionSetFeatures& isa_features) {
switch (instruction_set) {
case kArm:
case kThumb2: {
- return new (allocator) arm::CodeGeneratorARM(graph,
+ return new arm::CodeGeneratorARM(graph,
isa_features.AsArmInstructionSetFeatures());
}
case kArm64: {
- return new (allocator) arm64::CodeGeneratorARM64(graph);
+ return new arm64::CodeGeneratorARM64(graph);
}
case kMips:
return nullptr;
case kX86: {
- return new (allocator) x86::CodeGeneratorX86(graph);
+ return new x86::CodeGeneratorX86(graph);
}
case kX86_64: {
- return new (allocator) x86_64::CodeGeneratorX86_64(graph);
+ return new x86_64::CodeGeneratorX86_64(graph);
}
default:
return nullptr;