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/base/compiler-specific.h" | 8 #include "src/base/compiler-specific.h" |
9 #include "src/compiler/simplified-operator.h" | 9 #include "src/compiler/simplified-operator.h" |
10 #include "src/elements-kind.h" | 10 #include "src/elements-kind.h" |
(...skipping 28 matching lines...) Expand all Loading... |
39 static FieldAccess ForHeapNumberValue(); | 39 static FieldAccess ForHeapNumberValue(); |
40 | 40 |
41 // Provides access to JSObject::properties() field. | 41 // Provides access to JSObject::properties() field. |
42 static FieldAccess ForJSObjectProperties(); | 42 static FieldAccess ForJSObjectProperties(); |
43 | 43 |
44 // Provides access to JSObject::elements() field. | 44 // Provides access to JSObject::elements() field. |
45 static FieldAccess ForJSObjectElements(); | 45 static FieldAccess ForJSObjectElements(); |
46 | 46 |
47 // Provides access to JSObject inobject property fields. | 47 // Provides access to JSObject inobject property fields. |
48 static FieldAccess ForJSObjectInObjectProperty(Handle<Map> map, int index); | 48 static FieldAccess ForJSObjectInObjectProperty(Handle<Map> map, int index); |
| 49 static FieldAccess ForJSObjectOffset( |
| 50 int offset, WriteBarrierKind write_barrier_kind = kFullWriteBarrier); |
49 | 51 |
50 // Provides access to JSFunction::prototype_or_initial_map() field. | 52 // Provides access to JSFunction::prototype_or_initial_map() field. |
51 static FieldAccess ForJSFunctionPrototypeOrInitialMap(); | 53 static FieldAccess ForJSFunctionPrototypeOrInitialMap(); |
52 | 54 |
53 // Provides access to JSFunction::context() field. | 55 // Provides access to JSFunction::context() field. |
54 static FieldAccess ForJSFunctionContext(); | 56 static FieldAccess ForJSFunctionContext(); |
55 | 57 |
56 // Provides access to JSFunction::shared() field. | 58 // Provides access to JSFunction::shared() field. |
57 static FieldAccess ForJSFunctionSharedFunctionInfo(); | 59 static FieldAccess ForJSFunctionSharedFunctionInfo(); |
58 | 60 |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 static FieldAccess ForValue(); | 216 static FieldAccess ForValue(); |
215 | 217 |
216 // Provides access to Cell::value() field. | 218 // Provides access to Cell::value() field. |
217 static FieldAccess ForCellValue(); | 219 static FieldAccess ForCellValue(); |
218 | 220 |
219 // Provides access to arguments object fields. | 221 // Provides access to arguments object fields. |
220 static FieldAccess ForArgumentsLength(); | 222 static FieldAccess ForArgumentsLength(); |
221 static FieldAccess ForArgumentsCallee(); | 223 static FieldAccess ForArgumentsCallee(); |
222 | 224 |
223 // Provides access to FixedArray slots. | 225 // Provides access to FixedArray slots. |
224 static FieldAccess ForFixedArraySlot(size_t index); | 226 static FieldAccess ForFixedArraySlot( |
| 227 size_t index, WriteBarrierKind write_barrier_kind = kFullWriteBarrier); |
225 | 228 |
226 // Provides access to Context slots. | 229 // Provides access to Context slots. |
227 static FieldAccess ForContextSlot(size_t index); | 230 static FieldAccess ForContextSlot(size_t index); |
228 | 231 |
229 // Provides access to ContextExtension fields. | 232 // Provides access to ContextExtension fields. |
230 static FieldAccess ForContextExtensionScopeInfo(); | 233 static FieldAccess ForContextExtensionScopeInfo(); |
231 static FieldAccess ForContextExtensionExtension(); | 234 static FieldAccess ForContextExtensionExtension(); |
232 | 235 |
233 // Provides access to FixedArray elements. | 236 // Provides access to FixedArray elements. |
234 static ElementAccess ForFixedArrayElement(); | 237 static ElementAccess ForFixedArrayElement(); |
235 static ElementAccess ForFixedArrayElement(ElementsKind kind); | 238 static ElementAccess ForFixedArrayElement(ElementsKind kind); |
236 | 239 |
237 // Provides access to FixedDoubleArray elements. | 240 // Provides access to FixedDoubleArray elements. |
238 static ElementAccess ForFixedDoubleArrayElement(); | 241 static ElementAccess ForFixedDoubleArrayElement(); |
239 | 242 |
240 // Provides access to Fixed{type}TypedArray and External{type}Array elements. | 243 // Provides access to Fixed{type}TypedArray and External{type}Array elements. |
241 static ElementAccess ForTypedArrayElement(ExternalArrayType type, | 244 static ElementAccess ForTypedArrayElement(ExternalArrayType type, |
242 bool is_external); | 245 bool is_external); |
243 | 246 |
| 247 // Provides access to HashTable fields. |
| 248 static FieldAccess ForHashTableBaseNumberOfElements(); |
| 249 static FieldAccess ForHashTableBaseNumberOfDeletedElement(); |
| 250 static FieldAccess ForHashTableBaseCapacity(); |
| 251 |
| 252 // Provides access to Dictionary fields. |
| 253 static FieldAccess ForDictionaryMaxNumberKey(); |
| 254 static FieldAccess ForDictionaryNextEnumerationIndex(); |
| 255 |
244 private: | 256 private: |
245 DISALLOW_IMPLICIT_CONSTRUCTORS(AccessBuilder); | 257 DISALLOW_IMPLICIT_CONSTRUCTORS(AccessBuilder); |
246 }; | 258 }; |
247 | 259 |
248 } // namespace compiler | 260 } // namespace compiler |
249 } // namespace internal | 261 } // namespace internal |
250 } // namespace v8 | 262 } // namespace v8 |
251 | 263 |
252 #endif // V8_COMPILER_ACCESS_BUILDER_H_ | 264 #endif // V8_COMPILER_ACCESS_BUILDER_H_ |
OLD | NEW |