OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 V(CallNamed) \ | 66 V(CallNamed) \ |
67 V(CallNew) \ | 67 V(CallNew) \ |
68 V(CallRuntime) \ | 68 V(CallRuntime) \ |
69 V(CallStub) \ | 69 V(CallStub) \ |
70 V(CheckFunction) \ | 70 V(CheckFunction) \ |
71 V(CheckInstanceType) \ | 71 V(CheckInstanceType) \ |
72 V(CheckMap) \ | 72 V(CheckMap) \ |
73 V(CheckNonSmi) \ | 73 V(CheckNonSmi) \ |
74 V(CheckPrototypeMaps) \ | 74 V(CheckPrototypeMaps) \ |
75 V(CheckSmi) \ | 75 V(CheckSmi) \ |
76 V(ClampDoubleToUint8) \ | 76 V(ClampDToUint8) \ |
77 V(ClampIToUint8) \ | 77 V(ClampIToUint8) \ |
78 V(ClampTaggedToUint8) \ | 78 V(ClampTToUint8) \ |
79 V(ClassOfTest) \ | 79 V(ClassOfTest) \ |
80 V(ClassOfTestAndBranch) \ | 80 V(ClassOfTestAndBranch) \ |
81 V(CmpID) \ | 81 V(CmpID) \ |
82 V(CmpIDAndBranch) \ | 82 V(CmpIDAndBranch) \ |
83 V(CmpJSObjectEq) \ | 83 V(CmpJSObjectEq) \ |
84 V(CmpJSObjectEqAndBranch) \ | 84 V(CmpJSObjectEqAndBranch) \ |
85 V(CmpMapAndBranch) \ | 85 V(CmpMapAndBranch) \ |
86 V(CmpSymbolEq) \ | 86 V(CmpSymbolEq) \ |
87 V(CmpSymbolEqAndBranch) \ | 87 V(CmpSymbolEqAndBranch) \ |
88 V(CmpT) \ | 88 V(CmpT) \ |
(...skipping 1814 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1903 class LCheckSmi: public LTemplateInstruction<0, 1, 0> { | 1903 class LCheckSmi: public LTemplateInstruction<0, 1, 0> { |
1904 public: | 1904 public: |
1905 explicit LCheckSmi(LOperand* value) { | 1905 explicit LCheckSmi(LOperand* value) { |
1906 inputs_[0] = value; | 1906 inputs_[0] = value; |
1907 } | 1907 } |
1908 | 1908 |
1909 DECLARE_CONCRETE_INSTRUCTION(CheckSmi, "check-smi") | 1909 DECLARE_CONCRETE_INSTRUCTION(CheckSmi, "check-smi") |
1910 }; | 1910 }; |
1911 | 1911 |
1912 | 1912 |
1913 class LClampDoubleToUint8: public LTemplateInstruction<1, 1, 1> { | 1913 class LClampDToUint8: public LTemplateInstruction<1, 1, 1> { |
1914 public: | 1914 public: |
1915 explicit LClampDoubleToUint8(LOperand* value, LOperand* temp) { | 1915 LClampDToUint8(LOperand* value, LOperand* temp) { |
1916 inputs_[0] = value; | 1916 inputs_[0] = value; |
1917 temps_[0] = temp; | 1917 temps_[0] = temp; |
1918 } | 1918 } |
1919 | 1919 |
1920 LOperand* unclamped() { return inputs_[0]; } | 1920 LOperand* unclamped() { return inputs_[0]; } |
1921 | 1921 |
1922 DECLARE_CONCRETE_INSTRUCTION(ClampDoubleToUint8, "clamp-d-to-uint8") | 1922 DECLARE_CONCRETE_INSTRUCTION(ClampDToUint8, "clamp-d-to-uint8") |
1923 }; | 1923 }; |
1924 | 1924 |
1925 | 1925 |
1926 class LClampIToUint8: public LTemplateInstruction<1, 1, 0> { | 1926 class LClampIToUint8: public LTemplateInstruction<1, 1, 0> { |
1927 public: | 1927 public: |
1928 explicit LClampIToUint8(LOperand* value) { | 1928 explicit LClampIToUint8(LOperand* value) { |
1929 inputs_[0] = value; | 1929 inputs_[0] = value; |
1930 } | 1930 } |
1931 | 1931 |
1932 LOperand* unclamped() { return inputs_[0]; } | 1932 LOperand* unclamped() { return inputs_[0]; } |
1933 | 1933 |
1934 DECLARE_CONCRETE_INSTRUCTION(ClampIToUint8, "clamp-i-to-uint8") | 1934 DECLARE_CONCRETE_INSTRUCTION(ClampIToUint8, "clamp-i-to-uint8") |
1935 }; | 1935 }; |
1936 | 1936 |
1937 | 1937 |
1938 class LClampTaggedToUint8: public LTemplateInstruction<1, 1, 2> { | 1938 class LClampTToUint8: public LTemplateInstruction<1, 1, 2> { |
1939 public: | 1939 public: |
1940 explicit LClampTaggedToUint8(LOperand* value, | 1940 LClampTToUint8(LOperand* value, |
1941 LOperand* temp, | 1941 LOperand* temp, |
1942 LOperand* temp2) { | 1942 LOperand* temp2) { |
1943 inputs_[0] = value; | 1943 inputs_[0] = value; |
1944 temps_[0] = temp; | 1944 temps_[0] = temp; |
1945 temps_[1] = temp2; | 1945 temps_[1] = temp2; |
1946 } | 1946 } |
1947 | 1947 |
1948 LOperand* unclamped() { return inputs_[0]; } | 1948 LOperand* unclamped() { return inputs_[0]; } |
1949 | 1949 |
1950 DECLARE_CONCRETE_INSTRUCTION(ClampTaggedToUint8, "clamp-t-to-uint8") | 1950 DECLARE_CONCRETE_INSTRUCTION(ClampTToUint8, "clamp-t-to-uint8") |
1951 }; | 1951 }; |
1952 | 1952 |
1953 | 1953 |
1954 class LCheckNonSmi: public LTemplateInstruction<0, 1, 0> { | 1954 class LCheckNonSmi: public LTemplateInstruction<0, 1, 0> { |
1955 public: | 1955 public: |
1956 explicit LCheckNonSmi(LOperand* value) { | 1956 explicit LCheckNonSmi(LOperand* value) { |
1957 inputs_[0] = value; | 1957 inputs_[0] = value; |
1958 } | 1958 } |
1959 | 1959 |
1960 DECLARE_CONCRETE_INSTRUCTION(CheckNonSmi, "check-non-smi") | 1960 DECLARE_CONCRETE_INSTRUCTION(CheckNonSmi, "check-non-smi") |
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2324 | 2324 |
2325 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2325 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2326 }; | 2326 }; |
2327 | 2327 |
2328 #undef DECLARE_HYDROGEN_ACCESSOR | 2328 #undef DECLARE_HYDROGEN_ACCESSOR |
2329 #undef DECLARE_CONCRETE_INSTRUCTION | 2329 #undef DECLARE_CONCRETE_INSTRUCTION |
2330 | 2330 |
2331 } } // namespace v8::int | 2331 } } // namespace v8::int |
2332 | 2332 |
2333 #endif // V8_X64_LITHIUM_X64_H_ | 2333 #endif // V8_X64_LITHIUM_X64_H_ |
OLD | NEW |