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/base/compiler-specific.h" | 8 #include "src/base/compiler-specific.h" |
9 #include "src/compiler/common-node-cache.h" | 9 #include "src/compiler/common-node-cache.h" |
10 #include "src/compiler/common-operator.h" | 10 #include "src/compiler/common-operator.h" |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 | 42 |
43 // Canonicalized global constants. | 43 // Canonicalized global constants. |
44 Node* AllocateInNewSpaceStubConstant(); | 44 Node* AllocateInNewSpaceStubConstant(); |
45 Node* AllocateInOldSpaceStubConstant(); | 45 Node* AllocateInOldSpaceStubConstant(); |
46 Node* ToNumberBuiltinConstant(); | 46 Node* ToNumberBuiltinConstant(); |
47 Node* CEntryStubConstant(int result_size, | 47 Node* CEntryStubConstant(int result_size, |
48 SaveFPRegsMode save_doubles = kDontSaveFPRegs, | 48 SaveFPRegsMode save_doubles = kDontSaveFPRegs, |
49 ArgvMode argv_mode = kArgvOnStack, | 49 ArgvMode argv_mode = kArgvOnStack, |
50 bool builtin_exit_frame = false); | 50 bool builtin_exit_frame = false); |
51 Node* EmptyFixedArrayConstant(); | 51 Node* EmptyFixedArrayConstant(); |
| 52 Node* EmptyLiteralsArrayConstant(); |
52 Node* EmptyStringConstant(); | 53 Node* EmptyStringConstant(); |
53 Node* FixedArrayMapConstant(); | 54 Node* FixedArrayMapConstant(); |
54 Node* FixedDoubleArrayMapConstant(); | 55 Node* FixedDoubleArrayMapConstant(); |
55 Node* HeapNumberMapConstant(); | 56 Node* HeapNumberMapConstant(); |
56 Node* OptimizedOutConstant(); | 57 Node* OptimizedOutConstant(); |
57 Node* StaleRegisterConstant(); | 58 Node* StaleRegisterConstant(); |
58 Node* UndefinedConstant(); | 59 Node* UndefinedConstant(); |
59 Node* TheHoleConstant(); | 60 Node* TheHoleConstant(); |
60 Node* TrueConstant(); | 61 Node* TrueConstant(); |
61 Node* FalseConstant(); | 62 Node* FalseConstant(); |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 private: | 160 private: |
160 enum CachedNode { | 161 enum CachedNode { |
161 kAllocateInNewSpaceStubConstant, | 162 kAllocateInNewSpaceStubConstant, |
162 kAllocateInOldSpaceStubConstant, | 163 kAllocateInOldSpaceStubConstant, |
163 kToNumberBuiltinConstant, | 164 kToNumberBuiltinConstant, |
164 kCEntryStub1Constant, | 165 kCEntryStub1Constant, |
165 kCEntryStub2Constant, | 166 kCEntryStub2Constant, |
166 kCEntryStub3Constant, | 167 kCEntryStub3Constant, |
167 kCEntryStub1WithBuiltinExitFrameConstant, | 168 kCEntryStub1WithBuiltinExitFrameConstant, |
168 kEmptyFixedArrayConstant, | 169 kEmptyFixedArrayConstant, |
| 170 kEmptyLiteralsArrayConstant, |
169 kEmptyStringConstant, | 171 kEmptyStringConstant, |
170 kFixedArrayMapConstant, | 172 kFixedArrayMapConstant, |
171 kFixedDoubleArrayMapConstant, | 173 kFixedDoubleArrayMapConstant, |
172 kHeapNumberMapConstant, | 174 kHeapNumberMapConstant, |
173 kOptimizedOutConstant, | 175 kOptimizedOutConstant, |
174 kStaleRegisterConstant, | 176 kStaleRegisterConstant, |
175 kUndefinedConstant, | 177 kUndefinedConstant, |
176 kTheHoleConstant, | 178 kTheHoleConstant, |
177 kTrueConstant, | 179 kTrueConstant, |
178 kFalseConstant, | 180 kFalseConstant, |
(...skipping 18 matching lines...) Expand all Loading... |
197 Node* NumberConstant(double value); | 199 Node* NumberConstant(double value); |
198 | 200 |
199 DISALLOW_COPY_AND_ASSIGN(JSGraph); | 201 DISALLOW_COPY_AND_ASSIGN(JSGraph); |
200 }; | 202 }; |
201 | 203 |
202 } // namespace compiler | 204 } // namespace compiler |
203 } // namespace internal | 205 } // namespace internal |
204 } // namespace v8 | 206 } // namespace v8 |
205 | 207 |
206 #endif | 208 #endif |
OLD | NEW |