OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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_STATE_VALUES_UTILS_H_ | 5 #ifndef V8_COMPILER_STATE_VALUES_UTILS_H_ |
6 #define V8_COMPILER_STATE_VALUES_UTILS_H_ | 6 #define V8_COMPILER_STATE_VALUES_UTILS_H_ |
7 | 7 |
8 #include "src/compiler/js-graph.h" | 8 #include "src/compiler/js-graph.h" |
9 | 9 |
10 namespace v8 { | 10 namespace v8 { |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 NodeVector* GetWorkingSpace(size_t level); | 48 NodeVector* GetWorkingSpace(size_t level); |
49 Node* GetEmptyStateValues(); | 49 Node* GetEmptyStateValues(); |
50 Node* GetValuesNodeFromCache(Node** nodes, size_t count); | 50 Node* GetValuesNodeFromCache(Node** nodes, size_t count); |
51 | 51 |
52 Graph* graph() { return js_graph_->graph(); } | 52 Graph* graph() { return js_graph_->graph(); } |
53 CommonOperatorBuilder* common() { return js_graph_->common(); } | 53 CommonOperatorBuilder* common() { return js_graph_->common(); } |
54 | 54 |
55 Zone* zone() { return graph()->zone(); } | 55 Zone* zone() { return graph()->zone(); } |
56 | 56 |
57 JSGraph* js_graph_; | 57 JSGraph* js_graph_; |
58 ZoneHashMap hash_map_; | 58 CustomMatcherZoneHashMap hash_map_; |
59 ZoneVector<NodeVector*> working_space_; // One working space per level. | 59 ZoneVector<NodeVector*> working_space_; // One working space per level. |
60 Node* empty_state_values_; | 60 Node* empty_state_values_; |
61 }; | 61 }; |
62 | 62 |
63 class StateValuesAccess { | 63 class StateValuesAccess { |
64 public: | 64 public: |
65 struct TypedNode { | 65 struct TypedNode { |
66 Node* node; | 66 Node* node; |
67 MachineType type; | 67 MachineType type; |
68 TypedNode(Node* node, MachineType type) : node(node), type(type) {} | 68 TypedNode(Node* node, MachineType type) : node(node), type(type) {} |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 | 111 |
112 private: | 112 private: |
113 Node* node_; | 113 Node* node_; |
114 }; | 114 }; |
115 | 115 |
116 } // namespace compiler | 116 } // namespace compiler |
117 } // namespace internal | 117 } // namespace internal |
118 } // namespace v8 | 118 } // namespace v8 |
119 | 119 |
120 #endif // V8_COMPILER_STATE_VALUES_UTILS_H_ | 120 #endif // V8_COMPILER_STATE_VALUES_UTILS_H_ |
OLD | NEW |