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 1324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1335 DECLARE_CONCRETE_INSTRUCTION(DateField, "date-field") | 1335 DECLARE_CONCRETE_INSTRUCTION(DateField, "date-field") |
1336 DECLARE_HYDROGEN_ACCESSOR(DateField) | 1336 DECLARE_HYDROGEN_ACCESSOR(DateField) |
1337 | 1337 |
1338 private: | 1338 private: |
1339 Smi* index_; | 1339 Smi* index_; |
1340 }; | 1340 }; |
1341 | 1341 |
1342 | 1342 |
1343 class LSeqStringSetChar V8_FINAL : public LTemplateInstruction<1, 3, 0> { | 1343 class LSeqStringSetChar V8_FINAL : public LTemplateInstruction<1, 3, 0> { |
1344 public: | 1344 public: |
1345 LSeqStringSetChar(String::Encoding encoding, | 1345 LSeqStringSetChar(LOperand* string, |
1346 LOperand* string, | |
1347 LOperand* index, | 1346 LOperand* index, |
1348 LOperand* value) : encoding_(encoding) { | 1347 LOperand* value) { |
1349 inputs_[0] = string; | 1348 inputs_[0] = string; |
1350 inputs_[1] = index; | 1349 inputs_[1] = index; |
1351 inputs_[2] = value; | 1350 inputs_[2] = value; |
1352 } | 1351 } |
1353 | 1352 |
1354 String::Encoding encoding() { return encoding_; } | |
1355 LOperand* string() { return inputs_[0]; } | 1353 LOperand* string() { return inputs_[0]; } |
1356 LOperand* index() { return inputs_[1]; } | 1354 LOperand* index() { return inputs_[1]; } |
1357 LOperand* value() { return inputs_[2]; } | 1355 LOperand* value() { return inputs_[2]; } |
1358 | 1356 |
1359 DECLARE_CONCRETE_INSTRUCTION(SeqStringSetChar, "seq-string-set-char") | 1357 DECLARE_CONCRETE_INSTRUCTION(SeqStringSetChar, "seq-string-set-char") |
1360 DECLARE_HYDROGEN_ACCESSOR(SeqStringSetChar) | 1358 DECLARE_HYDROGEN_ACCESSOR(SeqStringSetChar) |
1361 | |
1362 private: | |
1363 String::Encoding encoding_; | |
1364 }; | 1359 }; |
1365 | 1360 |
1366 | 1361 |
1367 class LThrow V8_FINAL : public LTemplateInstruction<0, 2, 0> { | 1362 class LThrow V8_FINAL : public LTemplateInstruction<0, 2, 0> { |
1368 public: | 1363 public: |
1369 LThrow(LOperand* context, LOperand* value) { | 1364 LThrow(LOperand* context, LOperand* value) { |
1370 inputs_[0] = context; | 1365 inputs_[0] = context; |
1371 inputs_[1] = value; | 1366 inputs_[1] = value; |
1372 } | 1367 } |
1373 | 1368 |
(...skipping 1499 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2873 | 2868 |
2874 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2869 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2875 }; | 2870 }; |
2876 | 2871 |
2877 #undef DECLARE_HYDROGEN_ACCESSOR | 2872 #undef DECLARE_HYDROGEN_ACCESSOR |
2878 #undef DECLARE_CONCRETE_INSTRUCTION | 2873 #undef DECLARE_CONCRETE_INSTRUCTION |
2879 | 2874 |
2880 } } // namespace v8::internal | 2875 } } // namespace v8::internal |
2881 | 2876 |
2882 #endif // V8_MIPS_LITHIUM_MIPS_H_ | 2877 #endif // V8_MIPS_LITHIUM_MIPS_H_ |
OLD | NEW |