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) \ | |
160 V(SeqStringSetChar) \ | 159 V(SeqStringSetChar) \ |
161 V(ShiftI) \ | 160 V(ShiftI) \ |
162 V(SmiTag) \ | 161 V(SmiTag) \ |
163 V(SmiUntag) \ | 162 V(SmiUntag) \ |
164 V(StackCheck) \ | 163 V(StackCheck) \ |
165 V(StoreCodeEntry) \ | 164 V(StoreCodeEntry) \ |
166 V(StoreContextSlot) \ | 165 V(StoreContextSlot) \ |
167 V(StoreGlobalCell) \ | 166 V(StoreGlobalCell) \ |
168 V(StoreGlobalGeneric) \ | 167 V(StoreGlobalGeneric) \ |
169 V(StoreKeyed) \ | 168 V(StoreKeyed) \ |
(...skipping 1161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1331 DECLARE_CONCRETE_INSTRUCTION(DateField, "date-field") | 1330 DECLARE_CONCRETE_INSTRUCTION(DateField, "date-field") |
1332 DECLARE_HYDROGEN_ACCESSOR(DateField) | 1331 DECLARE_HYDROGEN_ACCESSOR(DateField) |
1333 | 1332 |
1334 Smi* index() const { return index_; } | 1333 Smi* index() const { return index_; } |
1335 | 1334 |
1336 private: | 1335 private: |
1337 Smi* index_; | 1336 Smi* index_; |
1338 }; | 1337 }; |
1339 | 1338 |
1340 | 1339 |
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 | |
1356 class LSeqStringSetChar V8_FINAL : public LTemplateInstruction<1, 3, 0> { | 1340 class LSeqStringSetChar V8_FINAL : public LTemplateInstruction<1, 3, 0> { |
1357 public: | 1341 public: |
1358 LSeqStringSetChar(LOperand* string, | 1342 LSeqStringSetChar(LOperand* string, |
1359 LOperand* index, | 1343 LOperand* index, |
1360 LOperand* value) { | 1344 LOperand* value) { |
1361 inputs_[0] = string; | 1345 inputs_[0] = string; |
1362 inputs_[1] = index; | 1346 inputs_[1] = index; |
1363 inputs_[2] = value; | 1347 inputs_[2] = value; |
1364 } | 1348 } |
1365 | 1349 |
(...skipping 1564 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2930 | 2914 |
2931 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2915 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2932 }; | 2916 }; |
2933 | 2917 |
2934 #undef DECLARE_HYDROGEN_ACCESSOR | 2918 #undef DECLARE_HYDROGEN_ACCESSOR |
2935 #undef DECLARE_CONCRETE_INSTRUCTION | 2919 #undef DECLARE_CONCRETE_INSTRUCTION |
2936 | 2920 |
2937 } } // namespace v8::internal | 2921 } } // namespace v8::internal |
2938 | 2922 |
2939 #endif // V8_IA32_LITHIUM_IA32_H_ | 2923 #endif // V8_IA32_LITHIUM_IA32_H_ |
OLD | NEW |