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 482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
493 | 493 |
494 // static | 494 // static |
495 FieldAccess AccessBuilder::ForConsStringSecond() { | 495 FieldAccess AccessBuilder::ForConsStringSecond() { |
496 FieldAccess access = { | 496 FieldAccess access = { |
497 kTaggedBase, ConsString::kSecondOffset, Handle<Name>(), | 497 kTaggedBase, ConsString::kSecondOffset, Handle<Name>(), |
498 Type::String(), MachineType::TaggedPointer(), kPointerWriteBarrier}; | 498 Type::String(), MachineType::TaggedPointer(), kPointerWriteBarrier}; |
499 return access; | 499 return access; |
500 } | 500 } |
501 | 501 |
502 // static | 502 // static |
| 503 FieldAccess AccessBuilder::ForThinStringActual() { |
| 504 FieldAccess access = { |
| 505 kTaggedBase, ThinString::kActualOffset, Handle<Name>(), |
| 506 Type::String(), MachineType::TaggedPointer(), kPointerWriteBarrier}; |
| 507 return access; |
| 508 } |
| 509 |
| 510 // static |
503 FieldAccess AccessBuilder::ForSlicedStringOffset() { | 511 FieldAccess AccessBuilder::ForSlicedStringOffset() { |
504 FieldAccess access = { | 512 FieldAccess access = { |
505 kTaggedBase, SlicedString::kOffsetOffset, Handle<Name>(), | 513 kTaggedBase, SlicedString::kOffsetOffset, Handle<Name>(), |
506 Type::SignedSmall(), MachineType::TaggedSigned(), kNoWriteBarrier}; | 514 Type::SignedSmall(), MachineType::TaggedSigned(), kNoWriteBarrier}; |
507 return access; | 515 return access; |
508 } | 516 } |
509 | 517 |
510 // static | 518 // static |
511 FieldAccess AccessBuilder::ForSlicedStringParent() { | 519 FieldAccess AccessBuilder::ForSlicedStringParent() { |
512 FieldAccess access = { | 520 FieldAccess access = { |
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
835 } | 843 } |
836 UNREACHABLE(); | 844 UNREACHABLE(); |
837 ElementAccess access = {kUntaggedBase, 0, Type::None(), MachineType::None(), | 845 ElementAccess access = {kUntaggedBase, 0, Type::None(), MachineType::None(), |
838 kNoWriteBarrier}; | 846 kNoWriteBarrier}; |
839 return access; | 847 return access; |
840 } | 848 } |
841 | 849 |
842 } // namespace compiler | 850 } // namespace compiler |
843 } // namespace internal | 851 } // namespace internal |
844 } // namespace v8 | 852 } // namespace v8 |
OLD | NEW |