| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 1868 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1879 break; | 1879 break; |
| 1880 case kMathAbs: | 1880 case kMathAbs: |
| 1881 set_representation(Representation::Tagged()); | 1881 set_representation(Representation::Tagged()); |
| 1882 SetFlag(kFlexibleRepresentation); | 1882 SetFlag(kFlexibleRepresentation); |
| 1883 break; | 1883 break; |
| 1884 case kMathSqrt: | 1884 case kMathSqrt: |
| 1885 case kMathPowHalf: | 1885 case kMathPowHalf: |
| 1886 case kMathLog: | 1886 case kMathLog: |
| 1887 case kMathSin: | 1887 case kMathSin: |
| 1888 case kMathCos: | 1888 case kMathCos: |
| 1889 case kMathTan: |
| 1889 set_representation(Representation::Double()); | 1890 set_representation(Representation::Double()); |
| 1890 break; | 1891 break; |
| 1891 default: | 1892 default: |
| 1892 UNREACHABLE(); | 1893 UNREACHABLE(); |
| 1893 } | 1894 } |
| 1894 SetFlag(kUseGVN); | 1895 SetFlag(kUseGVN); |
| 1895 } | 1896 } |
| 1896 | 1897 |
| 1897 HValue* context() { return OperandAt(0); } | 1898 HValue* context() { return OperandAt(0); } |
| 1898 HValue* value() { return OperandAt(1); } | 1899 HValue* value() { return OperandAt(1); } |
| (...skipping 10 matching lines...) Expand all Loading... |
| 1909 } else { | 1910 } else { |
| 1910 switch (op_) { | 1911 switch (op_) { |
| 1911 case kMathFloor: | 1912 case kMathFloor: |
| 1912 case kMathRound: | 1913 case kMathRound: |
| 1913 case kMathCeil: | 1914 case kMathCeil: |
| 1914 case kMathSqrt: | 1915 case kMathSqrt: |
| 1915 case kMathPowHalf: | 1916 case kMathPowHalf: |
| 1916 case kMathLog: | 1917 case kMathLog: |
| 1917 case kMathSin: | 1918 case kMathSin: |
| 1918 case kMathCos: | 1919 case kMathCos: |
| 1920 case kMathTan: |
| 1919 return Representation::Double(); | 1921 return Representation::Double(); |
| 1920 case kMathAbs: | 1922 case kMathAbs: |
| 1921 return representation(); | 1923 return representation(); |
| 1922 default: | 1924 default: |
| 1923 UNREACHABLE(); | 1925 UNREACHABLE(); |
| 1924 return Representation::None(); | 1926 return Representation::None(); |
| 1925 } | 1927 } |
| 1926 } | 1928 } |
| 1927 } | 1929 } |
| 1928 | 1930 |
| (...skipping 2846 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4775 DECLARE_CONCRETE_INSTRUCTION(LoadFieldByIndex); | 4777 DECLARE_CONCRETE_INSTRUCTION(LoadFieldByIndex); |
| 4776 }; | 4778 }; |
| 4777 | 4779 |
| 4778 | 4780 |
| 4779 #undef DECLARE_INSTRUCTION | 4781 #undef DECLARE_INSTRUCTION |
| 4780 #undef DECLARE_CONCRETE_INSTRUCTION | 4782 #undef DECLARE_CONCRETE_INSTRUCTION |
| 4781 | 4783 |
| 4782 } } // namespace v8::internal | 4784 } } // namespace v8::internal |
| 4783 | 4785 |
| 4784 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 4786 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
| OLD | NEW |