| OLD | NEW |
| 1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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/compiler/loop-peeling.h" |
| 5 #include "src/compiler/common-operator.h" | 6 #include "src/compiler/common-operator.h" |
| 6 #include "src/compiler/graph.h" | 7 #include "src/compiler/graph.h" |
| 7 #include "src/compiler/loop-peeling.h" | |
| 8 #include "src/compiler/node.h" | |
| 9 #include "src/compiler/node-marker.h" | 8 #include "src/compiler/node-marker.h" |
| 10 #include "src/compiler/node-properties.h" | 9 #include "src/compiler/node-properties.h" |
| 11 #include "src/zone.h" | 10 #include "src/compiler/node.h" |
| 11 #include "src/zone/zone.h" |
| 12 | 12 |
| 13 // Loop peeling is an optimization that copies the body of a loop, creating | 13 // Loop peeling is an optimization that copies the body of a loop, creating |
| 14 // a new copy of the body called the "peeled iteration" that represents the | 14 // a new copy of the body called the "peeled iteration" that represents the |
| 15 // first iteration. Beginning with a loop as follows: | 15 // first iteration. Beginning with a loop as follows: |
| 16 | 16 |
| 17 // E | 17 // E |
| 18 // | A | 18 // | A |
| 19 // | | (backedges) | 19 // | | (backedges) |
| 20 // | +---------------|---------------------------------+ | 20 // | +---------------|---------------------------------+ |
| 21 // | | +-------------|-------------------------------+ | | 21 // | | +-------------|-------------------------------+ | |
| (...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 382 queue.push(control); | 382 queue.push(control); |
| 383 } | 383 } |
| 384 } | 384 } |
| 385 } | 385 } |
| 386 } | 386 } |
| 387 } | 387 } |
| 388 | 388 |
| 389 } // namespace compiler | 389 } // namespace compiler |
| 390 } // namespace internal | 390 } // namespace internal |
| 391 } // namespace v8 | 391 } // namespace v8 |
| OLD | NEW |