diff options
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 |
commit | 11adb76fbc2dc3d8cbb6665945ff5d6733e2a8e6 (patch) | |
tree | f1a5cb2ce14e1592dd557c28bd1e1ba3c5ea071e /compiler/optimizing/code_generator.h | |
parent | f3401f7a21c99ebec7355de27ab7bc0840f28726 (diff) | |
parent | 12df9ebf72255544b0147c81b1dca6644a29764e (diff) |
Merge "Move code around in OptimizingCompiler::Compile to reduce stack space."
Diffstat (limited to 'compiler/optimizing/code_generator.h')
-rw-r--r-- | compiler/optimizing/code_generator.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/compiler/optimizing/code_generator.h b/compiler/optimizing/code_generator.h index 9880239c88..8d28f3da25 100644 --- a/compiler/optimizing/code_generator.h +++ b/compiler/optimizing/code_generator.h @@ -77,16 +77,16 @@ class SlowPathCode : public ArenaObject<kArenaAllocSlowPaths> { DISALLOW_COPY_AND_ASSIGN(SlowPathCode); }; -class CodeGenerator : public ArenaObject<kArenaAllocMisc> { +class CodeGenerator { public: // Compiles the graph to executable instructions. Returns whether the compilation // succeeded. void CompileBaseline(CodeAllocator* allocator, bool is_leaf = false); void CompileOptimized(CodeAllocator* allocator); - static CodeGenerator* Create(ArenaAllocator* allocator, - HGraph* graph, + static CodeGenerator* Create(HGraph* graph, InstructionSet instruction_set, const InstructionSetFeatures& isa_features); + virtual ~CodeGenerator() {} HGraph* GetGraph() const { return graph_; } @@ -213,7 +213,6 @@ class CodeGenerator : public ArenaObject<kArenaAllocMisc> { slow_paths_(graph->GetArena(), 8), is_leaf_(true), stack_map_stream_(graph->GetArena()) {} - ~CodeGenerator() {} // Register allocation logic. void AllocateRegistersLocally(HInstruction* instruction) const; |