| 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* StaleRegisterConstant(); | 49 Node* StaleRegisterConstant(); |
| 49 Node* UndefinedConstant(); | 50 Node* UndefinedConstant(); |
| 50 Node* TheHoleConstant(); | 51 Node* TheHoleConstant(); |
| 51 Node* TrueConstant(); | 52 Node* TrueConstant(); |
| 52 Node* FalseConstant(); | 53 Node* FalseConstant(); |
| 53 Node* NullConstant(); | 54 Node* NullConstant(); |
| 54 Node* ZeroConstant(); | 55 Node* ZeroConstant(); |
| 55 Node* OneConstant(); | 56 Node* OneConstant(); |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 Factory* factory() const { return isolate()->factory(); } | 141 Factory* factory() const { return isolate()->factory(); } |
| 141 | 142 |
| 142 void GetCachedNodes(NodeVector* nodes); | 143 void GetCachedNodes(NodeVector* nodes); |
| 143 | 144 |
| 144 private: | 145 private: |
| 145 enum CachedNode { | 146 enum CachedNode { |
| 146 kAllocateInNewSpaceStubConstant, | 147 kAllocateInNewSpaceStubConstant, |
| 147 kAllocateInOldSpaceStubConstant, | 148 kAllocateInOldSpaceStubConstant, |
| 148 kCEntryStubConstant, | 149 kCEntryStubConstant, |
| 149 kEmptyFixedArrayConstant, | 150 kEmptyFixedArrayConstant, |
| 151 kEmptyLiteralsArrayConstant, |
| 150 kHeapNumberMapConstant, | 152 kHeapNumberMapConstant, |
| 151 kOptimizedOutConstant, | 153 kOptimizedOutConstant, |
| 152 kStaleRegisterConstant, | 154 kStaleRegisterConstant, |
| 153 kUndefinedConstant, | 155 kUndefinedConstant, |
| 154 kTheHoleConstant, | 156 kTheHoleConstant, |
| 155 kTrueConstant, | 157 kTrueConstant, |
| 156 kFalseConstant, | 158 kFalseConstant, |
| 157 kNullConstant, | 159 kNullConstant, |
| 158 kZeroConstant, | 160 kZeroConstant, |
| 159 kOneConstant, | 161 kOneConstant, |
| (...skipping 15 matching lines...) Expand all Loading... |
| 175 Node* NumberConstant(double value); | 177 Node* NumberConstant(double value); |
| 176 | 178 |
| 177 DISALLOW_COPY_AND_ASSIGN(JSGraph); | 179 DISALLOW_COPY_AND_ASSIGN(JSGraph); |
| 178 }; | 180 }; |
| 179 | 181 |
| 180 } // namespace compiler | 182 } // namespace compiler |
| 181 } // namespace internal | 183 } // namespace internal |
| 182 } // namespace v8 | 184 } // namespace v8 |
| 183 | 185 |
| 184 #endif | 186 #endif |
| OLD | NEW |