| 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 "hydrogen-flow-engine.h" | 5 #include "src/hydrogen-flow-engine.h" |
| 6 #include "hydrogen-instructions.h" | 6 #include "src/hydrogen-instructions.h" |
| 7 #include "hydrogen-removable-simulates.h" | 7 #include "src/hydrogen-removable-simulates.h" |
| 8 | 8 |
| 9 namespace v8 { | 9 namespace v8 { |
| 10 namespace internal { | 10 namespace internal { |
| 11 | 11 |
| 12 class State : public ZoneObject { | 12 class State : public ZoneObject { |
| 13 public: | 13 public: |
| 14 explicit State(Zone* zone) | 14 explicit State(Zone* zone) |
| 15 : zone_(zone), mergelist_(2, zone), first_(true), mode_(NORMAL) { } | 15 : zone_(zone), mergelist_(2, zone), first_(true), mode_(NORMAL) { } |
| 16 | 16 |
| 17 State* Process(HInstruction* instr, Zone* zone) { | 17 State* Process(HInstruction* instr, Zone* zone) { |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 }; | 171 }; |
| 172 | 172 |
| 173 | 173 |
| 174 void HMergeRemovableSimulatesPhase::Run() { | 174 void HMergeRemovableSimulatesPhase::Run() { |
| 175 HFlowEngine<State, Effects> engine(graph(), zone()); | 175 HFlowEngine<State, Effects> engine(graph(), zone()); |
| 176 State* state = new(zone()) State(zone()); | 176 State* state = new(zone()) State(zone()); |
| 177 engine.AnalyzeDominatedBlocks(graph()->blocks()->at(0), state); | 177 engine.AnalyzeDominatedBlocks(graph()->blocks()->at(0), state); |
| 178 } | 178 } |
| 179 | 179 |
| 180 } } // namespace v8::internal | 180 } } // namespace v8::internal |
| OLD | NEW |