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 611 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
622 access.write_barrier_kind = kNoWriteBarrier; | 622 access.write_barrier_kind = kNoWriteBarrier; |
623 break; | 623 break; |
624 case FAST_HOLEY_SMI_ELEMENTS: | 624 case FAST_HOLEY_SMI_ELEMENTS: |
625 access.type = TypeCache::Get().kHoleySmi; | 625 access.type = TypeCache::Get().kHoleySmi; |
626 break; | 626 break; |
627 case FAST_ELEMENTS: | 627 case FAST_ELEMENTS: |
628 access.type = Type::NonInternal(); | 628 access.type = Type::NonInternal(); |
629 break; | 629 break; |
630 case FAST_HOLEY_ELEMENTS: | 630 case FAST_HOLEY_ELEMENTS: |
631 break; | 631 break; |
| 632 case FAST_DOUBLE_ELEMENTS: |
| 633 access.type = Type::Number(); |
| 634 access.write_barrier_kind = kNoWriteBarrier; |
| 635 access.machine_type = MachineType::Float64(); |
| 636 break; |
| 637 case FAST_HOLEY_DOUBLE_ELEMENTS: |
| 638 access.type = Type::Number(); |
| 639 access.write_barrier_kind = kNoWriteBarrier; |
| 640 access.machine_type = MachineType::Float64(); |
| 641 break; |
632 default: | 642 default: |
633 UNREACHABLE(); | 643 UNREACHABLE(); |
634 break; | 644 break; |
635 } | 645 } |
636 return access; | 646 return access; |
637 } | 647 } |
638 | 648 |
639 // static | 649 // static |
640 ElementAccess AccessBuilder::ForFixedDoubleArrayElement() { | 650 ElementAccess AccessBuilder::ForFixedDoubleArrayElement() { |
641 ElementAccess access = {kTaggedBase, FixedDoubleArray::kHeaderSize, | 651 ElementAccess access = {kTaggedBase, FixedDoubleArray::kHeaderSize, |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
695 } | 705 } |
696 UNREACHABLE(); | 706 UNREACHABLE(); |
697 ElementAccess access = {kUntaggedBase, 0, Type::None(), MachineType::None(), | 707 ElementAccess access = {kUntaggedBase, 0, Type::None(), MachineType::None(), |
698 kNoWriteBarrier}; | 708 kNoWriteBarrier}; |
699 return access; | 709 return access; |
700 } | 710 } |
701 | 711 |
702 } // namespace compiler | 712 } // namespace compiler |
703 } // namespace internal | 713 } // namespace internal |
704 } // namespace v8 | 714 } // namespace v8 |
OLD | NEW |