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(Random) \ | 155 V(Random) \ |
156 V(PushArgument) \ | 156 V(PushArgument) \ |
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 1161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1330 DECLARE_CONCRETE_INSTRUCTION(DateField, "date-field") | 1331 DECLARE_CONCRETE_INSTRUCTION(DateField, "date-field") |
1331 DECLARE_HYDROGEN_ACCESSOR(DateField) | 1332 DECLARE_HYDROGEN_ACCESSOR(DateField) |
1332 | 1333 |
1333 Smi* index() const { return index_; } | 1334 Smi* index() const { return index_; } |
1334 | 1335 |
1335 private: | 1336 private: |
1336 Smi* index_; | 1337 Smi* index_; |
1337 }; | 1338 }; |
1338 | 1339 |
1339 | 1340 |
| 1341 class LSeqStringGetChar V8_FINAL : public LTemplateInstruction<1, 2, 0> { |
| 1342 public: |
| 1343 LSeqStringGetChar(LOperand* string, LOperand* index) { |
| 1344 inputs_[0] = string; |
| 1345 inputs_[1] = index; |
| 1346 } |
| 1347 |
| 1348 LOperand* string() const { return inputs_[0]; } |
| 1349 LOperand* index() const { return inputs_[1]; } |
| 1350 |
| 1351 DECLARE_CONCRETE_INSTRUCTION(SeqStringGetChar, "seq-string-get-char") |
| 1352 DECLARE_HYDROGEN_ACCESSOR(SeqStringGetChar) |
| 1353 }; |
| 1354 |
| 1355 |
1340 class LSeqStringSetChar V8_FINAL : public LTemplateInstruction<1, 3, 0> { | 1356 class LSeqStringSetChar V8_FINAL : public LTemplateInstruction<1, 3, 0> { |
1341 public: | 1357 public: |
1342 LSeqStringSetChar(LOperand* string, | 1358 LSeqStringSetChar(LOperand* string, |
1343 LOperand* index, | 1359 LOperand* index, |
1344 LOperand* value) { | 1360 LOperand* value) { |
1345 inputs_[0] = string; | 1361 inputs_[0] = string; |
1346 inputs_[1] = index; | 1362 inputs_[1] = index; |
1347 inputs_[2] = value; | 1363 inputs_[2] = value; |
1348 } | 1364 } |
1349 | 1365 |
(...skipping 1564 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2914 | 2930 |
2915 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2931 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2916 }; | 2932 }; |
2917 | 2933 |
2918 #undef DECLARE_HYDROGEN_ACCESSOR | 2934 #undef DECLARE_HYDROGEN_ACCESSOR |
2919 #undef DECLARE_CONCRETE_INSTRUCTION | 2935 #undef DECLARE_CONCRETE_INSTRUCTION |
2920 | 2936 |
2921 } } // namespace v8::internal | 2937 } } // namespace v8::internal |
2922 | 2938 |
2923 #endif // V8_IA32_LITHIUM_IA32_H_ | 2939 #endif // V8_IA32_LITHIUM_IA32_H_ |
OLD | NEW |