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 // =========================================================================== | 19 // =========================================================================== |
20 // Access to heap object fields and elements (based on tagged pointer). | 20 // Access to heap object fields and elements (based on tagged pointer). |
21 | 21 |
22 // Provides access to HeapObject::map() field. | 22 // Provides access to HeapObject::map() field. |
23 static FieldAccess ForMap(); | 23 static FieldAccess ForMap(); |
24 | 24 |
| 25 // Provides access to HeapNumber::value() field. |
| 26 static FieldAccess ForHeapNumberValue(); |
| 27 |
25 // Provides access to JSObject::properties() field. | 28 // Provides access to JSObject::properties() field. |
26 static FieldAccess ForJSObjectProperties(); | 29 static FieldAccess ForJSObjectProperties(); |
27 | 30 |
28 // Provides access to JSObject::elements() field. | 31 // Provides access to JSObject::elements() field. |
29 static FieldAccess ForJSObjectElements(); | 32 static FieldAccess ForJSObjectElements(); |
30 | 33 |
31 // Provides access to JSFunction::context() field. | 34 // Provides access to JSFunction::context() field. |
32 static FieldAccess ForJSFunctionContext(); | 35 static FieldAccess ForJSFunctionContext(); |
33 | 36 |
34 // Provides access to JSFunction::shared() field. | 37 // Provides access to JSFunction::shared() field. |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 | 117 |
115 private: | 118 private: |
116 DISALLOW_IMPLICIT_CONSTRUCTORS(AccessBuilder); | 119 DISALLOW_IMPLICIT_CONSTRUCTORS(AccessBuilder); |
117 }; | 120 }; |
118 | 121 |
119 } // namespace compiler | 122 } // namespace compiler |
120 } // namespace internal | 123 } // namespace internal |
121 } // namespace v8 | 124 } // namespace v8 |
122 | 125 |
123 #endif // V8_COMPILER_ACCESS_BUILDER_H_ | 126 #endif // V8_COMPILER_ACCESS_BUILDER_H_ |
OLD | NEW |