diff options
author | Nicolas Geoffray <ngeoffray@google.com> | 2014-07-17 18:32:41 +0100 |
---|---|---|
committer | Nicolas Geoffray <ngeoffray@google.com> | 2014-07-22 16:07:59 +0100 |
commit | f12feb8e0e857f2832545b3f28d31bad5a9d3903 (patch) | |
tree | 0a7320caf995441ea4577875abaf731fc37dd0a9 /compiler/optimizing/code_generator.cc | |
parent | ebb6b5c90857f390db5a4f840bbe67b3a59a22d8 (diff) | |
download | android_art-f12feb8e0e857f2832545b3f28d31bad5a9d3903.tar.gz android_art-f12feb8e0e857f2832545b3f28d31bad5a9d3903.tar.bz2 android_art-f12feb8e0e857f2832545b3f28d31bad5a9d3903.zip |
Stack overflow checks and NPE checks for optimizing.
Change-Id: I59e97448bf29778769b79b51ee4ea43f43493d96
Diffstat (limited to 'compiler/optimizing/code_generator.cc')
-rw-r--r-- | compiler/optimizing/code_generator.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/optimizing/code_generator.cc b/compiler/optimizing/code_generator.cc index e0db0f18be..c0964e6481 100644 --- a/compiler/optimizing/code_generator.cc +++ b/compiler/optimizing/code_generator.cc @@ -37,6 +37,9 @@ void CodeGenerator::CompileBaseline(CodeAllocator* allocator) { block_labels_.SetSize(blocks.Size()); DCHECK_EQ(frame_size_, kUninitializedFrameSize); + // The baseline compiler does not do graph analysis prior to generating + // code. + MarkNotLeaf(); ComputeFrameSize(GetGraph()->GetMaximumNumberOfOutVRegs() + GetGraph()->GetNumberOfLocalVRegs() + GetGraph()->GetNumberOfTemporaries() |