OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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-analysis.h" | 5 #include "src/compiler/loop-analysis.h" |
6 | 6 |
7 #include "src/compiler/graph.h" | 7 #include "src/compiler/graph.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 namespace v8 { | 13 namespace v8 { |
14 namespace internal { | 14 namespace internal { |
15 namespace compiler { | 15 namespace compiler { |
16 | 16 |
17 #define OFFSET(x) ((x)&0x1f) | 17 #define OFFSET(x) ((x)&0x1f) |
18 #define BIT(x) (1u << OFFSET(x)) | 18 #define BIT(x) (1u << OFFSET(x)) |
19 #define INDEX(x) ((x) >> 5) | 19 #define INDEX(x) ((x) >> 5) |
20 | 20 |
21 // Temporary information for each node during marking. | 21 // Temporary information for each node during marking. |
(...skipping 499 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
521 if (first->opcode() == IrOpcode::kLoop) return first; | 521 if (first->opcode() == IrOpcode::kLoop) return first; |
522 DCHECK(IrOpcode::IsPhiOpcode(first->opcode())); | 522 DCHECK(IrOpcode::IsPhiOpcode(first->opcode())); |
523 Node* header = NodeProperties::GetControlInput(first); | 523 Node* header = NodeProperties::GetControlInput(first); |
524 DCHECK_EQ(IrOpcode::kLoop, header->opcode()); | 524 DCHECK_EQ(IrOpcode::kLoop, header->opcode()); |
525 return header; | 525 return header; |
526 } | 526 } |
527 | 527 |
528 } // namespace compiler | 528 } // namespace compiler |
529 } // namespace internal | 529 } // namespace internal |
530 } // namespace v8 | 530 } // namespace v8 |
OLD | NEW |