diff options
| author | 2016-04-13 10:41:20 +0000 | |
|---|---|---|
| committer | 2016-04-13 10:41:20 +0000 | |
| commit | 38e398b7e1cb82c26838ef78dd71a7bf93e58995 (patch) | |
| tree | 2d312456ca0f4368806abc40545da952b5eb0dfd /compiler/optimizing/code_generator.h | |
| parent | f9eed16e175f8c7cb37d878acc772d653b07101e (diff) | |
| parent | d58b837ae41c6d8ce010c362e8f85bd938715900 (diff) | |
Merge "Allocate code generators on the arena."
Diffstat (limited to 'compiler/optimizing/code_generator.h')
| -rw-r--r-- | compiler/optimizing/code_generator.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/compiler/optimizing/code_generator.h b/compiler/optimizing/code_generator.h index 1a060b1f58..87832a2d9f 100644 --- a/compiler/optimizing/code_generator.h +++ b/compiler/optimizing/code_generator.h @@ -166,15 +166,15 @@ class FieldAccessCallingConvention { DISALLOW_COPY_AND_ASSIGN(FieldAccessCallingConvention); }; -class CodeGenerator { +class CodeGenerator : public DeletableArenaObject<kArenaAllocCodeGenerator> { public: // Compiles the graph to executable instructions. void Compile(CodeAllocator* allocator); - static CodeGenerator* Create(HGraph* graph, - InstructionSet instruction_set, - const InstructionSetFeatures& isa_features, - const CompilerOptions& compiler_options, - OptimizingCompilerStats* stats = nullptr); + static std::unique_ptr<CodeGenerator> Create(HGraph* graph, + InstructionSet instruction_set, + const InstructionSetFeatures& isa_features, + const CompilerOptions& compiler_options, + OptimizingCompilerStats* stats = nullptr); virtual ~CodeGenerator() {} // Get the graph. This is the outermost graph, never the graph of a method being inlined. |