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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 V(NumberTagU) \ | 149 V(NumberTagU) \ |
150 V(NumberUntagD) \ | 150 V(NumberUntagD) \ |
151 V(OsrEntry) \ | 151 V(OsrEntry) \ |
152 V(OuterContext) \ | 152 V(OuterContext) \ |
153 V(Parameter) \ | 153 V(Parameter) \ |
154 V(Power) \ | 154 V(Power) \ |
155 V(PushArgument) \ | 155 V(PushArgument) \ |
156 V(Random) \ | 156 V(Random) \ |
157 V(RegExpLiteral) \ | 157 V(RegExpLiteral) \ |
158 V(Return) \ | 158 V(Return) \ |
| 159 V(SeqStringGetChar) \ |
159 V(SeqStringSetChar) \ | 160 V(SeqStringSetChar) \ |
160 V(ShiftI) \ | 161 V(ShiftI) \ |
161 V(SmiTag) \ | 162 V(SmiTag) \ |
162 V(SmiUntag) \ | 163 V(SmiUntag) \ |
163 V(StackCheck) \ | 164 V(StackCheck) \ |
164 V(StoreCodeEntry) \ | 165 V(StoreCodeEntry) \ |
165 V(StoreContextSlot) \ | 166 V(StoreContextSlot) \ |
166 V(StoreGlobalCell) \ | 167 V(StoreGlobalCell) \ |
167 V(StoreGlobalGeneric) \ | 168 V(StoreGlobalGeneric) \ |
168 V(StoreKeyed) \ | 169 V(StoreKeyed) \ |
(...skipping 1184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1353 Smi* index() const { return index_; } | 1354 Smi* index() const { return index_; } |
1354 | 1355 |
1355 DECLARE_CONCRETE_INSTRUCTION(DateField, "date-field") | 1356 DECLARE_CONCRETE_INSTRUCTION(DateField, "date-field") |
1356 DECLARE_HYDROGEN_ACCESSOR(DateField) | 1357 DECLARE_HYDROGEN_ACCESSOR(DateField) |
1357 | 1358 |
1358 private: | 1359 private: |
1359 Smi* index_; | 1360 Smi* index_; |
1360 }; | 1361 }; |
1361 | 1362 |
1362 | 1363 |
| 1364 class LSeqStringGetChar V8_FINAL : public LTemplateInstruction<1, 2, 0> { |
| 1365 public: |
| 1366 LSeqStringGetChar(LOperand* string, LOperand* index) { |
| 1367 inputs_[0] = string; |
| 1368 inputs_[1] = index; |
| 1369 } |
| 1370 |
| 1371 LOperand* string() const { return inputs_[0]; } |
| 1372 LOperand* index() const { return inputs_[1]; } |
| 1373 |
| 1374 DECLARE_CONCRETE_INSTRUCTION(SeqStringGetChar, "seq-string-get-char") |
| 1375 DECLARE_HYDROGEN_ACCESSOR(SeqStringGetChar) |
| 1376 }; |
| 1377 |
| 1378 |
1363 class LSeqStringSetChar V8_FINAL : public LTemplateInstruction<1, 3, 0> { | 1379 class LSeqStringSetChar V8_FINAL : public LTemplateInstruction<1, 3, 0> { |
1364 public: | 1380 public: |
1365 LSeqStringSetChar(LOperand* string, | 1381 LSeqStringSetChar(LOperand* string, |
1366 LOperand* index, | 1382 LOperand* index, |
1367 LOperand* value) { | 1383 LOperand* value) { |
1368 inputs_[0] = string; | 1384 inputs_[0] = string; |
1369 inputs_[1] = index; | 1385 inputs_[1] = index; |
1370 inputs_[2] = value; | 1386 inputs_[2] = value; |
1371 } | 1387 } |
1372 | 1388 |
(...skipping 1522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2895 | 2911 |
2896 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2912 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2897 }; | 2913 }; |
2898 | 2914 |
2899 #undef DECLARE_HYDROGEN_ACCESSOR | 2915 #undef DECLARE_HYDROGEN_ACCESSOR |
2900 #undef DECLARE_CONCRETE_INSTRUCTION | 2916 #undef DECLARE_CONCRETE_INSTRUCTION |
2901 | 2917 |
2902 } } // namespace v8::internal | 2918 } } // namespace v8::internal |
2903 | 2919 |
2904 #endif // V8_ARM_LITHIUM_ARM_H_ | 2920 #endif // V8_ARM_LITHIUM_ARM_H_ |
OLD | NEW |