| 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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 // Provides access to FixedArray slots. | 137 // Provides access to FixedArray slots. |
| 138 static FieldAccess ForFixedArraySlot(size_t index); | 138 static FieldAccess ForFixedArraySlot(size_t index); |
| 139 | 139 |
| 140 // Provides access to Context slots. | 140 // Provides access to Context slots. |
| 141 static FieldAccess ForContextSlot(size_t index); | 141 static FieldAccess ForContextSlot(size_t index); |
| 142 | 142 |
| 143 // Provides access to PropertyCell::value() field. | 143 // Provides access to PropertyCell::value() field. |
| 144 static FieldAccess ForPropertyCellValue(); | 144 static FieldAccess ForPropertyCellValue(); |
| 145 static FieldAccess ForPropertyCellValue(Type* type); | 145 static FieldAccess ForPropertyCellValue(Type* type); |
| 146 | 146 |
| 147 // Provides access to SharedFunctionInfo::feedback_vector() field. | |
| 148 static FieldAccess ForSharedFunctionInfoTypeFeedbackVector(); | |
| 149 | |
| 150 // Provides access to FixedArray elements. | 147 // Provides access to FixedArray elements. |
| 151 static ElementAccess ForFixedArrayElement(); | 148 static ElementAccess ForFixedArrayElement(); |
| 152 | 149 |
| 153 // Provides access to FixedDoubleArray elements. | 150 // Provides access to FixedDoubleArray elements. |
| 154 static ElementAccess ForFixedDoubleArrayElement(); | 151 static ElementAccess ForFixedDoubleArrayElement(); |
| 155 | 152 |
| 156 // Provides access to Fixed{type}TypedArray and External{type}Array elements. | 153 // Provides access to Fixed{type}TypedArray and External{type}Array elements. |
| 157 static ElementAccess ForTypedArrayElement(ExternalArrayType type, | 154 static ElementAccess ForTypedArrayElement(ExternalArrayType type, |
| 158 bool is_external); | 155 bool is_external); |
| 159 | 156 |
| 160 private: | 157 private: |
| 161 DISALLOW_IMPLICIT_CONSTRUCTORS(AccessBuilder); | 158 DISALLOW_IMPLICIT_CONSTRUCTORS(AccessBuilder); |
| 162 }; | 159 }; |
| 163 | 160 |
| 164 } // namespace compiler | 161 } // namespace compiler |
| 165 } // namespace internal | 162 } // namespace internal |
| 166 } // namespace v8 | 163 } // namespace v8 |
| 167 | 164 |
| 168 #endif // V8_COMPILER_ACCESS_BUILDER_H_ | 165 #endif // V8_COMPILER_ACCESS_BUILDER_H_ |
| OLD | NEW |