| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 2662 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2673 | 2673 |
| 2674 LOperand* object() { return inputs_[0]; } | 2674 LOperand* object() { return inputs_[0]; } |
| 2675 LOperand* temp1() { return temps_[0]; } | 2675 LOperand* temp1() { return temps_[0]; } |
| 2676 LOperand* temp2() { return temps_[1]; } | 2676 LOperand* temp2() { return temps_[1]; } |
| 2677 | 2677 |
| 2678 DECLARE_CONCRETE_INSTRUCTION(TrapAllocationMemento, "trap-allocation-memento") | 2678 DECLARE_CONCRETE_INSTRUCTION(TrapAllocationMemento, "trap-allocation-memento") |
| 2679 }; | 2679 }; |
| 2680 | 2680 |
| 2681 | 2681 |
| 2682 class LTruncateDoubleToIntOrSmi V8_FINAL | 2682 class LTruncateDoubleToIntOrSmi V8_FINAL |
| 2683 : public LTemplateInstruction<1, 1, 2> { | 2683 : public LTemplateInstruction<1, 1, 0> { |
| 2684 public: | 2684 public: |
| 2685 LTruncateDoubleToIntOrSmi(LOperand* value, LOperand* temp1, LOperand* temp2) { | 2685 explicit LTruncateDoubleToIntOrSmi(LOperand* value) { |
| 2686 inputs_[0] = value; | 2686 inputs_[0] = value; |
| 2687 temps_[0] = temp1; | |
| 2688 temps_[1] = temp2; | |
| 2689 } | 2687 } |
| 2690 | 2688 |
| 2691 LOperand* value() { return inputs_[0]; } | 2689 LOperand* value() { return inputs_[0]; } |
| 2692 LOperand* temp1() { return temps_[0]; } | |
| 2693 LOperand* temp2() { return temps_[1]; } | |
| 2694 | 2690 |
| 2695 DECLARE_CONCRETE_INSTRUCTION(TruncateDoubleToIntOrSmi, | 2691 DECLARE_CONCRETE_INSTRUCTION(TruncateDoubleToIntOrSmi, |
| 2696 "truncate-double-to-int-or-smi") | 2692 "truncate-double-to-int-or-smi") |
| 2697 DECLARE_HYDROGEN_ACCESSOR(UnaryOperation) | 2693 DECLARE_HYDROGEN_ACCESSOR(UnaryOperation) |
| 2698 | 2694 |
| 2699 bool tag_result() { return hydrogen()->representation().IsSmi(); } | 2695 bool tag_result() { return hydrogen()->representation().IsSmi(); } |
| 2700 }; | 2696 }; |
| 2701 | 2697 |
| 2702 | 2698 |
| 2703 class LTypeof V8_FINAL : public LTemplateInstruction<1, 2, 0> { | 2699 class LTypeof V8_FINAL : public LTemplateInstruction<1, 2, 0> { |
| (...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2962 | 2958 |
| 2963 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2959 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2964 }; | 2960 }; |
| 2965 | 2961 |
| 2966 #undef DECLARE_HYDROGEN_ACCESSOR | 2962 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2967 #undef DECLARE_CONCRETE_INSTRUCTION | 2963 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2968 | 2964 |
| 2969 } } // namespace v8::internal | 2965 } } // namespace v8::internal |
| 2970 | 2966 |
| 2971 #endif // V8_A64_LITHIUM_A64_H_ | 2967 #endif // V8_A64_LITHIUM_A64_H_ |
| OLD | NEW |