| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "src/hydrogen-flow-engine.h" | 5 #include "src/crankshaft/hydrogen-removable-simulates.h" |
| 6 #include "src/hydrogen-instructions.h" | 6 |
| 7 #include "src/hydrogen-removable-simulates.h" | 7 #include "src/crankshaft/hydrogen-flow-engine.h" |
| 8 #include "src/crankshaft/hydrogen-instructions.h" |
| 8 | 9 |
| 9 namespace v8 { | 10 namespace v8 { |
| 10 namespace internal { | 11 namespace internal { |
| 11 | 12 |
| 12 class State : public ZoneObject { | 13 class State : public ZoneObject { |
| 13 public: | 14 public: |
| 14 explicit State(Zone* zone) | 15 explicit State(Zone* zone) |
| 15 : zone_(zone), mergelist_(2, zone), first_(true), mode_(NORMAL) { } | 16 : zone_(zone), mergelist_(2, zone), first_(true), mode_(NORMAL) { } |
| 16 | 17 |
| 17 State* Process(HInstruction* instr, Zone* zone) { | 18 State* Process(HInstruction* instr, Zone* zone) { |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 | 180 |
| 180 | 181 |
| 181 void HMergeRemovableSimulatesPhase::Run() { | 182 void HMergeRemovableSimulatesPhase::Run() { |
| 182 HFlowEngine<State, Effects> engine(graph(), zone()); | 183 HFlowEngine<State, Effects> engine(graph(), zone()); |
| 183 State* state = new(zone()) State(zone()); | 184 State* state = new(zone()) State(zone()); |
| 184 engine.AnalyzeDominatedBlocks(graph()->blocks()->at(0), state); | 185 engine.AnalyzeDominatedBlocks(graph()->blocks()->at(0), state); |
| 185 } | 186 } |
| 186 | 187 |
| 187 } // namespace internal | 188 } // namespace internal |
| 188 } // namespace v8 | 189 } // namespace v8 |
| OLD | NEW |