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_SIMPLIFIED_OPERATOR_H_ | 5 #ifndef V8_COMPILER_SIMPLIFIED_OPERATOR_H_ |
6 #define V8_COMPILER_SIMPLIFIED_OPERATOR_H_ | 6 #define V8_COMPILER_SIMPLIFIED_OPERATOR_H_ |
7 | 7 |
8 #include <iosfwd> | 8 #include <iosfwd> |
9 | 9 |
10 #include "src/compiler/machine-type.h" | 10 #include "src/compiler/machine-type.h" |
11 #include "src/handles.h" | 11 #include "src/handles.h" |
12 | 12 |
13 namespace v8 { | 13 namespace v8 { |
14 namespace internal { | 14 namespace internal { |
15 | 15 |
16 // Forward declarations. | 16 // Forward declarations. |
17 template <class> | 17 template <class> |
18 class TypeImpl; | 18 class TypeImpl; |
19 struct ZoneTypeConfig; | 19 struct ZoneTypeConfig; |
20 typedef TypeImpl<ZoneTypeConfig> Type; | 20 typedef TypeImpl<ZoneTypeConfig> Type; |
21 class Zone; | 21 class Zone; |
22 | 22 |
23 | 23 |
24 namespace compiler { | 24 namespace compiler { |
25 | 25 |
26 // Forward declarations. | 26 // Forward declarations. |
27 class Operator; | 27 class Operator; |
28 struct SimplifiedOperatorBuilderImpl; | 28 struct SimplifiedOperatorGlobalCache; |
29 | 29 |
30 | 30 |
31 enum BaseTaggedness { kUntaggedBase, kTaggedBase }; | 31 enum BaseTaggedness { kUntaggedBase, kTaggedBase }; |
32 | 32 |
33 std::ostream& operator<<(std::ostream&, BaseTaggedness); | 33 std::ostream& operator<<(std::ostream&, BaseTaggedness); |
34 | 34 |
35 | 35 |
36 // An access descriptor for loads/stores of fixed structures like field | 36 // An access descriptor for loads/stores of fixed structures like field |
37 // accesses of heap objects. Accesses from either tagged or untagged base | 37 // accesses of heap objects. Accesses from either tagged or untagged base |
38 // pointers are supported; untagging is done automatically during lowering. | 38 // pointers are supported; untagging is done automatically during lowering. |
(...skipping 115 matching lines...) Loading... |
154 | 154 |
155 // load-element [base + index], length | 155 // load-element [base + index], length |
156 const Operator* LoadElement(ElementAccess const&); | 156 const Operator* LoadElement(ElementAccess const&); |
157 | 157 |
158 // store-element [base + index], length, value | 158 // store-element [base + index], length, value |
159 const Operator* StoreElement(ElementAccess const&); | 159 const Operator* StoreElement(ElementAccess const&); |
160 | 160 |
161 private: | 161 private: |
162 Zone* zone() const { return zone_; } | 162 Zone* zone() const { return zone_; } |
163 | 163 |
164 const SimplifiedOperatorBuilderImpl& impl_; | 164 const SimplifiedOperatorGlobalCache& cache_; |
165 Zone* const zone_; | 165 Zone* const zone_; |
166 | 166 |
167 DISALLOW_COPY_AND_ASSIGN(SimplifiedOperatorBuilder); | 167 DISALLOW_COPY_AND_ASSIGN(SimplifiedOperatorBuilder); |
168 }; | 168 }; |
169 | 169 |
170 } // namespace compiler | 170 } // namespace compiler |
171 } // namespace internal | 171 } // namespace internal |
172 } // namespace v8 | 172 } // namespace v8 |
173 | 173 |
174 #endif // V8_COMPILER_SIMPLIFIED_OPERATOR_H_ | 174 #endif // V8_COMPILER_SIMPLIFIED_OPERATOR_H_ |
OLD | NEW |