| 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 #ifndef V8_COMPILER_NODE_MATCHERS_H_ | 5 #ifndef V8_COMPILER_NODE_MATCHERS_H_ |
| 6 #define V8_COMPILER_NODE_MATCHERS_H_ | 6 #define V8_COMPILER_NODE_MATCHERS_H_ |
| 7 | 7 |
| 8 #include <cmath> | 8 #include <cmath> |
| 9 | 9 |
| 10 // TODO(turbofan): Move ExternalReference out of assembler.h | 10 // TODO(turbofan): Move ExternalReference out of assembler.h |
| 11 #include "src/assembler.h" | 11 #include "src/assembler.h" |
| 12 #include "src/compiler/node.h" | 12 #include "src/compiler/node.h" |
| 13 #include "src/compiler/operator.h" | 13 #include "src/compiler/operator.h" |
| 14 #include "src/unique.h" | |
| 15 | 14 |
| 16 namespace v8 { | 15 namespace v8 { |
| 17 namespace internal { | 16 namespace internal { |
| 18 namespace compiler { | 17 namespace compiler { |
| 19 | 18 |
| 20 // A pattern matcher for nodes. | 19 // A pattern matcher for nodes. |
| 21 struct NodeMatcher { | 20 struct NodeMatcher { |
| 22 explicit NodeMatcher(Node* node) : node_(node) {} | 21 explicit NodeMatcher(Node* node) : node_(node) {} |
| 23 | 22 |
| 24 Node* node() const { return node_; } | 23 Node* node() const { return node_; } |
| (...skipping 584 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 609 Node* branch_; | 608 Node* branch_; |
| 610 Node* if_true_; | 609 Node* if_true_; |
| 611 Node* if_false_; | 610 Node* if_false_; |
| 612 }; | 611 }; |
| 613 | 612 |
| 614 } // namespace compiler | 613 } // namespace compiler |
| 615 } // namespace internal | 614 } // namespace internal |
| 616 } // namespace v8 | 615 } // namespace v8 |
| 617 | 616 |
| 618 #endif // V8_COMPILER_NODE_MATCHERS_H_ | 617 #endif // V8_COMPILER_NODE_MATCHERS_H_ |
| OLD | NEW |