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 25 matching lines...) Expand all Loading... |
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* AllocateInNewSpaceStubConstant(); | 42 Node* AllocateInNewSpaceStubConstant(); |
43 Node* AllocateInOldSpaceStubConstant(); | 43 Node* AllocateInOldSpaceStubConstant(); |
44 Node* CEntryStubConstant(int result_size); | 44 Node* CEntryStubConstant(int result_size); |
45 Node* EmptyFixedArrayConstant(); | 45 Node* EmptyFixedArrayConstant(); |
| 46 Node* EmptyLiteralsArrayConstant(); |
46 Node* HeapNumberMapConstant(); | 47 Node* HeapNumberMapConstant(); |
47 Node* OptimizedOutConstant(); | 48 Node* OptimizedOutConstant(); |
48 Node* UndefinedConstant(); | 49 Node* UndefinedConstant(); |
49 Node* TheHoleConstant(); | 50 Node* TheHoleConstant(); |
50 Node* TrueConstant(); | 51 Node* TrueConstant(); |
51 Node* FalseConstant(); | 52 Node* FalseConstant(); |
52 Node* NullConstant(); | 53 Node* NullConstant(); |
53 Node* ZeroConstant(); | 54 Node* ZeroConstant(); |
54 Node* OneConstant(); | 55 Node* OneConstant(); |
55 Node* NaNConstant(); | 56 Node* NaNConstant(); |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 Factory* factory() const { return isolate()->factory(); } | 140 Factory* factory() const { return isolate()->factory(); } |
140 | 141 |
141 void GetCachedNodes(NodeVector* nodes); | 142 void GetCachedNodes(NodeVector* nodes); |
142 | 143 |
143 private: | 144 private: |
144 enum CachedNode { | 145 enum CachedNode { |
145 kAllocateInNewSpaceStubConstant, | 146 kAllocateInNewSpaceStubConstant, |
146 kAllocateInOldSpaceStubConstant, | 147 kAllocateInOldSpaceStubConstant, |
147 kCEntryStubConstant, | 148 kCEntryStubConstant, |
148 kEmptyFixedArrayConstant, | 149 kEmptyFixedArrayConstant, |
| 150 kEmptyLiteralsArrayConstant, |
149 kHeapNumberMapConstant, | 151 kHeapNumberMapConstant, |
150 kOptimizedOutConstant, | 152 kOptimizedOutConstant, |
151 kUndefinedConstant, | 153 kUndefinedConstant, |
152 kTheHoleConstant, | 154 kTheHoleConstant, |
153 kTrueConstant, | 155 kTrueConstant, |
154 kFalseConstant, | 156 kFalseConstant, |
155 kNullConstant, | 157 kNullConstant, |
156 kZeroConstant, | 158 kZeroConstant, |
157 kOneConstant, | 159 kOneConstant, |
158 kNaNConstant, | 160 kNaNConstant, |
(...skipping 14 matching lines...) Expand all Loading... |
173 Node* NumberConstant(double value); | 175 Node* NumberConstant(double value); |
174 | 176 |
175 DISALLOW_COPY_AND_ASSIGN(JSGraph); | 177 DISALLOW_COPY_AND_ASSIGN(JSGraph); |
176 }; | 178 }; |
177 | 179 |
178 } // namespace compiler | 180 } // namespace compiler |
179 } // namespace internal | 181 } // namespace internal |
180 } // namespace v8 | 182 } // namespace v8 |
181 | 183 |
182 #endif | 184 #endif |
OLD | NEW |