| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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_CRANKSHAFT_ARM64_LITHIUM_ARM64_H_ | 5 #ifndef V8_CRANKSHAFT_ARM64_LITHIUM_ARM64_H_ |
| 6 #define V8_CRANKSHAFT_ARM64_LITHIUM_ARM64_H_ | 6 #define V8_CRANKSHAFT_ARM64_LITHIUM_ARM64_H_ |
| 7 | 7 |
| 8 #include "src/crankshaft/hydrogen.h" | 8 #include "src/crankshaft/hydrogen.h" |
| 9 #include "src/crankshaft/lithium.h" | 9 #include "src/crankshaft/lithium.h" |
| 10 #include "src/crankshaft/lithium-allocator.h" | 10 #include "src/crankshaft/lithium-allocator.h" |
| (...skipping 698 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 709 LOperand* left() { return inputs_[1]; } | 709 LOperand* left() { return inputs_[1]; } |
| 710 LOperand* right() { return inputs_[2]; } | 710 LOperand* right() { return inputs_[2]; } |
| 711 Token::Value op() const { return op_; } | 711 Token::Value op() const { return op_; } |
| 712 | 712 |
| 713 Opcode opcode() const override { return LInstruction::kArithmeticT; } | 713 Opcode opcode() const override { return LInstruction::kArithmeticT; } |
| 714 void CompileToNative(LCodeGen* generator) override; | 714 void CompileToNative(LCodeGen* generator) override; |
| 715 const char* Mnemonic() const override; | 715 const char* Mnemonic() const override; |
| 716 | 716 |
| 717 DECLARE_HYDROGEN_ACCESSOR(BinaryOperation) | 717 DECLARE_HYDROGEN_ACCESSOR(BinaryOperation) |
| 718 | 718 |
| 719 Strength strength() { return hydrogen()->strength(); } | |
| 720 | |
| 721 private: | 719 private: |
| 722 Token::Value op_; | 720 Token::Value op_; |
| 723 }; | 721 }; |
| 724 | 722 |
| 725 | 723 |
| 726 class LBoundsCheck final : public LTemplateInstruction<0, 2, 0> { | 724 class LBoundsCheck final : public LTemplateInstruction<0, 2, 0> { |
| 727 public: | 725 public: |
| 728 explicit LBoundsCheck(LOperand* index, LOperand* length) { | 726 explicit LBoundsCheck(LOperand* index, LOperand* length) { |
| 729 inputs_[0] = index; | 727 inputs_[0] = index; |
| 730 inputs_[1] = length; | 728 inputs_[1] = length; |
| (...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1132 inputs_[2] = right; | 1130 inputs_[2] = right; |
| 1133 } | 1131 } |
| 1134 | 1132 |
| 1135 LOperand* context() { return inputs_[0]; } | 1133 LOperand* context() { return inputs_[0]; } |
| 1136 LOperand* left() { return inputs_[1]; } | 1134 LOperand* left() { return inputs_[1]; } |
| 1137 LOperand* right() { return inputs_[2]; } | 1135 LOperand* right() { return inputs_[2]; } |
| 1138 | 1136 |
| 1139 DECLARE_CONCRETE_INSTRUCTION(CmpT, "cmp-t") | 1137 DECLARE_CONCRETE_INSTRUCTION(CmpT, "cmp-t") |
| 1140 DECLARE_HYDROGEN_ACCESSOR(CompareGeneric) | 1138 DECLARE_HYDROGEN_ACCESSOR(CompareGeneric) |
| 1141 | 1139 |
| 1142 Strength strength() { return hydrogen()->strength(); } | |
| 1143 | |
| 1144 Token::Value op() const { return hydrogen()->token(); } | 1140 Token::Value op() const { return hydrogen()->token(); } |
| 1145 }; | 1141 }; |
| 1146 | 1142 |
| 1147 | 1143 |
| 1148 class LCompareNumericAndBranch final : public LControlInstruction<2, 0> { | 1144 class LCompareNumericAndBranch final : public LControlInstruction<2, 0> { |
| 1149 public: | 1145 public: |
| 1150 LCompareNumericAndBranch(LOperand* left, LOperand* right) { | 1146 LCompareNumericAndBranch(LOperand* left, LOperand* right) { |
| 1151 inputs_[0] = left; | 1147 inputs_[0] = left; |
| 1152 inputs_[1] = right; | 1148 inputs_[1] = right; |
| 1153 } | 1149 } |
| (...skipping 1967 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3121 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 3117 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 3122 }; | 3118 }; |
| 3123 | 3119 |
| 3124 #undef DECLARE_HYDROGEN_ACCESSOR | 3120 #undef DECLARE_HYDROGEN_ACCESSOR |
| 3125 #undef DECLARE_CONCRETE_INSTRUCTION | 3121 #undef DECLARE_CONCRETE_INSTRUCTION |
| 3126 | 3122 |
| 3127 } // namespace internal | 3123 } // namespace internal |
| 3128 } // namespace v8 | 3124 } // namespace v8 |
| 3129 | 3125 |
| 3130 #endif // V8_CRANKSHAFT_ARM64_LITHIUM_ARM64_H_ | 3126 #endif // V8_CRANKSHAFT_ARM64_LITHIUM_ARM64_H_ |
| OLD | NEW |