| 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 1363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1374 } | 1374 } |
| 1375 | 1375 |
| 1376 LOperand* string() const { return inputs_[0]; } | 1376 LOperand* string() const { return inputs_[0]; } |
| 1377 LOperand* index() const { return inputs_[1]; } | 1377 LOperand* index() const { return inputs_[1]; } |
| 1378 | 1378 |
| 1379 DECLARE_CONCRETE_INSTRUCTION(SeqStringGetChar, "seq-string-get-char") | 1379 DECLARE_CONCRETE_INSTRUCTION(SeqStringGetChar, "seq-string-get-char") |
| 1380 DECLARE_HYDROGEN_ACCESSOR(SeqStringGetChar) | 1380 DECLARE_HYDROGEN_ACCESSOR(SeqStringGetChar) |
| 1381 }; | 1381 }; |
| 1382 | 1382 |
| 1383 | 1383 |
| 1384 class LSeqStringSetChar V8_FINAL : public LTemplateInstruction<1, 3, 0> { | 1384 class LSeqStringSetChar V8_FINAL : public LTemplateInstruction<1, 4, 0> { |
| 1385 public: | 1385 public: |
| 1386 LSeqStringSetChar(LOperand* string, | 1386 LSeqStringSetChar(LOperand* context, |
| 1387 LOperand* string, |
| 1387 LOperand* index, | 1388 LOperand* index, |
| 1388 LOperand* value) { | 1389 LOperand* value) { |
| 1389 inputs_[0] = string; | 1390 inputs_[0] = context; |
| 1390 inputs_[1] = index; | 1391 inputs_[1] = string; |
| 1391 inputs_[2] = value; | 1392 inputs_[2] = index; |
| 1393 inputs_[3] = value; |
| 1392 } | 1394 } |
| 1393 | 1395 |
| 1394 LOperand* string() { return inputs_[0]; } | 1396 LOperand* string() { return inputs_[1]; } |
| 1395 LOperand* index() { return inputs_[1]; } | 1397 LOperand* index() { return inputs_[2]; } |
| 1396 LOperand* value() { return inputs_[2]; } | 1398 LOperand* value() { return inputs_[3]; } |
| 1397 | 1399 |
| 1398 DECLARE_CONCRETE_INSTRUCTION(SeqStringSetChar, "seq-string-set-char") | 1400 DECLARE_CONCRETE_INSTRUCTION(SeqStringSetChar, "seq-string-set-char") |
| 1399 DECLARE_HYDROGEN_ACCESSOR(SeqStringSetChar) | 1401 DECLARE_HYDROGEN_ACCESSOR(SeqStringSetChar) |
| 1400 }; | 1402 }; |
| 1401 | 1403 |
| 1402 | 1404 |
| 1403 class LThrow V8_FINAL : public LTemplateInstruction<0, 2, 0> { | 1405 class LThrow V8_FINAL : public LTemplateInstruction<0, 2, 0> { |
| 1404 public: | 1406 public: |
| 1405 LThrow(LOperand* context, LOperand* value) { | 1407 LThrow(LOperand* context, LOperand* value) { |
| 1406 inputs_[0] = context; | 1408 inputs_[0] = context; |
| (...skipping 1502 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2909 | 2911 |
| 2910 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2912 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2911 }; | 2913 }; |
| 2912 | 2914 |
| 2913 #undef DECLARE_HYDROGEN_ACCESSOR | 2915 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2914 #undef DECLARE_CONCRETE_INSTRUCTION | 2916 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2915 | 2917 |
| 2916 } } // namespace v8::internal | 2918 } } // namespace v8::internal |
| 2917 | 2919 |
| 2918 #endif // V8_MIPS_LITHIUM_MIPS_H_ | 2920 #endif // V8_MIPS_LITHIUM_MIPS_H_ |
| OLD | NEW |