| Index: src/compiler/ast-loop-assignment-analyzer.cc
|
| diff --git a/src/compiler/ast-loop-assignment-analyzer.cc b/src/compiler/ast-loop-assignment-analyzer.cc
|
| index d9ec109e40ecbaebdaf86b69169c10cc1e818367..8e5dbd3e61d1b3797123bb7ce43fd71eb9404a4c 100644
|
| --- a/src/compiler/ast-loop-assignment-analyzer.cc
|
| +++ b/src/compiler/ast-loop-assignment-analyzer.cc
|
| @@ -13,13 +13,13 @@ namespace compiler {
|
| typedef class AstLoopAssignmentAnalyzer ALAA; // for code shortitude.
|
|
|
| ALAA::AstLoopAssignmentAnalyzer(Zone* zone, CompilationInfo* info)
|
| - : info_(info), loop_stack_(zone) {
|
| - InitializeAstVisitor(info->isolate(), zone);
|
| + : info_(info), zone_(zone), loop_stack_(zone) {
|
| + InitializeAstVisitor(info->isolate());
|
| }
|
|
|
|
|
| LoopAssignmentAnalysis* ALAA::Analyze() {
|
| - LoopAssignmentAnalysis* a = new (zone()) LoopAssignmentAnalysis(zone());
|
| + LoopAssignmentAnalysis* a = new (zone_) LoopAssignmentAnalysis(zone_);
|
| result_ = a;
|
| VisitStatements(info()->literal()->body());
|
| result_ = NULL;
|
| @@ -30,7 +30,7 @@ LoopAssignmentAnalysis* ALAA::Analyze() {
|
| void ALAA::Enter(IterationStatement* loop) {
|
| int num_variables = 1 + info()->scope()->num_parameters() +
|
| info()->scope()->num_stack_slots();
|
| - BitVector* bits = new (zone()) BitVector(num_variables, zone());
|
| + BitVector* bits = new (zone_) BitVector(num_variables, zone_);
|
| if (info()->is_osr() && info()->osr_ast_id() == loop->OsrEntryId())
|
| bits->AddAll();
|
| loop_stack_.push_back(bits);
|
|
|