diff options
| author | 2015-06-01 05:22:48 +0000 | |
|---|---|---|
| committer | 2015-06-01 05:22:48 +0000 | |
| commit | a96bea54b7e3def5490d169f2bf92be2e68dd001 (patch) | |
| tree | 6255ee152eb537b68f1828539f32ae1e9584be88 /compiler/optimizing/code_generator.cc | |
| parent | 442dd37d27b44ab4f86be3a8ec26afedbfe911f9 (diff) | |
| parent | e3b034a6f6f0d80d519ab08bdd18be4de2a4a2db (diff) | |
Merge "Fix some ArtMethod related bugs"
Diffstat (limited to 'compiler/optimizing/code_generator.cc')
| -rw-r--r-- | compiler/optimizing/code_generator.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/optimizing/code_generator.cc b/compiler/optimizing/code_generator.cc index c106d3064c..0cd63a679c 100644 --- a/compiler/optimizing/code_generator.cc +++ b/compiler/optimizing/code_generator.cc @@ -124,13 +124,14 @@ void CodeGenerator::CompileBaseline(CodeAllocator* allocator, bool is_leaf) { if (!is_leaf) { MarkNotLeaf(); } + const bool is_64_bit = Is64BitInstructionSet(GetInstructionSet()); InitializeCodeGeneration(GetGraph()->GetNumberOfLocalVRegs() + GetGraph()->GetTemporariesVRegSlots() + 1 /* filler */, 0, /* the baseline compiler does not have live registers at slow path */ 0, /* the baseline compiler does not have live registers at slow path */ GetGraph()->GetMaximumNumberOfOutVRegs() - + 1 /* current method */, + + (is_64_bit ? 2 : 1) /* current method */, GetGraph()->GetBlocks()); CompileInternal(allocator, /* is_baseline */ true); } |