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