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(CheckNonSmi) \ | 72 V(CheckNonSmi) \ |
73 V(CheckMap) \ | 73 V(CheckMap) \ |
74 V(CheckPrototypeMaps) \ | 74 V(CheckPrototypeMaps) \ |
75 V(CheckSmi) \ | 75 V(CheckSmi) \ |
| 76 V(ClampDoubleToUint8) \ |
| 77 V(ClampIToUint8) \ |
| 78 V(ClampTaggedToUint8) \ |
76 V(ClassOfTest) \ | 79 V(ClassOfTest) \ |
77 V(ClassOfTestAndBranch) \ | 80 V(ClassOfTestAndBranch) \ |
78 V(CmpID) \ | 81 V(CmpID) \ |
79 V(CmpIDAndBranch) \ | 82 V(CmpIDAndBranch) \ |
80 V(CmpJSObjectEq) \ | 83 V(CmpJSObjectEq) \ |
81 V(CmpJSObjectEqAndBranch) \ | 84 V(CmpJSObjectEqAndBranch) \ |
82 V(CmpMapAndBranch) \ | 85 V(CmpMapAndBranch) \ |
83 V(CmpSymbolEq) \ | 86 V(CmpSymbolEq) \ |
84 V(CmpSymbolEqAndBranch) \ | 87 V(CmpSymbolEqAndBranch) \ |
85 V(CmpT) \ | 88 V(CmpT) \ |
(...skipping 1834 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1920 class LCheckNonSmi: public LTemplateInstruction<0, 1, 0> { | 1923 class LCheckNonSmi: public LTemplateInstruction<0, 1, 0> { |
1921 public: | 1924 public: |
1922 explicit LCheckNonSmi(LOperand* value) { | 1925 explicit LCheckNonSmi(LOperand* value) { |
1923 inputs_[0] = value; | 1926 inputs_[0] = value; |
1924 } | 1927 } |
1925 | 1928 |
1926 DECLARE_CONCRETE_INSTRUCTION(CheckNonSmi, "check-non-smi") | 1929 DECLARE_CONCRETE_INSTRUCTION(CheckNonSmi, "check-non-smi") |
1927 }; | 1930 }; |
1928 | 1931 |
1929 | 1932 |
| 1933 class LClampDoubleToUint8: public LTemplateInstruction<1, 1, 1> { |
| 1934 public: |
| 1935 explicit LClampDoubleToUint8(LOperand* value, LOperand* temp) { |
| 1936 inputs_[0] = value; |
| 1937 temps_[0] = temp; |
| 1938 } |
| 1939 |
| 1940 LOperand* unclamped() { return inputs_[0]; } |
| 1941 |
| 1942 DECLARE_CONCRETE_INSTRUCTION(ClampDoubleToUint8, "clamp-d-to-uint8") |
| 1943 }; |
| 1944 |
| 1945 |
| 1946 class LClampIToUint8: public LTemplateInstruction<1, 1, 0> { |
| 1947 public: |
| 1948 explicit LClampIToUint8(LOperand* value) { |
| 1949 inputs_[0] = value; |
| 1950 } |
| 1951 |
| 1952 LOperand* unclamped() { return inputs_[0]; } |
| 1953 |
| 1954 DECLARE_CONCRETE_INSTRUCTION(ClampIToUint8, "clamp-i-to-uint8") |
| 1955 }; |
| 1956 |
| 1957 |
| 1958 class LClampTaggedToUint8: public LTemplateInstruction<1, 1, 1> { |
| 1959 public: |
| 1960 explicit LClampTaggedToUint8(LOperand* value, LOperand* temp) { |
| 1961 inputs_[0] = value; |
| 1962 temps_[0] = temp; |
| 1963 } |
| 1964 |
| 1965 LOperand* unclamped() { return inputs_[0]; } |
| 1966 |
| 1967 DECLARE_CONCRETE_INSTRUCTION(ClampTaggedToUint8, "clamp-t-to-uint8") |
| 1968 }; |
| 1969 |
| 1970 |
1930 class LArrayLiteral: public LTemplateInstruction<1, 0, 0> { | 1971 class LArrayLiteral: public LTemplateInstruction<1, 0, 0> { |
1931 public: | 1972 public: |
1932 DECLARE_CONCRETE_INSTRUCTION(ArrayLiteral, "array-literal") | 1973 DECLARE_CONCRETE_INSTRUCTION(ArrayLiteral, "array-literal") |
1933 DECLARE_HYDROGEN_ACCESSOR(ArrayLiteral) | 1974 DECLARE_HYDROGEN_ACCESSOR(ArrayLiteral) |
1934 }; | 1975 }; |
1935 | 1976 |
1936 | 1977 |
1937 class LObjectLiteral: public LTemplateInstruction<1, 0, 0> { | 1978 class LObjectLiteral: public LTemplateInstruction<1, 0, 0> { |
1938 public: | 1979 public: |
1939 DECLARE_CONCRETE_INSTRUCTION(ObjectLiteral, "object-literal") | 1980 DECLARE_CONCRETE_INSTRUCTION(ObjectLiteral, "object-literal") |
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2298 | 2339 |
2299 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2340 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2300 }; | 2341 }; |
2301 | 2342 |
2302 #undef DECLARE_HYDROGEN_ACCESSOR | 2343 #undef DECLARE_HYDROGEN_ACCESSOR |
2303 #undef DECLARE_CONCRETE_INSTRUCTION | 2344 #undef DECLARE_CONCRETE_INSTRUCTION |
2304 | 2345 |
2305 } } // namespace v8::internal | 2346 } } // namespace v8::internal |
2306 | 2347 |
2307 #endif // V8_ARM_LITHIUM_ARM_H_ | 2348 #endif // V8_ARM_LITHIUM_ARM_H_ |
OLD | NEW |