OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_MIPS_LITHIUM_MIPS_H_ | 5 #ifndef V8_MIPS_LITHIUM_MIPS_H_ |
6 #define V8_MIPS_LITHIUM_MIPS_H_ | 6 #define V8_MIPS_LITHIUM_MIPS_H_ |
7 | 7 |
8 #include "src/hydrogen.h" | 8 #include "src/hydrogen.h" |
9 #include "src/lithium.h" | 9 #include "src/lithium.h" |
10 #include "src/lithium-allocator.h" | 10 #include "src/lithium-allocator.h" |
11 #include "src/safepoint-table.h" | 11 #include "src/safepoint-table.h" |
12 #include "src/utils.h" | 12 #include "src/utils.h" |
13 | 13 |
14 namespace v8 { | 14 namespace v8 { |
15 namespace internal { | 15 namespace internal { |
16 | 16 |
17 // Forward declarations. | 17 // Forward declarations. |
18 class LCodeGen; | 18 class LCodeGen; |
19 | 19 |
20 #define LITHIUM_CONCRETE_INSTRUCTION_LIST(V) \ | 20 #define LITHIUM_CONCRETE_INSTRUCTION_LIST(V) \ |
21 V(AccessArgumentsAt) \ | 21 V(AccessArgumentsAt) \ |
22 V(AddI) \ | 22 V(AddI) \ |
| 23 V(AddE) \ |
23 V(Allocate) \ | 24 V(Allocate) \ |
24 V(AllocateBlockContext) \ | 25 V(AllocateBlockContext) \ |
25 V(ApplyArguments) \ | 26 V(ApplyArguments) \ |
26 V(ArgumentsElements) \ | 27 V(ArgumentsElements) \ |
27 V(ArgumentsLength) \ | 28 V(ArgumentsLength) \ |
28 V(ArithmeticD) \ | 29 V(ArithmeticD) \ |
29 V(ArithmeticT) \ | 30 V(ArithmeticT) \ |
30 V(BitI) \ | 31 V(BitI) \ |
31 V(BoundsCheck) \ | 32 V(BoundsCheck) \ |
32 V(Branch) \ | 33 V(Branch) \ |
(...skipping 1381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1414 | 1415 |
1415 LOperand* string() { return inputs_[1]; } | 1416 LOperand* string() { return inputs_[1]; } |
1416 LOperand* index() { return inputs_[2]; } | 1417 LOperand* index() { return inputs_[2]; } |
1417 LOperand* value() { return inputs_[3]; } | 1418 LOperand* value() { return inputs_[3]; } |
1418 | 1419 |
1419 DECLARE_CONCRETE_INSTRUCTION(SeqStringSetChar, "seq-string-set-char") | 1420 DECLARE_CONCRETE_INSTRUCTION(SeqStringSetChar, "seq-string-set-char") |
1420 DECLARE_HYDROGEN_ACCESSOR(SeqStringSetChar) | 1421 DECLARE_HYDROGEN_ACCESSOR(SeqStringSetChar) |
1421 }; | 1422 }; |
1422 | 1423 |
1423 | 1424 |
| 1425 class LAddE final : public LTemplateInstruction<1, 2, 0> { |
| 1426 public: |
| 1427 LAddE(LOperand* left, LOperand* right) { |
| 1428 inputs_[0] = left; |
| 1429 inputs_[1] = right; |
| 1430 } |
| 1431 |
| 1432 LOperand* left() { return inputs_[0]; } |
| 1433 LOperand* right() { return inputs_[1]; } |
| 1434 |
| 1435 DECLARE_CONCRETE_INSTRUCTION(AddE, "add-e") |
| 1436 DECLARE_HYDROGEN_ACCESSOR(Add) |
| 1437 }; |
| 1438 |
| 1439 |
1424 class LAddI final : public LTemplateInstruction<1, 2, 0> { | 1440 class LAddI final : public LTemplateInstruction<1, 2, 0> { |
1425 public: | 1441 public: |
1426 LAddI(LOperand* left, LOperand* right) { | 1442 LAddI(LOperand* left, LOperand* right) { |
1427 inputs_[0] = left; | 1443 inputs_[0] = left; |
1428 inputs_[1] = right; | 1444 inputs_[1] = right; |
1429 } | 1445 } |
1430 | 1446 |
1431 LOperand* left() { return inputs_[0]; } | 1447 LOperand* left() { return inputs_[0]; } |
1432 LOperand* right() { return inputs_[1]; } | 1448 LOperand* right() { return inputs_[1]; } |
1433 | 1449 |
(...skipping 1383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2817 | 2833 |
2818 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2834 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2819 }; | 2835 }; |
2820 | 2836 |
2821 #undef DECLARE_HYDROGEN_ACCESSOR | 2837 #undef DECLARE_HYDROGEN_ACCESSOR |
2822 #undef DECLARE_CONCRETE_INSTRUCTION | 2838 #undef DECLARE_CONCRETE_INSTRUCTION |
2823 | 2839 |
2824 } } // namespace v8::internal | 2840 } } // namespace v8::internal |
2825 | 2841 |
2826 #endif // V8_MIPS_LITHIUM_MIPS_H_ | 2842 #endif // V8_MIPS_LITHIUM_MIPS_H_ |
OLD | NEW |