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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 V(LoadGlobalGeneric) \ | 127 V(LoadGlobalGeneric) \ |
128 V(LoadKeyed) \ | 128 V(LoadKeyed) \ |
129 V(LoadKeyedGeneric) \ | 129 V(LoadKeyedGeneric) \ |
130 V(LoadNamedField) \ | 130 V(LoadNamedField) \ |
131 V(LoadNamedFieldPolymorphic) \ | 131 V(LoadNamedFieldPolymorphic) \ |
132 V(LoadNamedGeneric) \ | 132 V(LoadNamedGeneric) \ |
133 V(MapEnumLength) \ | 133 V(MapEnumLength) \ |
134 V(MathMinMax) \ | 134 V(MathMinMax) \ |
135 V(ModI) \ | 135 V(ModI) \ |
136 V(MulI) \ | 136 V(MulI) \ |
| 137 V(MultiplyAddD) \ |
137 V(NumberTagD) \ | 138 V(NumberTagD) \ |
138 V(NumberTagI) \ | 139 V(NumberTagI) \ |
139 V(NumberTagU) \ | 140 V(NumberTagU) \ |
140 V(NumberUntagD) \ | 141 V(NumberUntagD) \ |
141 V(ObjectLiteral) \ | 142 V(ObjectLiteral) \ |
142 V(OsrEntry) \ | 143 V(OsrEntry) \ |
143 V(OuterContext) \ | 144 V(OuterContext) \ |
144 V(Parameter) \ | 145 V(Parameter) \ |
145 V(Power) \ | 146 V(Power) \ |
146 V(PushArgument) \ | 147 V(PushArgument) \ |
(...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
594 | 595 |
595 LOperand* left() { return inputs_[0]; } | 596 LOperand* left() { return inputs_[0]; } |
596 LOperand* right() { return inputs_[1]; } | 597 LOperand* right() { return inputs_[1]; } |
597 LOperand* temp() { return temps_[0]; } | 598 LOperand* temp() { return temps_[0]; } |
598 | 599 |
599 DECLARE_CONCRETE_INSTRUCTION(MulI, "mul-i") | 600 DECLARE_CONCRETE_INSTRUCTION(MulI, "mul-i") |
600 DECLARE_HYDROGEN_ACCESSOR(Mul) | 601 DECLARE_HYDROGEN_ACCESSOR(Mul) |
601 }; | 602 }; |
602 | 603 |
603 | 604 |
| 605 class LMultiplyAddD: public LTemplateInstruction<1, 3, 0> { |
| 606 public: |
| 607 LMultiplyAddD(LOperand* a, LOperand* b, LOperand* c) { |
| 608 inputs_[0] = a; |
| 609 inputs_[1] = b; |
| 610 inputs_[2] = c; |
| 611 } |
| 612 |
| 613 LOperand* a() { return inputs_[0]; } |
| 614 LOperand* b() { return inputs_[1]; } |
| 615 LOperand* c() { return inputs_[2]; } |
| 616 |
| 617 DECLARE_CONCRETE_INSTRUCTION(MultiplyAddD, "multiply-add-d") |
| 618 DECLARE_HYDROGEN_ACCESSOR(MultiplyAddD) |
| 619 }; |
| 620 |
| 621 |
604 class LCmpIDAndBranch: public LControlInstruction<2, 0> { | 622 class LCmpIDAndBranch: public LControlInstruction<2, 0> { |
605 public: | 623 public: |
606 LCmpIDAndBranch(LOperand* left, LOperand* right) { | 624 LCmpIDAndBranch(LOperand* left, LOperand* right) { |
607 inputs_[0] = left; | 625 inputs_[0] = left; |
608 inputs_[1] = right; | 626 inputs_[1] = right; |
609 } | 627 } |
610 | 628 |
611 LOperand* left() { return inputs_[0]; } | 629 LOperand* left() { return inputs_[0]; } |
612 LOperand* right() { return inputs_[1]; } | 630 LOperand* right() { return inputs_[1]; } |
613 | 631 |
(...skipping 1887 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2501 | 2519 |
2502 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2520 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2503 }; | 2521 }; |
2504 | 2522 |
2505 #undef DECLARE_HYDROGEN_ACCESSOR | 2523 #undef DECLARE_HYDROGEN_ACCESSOR |
2506 #undef DECLARE_CONCRETE_INSTRUCTION | 2524 #undef DECLARE_CONCRETE_INSTRUCTION |
2507 | 2525 |
2508 } } // namespace v8::internal | 2526 } } // namespace v8::internal |
2509 | 2527 |
2510 #endif // V8_MIPS_LITHIUM_MIPS_H_ | 2528 #endif // V8_MIPS_LITHIUM_MIPS_H_ |
OLD | NEW |