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 return Int32Constant(bit_cast<int32_t>(value)); | 43 return Int32Constant(bit_cast<int32_t>(value)); |
44 } | 44 } |
45 Node* Int64Constant(int64_t value); | 45 Node* Int64Constant(int64_t value); |
46 Node* NumberConstant(volatile double value); | 46 Node* NumberConstant(volatile double value); |
47 Node* HeapConstant(const Handle<HeapObject>& value); | 47 Node* HeapConstant(const Handle<HeapObject>& value); |
48 Node* HeapConstant(const Unique<HeapObject>& value); | 48 Node* HeapConstant(const Unique<HeapObject>& value); |
49 Node* FalseConstant(); | 49 Node* FalseConstant(); |
50 Node* TrueConstant(); | 50 Node* TrueConstant(); |
51 Node* UndefinedConstant(); | 51 Node* UndefinedConstant(); |
52 | 52 |
| 53 Node* EmptyFrameState(); |
| 54 |
53 Matcher<Node*> IsFalseConstant(); | 55 Matcher<Node*> IsFalseConstant(); |
54 Matcher<Node*> IsTrueConstant(); | 56 Matcher<Node*> IsTrueConstant(); |
55 Matcher<Node*> IsUndefinedConstant(); | 57 Matcher<Node*> IsUndefinedConstant(); |
56 | 58 |
57 CommonOperatorBuilder* common() { return &common_; } | 59 CommonOperatorBuilder* common() { return &common_; } |
58 Graph* graph() { return &graph_; } | 60 Graph* graph() { return &graph_; } |
59 | 61 |
60 private: | 62 private: |
61 CommonOperatorBuilder common_; | 63 CommonOperatorBuilder common_; |
62 Graph graph_; | 64 Graph graph_; |
(...skipping 13 matching lines...) Expand all Loading... |
76 | 78 |
77 private: | 79 private: |
78 Typer typer_; | 80 Typer typer_; |
79 }; | 81 }; |
80 | 82 |
81 } // namespace compiler | 83 } // namespace compiler |
82 } // namespace internal | 84 } // namespace internal |
83 } // namespace v8 | 85 } // namespace v8 |
84 | 86 |
85 #endif // V8_UNITTESTS_COMPILER_GRAPH_UNITTEST_H_ | 87 #endif // V8_UNITTESTS_COMPILER_GRAPH_UNITTEST_H_ |
OLD | NEW |