| 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 | 9 |
| 10 namespace v8 { | 10 namespace v8 { |
| 11 namespace internal { | 11 namespace internal { |
| 12 namespace compiler { | 12 namespace compiler { |
| 13 | 13 |
| 14 // This access builder provides a set of static methods constructing commonly | 14 // This access builder provides a set of static methods constructing commonly |
| 15 // used FieldAccess and ElementAccess descriptors. These descriptors serve as | 15 // used FieldAccess and ElementAccess descriptors. These descriptors serve as |
| 16 // parameters to simplified load/store operators. | 16 // parameters to simplified load/store operators. |
| 17 class AccessBuilder FINAL : public AllStatic { | 17 class AccessBuilder final : public AllStatic { |
| 18 public: | 18 public: |
| 19 // Provides access to HeapObject::map() field. | 19 // Provides access to HeapObject::map() field. |
| 20 static FieldAccess ForMap(); | 20 static FieldAccess ForMap(); |
| 21 | 21 |
| 22 // Provides access to JSObject::properties() field. | 22 // Provides access to JSObject::properties() field. |
| 23 static FieldAccess ForJSObjectProperties(); | 23 static FieldAccess ForJSObjectProperties(); |
| 24 | 24 |
| 25 // Provides access to JSObject::elements() field. | 25 // Provides access to JSObject::elements() field. |
| 26 static FieldAccess ForJSObjectElements(); | 26 static FieldAccess ForJSObjectElements(); |
| 27 | 27 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 | 61 |
| 62 private: | 62 private: |
| 63 DISALLOW_IMPLICIT_CONSTRUCTORS(AccessBuilder); | 63 DISALLOW_IMPLICIT_CONSTRUCTORS(AccessBuilder); |
| 64 }; | 64 }; |
| 65 | 65 |
| 66 } // namespace compiler | 66 } // namespace compiler |
| 67 } // namespace internal | 67 } // namespace internal |
| 68 } // namespace v8 | 68 } // namespace v8 |
| 69 | 69 |
| 70 #endif // V8_COMPILER_ACCESS_BUILDER_H_ | 70 #endif // V8_COMPILER_ACCESS_BUILDER_H_ |
| OLD | NEW |