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 1206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1217 DECLARE_HYDROGEN_ACCESSOR(LoadKeyedFastDoubleElement) | 1217 DECLARE_HYDROGEN_ACCESSOR(LoadKeyedFastDoubleElement) |
1218 | 1218 |
1219 LOperand* elements() { return inputs_[0]; } | 1219 LOperand* elements() { return inputs_[0]; } |
1220 LOperand* key() { return inputs_[1]; } | 1220 LOperand* key() { return inputs_[1]; } |
1221 uint32_t additional_index() const { return hydrogen()->index_offset(); } | 1221 uint32_t additional_index() const { return hydrogen()->index_offset(); } |
1222 }; | 1222 }; |
1223 | 1223 |
1224 | 1224 |
1225 class LLoadKeyedSpecializedArrayElement: public LTemplateInstruction<1, 2, 0> { | 1225 class LLoadKeyedSpecializedArrayElement: public LTemplateInstruction<1, 2, 0> { |
1226 public: | 1226 public: |
1227 LLoadKeyedSpecializedArrayElement(LOperand* external_pointer, LOperand* key)
{ | 1227 LLoadKeyedSpecializedArrayElement(LOperand* external_pointer, |
| 1228 LOperand* key) { |
1228 inputs_[0] = external_pointer; | 1229 inputs_[0] = external_pointer; |
1229 inputs_[1] = key; | 1230 inputs_[1] = key; |
1230 } | 1231 } |
1231 | 1232 |
1232 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedSpecializedArrayElement, | 1233 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedSpecializedArrayElement, |
1233 "load-keyed-specialized-array-element") | 1234 "load-keyed-specialized-array-element") |
1234 DECLARE_HYDROGEN_ACCESSOR(LoadKeyedSpecializedArrayElement) | 1235 DECLARE_HYDROGEN_ACCESSOR(LoadKeyedSpecializedArrayElement) |
1235 | 1236 |
1236 LOperand* external_pointer() { return inputs_[0]; } | 1237 LOperand* external_pointer() { return inputs_[0]; } |
1237 LOperand* key() { return inputs_[1]; } | 1238 LOperand* key() { return inputs_[1]; } |
(...skipping 1156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2394 | 2395 |
2395 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2396 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2396 }; | 2397 }; |
2397 | 2398 |
2398 #undef DECLARE_HYDROGEN_ACCESSOR | 2399 #undef DECLARE_HYDROGEN_ACCESSOR |
2399 #undef DECLARE_CONCRETE_INSTRUCTION | 2400 #undef DECLARE_CONCRETE_INSTRUCTION |
2400 | 2401 |
2401 } } // namespace v8::internal | 2402 } } // namespace v8::internal |
2402 | 2403 |
2403 #endif // V8_MIPS_LITHIUM_MIPS_H_ | 2404 #endif // V8_MIPS_LITHIUM_MIPS_H_ |
OLD | NEW |