Chromium Code Reviews| Index: src/ia32/lithium-codegen-ia32.h |
| diff --git a/src/ia32/lithium-codegen-ia32.h b/src/ia32/lithium-codegen-ia32.h |
| index b241aafb96bd1fada6f611407889895b2393ea07..a77c0d5c6cf8ced100726d1f41cad2a775528447 100644 |
| --- a/src/ia32/lithium-codegen-ia32.h |
| +++ b/src/ia32/lithium-codegen-ia32.h |
| @@ -46,26 +46,25 @@ class SafepointGenerator; |
| class LCodeGen BASE_EMBEDDED { |
| public: |
| - LCodeGen(LChunk* chunk, MacroAssembler* assembler, CompilationInfo* info, |
| - Zone* zone) |
| - : chunk_(chunk), |
| + LCodeGen(LChunk* chunk, MacroAssembler* assembler, CompilationInfo* info) |
| + : zone_(info->zone()), |
| + chunk_(chunk), |
| masm_(assembler), |
| info_(info), |
| current_block_(-1), |
| current_instruction_(-1), |
| instructions_(chunk->instructions()), |
| - deoptimizations_(4, zone), |
| - deoptimization_literals_(8, zone), |
| + deoptimizations_(4, zone_), |
|
danno
2012/06/14 14:22:19
use info->zone(), initialization order dependency
sanjoy
2012/06/15 09:24:31
Done.
|
| + deoptimization_literals_(8, zone_), |
| inlined_function_count_(0), |
| scope_(info->scope()), |
| status_(UNUSED), |
| - translations_(zone), |
| - deferred_(8, zone), |
| + translations_(zone_), |
| + deferred_(8, zone_), |
| dynamic_frame_alignment_(false), |
| osr_pc_offset_(-1), |
| last_lazy_deopt_pc_(0), |
| - safepoints_(zone), |
| - zone_(zone), |
| + safepoints_(zone_), |
| resolver_(this), |
| expected_safepoint_kind_(Safepoint::kSimple) { |
| PopulateDeoptimizationLiteralsWithInlinedFunctions(); |
| @@ -330,6 +329,7 @@ class LCodeGen BASE_EMBEDDED { |
| // register, or a stack slot operand. |
| void EmitPushTaggedOperand(LOperand* operand); |
| + Zone* zone_; |
| LChunk* const chunk_; |
| MacroAssembler* const masm_; |
| CompilationInfo* const info_; |
| @@ -352,8 +352,6 @@ class LCodeGen BASE_EMBEDDED { |
| // itself is emitted at the end of the generated code. |
| SafepointTableBuilder safepoints_; |
| - Zone* zone_; |
| - |
| // Compiler from a set of parallel moves to a sequential list of moves. |
| LGapResolver resolver_; |