| 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/compiler/simplified-operator.h" | 8 #include "src/compiler/simplified-operator.h" |
| 9 #include "src/elements-kind.h" | 9 #include "src/elements-kind.h" |
| 10 | 10 |
| 11 namespace v8 { | 11 namespace v8 { |
| 12 namespace internal { | 12 namespace internal { |
| 13 namespace compiler { | 13 namespace compiler { |
| 14 | 14 |
| 15 // This access builder provides a set of static methods constructing commonly | 15 // This access builder provides a set of static methods constructing commonly |
| 16 // used FieldAccess and ElementAccess descriptors. These descriptors serve as | 16 // used FieldAccess and ElementAccess descriptors. These descriptors serve as |
| 17 // parameters to simplified load/store operators. | 17 // parameters to simplified load/store operators. |
| 18 class AccessBuilder final : public AllStatic { | 18 class AccessBuilder final : public AllStatic { |
| 19 public: | 19 public: |
| 20 // =========================================================================== | 20 // =========================================================================== |
| 21 // Access to external values (based on external references). |
| 22 |
| 23 // Provides access to a double field identified by an external reference. |
| 24 static FieldAccess ForExternalDoubleValue(); |
| 25 |
| 26 // =========================================================================== |
| 21 // Access to heap object fields and elements (based on tagged pointer). | 27 // Access to heap object fields and elements (based on tagged pointer). |
| 22 | 28 |
| 23 // Provides access to HeapObject::map() field. | 29 // Provides access to HeapObject::map() field. |
| 24 static FieldAccess ForMap(); | 30 static FieldAccess ForMap(); |
| 25 | 31 |
| 26 // Provides access to HeapNumber::value() field. | 32 // Provides access to HeapNumber::value() field. |
| 27 static FieldAccess ForHeapNumberValue(); | 33 static FieldAccess ForHeapNumberValue(); |
| 28 | 34 |
| 29 // Provides access to JSObject::properties() field. | 35 // Provides access to JSObject::properties() field. |
| 30 static FieldAccess ForJSObjectProperties(); | 36 static FieldAccess ForJSObjectProperties(); |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 | 212 |
| 207 private: | 213 private: |
| 208 DISALLOW_IMPLICIT_CONSTRUCTORS(AccessBuilder); | 214 DISALLOW_IMPLICIT_CONSTRUCTORS(AccessBuilder); |
| 209 }; | 215 }; |
| 210 | 216 |
| 211 } // namespace compiler | 217 } // namespace compiler |
| 212 } // namespace internal | 218 } // namespace internal |
| 213 } // namespace v8 | 219 } // namespace v8 |
| 214 | 220 |
| 215 #endif // V8_COMPILER_ACCESS_BUILDER_H_ | 221 #endif // V8_COMPILER_ACCESS_BUILDER_H_ |
| OLD | NEW |