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 1900 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1911 set_representation(Representation::Integer32()); | 1911 set_representation(Representation::Integer32()); |
1912 SetFlag(kUseGVN); | 1912 SetFlag(kUseGVN); |
1913 SetFlag(kTruncatingToInt32); | 1913 SetFlag(kTruncatingToInt32); |
1914 } | 1914 } |
1915 | 1915 |
1916 virtual Representation RequiredInputRepresentation(int index) { | 1916 virtual Representation RequiredInputRepresentation(int index) { |
1917 return Representation::Integer32(); | 1917 return Representation::Integer32(); |
1918 } | 1918 } |
1919 virtual HType CalculateInferredType(); | 1919 virtual HType CalculateInferredType(); |
1920 | 1920 |
| 1921 virtual HValue* Canonicalize(); |
| 1922 |
1921 DECLARE_CONCRETE_INSTRUCTION(BitNot) | 1923 DECLARE_CONCRETE_INSTRUCTION(BitNot) |
1922 | 1924 |
1923 protected: | 1925 protected: |
1924 virtual bool DataEquals(HValue* other) { return true; } | 1926 virtual bool DataEquals(HValue* other) { return true; } |
1925 }; | 1927 }; |
1926 | 1928 |
1927 | 1929 |
1928 class HUnaryMathOperation: public HTemplateInstruction<2> { | 1930 class HUnaryMathOperation: public HTemplateInstruction<2> { |
1929 public: | 1931 public: |
1930 HUnaryMathOperation(HValue* context, HValue* value, BuiltinFunctionId op) | 1932 HUnaryMathOperation(HValue* context, HValue* value, BuiltinFunctionId op) |
(...skipping 3014 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4945 DECLARE_CONCRETE_INSTRUCTION(LoadFieldByIndex); | 4947 DECLARE_CONCRETE_INSTRUCTION(LoadFieldByIndex); |
4946 }; | 4948 }; |
4947 | 4949 |
4948 | 4950 |
4949 #undef DECLARE_INSTRUCTION | 4951 #undef DECLARE_INSTRUCTION |
4950 #undef DECLARE_CONCRETE_INSTRUCTION | 4952 #undef DECLARE_CONCRETE_INSTRUCTION |
4951 | 4953 |
4952 } } // namespace v8::internal | 4954 } } // namespace v8::internal |
4953 | 4955 |
4954 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 4956 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
OLD | NEW |