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_JS_GRAPH_H_ | 5 #ifndef V8_COMPILER_JS_GRAPH_H_ |
6 #define V8_COMPILER_JS_GRAPH_H_ | 6 #define V8_COMPILER_JS_GRAPH_H_ |
7 | 7 |
8 #include "src/compiler/common-node-cache.h" | 8 #include "src/compiler/common-node-cache.h" |
9 #include "src/compiler/common-operator.h" | 9 #include "src/compiler/common-operator.h" |
10 #include "src/compiler/graph.h" | 10 #include "src/compiler/graph.h" |
(...skipping 23 matching lines...) Expand all Loading... |
34 javascript_(javascript), | 34 javascript_(javascript), |
35 simplified_(simplified), | 35 simplified_(simplified), |
36 machine_(machine), | 36 machine_(machine), |
37 cache_(zone()) { | 37 cache_(zone()) { |
38 for (int i = 0; i < kNumCachedNodes; i++) cached_nodes_[i] = nullptr; | 38 for (int i = 0; i < kNumCachedNodes; i++) cached_nodes_[i] = nullptr; |
39 } | 39 } |
40 | 40 |
41 // Canonicalized global constants. | 41 // Canonicalized global constants. |
42 Node* CEntryStubConstant(int result_size); | 42 Node* CEntryStubConstant(int result_size); |
43 Node* EmptyFixedArrayConstant(); | 43 Node* EmptyFixedArrayConstant(); |
| 44 Node* HeapNumberMapConstant(); |
44 Node* OptimizedOutConstant(); | 45 Node* OptimizedOutConstant(); |
45 Node* UndefinedConstant(); | 46 Node* UndefinedConstant(); |
46 Node* TheHoleConstant(); | 47 Node* TheHoleConstant(); |
47 Node* TrueConstant(); | 48 Node* TrueConstant(); |
48 Node* FalseConstant(); | 49 Node* FalseConstant(); |
49 Node* NullConstant(); | 50 Node* NullConstant(); |
50 Node* ZeroConstant(); | 51 Node* ZeroConstant(); |
51 Node* OneConstant(); | 52 Node* OneConstant(); |
52 Node* NaNConstant(); | 53 Node* NaNConstant(); |
53 | 54 |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 Zone* zone() const { return graph()->zone(); } | 135 Zone* zone() const { return graph()->zone(); } |
135 Isolate* isolate() const { return isolate_; } | 136 Isolate* isolate() const { return isolate_; } |
136 Factory* factory() const { return isolate()->factory(); } | 137 Factory* factory() const { return isolate()->factory(); } |
137 | 138 |
138 void GetCachedNodes(NodeVector* nodes); | 139 void GetCachedNodes(NodeVector* nodes); |
139 | 140 |
140 private: | 141 private: |
141 enum CachedNode { | 142 enum CachedNode { |
142 kCEntryStubConstant, | 143 kCEntryStubConstant, |
143 kEmptyFixedArrayConstant, | 144 kEmptyFixedArrayConstant, |
| 145 kHeapNumberMapConstant, |
144 kOptimizedOutConstant, | 146 kOptimizedOutConstant, |
145 kUndefinedConstant, | 147 kUndefinedConstant, |
146 kTheHoleConstant, | 148 kTheHoleConstant, |
147 kTrueConstant, | 149 kTrueConstant, |
148 kFalseConstant, | 150 kFalseConstant, |
149 kNullConstant, | 151 kNullConstant, |
150 kZeroConstant, | 152 kZeroConstant, |
151 kOneConstant, | 153 kOneConstant, |
152 kNaNConstant, | 154 kNaNConstant, |
153 kEmptyFrameState, | 155 kEmptyFrameState, |
(...skipping 13 matching lines...) Expand all Loading... |
167 Node* NumberConstant(double value); | 169 Node* NumberConstant(double value); |
168 | 170 |
169 DISALLOW_COPY_AND_ASSIGN(JSGraph); | 171 DISALLOW_COPY_AND_ASSIGN(JSGraph); |
170 }; | 172 }; |
171 | 173 |
172 } // namespace compiler | 174 } // namespace compiler |
173 } // namespace internal | 175 } // namespace internal |
174 } // namespace v8 | 176 } // namespace v8 |
175 | 177 |
176 #endif | 178 #endif |
OLD | NEW |