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 1148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1159 } | 1159 } |
1160 | 1160 |
1161 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedFastElement, "load-keyed-fast-element") | 1161 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedFastElement, "load-keyed-fast-element") |
1162 DECLARE_HYDROGEN_ACCESSOR(LoadKeyedFastElement) | 1162 DECLARE_HYDROGEN_ACCESSOR(LoadKeyedFastElement) |
1163 | 1163 |
1164 LOperand* elements() { return inputs_[0]; } | 1164 LOperand* elements() { return inputs_[0]; } |
1165 LOperand* key() { return inputs_[1]; } | 1165 LOperand* key() { return inputs_[1]; } |
1166 }; | 1166 }; |
1167 | 1167 |
1168 | 1168 |
1169 class LStorePixelArrayElement: public LTemplateInstruction<0, 3, 1> { | |
Kevin Millikin (Chromium)
2011/02/16 08:51:25
You should just delete this instruction because it
danno
2011/02/16 13:54:22
Done.
| |
1170 public: | |
1171 LStorePixelArrayElement(LOperand* external_pointer, | |
1172 LOperand* key, | |
1173 LOperand* val, | |
1174 LOperand* clamped) { | |
1175 inputs_[0] = external_pointer; | |
1176 inputs_[1] = key; | |
1177 inputs_[2] = val; | |
1178 temps_[0] = clamped; | |
1179 } | |
1180 | |
1181 DECLARE_CONCRETE_INSTRUCTION(StorePixelArrayElement, | |
1182 "store-pixel-array-element") | |
1183 DECLARE_HYDROGEN_ACCESSOR(StorePixelArrayElement) | |
1184 | |
1185 LOperand* external_pointer() { return inputs_[0]; } | |
1186 LOperand* key() { return inputs_[1]; } | |
1187 LOperand* value() { return inputs_[2]; } | |
1188 }; | |
1189 | |
1190 | |
1169 class LLoadPixelArrayElement: public LTemplateInstruction<1, 2, 0> { | 1191 class LLoadPixelArrayElement: public LTemplateInstruction<1, 2, 0> { |
1170 public: | 1192 public: |
1171 LLoadPixelArrayElement(LOperand* external_pointer, LOperand* key) { | 1193 LLoadPixelArrayElement(LOperand* external_pointer, LOperand* key) { |
1172 inputs_[0] = external_pointer; | 1194 inputs_[0] = external_pointer; |
1173 inputs_[1] = key; | 1195 inputs_[1] = key; |
1174 } | 1196 } |
1175 | 1197 |
1176 DECLARE_CONCRETE_INSTRUCTION(LoadPixelArrayElement, | 1198 DECLARE_CONCRETE_INSTRUCTION(LoadPixelArrayElement, |
1177 "load-pixel-array-element") | 1199 "load-pixel-array-element") |
1178 DECLARE_HYDROGEN_ACCESSOR(LoadPixelArrayElement) | 1200 DECLARE_HYDROGEN_ACCESSOR(LoadPixelArrayElement) |
(...skipping 837 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2016 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2038 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2017 }; | 2039 }; |
2018 | 2040 |
2019 #undef DECLARE_HYDROGEN_ACCESSOR | 2041 #undef DECLARE_HYDROGEN_ACCESSOR |
2020 #undef DECLARE_INSTRUCTION | 2042 #undef DECLARE_INSTRUCTION |
2021 #undef DECLARE_CONCRETE_INSTRUCTION | 2043 #undef DECLARE_CONCRETE_INSTRUCTION |
2022 | 2044 |
2023 } } // namespace v8::internal | 2045 } } // namespace v8::internal |
2024 | 2046 |
2025 #endif // V8_ARM_LITHIUM_ARM_H_ | 2047 #endif // V8_ARM_LITHIUM_ARM_H_ |
OLD | NEW |