summaryrefslogtreecommitdiff
path: root/compiler/optimizing/code_generator.h
diff options
context:
space:
mode:
authorNicolas Geoffray <ngeoffray@google.com>2015-01-12 10:46:18 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2015-01-12 10:46:18 +0000
commit11adb76fbc2dc3d8cbb6665945ff5d6733e2a8e6 (patch)
treef1a5cb2ce14e1592dd557c28bd1e1ba3c5ea071e /compiler/optimizing/code_generator.h
parentf3401f7a21c99ebec7355de27ab7bc0840f28726 (diff)
parent12df9ebf72255544b0147c81b1dca6644a29764e (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.h7
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;