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/compiler/type-cache.h" | 7 #include "src/compiler/type-cache.h" |
8 #include "src/contexts.h" | 8 #include "src/contexts.h" |
9 #include "src/frames.h" | 9 #include "src/frames.h" |
10 #include "src/handles-inl.h" | 10 #include "src/handles-inl.h" |
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
350 MachineType::AnyTagged(), | 350 MachineType::AnyTagged(), |
351 kPointerWriteBarrier}; | 351 kPointerWriteBarrier}; |
352 return access; | 352 return access; |
353 } | 353 } |
354 | 354 |
355 // static | 355 // static |
356 FieldAccess AccessBuilder::ForFixedTypedArrayBaseExternalPointer() { | 356 FieldAccess AccessBuilder::ForFixedTypedArrayBaseExternalPointer() { |
357 FieldAccess access = {kTaggedBase, | 357 FieldAccess access = {kTaggedBase, |
358 FixedTypedArrayBase::kExternalPointerOffset, | 358 FixedTypedArrayBase::kExternalPointerOffset, |
359 MaybeHandle<Name>(), | 359 MaybeHandle<Name>(), |
360 Type::OtherInternal(), | 360 Type::ExternalPointer(), |
361 MachineType::Pointer(), | 361 MachineType::Pointer(), |
362 kNoWriteBarrier}; | 362 kNoWriteBarrier}; |
363 return access; | 363 return access; |
364 } | 364 } |
365 | 365 |
366 // static | 366 // static |
367 FieldAccess AccessBuilder::ForDescriptorArrayEnumCache() { | 367 FieldAccess AccessBuilder::ForDescriptorArrayEnumCache() { |
368 FieldAccess access = {kTaggedBase, | 368 FieldAccess access = {kTaggedBase, |
369 DescriptorArray::kEnumCacheOffset, | 369 DescriptorArray::kEnumCacheOffset, |
370 Handle<Name>(), | 370 Handle<Name>(), |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
505 kTaggedBase, SlicedString::kParentOffset, Handle<Name>(), | 505 kTaggedBase, SlicedString::kParentOffset, Handle<Name>(), |
506 Type::String(), MachineType::TaggedPointer(), kPointerWriteBarrier}; | 506 Type::String(), MachineType::TaggedPointer(), kPointerWriteBarrier}; |
507 return access; | 507 return access; |
508 } | 508 } |
509 | 509 |
510 // static | 510 // static |
511 FieldAccess AccessBuilder::ForExternalStringResourceData() { | 511 FieldAccess AccessBuilder::ForExternalStringResourceData() { |
512 FieldAccess access = {kTaggedBase, | 512 FieldAccess access = {kTaggedBase, |
513 ExternalString::kResourceDataOffset, | 513 ExternalString::kResourceDataOffset, |
514 Handle<Name>(), | 514 Handle<Name>(), |
515 Type::OtherInternal(), | 515 Type::ExternalPointer(), |
516 MachineType::Pointer(), | 516 MachineType::Pointer(), |
517 kNoWriteBarrier}; | 517 kNoWriteBarrier}; |
518 return access; | 518 return access; |
519 } | 519 } |
520 | 520 |
521 // static | 521 // static |
522 ElementAccess AccessBuilder::ForExternalOneByteStringCharacter() { | 522 ElementAccess AccessBuilder::ForExternalOneByteStringCharacter() { |
523 ElementAccess access = {kUntaggedBase, 0, TypeCache::Get().kUint8, | 523 ElementAccess access = {kUntaggedBase, 0, TypeCache::Get().kUint8, |
524 MachineType::Uint8(), kNoWriteBarrier}; | 524 MachineType::Uint8(), kNoWriteBarrier}; |
525 return access; | 525 return access; |
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
774 } | 774 } |
775 UNREACHABLE(); | 775 UNREACHABLE(); |
776 ElementAccess access = {kUntaggedBase, 0, Type::None(), MachineType::None(), | 776 ElementAccess access = {kUntaggedBase, 0, Type::None(), MachineType::None(), |
777 kNoWriteBarrier}; | 777 kNoWriteBarrier}; |
778 return access; | 778 return access; |
779 } | 779 } |
780 | 780 |
781 } // namespace compiler | 781 } // namespace compiler |
782 } // namespace internal | 782 } // namespace internal |
783 } // namespace v8 | 783 } // namespace v8 |
OLD | NEW |