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_ACCESS_BUILDER_H_ | 5 #ifndef V8_COMPILER_ACCESS_BUILDER_H_ |
6 #define V8_COMPILER_ACCESS_BUILDER_H_ | 6 #define V8_COMPILER_ACCESS_BUILDER_H_ |
7 | 7 |
8 #include "src/base/compiler-specific.h" | 8 #include "src/base/compiler-specific.h" |
9 #include "src/compiler/simplified-operator.h" | 9 #include "src/compiler/simplified-operator.h" |
10 #include "src/elements-kind.h" | 10 #include "src/elements-kind.h" |
11 #include "src/globals.h" | 11 #include "src/globals.h" |
12 | 12 |
13 namespace v8 { | 13 namespace v8 { |
14 namespace internal { | 14 namespace internal { |
15 namespace compiler { | 15 namespace compiler { |
16 | 16 |
17 // This access builder provides a set of static methods constructing commonly | 17 // This access builder provides a set of static methods constructing commonly |
18 // used FieldAccess and ElementAccess descriptors. These descriptors serve as | 18 // used FieldAccess and ElementAccess descriptors. These descriptors serve as |
19 // parameters to simplified load/store operators. | 19 // parameters to simplified load/store operators. |
20 class V8_EXPORT_PRIVATE AccessBuilder final | 20 class V8_EXPORT_PRIVATE AccessBuilder final |
21 : public NON_EXPORTED_BASE(AllStatic) { | 21 : public NON_EXPORTED_BASE(AllStatic) { |
22 public: | 22 public: |
23 // =========================================================================== | 23 // =========================================================================== |
24 // Access to external values (based on external references). | 24 // Access to external values (based on external references). |
25 | 25 |
26 // Provides access to a double field identified by an external reference. | 26 // Provides access to a double field identified by an external reference. |
27 static FieldAccess ForExternalDoubleValue(); | 27 static FieldAccess ForExternalDoubleValue(); |
28 | 28 |
| 29 // Provides access to a tagged field identified by an external reference. |
| 30 static FieldAccess ForExternalTaggedValue(); |
| 31 |
29 // Provides access to an uint8 field identified by an external reference. | 32 // Provides access to an uint8 field identified by an external reference. |
30 static FieldAccess ForExternalUint8Value(); | 33 static FieldAccess ForExternalUint8Value(); |
31 | 34 |
32 // =========================================================================== | 35 // =========================================================================== |
33 // Access to heap object fields and elements (based on tagged pointer). | 36 // Access to heap object fields and elements (based on tagged pointer). |
34 | 37 |
35 // Provides access to HeapObject::map() field. | 38 // Provides access to HeapObject::map() field. |
36 static FieldAccess ForMap(); | 39 static FieldAccess ForMap(); |
37 | 40 |
38 // Provides access to HeapNumber::value() field. | 41 // Provides access to HeapNumber::value() field. |
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
255 | 258 |
256 private: | 259 private: |
257 DISALLOW_IMPLICIT_CONSTRUCTORS(AccessBuilder); | 260 DISALLOW_IMPLICIT_CONSTRUCTORS(AccessBuilder); |
258 }; | 261 }; |
259 | 262 |
260 } // namespace compiler | 263 } // namespace compiler |
261 } // namespace internal | 264 } // namespace internal |
262 } // namespace v8 | 265 } // namespace v8 |
263 | 266 |
264 #endif // V8_COMPILER_ACCESS_BUILDER_H_ | 267 #endif // V8_COMPILER_ACCESS_BUILDER_H_ |
OLD | NEW |