OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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_RUNTIME_RUNTIME_H_ | 5 #ifndef V8_RUNTIME_RUNTIME_H_ |
6 #define V8_RUNTIME_RUNTIME_H_ | 6 #define V8_RUNTIME_RUNTIME_H_ |
7 | 7 |
8 #include "src/allocation.h" | 8 #include "src/allocation.h" |
9 #include "src/objects.h" | 9 #include "src/objects.h" |
10 #include "src/unicode.h" | 10 #include "src/unicode.h" |
(...skipping 597 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
608 F(Float32x4FromInt32x4Bits, 1, 1) \ | 608 F(Float32x4FromInt32x4Bits, 1, 1) \ |
609 F(Float32x4FromUint32x4Bits, 1, 1) \ | 609 F(Float32x4FromUint32x4Bits, 1, 1) \ |
610 F(Float32x4FromInt16x8Bits, 1, 1) \ | 610 F(Float32x4FromInt16x8Bits, 1, 1) \ |
611 F(Float32x4FromUint16x8Bits, 1, 1) \ | 611 F(Float32x4FromUint16x8Bits, 1, 1) \ |
612 F(Float32x4FromInt8x16Bits, 1, 1) \ | 612 F(Float32x4FromInt8x16Bits, 1, 1) \ |
613 F(Float32x4FromUint8x16Bits, 1, 1) \ | 613 F(Float32x4FromUint8x16Bits, 1, 1) \ |
614 F(Float32x4Load, 2, 1) \ | 614 F(Float32x4Load, 2, 1) \ |
615 F(Float32x4Load1, 2, 1) \ | 615 F(Float32x4Load1, 2, 1) \ |
616 F(Float32x4Load2, 2, 1) \ | 616 F(Float32x4Load2, 2, 1) \ |
617 F(Float32x4Load3, 2, 1) \ | 617 F(Float32x4Load3, 2, 1) \ |
| 618 F(Float32x4Store, 3, 1) \ |
| 619 F(Float32x4Store1, 3, 1) \ |
| 620 F(Float32x4Store2, 3, 1) \ |
| 621 F(Float32x4Store3, 3, 1) \ |
618 F(Int32x4Check, 1, 1) \ | 622 F(Int32x4Check, 1, 1) \ |
619 F(Int32x4ExtractLane, 2, 1) \ | 623 F(Int32x4ExtractLane, 2, 1) \ |
620 F(Int32x4ReplaceLane, 3, 1) \ | 624 F(Int32x4ReplaceLane, 3, 1) \ |
621 F(Int32x4Neg, 1, 1) \ | 625 F(Int32x4Neg, 1, 1) \ |
622 F(Int32x4Add, 2, 1) \ | 626 F(Int32x4Add, 2, 1) \ |
623 F(Int32x4Sub, 2, 1) \ | 627 F(Int32x4Sub, 2, 1) \ |
624 F(Int32x4Mul, 2, 1) \ | 628 F(Int32x4Mul, 2, 1) \ |
625 F(Int32x4Min, 2, 1) \ | 629 F(Int32x4Min, 2, 1) \ |
626 F(Int32x4Max, 2, 1) \ | 630 F(Int32x4Max, 2, 1) \ |
627 F(Int32x4And, 2, 1) \ | 631 F(Int32x4And, 2, 1) \ |
(...skipping 16 matching lines...) Expand all Loading... |
644 F(Int32x4FromFloat32x4Bits, 1, 1) \ | 648 F(Int32x4FromFloat32x4Bits, 1, 1) \ |
645 F(Int32x4FromUint32x4Bits, 1, 1) \ | 649 F(Int32x4FromUint32x4Bits, 1, 1) \ |
646 F(Int32x4FromInt16x8Bits, 1, 1) \ | 650 F(Int32x4FromInt16x8Bits, 1, 1) \ |
647 F(Int32x4FromUint16x8Bits, 1, 1) \ | 651 F(Int32x4FromUint16x8Bits, 1, 1) \ |
648 F(Int32x4FromInt8x16Bits, 1, 1) \ | 652 F(Int32x4FromInt8x16Bits, 1, 1) \ |
649 F(Int32x4FromUint8x16Bits, 1, 1) \ | 653 F(Int32x4FromUint8x16Bits, 1, 1) \ |
650 F(Int32x4Load, 2, 1) \ | 654 F(Int32x4Load, 2, 1) \ |
651 F(Int32x4Load1, 2, 1) \ | 655 F(Int32x4Load1, 2, 1) \ |
652 F(Int32x4Load2, 2, 1) \ | 656 F(Int32x4Load2, 2, 1) \ |
653 F(Int32x4Load3, 2, 1) \ | 657 F(Int32x4Load3, 2, 1) \ |
| 658 F(Int32x4Store, 3, 1) \ |
| 659 F(Int32x4Store1, 3, 1) \ |
| 660 F(Int32x4Store2, 3, 1) \ |
| 661 F(Int32x4Store3, 3, 1) \ |
654 F(Uint32x4Check, 1, 1) \ | 662 F(Uint32x4Check, 1, 1) \ |
655 F(Uint32x4ExtractLane, 2, 1) \ | 663 F(Uint32x4ExtractLane, 2, 1) \ |
656 F(Uint32x4ReplaceLane, 3, 1) \ | 664 F(Uint32x4ReplaceLane, 3, 1) \ |
657 F(Uint32x4Add, 2, 1) \ | 665 F(Uint32x4Add, 2, 1) \ |
658 F(Uint32x4Sub, 2, 1) \ | 666 F(Uint32x4Sub, 2, 1) \ |
659 F(Uint32x4Mul, 2, 1) \ | 667 F(Uint32x4Mul, 2, 1) \ |
660 F(Uint32x4Min, 2, 1) \ | 668 F(Uint32x4Min, 2, 1) \ |
661 F(Uint32x4Max, 2, 1) \ | 669 F(Uint32x4Max, 2, 1) \ |
662 F(Uint32x4And, 2, 1) \ | 670 F(Uint32x4And, 2, 1) \ |
663 F(Uint32x4Or, 2, 1) \ | 671 F(Uint32x4Or, 2, 1) \ |
(...skipping 16 matching lines...) Expand all Loading... |
680 F(Uint32x4FromFloat32x4Bits, 1, 1) \ | 688 F(Uint32x4FromFloat32x4Bits, 1, 1) \ |
681 F(Uint32x4FromInt32x4Bits, 1, 1) \ | 689 F(Uint32x4FromInt32x4Bits, 1, 1) \ |
682 F(Uint32x4FromInt16x8Bits, 1, 1) \ | 690 F(Uint32x4FromInt16x8Bits, 1, 1) \ |
683 F(Uint32x4FromUint16x8Bits, 1, 1) \ | 691 F(Uint32x4FromUint16x8Bits, 1, 1) \ |
684 F(Uint32x4FromInt8x16Bits, 1, 1) \ | 692 F(Uint32x4FromInt8x16Bits, 1, 1) \ |
685 F(Uint32x4FromUint8x16Bits, 1, 1) \ | 693 F(Uint32x4FromUint8x16Bits, 1, 1) \ |
686 F(Uint32x4Load, 2, 1) \ | 694 F(Uint32x4Load, 2, 1) \ |
687 F(Uint32x4Load1, 2, 1) \ | 695 F(Uint32x4Load1, 2, 1) \ |
688 F(Uint32x4Load2, 2, 1) \ | 696 F(Uint32x4Load2, 2, 1) \ |
689 F(Uint32x4Load3, 2, 1) \ | 697 F(Uint32x4Load3, 2, 1) \ |
| 698 F(Uint32x4Store, 3, 1) \ |
| 699 F(Uint32x4Store1, 3, 1) \ |
| 700 F(Uint32x4Store2, 3, 1) \ |
| 701 F(Uint32x4Store3, 3, 1) \ |
690 F(Bool32x4Check, 1, 1) \ | 702 F(Bool32x4Check, 1, 1) \ |
691 F(Bool32x4ExtractLane, 2, 1) \ | 703 F(Bool32x4ExtractLane, 2, 1) \ |
692 F(Bool32x4ReplaceLane, 3, 1) \ | 704 F(Bool32x4ReplaceLane, 3, 1) \ |
693 F(Bool32x4And, 2, 1) \ | 705 F(Bool32x4And, 2, 1) \ |
694 F(Bool32x4Or, 2, 1) \ | 706 F(Bool32x4Or, 2, 1) \ |
695 F(Bool32x4Xor, 2, 1) \ | 707 F(Bool32x4Xor, 2, 1) \ |
696 F(Bool32x4Not, 1, 1) \ | 708 F(Bool32x4Not, 1, 1) \ |
697 F(Bool32x4AnyTrue, 1, 1) \ | 709 F(Bool32x4AnyTrue, 1, 1) \ |
698 F(Bool32x4AllTrue, 1, 1) \ | 710 F(Bool32x4AllTrue, 1, 1) \ |
699 F(Bool32x4Swizzle, 5, 1) \ | 711 F(Bool32x4Swizzle, 5, 1) \ |
(...skipping 25 matching lines...) Expand all Loading... |
725 F(Int16x8Swizzle, 9, 1) \ | 737 F(Int16x8Swizzle, 9, 1) \ |
726 F(Int16x8Shuffle, 10, 1) \ | 738 F(Int16x8Shuffle, 10, 1) \ |
727 F(Int16x8FromUint16x8, 1, 1) \ | 739 F(Int16x8FromUint16x8, 1, 1) \ |
728 F(Int16x8FromFloat32x4Bits, 1, 1) \ | 740 F(Int16x8FromFloat32x4Bits, 1, 1) \ |
729 F(Int16x8FromInt32x4Bits, 1, 1) \ | 741 F(Int16x8FromInt32x4Bits, 1, 1) \ |
730 F(Int16x8FromUint32x4Bits, 1, 1) \ | 742 F(Int16x8FromUint32x4Bits, 1, 1) \ |
731 F(Int16x8FromUint16x8Bits, 1, 1) \ | 743 F(Int16x8FromUint16x8Bits, 1, 1) \ |
732 F(Int16x8FromInt8x16Bits, 1, 1) \ | 744 F(Int16x8FromInt8x16Bits, 1, 1) \ |
733 F(Int16x8FromUint8x16Bits, 1, 1) \ | 745 F(Int16x8FromUint8x16Bits, 1, 1) \ |
734 F(Int16x8Load, 2, 1) \ | 746 F(Int16x8Load, 2, 1) \ |
| 747 F(Int16x8Store, 3, 1) \ |
735 F(Uint16x8Check, 1, 1) \ | 748 F(Uint16x8Check, 1, 1) \ |
736 F(Uint16x8ExtractLane, 2, 1) \ | 749 F(Uint16x8ExtractLane, 2, 1) \ |
737 F(Uint16x8ReplaceLane, 3, 1) \ | 750 F(Uint16x8ReplaceLane, 3, 1) \ |
738 F(Uint16x8Add, 2, 1) \ | 751 F(Uint16x8Add, 2, 1) \ |
739 F(Uint16x8AddSaturate, 2, 1) \ | 752 F(Uint16x8AddSaturate, 2, 1) \ |
740 F(Uint16x8Sub, 2, 1) \ | 753 F(Uint16x8Sub, 2, 1) \ |
741 F(Uint16x8SubSaturate, 2, 1) \ | 754 F(Uint16x8SubSaturate, 2, 1) \ |
742 F(Uint16x8Mul, 2, 1) \ | 755 F(Uint16x8Mul, 2, 1) \ |
743 F(Uint16x8Min, 2, 1) \ | 756 F(Uint16x8Min, 2, 1) \ |
744 F(Uint16x8Max, 2, 1) \ | 757 F(Uint16x8Max, 2, 1) \ |
(...skipping 16 matching lines...) Expand all Loading... |
761 F(Uint16x8Swizzle, 9, 1) \ | 774 F(Uint16x8Swizzle, 9, 1) \ |
762 F(Uint16x8Shuffle, 10, 1) \ | 775 F(Uint16x8Shuffle, 10, 1) \ |
763 F(Uint16x8FromInt16x8, 1, 1) \ | 776 F(Uint16x8FromInt16x8, 1, 1) \ |
764 F(Uint16x8FromFloat32x4Bits, 1, 1) \ | 777 F(Uint16x8FromFloat32x4Bits, 1, 1) \ |
765 F(Uint16x8FromInt32x4Bits, 1, 1) \ | 778 F(Uint16x8FromInt32x4Bits, 1, 1) \ |
766 F(Uint16x8FromUint32x4Bits, 1, 1) \ | 779 F(Uint16x8FromUint32x4Bits, 1, 1) \ |
767 F(Uint16x8FromInt16x8Bits, 1, 1) \ | 780 F(Uint16x8FromInt16x8Bits, 1, 1) \ |
768 F(Uint16x8FromInt8x16Bits, 1, 1) \ | 781 F(Uint16x8FromInt8x16Bits, 1, 1) \ |
769 F(Uint16x8FromUint8x16Bits, 1, 1) \ | 782 F(Uint16x8FromUint8x16Bits, 1, 1) \ |
770 F(Uint16x8Load, 2, 1) \ | 783 F(Uint16x8Load, 2, 1) \ |
| 784 F(Uint16x8Store, 3, 1) \ |
771 F(Bool16x8Check, 1, 1) \ | 785 F(Bool16x8Check, 1, 1) \ |
772 F(Bool16x8ExtractLane, 2, 1) \ | 786 F(Bool16x8ExtractLane, 2, 1) \ |
773 F(Bool16x8ReplaceLane, 3, 1) \ | 787 F(Bool16x8ReplaceLane, 3, 1) \ |
774 F(Bool16x8And, 2, 1) \ | 788 F(Bool16x8And, 2, 1) \ |
775 F(Bool16x8Or, 2, 1) \ | 789 F(Bool16x8Or, 2, 1) \ |
776 F(Bool16x8Xor, 2, 1) \ | 790 F(Bool16x8Xor, 2, 1) \ |
777 F(Bool16x8Not, 1, 1) \ | 791 F(Bool16x8Not, 1, 1) \ |
778 F(Bool16x8AnyTrue, 1, 1) \ | 792 F(Bool16x8AnyTrue, 1, 1) \ |
779 F(Bool16x8AllTrue, 1, 1) \ | 793 F(Bool16x8AllTrue, 1, 1) \ |
780 F(Bool16x8Swizzle, 9, 1) \ | 794 F(Bool16x8Swizzle, 9, 1) \ |
(...skipping 25 matching lines...) Expand all Loading... |
806 F(Int8x16Swizzle, 17, 1) \ | 820 F(Int8x16Swizzle, 17, 1) \ |
807 F(Int8x16Shuffle, 18, 1) \ | 821 F(Int8x16Shuffle, 18, 1) \ |
808 F(Int8x16FromUint8x16, 1, 1) \ | 822 F(Int8x16FromUint8x16, 1, 1) \ |
809 F(Int8x16FromFloat32x4Bits, 1, 1) \ | 823 F(Int8x16FromFloat32x4Bits, 1, 1) \ |
810 F(Int8x16FromInt32x4Bits, 1, 1) \ | 824 F(Int8x16FromInt32x4Bits, 1, 1) \ |
811 F(Int8x16FromUint32x4Bits, 1, 1) \ | 825 F(Int8x16FromUint32x4Bits, 1, 1) \ |
812 F(Int8x16FromInt16x8Bits, 1, 1) \ | 826 F(Int8x16FromInt16x8Bits, 1, 1) \ |
813 F(Int8x16FromUint16x8Bits, 1, 1) \ | 827 F(Int8x16FromUint16x8Bits, 1, 1) \ |
814 F(Int8x16FromUint8x16Bits, 1, 1) \ | 828 F(Int8x16FromUint8x16Bits, 1, 1) \ |
815 F(Int8x16Load, 2, 1) \ | 829 F(Int8x16Load, 2, 1) \ |
| 830 F(Int8x16Store, 3, 1) \ |
816 F(Uint8x16Check, 1, 1) \ | 831 F(Uint8x16Check, 1, 1) \ |
817 F(Uint8x16ExtractLane, 2, 1) \ | 832 F(Uint8x16ExtractLane, 2, 1) \ |
818 F(Uint8x16ReplaceLane, 3, 1) \ | 833 F(Uint8x16ReplaceLane, 3, 1) \ |
819 F(Uint8x16Add, 2, 1) \ | 834 F(Uint8x16Add, 2, 1) \ |
820 F(Uint8x16AddSaturate, 2, 1) \ | 835 F(Uint8x16AddSaturate, 2, 1) \ |
821 F(Uint8x16Sub, 2, 1) \ | 836 F(Uint8x16Sub, 2, 1) \ |
822 F(Uint8x16SubSaturate, 2, 1) \ | 837 F(Uint8x16SubSaturate, 2, 1) \ |
823 F(Uint8x16Mul, 2, 1) \ | 838 F(Uint8x16Mul, 2, 1) \ |
824 F(Uint8x16Min, 2, 1) \ | 839 F(Uint8x16Min, 2, 1) \ |
825 F(Uint8x16Max, 2, 1) \ | 840 F(Uint8x16Max, 2, 1) \ |
(...skipping 16 matching lines...) Expand all Loading... |
842 F(Uint8x16Swizzle, 17, 1) \ | 857 F(Uint8x16Swizzle, 17, 1) \ |
843 F(Uint8x16Shuffle, 18, 1) \ | 858 F(Uint8x16Shuffle, 18, 1) \ |
844 F(Uint8x16FromInt8x16, 1, 1) \ | 859 F(Uint8x16FromInt8x16, 1, 1) \ |
845 F(Uint8x16FromFloat32x4Bits, 1, 1) \ | 860 F(Uint8x16FromFloat32x4Bits, 1, 1) \ |
846 F(Uint8x16FromInt32x4Bits, 1, 1) \ | 861 F(Uint8x16FromInt32x4Bits, 1, 1) \ |
847 F(Uint8x16FromUint32x4Bits, 1, 1) \ | 862 F(Uint8x16FromUint32x4Bits, 1, 1) \ |
848 F(Uint8x16FromInt16x8Bits, 1, 1) \ | 863 F(Uint8x16FromInt16x8Bits, 1, 1) \ |
849 F(Uint8x16FromUint16x8Bits, 1, 1) \ | 864 F(Uint8x16FromUint16x8Bits, 1, 1) \ |
850 F(Uint8x16FromInt8x16Bits, 1, 1) \ | 865 F(Uint8x16FromInt8x16Bits, 1, 1) \ |
851 F(Uint8x16Load, 2, 1) \ | 866 F(Uint8x16Load, 2, 1) \ |
| 867 F(Uint8x16Store, 3, 1) \ |
852 F(Bool8x16Check, 1, 1) \ | 868 F(Bool8x16Check, 1, 1) \ |
853 F(Bool8x16ExtractLane, 2, 1) \ | 869 F(Bool8x16ExtractLane, 2, 1) \ |
854 F(Bool8x16ReplaceLane, 3, 1) \ | 870 F(Bool8x16ReplaceLane, 3, 1) \ |
855 F(Bool8x16And, 2, 1) \ | 871 F(Bool8x16And, 2, 1) \ |
856 F(Bool8x16Or, 2, 1) \ | 872 F(Bool8x16Or, 2, 1) \ |
857 F(Bool8x16Xor, 2, 1) \ | 873 F(Bool8x16Xor, 2, 1) \ |
858 F(Bool8x16Not, 1, 1) \ | 874 F(Bool8x16Not, 1, 1) \ |
859 F(Bool8x16AnyTrue, 1, 1) \ | 875 F(Bool8x16AnyTrue, 1, 1) \ |
860 F(Bool8x16AllTrue, 1, 1) \ | 876 F(Bool8x16AllTrue, 1, 1) \ |
861 F(Bool8x16Swizzle, 17, 1) \ | 877 F(Bool8x16Swizzle, 17, 1) \ |
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1229 inline bool Runtime::AtomicIsLockFree(uint32_t size) { | 1245 inline bool Runtime::AtomicIsLockFree(uint32_t size) { |
1230 return size == 1 || size == 2 || size == 4; | 1246 return size == 1 || size == 2 || size == 4; |
1231 } | 1247 } |
1232 | 1248 |
1233 #endif | 1249 #endif |
1234 | 1250 |
1235 } // namespace internal | 1251 } // namespace internal |
1236 } // namespace v8 | 1252 } // namespace v8 |
1237 | 1253 |
1238 #endif // V8_RUNTIME_RUNTIME_H_ | 1254 #endif // V8_RUNTIME_RUNTIME_H_ |
OLD | NEW |