| OLD | NEW |
| 1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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 (function(global, utils) { | 5 (function(global, utils) { |
| 6 | 6 |
| 7 "use strict"; | 7 "use strict"; |
| 8 | 8 |
| 9 %CheckIsBootstrapping(); | 9 %CheckIsBootstrapping(); |
| 10 | 10 |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 } | 95 } |
| 96 endmacro | 96 endmacro |
| 97 | 97 |
| 98 SIMD_ALL_TYPES(DECLARE_COMMON_FUNCTIONS) | 98 SIMD_ALL_TYPES(DECLARE_COMMON_FUNCTIONS) |
| 99 | 99 |
| 100 macro DECLARE_INT_FUNCTIONS(NAME, TYPE, LANES) | 100 macro DECLARE_INT_FUNCTIONS(NAME, TYPE, LANES) |
| 101 function NAMEShiftLeftByScalarJS(instance, shift) { | 101 function NAMEShiftLeftByScalarJS(instance, shift) { |
| 102 return %NAMEShiftLeftByScalar(instance, shift); | 102 return %NAMEShiftLeftByScalar(instance, shift); |
| 103 } | 103 } |
| 104 | 104 |
| 105 function NAMEShiftRightArithmeticByScalarJS(instance, shift) { | 105 function NAMEShiftRightByScalarJS(instance, shift) { |
| 106 return %NAMEShiftRightArithmeticByScalar(instance, shift); | 106 return %NAMEShiftRightByScalar(instance, shift); |
| 107 } | 107 } |
| 108 endmacro | 108 endmacro |
| 109 | 109 |
| 110 SIMD_INT_TYPES(DECLARE_INT_FUNCTIONS) | 110 SIMD_INT_TYPES(DECLARE_INT_FUNCTIONS) |
| 111 | 111 |
| 112 macro DECLARE_UINT_FUNCTIONS(NAME, TYPE, LANES) | 112 macro DECLARE_UINT_FUNCTIONS(NAME, TYPE, LANES) |
| 113 function NAMEShiftLeftByScalarJS(instance, shift) { | 113 function NAMEShiftLeftByScalarJS(instance, shift) { |
| 114 return %NAMEShiftLeftByScalar(instance, shift); | 114 return %NAMEShiftLeftByScalar(instance, shift); |
| 115 } | 115 } |
| 116 | 116 |
| 117 function NAMEShiftRightLogicalByScalarJS(instance, shift) { | 117 function NAMEShiftRightByScalarJS(instance, shift) { |
| 118 return %NAMEShiftRightLogicalByScalar(instance, shift); | 118 return %NAMEShiftRightByScalar(instance, shift); |
| 119 } | 119 } |
| 120 | 120 |
| 121 function NAMEHorizontalSumJS(instance) { | 121 function NAMEHorizontalSumJS(instance) { |
| 122 return %NAMEHorizontalSum(instance); | 122 return %NAMEHorizontalSum(instance); |
| 123 } | 123 } |
| 124 endmacro | 124 endmacro |
| 125 | 125 |
| 126 SIMD_UINT_TYPES(DECLARE_UINT_FUNCTIONS) | 126 SIMD_UINT_TYPES(DECLARE_UINT_FUNCTIONS) |
| 127 | 127 |
| 128 macro SIMD_SMALL_INT_TYPES(FUNCTION) | 128 macro SIMD_SMALL_INT_TYPES(FUNCTION) |
| (...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 652 'add', Int32x4AddJS, | 652 'add', Int32x4AddJS, |
| 653 'sub', Int32x4SubJS, | 653 'sub', Int32x4SubJS, |
| 654 'mul', Int32x4MulJS, | 654 'mul', Int32x4MulJS, |
| 655 'min', Int32x4MinJS, | 655 'min', Int32x4MinJS, |
| 656 'max', Int32x4MaxJS, | 656 'max', Int32x4MaxJS, |
| 657 'and', Int32x4AndJS, | 657 'and', Int32x4AndJS, |
| 658 'or', Int32x4OrJS, | 658 'or', Int32x4OrJS, |
| 659 'xor', Int32x4XorJS, | 659 'xor', Int32x4XorJS, |
| 660 'not', Int32x4NotJS, | 660 'not', Int32x4NotJS, |
| 661 'shiftLeftByScalar', Int32x4ShiftLeftByScalarJS, | 661 'shiftLeftByScalar', Int32x4ShiftLeftByScalarJS, |
| 662 'shiftRightArithmeticByScalar', Int32x4ShiftRightArithmeticByScalarJS, | 662 'shiftRightByScalar', Int32x4ShiftRightByScalarJS, |
| 663 'lessThan', Int32x4LessThanJS, | 663 'lessThan', Int32x4LessThanJS, |
| 664 'lessThanOrEqual', Int32x4LessThanOrEqualJS, | 664 'lessThanOrEqual', Int32x4LessThanOrEqualJS, |
| 665 'greaterThan', Int32x4GreaterThanJS, | 665 'greaterThan', Int32x4GreaterThanJS, |
| 666 'greaterThanOrEqual', Int32x4GreaterThanOrEqualJS, | 666 'greaterThanOrEqual', Int32x4GreaterThanOrEqualJS, |
| 667 'equal', Int32x4EqualJS, | 667 'equal', Int32x4EqualJS, |
| 668 'notEqual', Int32x4NotEqualJS, | 668 'notEqual', Int32x4NotEqualJS, |
| 669 'select', Int32x4SelectJS, | 669 'select', Int32x4SelectJS, |
| 670 'swizzle', Int32x4SwizzleJS, | 670 'swizzle', Int32x4SwizzleJS, |
| 671 'shuffle', Int32x4ShuffleJS, | 671 'shuffle', Int32x4ShuffleJS, |
| 672 'fromFloat32x4', Int32x4FromFloat32x4JS, | 672 'fromFloat32x4', Int32x4FromFloat32x4JS, |
| (...skipping 22 matching lines...) Expand all Loading... |
| 695 'add', Uint32x4AddJS, | 695 'add', Uint32x4AddJS, |
| 696 'sub', Uint32x4SubJS, | 696 'sub', Uint32x4SubJS, |
| 697 'mul', Uint32x4MulJS, | 697 'mul', Uint32x4MulJS, |
| 698 'min', Uint32x4MinJS, | 698 'min', Uint32x4MinJS, |
| 699 'max', Uint32x4MaxJS, | 699 'max', Uint32x4MaxJS, |
| 700 'and', Uint32x4AndJS, | 700 'and', Uint32x4AndJS, |
| 701 'or', Uint32x4OrJS, | 701 'or', Uint32x4OrJS, |
| 702 'xor', Uint32x4XorJS, | 702 'xor', Uint32x4XorJS, |
| 703 'not', Uint32x4NotJS, | 703 'not', Uint32x4NotJS, |
| 704 'shiftLeftByScalar', Uint32x4ShiftLeftByScalarJS, | 704 'shiftLeftByScalar', Uint32x4ShiftLeftByScalarJS, |
| 705 'shiftRightLogicalByScalar', Uint32x4ShiftRightLogicalByScalarJS, | 705 'shiftRightByScalar', Uint32x4ShiftRightByScalarJS, |
| 706 'horizontalSum', Uint32x4HorizontalSumJS, | 706 'horizontalSum', Uint32x4HorizontalSumJS, |
| 707 'lessThan', Uint32x4LessThanJS, | 707 'lessThan', Uint32x4LessThanJS, |
| 708 'lessThanOrEqual', Uint32x4LessThanOrEqualJS, | 708 'lessThanOrEqual', Uint32x4LessThanOrEqualJS, |
| 709 'greaterThan', Uint32x4GreaterThanJS, | 709 'greaterThan', Uint32x4GreaterThanJS, |
| 710 'greaterThanOrEqual', Uint32x4GreaterThanOrEqualJS, | 710 'greaterThanOrEqual', Uint32x4GreaterThanOrEqualJS, |
| 711 'equal', Uint32x4EqualJS, | 711 'equal', Uint32x4EqualJS, |
| 712 'notEqual', Uint32x4NotEqualJS, | 712 'notEqual', Uint32x4NotEqualJS, |
| 713 'select', Uint32x4SelectJS, | 713 'select', Uint32x4SelectJS, |
| 714 'swizzle', Uint32x4SwizzleJS, | 714 'swizzle', Uint32x4SwizzleJS, |
| 715 'shuffle', Uint32x4ShuffleJS, | 715 'shuffle', Uint32x4ShuffleJS, |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 757 'addSaturate', Int16x8AddSaturateJS, | 757 'addSaturate', Int16x8AddSaturateJS, |
| 758 'subSaturate', Int16x8SubSaturateJS, | 758 'subSaturate', Int16x8SubSaturateJS, |
| 759 'mul', Int16x8MulJS, | 759 'mul', Int16x8MulJS, |
| 760 'min', Int16x8MinJS, | 760 'min', Int16x8MinJS, |
| 761 'max', Int16x8MaxJS, | 761 'max', Int16x8MaxJS, |
| 762 'and', Int16x8AndJS, | 762 'and', Int16x8AndJS, |
| 763 'or', Int16x8OrJS, | 763 'or', Int16x8OrJS, |
| 764 'xor', Int16x8XorJS, | 764 'xor', Int16x8XorJS, |
| 765 'not', Int16x8NotJS, | 765 'not', Int16x8NotJS, |
| 766 'shiftLeftByScalar', Int16x8ShiftLeftByScalarJS, | 766 'shiftLeftByScalar', Int16x8ShiftLeftByScalarJS, |
| 767 'shiftRightArithmeticByScalar', Int16x8ShiftRightArithmeticByScalarJS, | 767 'shiftRightByScalar', Int16x8ShiftRightByScalarJS, |
| 768 'lessThan', Int16x8LessThanJS, | 768 'lessThan', Int16x8LessThanJS, |
| 769 'lessThanOrEqual', Int16x8LessThanOrEqualJS, | 769 'lessThanOrEqual', Int16x8LessThanOrEqualJS, |
| 770 'greaterThan', Int16x8GreaterThanJS, | 770 'greaterThan', Int16x8GreaterThanJS, |
| 771 'greaterThanOrEqual', Int16x8GreaterThanOrEqualJS, | 771 'greaterThanOrEqual', Int16x8GreaterThanOrEqualJS, |
| 772 'equal', Int16x8EqualJS, | 772 'equal', Int16x8EqualJS, |
| 773 'notEqual', Int16x8NotEqualJS, | 773 'notEqual', Int16x8NotEqualJS, |
| 774 'select', Int16x8SelectJS, | 774 'select', Int16x8SelectJS, |
| 775 'swizzle', Int16x8SwizzleJS, | 775 'swizzle', Int16x8SwizzleJS, |
| 776 'shuffle', Int16x8ShuffleJS, | 776 'shuffle', Int16x8ShuffleJS, |
| 777 'fromUint16x8', Int16x8FromUint16x8JS, | 777 'fromUint16x8', Int16x8FromUint16x8JS, |
| (...skipping 17 matching lines...) Expand all Loading... |
| 795 'addSaturate', Uint16x8AddSaturateJS, | 795 'addSaturate', Uint16x8AddSaturateJS, |
| 796 'subSaturate', Uint16x8SubSaturateJS, | 796 'subSaturate', Uint16x8SubSaturateJS, |
| 797 'mul', Uint16x8MulJS, | 797 'mul', Uint16x8MulJS, |
| 798 'min', Uint16x8MinJS, | 798 'min', Uint16x8MinJS, |
| 799 'max', Uint16x8MaxJS, | 799 'max', Uint16x8MaxJS, |
| 800 'and', Uint16x8AndJS, | 800 'and', Uint16x8AndJS, |
| 801 'or', Uint16x8OrJS, | 801 'or', Uint16x8OrJS, |
| 802 'xor', Uint16x8XorJS, | 802 'xor', Uint16x8XorJS, |
| 803 'not', Uint16x8NotJS, | 803 'not', Uint16x8NotJS, |
| 804 'shiftLeftByScalar', Uint16x8ShiftLeftByScalarJS, | 804 'shiftLeftByScalar', Uint16x8ShiftLeftByScalarJS, |
| 805 'shiftRightLogicalByScalar', Uint16x8ShiftRightLogicalByScalarJS, | 805 'shiftRightByScalar', Uint16x8ShiftRightByScalarJS, |
| 806 'horizontalSum', Uint16x8HorizontalSumJS, | 806 'horizontalSum', Uint16x8HorizontalSumJS, |
| 807 'absoluteDifference', Uint16x8AbsoluteDifferenceJS, | 807 'absoluteDifference', Uint16x8AbsoluteDifferenceJS, |
| 808 'widenedAbsoluteDifference', Uint16x8WidenedAbsoluteDifferenceJS, | 808 'widenedAbsoluteDifference', Uint16x8WidenedAbsoluteDifferenceJS, |
| 809 'lessThan', Uint16x8LessThanJS, | 809 'lessThan', Uint16x8LessThanJS, |
| 810 'lessThanOrEqual', Uint16x8LessThanOrEqualJS, | 810 'lessThanOrEqual', Uint16x8LessThanOrEqualJS, |
| 811 'greaterThan', Uint16x8GreaterThanJS, | 811 'greaterThan', Uint16x8GreaterThanJS, |
| 812 'greaterThanOrEqual', Uint16x8GreaterThanOrEqualJS, | 812 'greaterThanOrEqual', Uint16x8GreaterThanOrEqualJS, |
| 813 'equal', Uint16x8EqualJS, | 813 'equal', Uint16x8EqualJS, |
| 814 'notEqual', Uint16x8NotEqualJS, | 814 'notEqual', Uint16x8NotEqualJS, |
| 815 'select', Uint16x8SelectJS, | 815 'select', Uint16x8SelectJS, |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 852 'addSaturate', Int8x16AddSaturateJS, | 852 'addSaturate', Int8x16AddSaturateJS, |
| 853 'subSaturate', Int8x16SubSaturateJS, | 853 'subSaturate', Int8x16SubSaturateJS, |
| 854 'mul', Int8x16MulJS, | 854 'mul', Int8x16MulJS, |
| 855 'min', Int8x16MinJS, | 855 'min', Int8x16MinJS, |
| 856 'max', Int8x16MaxJS, | 856 'max', Int8x16MaxJS, |
| 857 'and', Int8x16AndJS, | 857 'and', Int8x16AndJS, |
| 858 'or', Int8x16OrJS, | 858 'or', Int8x16OrJS, |
| 859 'xor', Int8x16XorJS, | 859 'xor', Int8x16XorJS, |
| 860 'not', Int8x16NotJS, | 860 'not', Int8x16NotJS, |
| 861 'shiftLeftByScalar', Int8x16ShiftLeftByScalarJS, | 861 'shiftLeftByScalar', Int8x16ShiftLeftByScalarJS, |
| 862 'shiftRightArithmeticByScalar', Int8x16ShiftRightArithmeticByScalarJS, | 862 'shiftRightByScalar', Int8x16ShiftRightByScalarJS, |
| 863 'lessThan', Int8x16LessThanJS, | 863 'lessThan', Int8x16LessThanJS, |
| 864 'lessThanOrEqual', Int8x16LessThanOrEqualJS, | 864 'lessThanOrEqual', Int8x16LessThanOrEqualJS, |
| 865 'greaterThan', Int8x16GreaterThanJS, | 865 'greaterThan', Int8x16GreaterThanJS, |
| 866 'greaterThanOrEqual', Int8x16GreaterThanOrEqualJS, | 866 'greaterThanOrEqual', Int8x16GreaterThanOrEqualJS, |
| 867 'equal', Int8x16EqualJS, | 867 'equal', Int8x16EqualJS, |
| 868 'notEqual', Int8x16NotEqualJS, | 868 'notEqual', Int8x16NotEqualJS, |
| 869 'select', Int8x16SelectJS, | 869 'select', Int8x16SelectJS, |
| 870 'swizzle', Int8x16SwizzleJS, | 870 'swizzle', Int8x16SwizzleJS, |
| 871 'shuffle', Int8x16ShuffleJS, | 871 'shuffle', Int8x16ShuffleJS, |
| 872 'fromUint8x16', Int8x16FromUint8x16JS, | 872 'fromUint8x16', Int8x16FromUint8x16JS, |
| (...skipping 17 matching lines...) Expand all Loading... |
| 890 'addSaturate', Uint8x16AddSaturateJS, | 890 'addSaturate', Uint8x16AddSaturateJS, |
| 891 'subSaturate', Uint8x16SubSaturateJS, | 891 'subSaturate', Uint8x16SubSaturateJS, |
| 892 'mul', Uint8x16MulJS, | 892 'mul', Uint8x16MulJS, |
| 893 'min', Uint8x16MinJS, | 893 'min', Uint8x16MinJS, |
| 894 'max', Uint8x16MaxJS, | 894 'max', Uint8x16MaxJS, |
| 895 'and', Uint8x16AndJS, | 895 'and', Uint8x16AndJS, |
| 896 'or', Uint8x16OrJS, | 896 'or', Uint8x16OrJS, |
| 897 'xor', Uint8x16XorJS, | 897 'xor', Uint8x16XorJS, |
| 898 'not', Uint8x16NotJS, | 898 'not', Uint8x16NotJS, |
| 899 'shiftLeftByScalar', Uint8x16ShiftLeftByScalarJS, | 899 'shiftLeftByScalar', Uint8x16ShiftLeftByScalarJS, |
| 900 'shiftRightLogicalByScalar', Uint8x16ShiftRightLogicalByScalarJS, | 900 'shiftRightByScalar', Uint8x16ShiftRightByScalarJS, |
| 901 'horizontalSum', Uint8x16HorizontalSumJS, | 901 'horizontalSum', Uint8x16HorizontalSumJS, |
| 902 'absoluteDifference', Uint8x16AbsoluteDifferenceJS, | 902 'absoluteDifference', Uint8x16AbsoluteDifferenceJS, |
| 903 'widenedAbsoluteDifference', Uint8x16WidenedAbsoluteDifferenceJS, | 903 'widenedAbsoluteDifference', Uint8x16WidenedAbsoluteDifferenceJS, |
| 904 'lessThan', Uint8x16LessThanJS, | 904 'lessThan', Uint8x16LessThanJS, |
| 905 'lessThanOrEqual', Uint8x16LessThanOrEqualJS, | 905 'lessThanOrEqual', Uint8x16LessThanOrEqualJS, |
| 906 'greaterThan', Uint8x16GreaterThanJS, | 906 'greaterThan', Uint8x16GreaterThanJS, |
| 907 'greaterThanOrEqual', Uint8x16GreaterThanOrEqualJS, | 907 'greaterThanOrEqual', Uint8x16GreaterThanOrEqualJS, |
| 908 'equal', Uint8x16EqualJS, | 908 'equal', Uint8x16EqualJS, |
| 909 'notEqual', Uint8x16NotEqualJS, | 909 'notEqual', Uint8x16NotEqualJS, |
| 910 'select', Uint8x16SelectJS, | 910 'select', Uint8x16SelectJS, |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 943 to.Bool32x4ToString = Bool32x4ToString; | 943 to.Bool32x4ToString = Bool32x4ToString; |
| 944 to.Int16x8ToString = Int16x8ToString; | 944 to.Int16x8ToString = Int16x8ToString; |
| 945 to.Uint16x8ToString = Uint16x8ToString; | 945 to.Uint16x8ToString = Uint16x8ToString; |
| 946 to.Bool16x8ToString = Bool16x8ToString; | 946 to.Bool16x8ToString = Bool16x8ToString; |
| 947 to.Int8x16ToString = Int8x16ToString; | 947 to.Int8x16ToString = Int8x16ToString; |
| 948 to.Uint8x16ToString = Uint8x16ToString; | 948 to.Uint8x16ToString = Uint8x16ToString; |
| 949 to.Bool8x16ToString = Bool8x16ToString; | 949 to.Bool8x16ToString = Bool8x16ToString; |
| 950 }); | 950 }); |
| 951 | 951 |
| 952 }) | 952 }) |
| OLD | NEW |