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_UNITTESTS_COMPILER_GRAPH_UNITTEST_H_ | 5 #ifndef V8_UNITTESTS_COMPILER_GRAPH_UNITTEST_H_ |
6 #define V8_UNITTESTS_COMPILER_GRAPH_UNITTEST_H_ | 6 #define V8_UNITTESTS_COMPILER_GRAPH_UNITTEST_H_ |
7 | 7 |
8 #include "src/compiler/common-operator.h" | 8 #include "src/compiler/common-operator.h" |
9 #include "src/compiler/graph.h" | 9 #include "src/compiler/graph.h" |
10 #include "src/compiler/typer.h" | 10 #include "src/compiler/typer.h" |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 Node* Int64Constant(int64_t value); | 43 Node* Int64Constant(int64_t value); |
44 Node* NumberConstant(volatile double value); | 44 Node* NumberConstant(volatile double value); |
45 Node* HeapConstant(const Handle<HeapObject>& value); | 45 Node* HeapConstant(const Handle<HeapObject>& value); |
46 Node* HeapConstant(const Unique<HeapObject>& value); | 46 Node* HeapConstant(const Unique<HeapObject>& value); |
47 Node* FalseConstant(); | 47 Node* FalseConstant(); |
48 Node* TrueConstant(); | 48 Node* TrueConstant(); |
49 Node* UndefinedConstant(); | 49 Node* UndefinedConstant(); |
50 | 50 |
51 Matcher<Node*> IsFalseConstant(); | 51 Matcher<Node*> IsFalseConstant(); |
52 Matcher<Node*> IsTrueConstant(); | 52 Matcher<Node*> IsTrueConstant(); |
| 53 Matcher<Node*> IsUndefinedConstant(); |
53 | 54 |
54 CommonOperatorBuilder* common() { return &common_; } | 55 CommonOperatorBuilder* common() { return &common_; } |
55 Graph* graph() { return &graph_; } | 56 Graph* graph() { return &graph_; } |
56 | 57 |
57 private: | 58 private: |
58 CommonOperatorBuilder common_; | 59 CommonOperatorBuilder common_; |
59 Graph graph_; | 60 Graph graph_; |
60 }; | 61 }; |
61 | 62 |
62 | 63 |
(...skipping 10 matching lines...) Expand all Loading... |
73 | 74 |
74 private: | 75 private: |
75 Typer typer_; | 76 Typer typer_; |
76 }; | 77 }; |
77 | 78 |
78 } // namespace compiler | 79 } // namespace compiler |
79 } // namespace internal | 80 } // namespace internal |
80 } // namespace v8 | 81 } // namespace v8 |
81 | 82 |
82 #endif // V8_UNITTESTS_COMPILER_GRAPH_UNITTEST_H_ | 83 #endif // V8_UNITTESTS_COMPILER_GRAPH_UNITTEST_H_ |
OLD | NEW |