| 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 27 matching lines...) Expand all Loading... |
| 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* ToNumberBuiltinConstant(); | 44 Node* ToNumberBuiltinConstant(); |
| 45 Node* CEntryStubConstant(int result_size); | 45 Node* CEntryStubConstant(int result_size); |
| 46 Node* EmptyFixedArrayConstant(); | 46 Node* EmptyFixedArrayConstant(); |
| 47 Node* EmptyLiteralsArrayConstant(); | 47 Node* EmptyLiteralsArrayConstant(); |
| 48 Node* EmptyStringConstant(); |
| 48 Node* HeapNumberMapConstant(); | 49 Node* HeapNumberMapConstant(); |
| 49 Node* OptimizedOutConstant(); | 50 Node* OptimizedOutConstant(); |
| 50 Node* StaleRegisterConstant(); | 51 Node* StaleRegisterConstant(); |
| 51 Node* UndefinedConstant(); | 52 Node* UndefinedConstant(); |
| 52 Node* TheHoleConstant(); | 53 Node* TheHoleConstant(); |
| 53 Node* TrueConstant(); | 54 Node* TrueConstant(); |
| 54 Node* FalseConstant(); | 55 Node* FalseConstant(); |
| 55 Node* NullConstant(); | 56 Node* NullConstant(); |
| 56 Node* ZeroConstant(); | 57 Node* ZeroConstant(); |
| 57 Node* OneConstant(); | 58 Node* OneConstant(); |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 void GetCachedNodes(NodeVector* nodes); | 145 void GetCachedNodes(NodeVector* nodes); |
| 145 | 146 |
| 146 private: | 147 private: |
| 147 enum CachedNode { | 148 enum CachedNode { |
| 148 kAllocateInNewSpaceStubConstant, | 149 kAllocateInNewSpaceStubConstant, |
| 149 kAllocateInOldSpaceStubConstant, | 150 kAllocateInOldSpaceStubConstant, |
| 150 kToNumberBuiltinConstant, | 151 kToNumberBuiltinConstant, |
| 151 kCEntryStubConstant, | 152 kCEntryStubConstant, |
| 152 kEmptyFixedArrayConstant, | 153 kEmptyFixedArrayConstant, |
| 153 kEmptyLiteralsArrayConstant, | 154 kEmptyLiteralsArrayConstant, |
| 155 kEmptyStringConstant, |
| 154 kHeapNumberMapConstant, | 156 kHeapNumberMapConstant, |
| 155 kOptimizedOutConstant, | 157 kOptimizedOutConstant, |
| 156 kStaleRegisterConstant, | 158 kStaleRegisterConstant, |
| 157 kUndefinedConstant, | 159 kUndefinedConstant, |
| 158 kTheHoleConstant, | 160 kTheHoleConstant, |
| 159 kTrueConstant, | 161 kTrueConstant, |
| 160 kFalseConstant, | 162 kFalseConstant, |
| 161 kNullConstant, | 163 kNullConstant, |
| 162 kZeroConstant, | 164 kZeroConstant, |
| 163 kOneConstant, | 165 kOneConstant, |
| (...skipping 15 matching lines...) Expand all Loading... |
| 179 Node* NumberConstant(double value); | 181 Node* NumberConstant(double value); |
| 180 | 182 |
| 181 DISALLOW_COPY_AND_ASSIGN(JSGraph); | 183 DISALLOW_COPY_AND_ASSIGN(JSGraph); |
| 182 }; | 184 }; |
| 183 | 185 |
| 184 } // namespace compiler | 186 } // namespace compiler |
| 185 } // namespace internal | 187 } // namespace internal |
| 186 } // namespace v8 | 188 } // namespace v8 |
| 187 | 189 |
| 188 #endif | 190 #endif |
| OLD | NEW |