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 { |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 static FieldAccess ForStringLength(Zone* zone); | 62 static FieldAccess ForStringLength(Zone* zone); |
63 | 63 |
64 // Provides access to JSValue::value() field. | 64 // Provides access to JSValue::value() field. |
65 static FieldAccess ForValue(); | 65 static FieldAccess ForValue(); |
66 | 66 |
67 // Provides access Context slots. | 67 // Provides access Context slots. |
68 static FieldAccess ForContextSlot(size_t index); | 68 static FieldAccess ForContextSlot(size_t index); |
69 | 69 |
70 // Provides access to PropertyCell::value() field. | 70 // Provides access to PropertyCell::value() field. |
71 static FieldAccess ForPropertyCellValue(); | 71 static FieldAccess ForPropertyCellValue(); |
| 72 static FieldAccess ForPropertyCellValue(Type* type); |
72 | 73 |
73 // Provides access to SharedFunctionInfo::feedback_vector() field. | 74 // Provides access to SharedFunctionInfo::feedback_vector() field. |
74 static FieldAccess ForSharedFunctionInfoTypeFeedbackVector(); | 75 static FieldAccess ForSharedFunctionInfoTypeFeedbackVector(); |
75 | 76 |
76 // Provides access to FixedArray elements. | 77 // Provides access to FixedArray elements. |
77 static ElementAccess ForFixedArrayElement(); | 78 static ElementAccess ForFixedArrayElement(); |
78 | 79 |
79 // Provides access to Fixed{type}TypedArray and External{type}Array elements. | 80 // Provides access to Fixed{type}TypedArray and External{type}Array elements. |
80 static ElementAccess ForTypedArrayElement(ExternalArrayType type, | 81 static ElementAccess ForTypedArrayElement(ExternalArrayType type, |
81 bool is_external); | 82 bool is_external); |
(...skipping 18 matching lines...) Expand all Loading... |
100 | 101 |
101 private: | 102 private: |
102 DISALLOW_IMPLICIT_CONSTRUCTORS(AccessBuilder); | 103 DISALLOW_IMPLICIT_CONSTRUCTORS(AccessBuilder); |
103 }; | 104 }; |
104 | 105 |
105 } // namespace compiler | 106 } // namespace compiler |
106 } // namespace internal | 107 } // namespace internal |
107 } // namespace v8 | 108 } // namespace v8 |
108 | 109 |
109 #endif // V8_COMPILER_ACCESS_BUILDER_H_ | 110 #endif // V8_COMPILER_ACCESS_BUILDER_H_ |
OLD | NEW |