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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
122 // Provides access to FixedArray slots. | 122 // Provides access to FixedArray slots. |
123 static FieldAccess ForFixedArraySlot(size_t index); | 123 static FieldAccess ForFixedArraySlot(size_t index); |
124 | 124 |
125 // Provides access to Context slots. | 125 // Provides access to Context slots. |
126 static FieldAccess ForContextSlot(size_t index); | 126 static FieldAccess ForContextSlot(size_t index); |
127 | 127 |
128 // Provides access to PropertyCell::value() field. | 128 // Provides access to PropertyCell::value() field. |
129 static FieldAccess ForPropertyCellValue(); | 129 static FieldAccess ForPropertyCellValue(); |
130 static FieldAccess ForPropertyCellValue(Type* type); | 130 static FieldAccess ForPropertyCellValue(Type* type); |
131 | 131 |
132 // Provides access to SharedFunctionInfo::feedback_vector() field. | 132 // Provides access to JSFunction::literals()[0] field. |
Michael Starzinger
2016/05/10 13:47:20
Accessing an element as a field breaks invariants
mvstanton
2016/05/24 16:31:49
Done.
| |
133 static FieldAccess ForSharedFunctionInfoTypeFeedbackVector(); | 133 static FieldAccess ForLiteralsTypeFeedbackVector(); |
134 | 134 |
135 // Provides access to FixedArray elements. | 135 // Provides access to FixedArray elements. |
136 static ElementAccess ForFixedArrayElement(); | 136 static ElementAccess ForFixedArrayElement(); |
137 | 137 |
138 // Provides access to FixedDoubleArray elements. | 138 // Provides access to FixedDoubleArray elements. |
139 static ElementAccess ForFixedDoubleArrayElement(); | 139 static ElementAccess ForFixedDoubleArrayElement(); |
140 | 140 |
141 // Provides access to Fixed{type}TypedArray and External{type}Array elements. | 141 // Provides access to Fixed{type}TypedArray and External{type}Array elements. |
142 static ElementAccess ForTypedArrayElement(ExternalArrayType type, | 142 static ElementAccess ForTypedArrayElement(ExternalArrayType type, |
143 bool is_external); | 143 bool is_external); |
144 | 144 |
145 private: | 145 private: |
146 DISALLOW_IMPLICIT_CONSTRUCTORS(AccessBuilder); | 146 DISALLOW_IMPLICIT_CONSTRUCTORS(AccessBuilder); |
147 }; | 147 }; |
148 | 148 |
149 } // namespace compiler | 149 } // namespace compiler |
150 } // namespace internal | 150 } // namespace internal |
151 } // namespace v8 | 151 } // namespace v8 |
152 | 152 |
153 #endif // V8_COMPILER_ACCESS_BUILDER_H_ | 153 #endif // V8_COMPILER_ACCESS_BUILDER_H_ |
OLD | NEW |