| 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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 V(LoadNamedField) \ | 132 V(LoadNamedField) \ |
| 133 V(LoadNamedFieldPolymorphic) \ | 133 V(LoadNamedFieldPolymorphic) \ |
| 134 V(LoadNamedGeneric) \ | 134 V(LoadNamedGeneric) \ |
| 135 V(MapEnumLength) \ | 135 V(MapEnumLength) \ |
| 136 V(MathExp) \ | 136 V(MathExp) \ |
| 137 V(MathFloorOfDiv) \ | 137 V(MathFloorOfDiv) \ |
| 138 V(MathMinMax) \ | 138 V(MathMinMax) \ |
| 139 V(ModI) \ | 139 V(ModI) \ |
| 140 V(MulI) \ | 140 V(MulI) \ |
| 141 V(MultiplyAddD) \ | 141 V(MultiplyAddD) \ |
| 142 V(MultiplySubD) \ |
| 142 V(NumberTagD) \ | 143 V(NumberTagD) \ |
| 143 V(NumberTagI) \ | 144 V(NumberTagI) \ |
| 144 V(NumberTagU) \ | 145 V(NumberTagU) \ |
| 145 V(NumberUntagD) \ | 146 V(NumberUntagD) \ |
| 146 V(ObjectLiteral) \ | 147 V(ObjectLiteral) \ |
| 147 V(OsrEntry) \ | 148 V(OsrEntry) \ |
| 148 V(OuterContext) \ | 149 V(OuterContext) \ |
| 149 V(Parameter) \ | 150 V(Parameter) \ |
| 150 V(Power) \ | 151 V(Power) \ |
| 151 V(PushArgument) \ | 152 V(PushArgument) \ |
| (...skipping 501 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 653 } | 654 } |
| 654 | 655 |
| 655 LOperand* addend() { return inputs_[0]; } | 656 LOperand* addend() { return inputs_[0]; } |
| 656 LOperand* multiplier() { return inputs_[1]; } | 657 LOperand* multiplier() { return inputs_[1]; } |
| 657 LOperand* multiplicand() { return inputs_[2]; } | 658 LOperand* multiplicand() { return inputs_[2]; } |
| 658 | 659 |
| 659 DECLARE_CONCRETE_INSTRUCTION(MultiplyAddD, "multiply-add-d") | 660 DECLARE_CONCRETE_INSTRUCTION(MultiplyAddD, "multiply-add-d") |
| 660 }; | 661 }; |
| 661 | 662 |
| 662 | 663 |
| 664 // Instruction for computing minuend - multiplier * multiplicand. |
| 665 class LMultiplySubD: public LTemplateInstruction<1, 3, 0> { |
| 666 public: |
| 667 LMultiplySubD(LOperand* minuend, LOperand* multiplier, |
| 668 LOperand* multiplicand) { |
| 669 inputs_[0] = minuend; |
| 670 inputs_[1] = multiplier; |
| 671 inputs_[2] = multiplicand; |
| 672 } |
| 673 |
| 674 LOperand* minuend() { return inputs_[0]; } |
| 675 LOperand* multiplier() { return inputs_[1]; } |
| 676 LOperand* multiplicand() { return inputs_[2]; } |
| 677 |
| 678 DECLARE_CONCRETE_INSTRUCTION(MultiplySubD, "multiply-sub-d") |
| 679 }; |
| 680 |
| 681 |
| 663 class LCmpIDAndBranch: public LControlInstruction<2, 0> { | 682 class LCmpIDAndBranch: public LControlInstruction<2, 0> { |
| 664 public: | 683 public: |
| 665 LCmpIDAndBranch(LOperand* left, LOperand* right) { | 684 LCmpIDAndBranch(LOperand* left, LOperand* right) { |
| 666 inputs_[0] = left; | 685 inputs_[0] = left; |
| 667 inputs_[1] = right; | 686 inputs_[1] = right; |
| 668 } | 687 } |
| 669 | 688 |
| 670 LOperand* left() { return inputs_[0]; } | 689 LOperand* left() { return inputs_[0]; } |
| 671 LOperand* right() { return inputs_[1]; } | 690 LOperand* right() { return inputs_[1]; } |
| 672 | 691 |
| (...skipping 1860 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2533 | 2552 |
| 2534 // Build the sequence for the graph. | 2553 // Build the sequence for the graph. |
| 2535 LPlatformChunk* Build(); | 2554 LPlatformChunk* Build(); |
| 2536 | 2555 |
| 2537 // Declare methods that deal with the individual node types. | 2556 // Declare methods that deal with the individual node types. |
| 2538 #define DECLARE_DO(type) LInstruction* Do##type(H##type* node); | 2557 #define DECLARE_DO(type) LInstruction* Do##type(H##type* node); |
| 2539 HYDROGEN_CONCRETE_INSTRUCTION_LIST(DECLARE_DO) | 2558 HYDROGEN_CONCRETE_INSTRUCTION_LIST(DECLARE_DO) |
| 2540 #undef DECLARE_DO | 2559 #undef DECLARE_DO |
| 2541 | 2560 |
| 2542 LInstruction* DoMultiplyAdd(HMul* mul, HValue* addend); | 2561 LInstruction* DoMultiplyAdd(HMul* mul, HValue* addend); |
| 2562 LInstruction* DoMultiplySub(HValue* minuend, HMul* mul); |
| 2543 LInstruction* DoRSub(HSub* instr); | 2563 LInstruction* DoRSub(HSub* instr); |
| 2544 | 2564 |
| 2545 static bool HasMagicNumberForDivisor(int32_t divisor); | 2565 static bool HasMagicNumberForDivisor(int32_t divisor); |
| 2546 static HValue* SimplifiedDividendForMathFloorOfDiv(HValue* val); | 2566 static HValue* SimplifiedDividendForMathFloorOfDiv(HValue* val); |
| 2547 static HValue* SimplifiedDivisorForMathFloorOfDiv(HValue* val); | 2567 static HValue* SimplifiedDivisorForMathFloorOfDiv(HValue* val); |
| 2548 | 2568 |
| 2549 private: | 2569 private: |
| 2550 enum Status { | 2570 enum Status { |
| 2551 UNUSED, | 2571 UNUSED, |
| 2552 BUILDING, | 2572 BUILDING, |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2670 | 2690 |
| 2671 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2691 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2672 }; | 2692 }; |
| 2673 | 2693 |
| 2674 #undef DECLARE_HYDROGEN_ACCESSOR | 2694 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2675 #undef DECLARE_CONCRETE_INSTRUCTION | 2695 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2676 | 2696 |
| 2677 } } // namespace v8::internal | 2697 } } // namespace v8::internal |
| 2678 | 2698 |
| 2679 #endif // V8_ARM_LITHIUM_ARM_H_ | 2699 #endif // V8_ARM_LITHIUM_ARM_H_ |
| OLD | NEW |