OSDN Git Service

Move code around in OptimizingCompiler::Compile to reduce stack space.
authorNicolas Geoffray <ngeoffray@google.com>
Fri, 9 Jan 2015 14:53:50 +0000 (14:53 +0000)
committerNicolas Geoffray <ngeoffray@google.com>
Mon, 12 Jan 2015 08:49:25 +0000 (08:49 +0000)
commit12df9ebf72255544b0147c81b1dca6644a29764e
tree93a47865d0c93922cfc036fba1f2490b64549912
parent4270e74152d8a7cd979ab5a92fe2a8f84adb8a42
Move code around in OptimizingCompiler::Compile to reduce stack space.

Also fix an (intentional) memory leak, by allocating the CodeGenerator
on the heap instead of the arena: they construct an Assembler object
that requires destruction.

BUG:18787334

Change-Id: I8cf0667cb70ce5b14d4ac334bd4487a562635f1b
compiler/optimizing/code_generator.cc
compiler/optimizing/code_generator.h
compiler/optimizing/optimizing_compiler.cc