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 596 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
607 F(Float32x4Swizzle, 5, 1) \ | 607 F(Float32x4Swizzle, 5, 1) \ |
608 F(Float32x4Shuffle, 6, 1) \ | 608 F(Float32x4Shuffle, 6, 1) \ |
609 F(Float32x4FromInt32x4, 1, 1) \ | 609 F(Float32x4FromInt32x4, 1, 1) \ |
610 F(Float32x4FromUint32x4, 1, 1) \ | 610 F(Float32x4FromUint32x4, 1, 1) \ |
611 F(Float32x4FromInt32x4Bits, 1, 1) \ | 611 F(Float32x4FromInt32x4Bits, 1, 1) \ |
612 F(Float32x4FromUint32x4Bits, 1, 1) \ | 612 F(Float32x4FromUint32x4Bits, 1, 1) \ |
613 F(Float32x4FromInt16x8Bits, 1, 1) \ | 613 F(Float32x4FromInt16x8Bits, 1, 1) \ |
614 F(Float32x4FromUint16x8Bits, 1, 1) \ | 614 F(Float32x4FromUint16x8Bits, 1, 1) \ |
615 F(Float32x4FromInt8x16Bits, 1, 1) \ | 615 F(Float32x4FromInt8x16Bits, 1, 1) \ |
616 F(Float32x4FromUint8x16Bits, 1, 1) \ | 616 F(Float32x4FromUint8x16Bits, 1, 1) \ |
| 617 F(Float32x4Load, 2, 1) \ |
| 618 F(Float32x4Load1, 2, 1) \ |
| 619 F(Float32x4Load2, 2, 1) \ |
| 620 F(Float32x4Load3, 2, 1) \ |
617 F(Int32x4Check, 1, 1) \ | 621 F(Int32x4Check, 1, 1) \ |
618 F(Int32x4ExtractLane, 2, 1) \ | 622 F(Int32x4ExtractLane, 2, 1) \ |
619 F(Int32x4ReplaceLane, 3, 1) \ | 623 F(Int32x4ReplaceLane, 3, 1) \ |
620 F(Int32x4Neg, 1, 1) \ | 624 F(Int32x4Neg, 1, 1) \ |
621 F(Int32x4Add, 2, 1) \ | 625 F(Int32x4Add, 2, 1) \ |
622 F(Int32x4Sub, 2, 1) \ | 626 F(Int32x4Sub, 2, 1) \ |
623 F(Int32x4Mul, 2, 1) \ | 627 F(Int32x4Mul, 2, 1) \ |
624 F(Int32x4Min, 2, 1) \ | 628 F(Int32x4Min, 2, 1) \ |
625 F(Int32x4Max, 2, 1) \ | 629 F(Int32x4Max, 2, 1) \ |
626 F(Int32x4And, 2, 1) \ | 630 F(Int32x4And, 2, 1) \ |
(...skipping 12 matching lines...) Expand all Loading... |
639 F(Int32x4Swizzle, 5, 1) \ | 643 F(Int32x4Swizzle, 5, 1) \ |
640 F(Int32x4Shuffle, 6, 1) \ | 644 F(Int32x4Shuffle, 6, 1) \ |
641 F(Int32x4FromFloat32x4, 1, 1) \ | 645 F(Int32x4FromFloat32x4, 1, 1) \ |
642 F(Int32x4FromUint32x4, 1, 1) \ | 646 F(Int32x4FromUint32x4, 1, 1) \ |
643 F(Int32x4FromFloat32x4Bits, 1, 1) \ | 647 F(Int32x4FromFloat32x4Bits, 1, 1) \ |
644 F(Int32x4FromUint32x4Bits, 1, 1) \ | 648 F(Int32x4FromUint32x4Bits, 1, 1) \ |
645 F(Int32x4FromInt16x8Bits, 1, 1) \ | 649 F(Int32x4FromInt16x8Bits, 1, 1) \ |
646 F(Int32x4FromUint16x8Bits, 1, 1) \ | 650 F(Int32x4FromUint16x8Bits, 1, 1) \ |
647 F(Int32x4FromInt8x16Bits, 1, 1) \ | 651 F(Int32x4FromInt8x16Bits, 1, 1) \ |
648 F(Int32x4FromUint8x16Bits, 1, 1) \ | 652 F(Int32x4FromUint8x16Bits, 1, 1) \ |
| 653 F(Int32x4Load, 2, 1) \ |
| 654 F(Int32x4Load1, 2, 1) \ |
| 655 F(Int32x4Load2, 2, 1) \ |
| 656 F(Int32x4Load3, 2, 1) \ |
649 F(Uint32x4Check, 1, 1) \ | 657 F(Uint32x4Check, 1, 1) \ |
650 F(Uint32x4ExtractLane, 2, 1) \ | 658 F(Uint32x4ExtractLane, 2, 1) \ |
651 F(Uint32x4ReplaceLane, 3, 1) \ | 659 F(Uint32x4ReplaceLane, 3, 1) \ |
652 F(Uint32x4Add, 2, 1) \ | 660 F(Uint32x4Add, 2, 1) \ |
653 F(Uint32x4Sub, 2, 1) \ | 661 F(Uint32x4Sub, 2, 1) \ |
654 F(Uint32x4Mul, 2, 1) \ | 662 F(Uint32x4Mul, 2, 1) \ |
655 F(Uint32x4Min, 2, 1) \ | 663 F(Uint32x4Min, 2, 1) \ |
656 F(Uint32x4Max, 2, 1) \ | 664 F(Uint32x4Max, 2, 1) \ |
657 F(Uint32x4And, 2, 1) \ | 665 F(Uint32x4And, 2, 1) \ |
658 F(Uint32x4Or, 2, 1) \ | 666 F(Uint32x4Or, 2, 1) \ |
(...skipping 12 matching lines...) Expand all Loading... |
671 F(Uint32x4Swizzle, 5, 1) \ | 679 F(Uint32x4Swizzle, 5, 1) \ |
672 F(Uint32x4Shuffle, 6, 1) \ | 680 F(Uint32x4Shuffle, 6, 1) \ |
673 F(Uint32x4FromFloat32x4, 1, 1) \ | 681 F(Uint32x4FromFloat32x4, 1, 1) \ |
674 F(Uint32x4FromInt32x4, 1, 1) \ | 682 F(Uint32x4FromInt32x4, 1, 1) \ |
675 F(Uint32x4FromFloat32x4Bits, 1, 1) \ | 683 F(Uint32x4FromFloat32x4Bits, 1, 1) \ |
676 F(Uint32x4FromInt32x4Bits, 1, 1) \ | 684 F(Uint32x4FromInt32x4Bits, 1, 1) \ |
677 F(Uint32x4FromInt16x8Bits, 1, 1) \ | 685 F(Uint32x4FromInt16x8Bits, 1, 1) \ |
678 F(Uint32x4FromUint16x8Bits, 1, 1) \ | 686 F(Uint32x4FromUint16x8Bits, 1, 1) \ |
679 F(Uint32x4FromInt8x16Bits, 1, 1) \ | 687 F(Uint32x4FromInt8x16Bits, 1, 1) \ |
680 F(Uint32x4FromUint8x16Bits, 1, 1) \ | 688 F(Uint32x4FromUint8x16Bits, 1, 1) \ |
| 689 F(Uint32x4Load, 2, 1) \ |
| 690 F(Uint32x4Load1, 2, 1) \ |
| 691 F(Uint32x4Load2, 2, 1) \ |
| 692 F(Uint32x4Load3, 2, 1) \ |
681 F(Bool32x4Check, 1, 1) \ | 693 F(Bool32x4Check, 1, 1) \ |
682 F(Bool32x4ExtractLane, 2, 1) \ | 694 F(Bool32x4ExtractLane, 2, 1) \ |
683 F(Bool32x4ReplaceLane, 3, 1) \ | 695 F(Bool32x4ReplaceLane, 3, 1) \ |
684 F(Bool32x4And, 2, 1) \ | 696 F(Bool32x4And, 2, 1) \ |
685 F(Bool32x4Or, 2, 1) \ | 697 F(Bool32x4Or, 2, 1) \ |
686 F(Bool32x4Xor, 2, 1) \ | 698 F(Bool32x4Xor, 2, 1) \ |
687 F(Bool32x4Not, 1, 1) \ | 699 F(Bool32x4Not, 1, 1) \ |
688 F(Bool32x4AnyTrue, 1, 1) \ | 700 F(Bool32x4AnyTrue, 1, 1) \ |
689 F(Bool32x4AllTrue, 1, 1) \ | 701 F(Bool32x4AllTrue, 1, 1) \ |
690 F(Bool32x4Swizzle, 5, 1) \ | 702 F(Bool32x4Swizzle, 5, 1) \ |
(...skipping 24 matching lines...) Expand all Loading... |
715 F(Int16x8Select, 3, 1) \ | 727 F(Int16x8Select, 3, 1) \ |
716 F(Int16x8Swizzle, 9, 1) \ | 728 F(Int16x8Swizzle, 9, 1) \ |
717 F(Int16x8Shuffle, 10, 1) \ | 729 F(Int16x8Shuffle, 10, 1) \ |
718 F(Int16x8FromUint16x8, 1, 1) \ | 730 F(Int16x8FromUint16x8, 1, 1) \ |
719 F(Int16x8FromFloat32x4Bits, 1, 1) \ | 731 F(Int16x8FromFloat32x4Bits, 1, 1) \ |
720 F(Int16x8FromInt32x4Bits, 1, 1) \ | 732 F(Int16x8FromInt32x4Bits, 1, 1) \ |
721 F(Int16x8FromUint32x4Bits, 1, 1) \ | 733 F(Int16x8FromUint32x4Bits, 1, 1) \ |
722 F(Int16x8FromUint16x8Bits, 1, 1) \ | 734 F(Int16x8FromUint16x8Bits, 1, 1) \ |
723 F(Int16x8FromInt8x16Bits, 1, 1) \ | 735 F(Int16x8FromInt8x16Bits, 1, 1) \ |
724 F(Int16x8FromUint8x16Bits, 1, 1) \ | 736 F(Int16x8FromUint8x16Bits, 1, 1) \ |
| 737 F(Int16x8Load, 2, 1) \ |
725 F(Uint16x8Check, 1, 1) \ | 738 F(Uint16x8Check, 1, 1) \ |
726 F(Uint16x8ExtractLane, 2, 1) \ | 739 F(Uint16x8ExtractLane, 2, 1) \ |
727 F(Uint16x8ReplaceLane, 3, 1) \ | 740 F(Uint16x8ReplaceLane, 3, 1) \ |
728 F(Uint16x8Add, 2, 1) \ | 741 F(Uint16x8Add, 2, 1) \ |
729 F(Uint16x8AddSaturate, 2, 1) \ | 742 F(Uint16x8AddSaturate, 2, 1) \ |
730 F(Uint16x8Sub, 2, 1) \ | 743 F(Uint16x8Sub, 2, 1) \ |
731 F(Uint16x8SubSaturate, 2, 1) \ | 744 F(Uint16x8SubSaturate, 2, 1) \ |
732 F(Uint16x8Mul, 2, 1) \ | 745 F(Uint16x8Mul, 2, 1) \ |
733 F(Uint16x8Min, 2, 1) \ | 746 F(Uint16x8Min, 2, 1) \ |
734 F(Uint16x8Max, 2, 1) \ | 747 F(Uint16x8Max, 2, 1) \ |
(...skipping 15 matching lines...) Expand all Loading... |
750 F(Uint16x8Select, 3, 1) \ | 763 F(Uint16x8Select, 3, 1) \ |
751 F(Uint16x8Swizzle, 9, 1) \ | 764 F(Uint16x8Swizzle, 9, 1) \ |
752 F(Uint16x8Shuffle, 10, 1) \ | 765 F(Uint16x8Shuffle, 10, 1) \ |
753 F(Uint16x8FromInt16x8, 1, 1) \ | 766 F(Uint16x8FromInt16x8, 1, 1) \ |
754 F(Uint16x8FromFloat32x4Bits, 1, 1) \ | 767 F(Uint16x8FromFloat32x4Bits, 1, 1) \ |
755 F(Uint16x8FromInt32x4Bits, 1, 1) \ | 768 F(Uint16x8FromInt32x4Bits, 1, 1) \ |
756 F(Uint16x8FromUint32x4Bits, 1, 1) \ | 769 F(Uint16x8FromUint32x4Bits, 1, 1) \ |
757 F(Uint16x8FromInt16x8Bits, 1, 1) \ | 770 F(Uint16x8FromInt16x8Bits, 1, 1) \ |
758 F(Uint16x8FromInt8x16Bits, 1, 1) \ | 771 F(Uint16x8FromInt8x16Bits, 1, 1) \ |
759 F(Uint16x8FromUint8x16Bits, 1, 1) \ | 772 F(Uint16x8FromUint8x16Bits, 1, 1) \ |
| 773 F(Uint16x8Load, 2, 1) \ |
760 F(Bool16x8Check, 1, 1) \ | 774 F(Bool16x8Check, 1, 1) \ |
761 F(Bool16x8ExtractLane, 2, 1) \ | 775 F(Bool16x8ExtractLane, 2, 1) \ |
762 F(Bool16x8ReplaceLane, 3, 1) \ | 776 F(Bool16x8ReplaceLane, 3, 1) \ |
763 F(Bool16x8And, 2, 1) \ | 777 F(Bool16x8And, 2, 1) \ |
764 F(Bool16x8Or, 2, 1) \ | 778 F(Bool16x8Or, 2, 1) \ |
765 F(Bool16x8Xor, 2, 1) \ | 779 F(Bool16x8Xor, 2, 1) \ |
766 F(Bool16x8Not, 1, 1) \ | 780 F(Bool16x8Not, 1, 1) \ |
767 F(Bool16x8AnyTrue, 1, 1) \ | 781 F(Bool16x8AnyTrue, 1, 1) \ |
768 F(Bool16x8AllTrue, 1, 1) \ | 782 F(Bool16x8AllTrue, 1, 1) \ |
769 F(Bool16x8Swizzle, 9, 1) \ | 783 F(Bool16x8Swizzle, 9, 1) \ |
(...skipping 24 matching lines...) Expand all Loading... |
794 F(Int8x16Select, 3, 1) \ | 808 F(Int8x16Select, 3, 1) \ |
795 F(Int8x16Swizzle, 17, 1) \ | 809 F(Int8x16Swizzle, 17, 1) \ |
796 F(Int8x16Shuffle, 18, 1) \ | 810 F(Int8x16Shuffle, 18, 1) \ |
797 F(Int8x16FromUint8x16, 1, 1) \ | 811 F(Int8x16FromUint8x16, 1, 1) \ |
798 F(Int8x16FromFloat32x4Bits, 1, 1) \ | 812 F(Int8x16FromFloat32x4Bits, 1, 1) \ |
799 F(Int8x16FromInt32x4Bits, 1, 1) \ | 813 F(Int8x16FromInt32x4Bits, 1, 1) \ |
800 F(Int8x16FromUint32x4Bits, 1, 1) \ | 814 F(Int8x16FromUint32x4Bits, 1, 1) \ |
801 F(Int8x16FromInt16x8Bits, 1, 1) \ | 815 F(Int8x16FromInt16x8Bits, 1, 1) \ |
802 F(Int8x16FromUint16x8Bits, 1, 1) \ | 816 F(Int8x16FromUint16x8Bits, 1, 1) \ |
803 F(Int8x16FromUint8x16Bits, 1, 1) \ | 817 F(Int8x16FromUint8x16Bits, 1, 1) \ |
| 818 F(Int8x16Load, 2, 1) \ |
804 F(Uint8x16Check, 1, 1) \ | 819 F(Uint8x16Check, 1, 1) \ |
805 F(Uint8x16ExtractLane, 2, 1) \ | 820 F(Uint8x16ExtractLane, 2, 1) \ |
806 F(Uint8x16ReplaceLane, 3, 1) \ | 821 F(Uint8x16ReplaceLane, 3, 1) \ |
807 F(Uint8x16Add, 2, 1) \ | 822 F(Uint8x16Add, 2, 1) \ |
808 F(Uint8x16AddSaturate, 2, 1) \ | 823 F(Uint8x16AddSaturate, 2, 1) \ |
809 F(Uint8x16Sub, 2, 1) \ | 824 F(Uint8x16Sub, 2, 1) \ |
810 F(Uint8x16SubSaturate, 2, 1) \ | 825 F(Uint8x16SubSaturate, 2, 1) \ |
811 F(Uint8x16Mul, 2, 1) \ | 826 F(Uint8x16Mul, 2, 1) \ |
812 F(Uint8x16Min, 2, 1) \ | 827 F(Uint8x16Min, 2, 1) \ |
813 F(Uint8x16Max, 2, 1) \ | 828 F(Uint8x16Max, 2, 1) \ |
(...skipping 15 matching lines...) Expand all Loading... |
829 F(Uint8x16Select, 3, 1) \ | 844 F(Uint8x16Select, 3, 1) \ |
830 F(Uint8x16Swizzle, 17, 1) \ | 845 F(Uint8x16Swizzle, 17, 1) \ |
831 F(Uint8x16Shuffle, 18, 1) \ | 846 F(Uint8x16Shuffle, 18, 1) \ |
832 F(Uint8x16FromInt8x16, 1, 1) \ | 847 F(Uint8x16FromInt8x16, 1, 1) \ |
833 F(Uint8x16FromFloat32x4Bits, 1, 1) \ | 848 F(Uint8x16FromFloat32x4Bits, 1, 1) \ |
834 F(Uint8x16FromInt32x4Bits, 1, 1) \ | 849 F(Uint8x16FromInt32x4Bits, 1, 1) \ |
835 F(Uint8x16FromUint32x4Bits, 1, 1) \ | 850 F(Uint8x16FromUint32x4Bits, 1, 1) \ |
836 F(Uint8x16FromInt16x8Bits, 1, 1) \ | 851 F(Uint8x16FromInt16x8Bits, 1, 1) \ |
837 F(Uint8x16FromUint16x8Bits, 1, 1) \ | 852 F(Uint8x16FromUint16x8Bits, 1, 1) \ |
838 F(Uint8x16FromInt8x16Bits, 1, 1) \ | 853 F(Uint8x16FromInt8x16Bits, 1, 1) \ |
| 854 F(Uint8x16Load, 2, 1) \ |
839 F(Bool8x16Check, 1, 1) \ | 855 F(Bool8x16Check, 1, 1) \ |
840 F(Bool8x16ExtractLane, 2, 1) \ | 856 F(Bool8x16ExtractLane, 2, 1) \ |
841 F(Bool8x16ReplaceLane, 3, 1) \ | 857 F(Bool8x16ReplaceLane, 3, 1) \ |
842 F(Bool8x16And, 2, 1) \ | 858 F(Bool8x16And, 2, 1) \ |
843 F(Bool8x16Or, 2, 1) \ | 859 F(Bool8x16Or, 2, 1) \ |
844 F(Bool8x16Xor, 2, 1) \ | 860 F(Bool8x16Xor, 2, 1) \ |
845 F(Bool8x16Not, 1, 1) \ | 861 F(Bool8x16Not, 1, 1) \ |
846 F(Bool8x16AnyTrue, 1, 1) \ | 862 F(Bool8x16AnyTrue, 1, 1) \ |
847 F(Bool8x16AllTrue, 1, 1) \ | 863 F(Bool8x16AllTrue, 1, 1) \ |
848 F(Bool8x16Swizzle, 17, 1) \ | 864 F(Bool8x16Swizzle, 17, 1) \ |
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1249 inline bool Runtime::AtomicIsLockFree(uint32_t size) { | 1265 inline bool Runtime::AtomicIsLockFree(uint32_t size) { |
1250 return size == 1 || size == 2 || size == 4; | 1266 return size == 1 || size == 2 || size == 4; |
1251 } | 1267 } |
1252 | 1268 |
1253 #endif | 1269 #endif |
1254 | 1270 |
1255 } // namespace internal | 1271 } // namespace internal |
1256 } // namespace v8 | 1272 } // namespace v8 |
1257 | 1273 |
1258 #endif // V8_RUNTIME_RUNTIME_H_ | 1274 #endif // V8_RUNTIME_RUNTIME_H_ |
OLD | NEW |