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 #include "src/compiler/access-builder.h" | 5 #include "src/compiler/access-builder.h" |
6 | 6 |
7 #include "src/contexts.h" | 7 #include "src/contexts.h" |
8 #include "src/frames.h" | 8 #include "src/frames.h" |
9 #include "src/handles-inl.h" | 9 #include "src/handles-inl.h" |
10 #include "src/heap/heap.h" | 10 #include "src/heap/heap.h" |
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
320 FieldAccess AccessBuilder::ForFixedArrayLength() { | 320 FieldAccess AccessBuilder::ForFixedArrayLength() { |
321 FieldAccess access = {kTaggedBase, | 321 FieldAccess access = {kTaggedBase, |
322 FixedArray::kLengthOffset, | 322 FixedArray::kLengthOffset, |
323 MaybeHandle<Name>(), | 323 MaybeHandle<Name>(), |
324 TypeCache::Get().kFixedArrayLengthType, | 324 TypeCache::Get().kFixedArrayLengthType, |
325 MachineType::AnyTagged(), | 325 MachineType::AnyTagged(), |
326 kNoWriteBarrier}; | 326 kNoWriteBarrier}; |
327 return access; | 327 return access; |
328 } | 328 } |
329 | 329 |
| 330 // static |
| 331 FieldAccess AccessBuilder::ForFixedTypedArrayBaseBasePointer() { |
| 332 FieldAccess access = {kTaggedBase, |
| 333 FixedTypedArrayBase::kBasePointerOffset, |
| 334 MaybeHandle<Name>(), |
| 335 Type::Tagged(), |
| 336 MachineType::AnyTagged(), |
| 337 kPointerWriteBarrier}; |
| 338 return access; |
| 339 } |
| 340 |
| 341 // static |
| 342 FieldAccess AccessBuilder::ForFixedTypedArrayBaseExternalPointer() { |
| 343 FieldAccess access = {kTaggedBase, |
| 344 FixedTypedArrayBase::kExternalPointerOffset, |
| 345 MaybeHandle<Name>(), |
| 346 Type::UntaggedPointer(), |
| 347 MachineType::Pointer(), |
| 348 kNoWriteBarrier}; |
| 349 return access; |
| 350 } |
330 | 351 |
331 // static | 352 // static |
332 FieldAccess AccessBuilder::ForDescriptorArrayEnumCache() { | 353 FieldAccess AccessBuilder::ForDescriptorArrayEnumCache() { |
333 FieldAccess access = {kTaggedBase, | 354 FieldAccess access = {kTaggedBase, |
334 DescriptorArray::kEnumCacheOffset, | 355 DescriptorArray::kEnumCacheOffset, |
335 Handle<Name>(), | 356 Handle<Name>(), |
336 Type::TaggedPointer(), | 357 Type::TaggedPointer(), |
337 MachineType::AnyTagged(), | 358 MachineType::AnyTagged(), |
338 kPointerWriteBarrier}; | 359 kPointerWriteBarrier}; |
339 return access; | 360 return access; |
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
651 } | 672 } |
652 UNREACHABLE(); | 673 UNREACHABLE(); |
653 ElementAccess access = {kUntaggedBase, 0, Type::None(), MachineType::None(), | 674 ElementAccess access = {kUntaggedBase, 0, Type::None(), MachineType::None(), |
654 kNoWriteBarrier}; | 675 kNoWriteBarrier}; |
655 return access; | 676 return access; |
656 } | 677 } |
657 | 678 |
658 } // namespace compiler | 679 } // namespace compiler |
659 } // namespace internal | 680 } // namespace internal |
660 } // namespace v8 | 681 } // namespace v8 |
OLD | NEW |