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_CRANKSHAFT_MIPS64_LITHIUM_MIPS_H_ | 5 #ifndef V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_H_ |
6 #define V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_H_ | 6 #define V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_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 1118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1129 inputs_[2] = right; | 1129 inputs_[2] = right; |
1130 } | 1130 } |
1131 | 1131 |
1132 LOperand* context() { return inputs_[0]; } | 1132 LOperand* context() { return inputs_[0]; } |
1133 LOperand* left() { return inputs_[1]; } | 1133 LOperand* left() { return inputs_[1]; } |
1134 LOperand* right() { return inputs_[2]; } | 1134 LOperand* right() { return inputs_[2]; } |
1135 | 1135 |
1136 DECLARE_CONCRETE_INSTRUCTION(CmpT, "cmp-t") | 1136 DECLARE_CONCRETE_INSTRUCTION(CmpT, "cmp-t") |
1137 DECLARE_HYDROGEN_ACCESSOR(CompareGeneric) | 1137 DECLARE_HYDROGEN_ACCESSOR(CompareGeneric) |
1138 | 1138 |
1139 Strength strength() { return hydrogen()->strength(); } | |
1140 | |
1141 Token::Value op() const { return hydrogen()->token(); } | 1139 Token::Value op() const { return hydrogen()->token(); } |
1142 }; | 1140 }; |
1143 | 1141 |
1144 | 1142 |
1145 class LInstanceOf final : public LTemplateInstruction<1, 3, 0> { | 1143 class LInstanceOf final : public LTemplateInstruction<1, 3, 0> { |
1146 public: | 1144 public: |
1147 LInstanceOf(LOperand* context, LOperand* left, LOperand* right) { | 1145 LInstanceOf(LOperand* context, LOperand* left, LOperand* right) { |
1148 inputs_[0] = context; | 1146 inputs_[0] = context; |
1149 inputs_[1] = left; | 1147 inputs_[1] = left; |
1150 inputs_[2] = right; | 1148 inputs_[2] = right; |
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1486 LOperand* left() { return inputs_[1]; } | 1484 LOperand* left() { return inputs_[1]; } |
1487 LOperand* right() { return inputs_[2]; } | 1485 LOperand* right() { return inputs_[2]; } |
1488 Token::Value op() const { return op_; } | 1486 Token::Value op() const { return op_; } |
1489 | 1487 |
1490 Opcode opcode() const final { return LInstruction::kArithmeticT; } | 1488 Opcode opcode() const final { return LInstruction::kArithmeticT; } |
1491 void CompileToNative(LCodeGen* generator) override; | 1489 void CompileToNative(LCodeGen* generator) override; |
1492 const char* Mnemonic() const override; | 1490 const char* Mnemonic() const override; |
1493 | 1491 |
1494 DECLARE_HYDROGEN_ACCESSOR(BinaryOperation) | 1492 DECLARE_HYDROGEN_ACCESSOR(BinaryOperation) |
1495 | 1493 |
1496 Strength strength() { return hydrogen()->strength(); } | |
1497 | |
1498 private: | 1494 private: |
1499 Token::Value op_; | 1495 Token::Value op_; |
1500 }; | 1496 }; |
1501 | 1497 |
1502 | 1498 |
1503 class LReturn final : public LTemplateInstruction<0, 3, 0> { | 1499 class LReturn final : public LTemplateInstruction<0, 3, 0> { |
1504 public: | 1500 public: |
1505 LReturn(LOperand* value, LOperand* context, LOperand* parameter_count) { | 1501 LReturn(LOperand* value, LOperand* context, LOperand* parameter_count) { |
1506 inputs_[0] = value; | 1502 inputs_[0] = value; |
1507 inputs_[1] = context; | 1503 inputs_[1] = context; |
(...skipping 1245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2753 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2749 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2754 }; | 2750 }; |
2755 | 2751 |
2756 #undef DECLARE_HYDROGEN_ACCESSOR | 2752 #undef DECLARE_HYDROGEN_ACCESSOR |
2757 #undef DECLARE_CONCRETE_INSTRUCTION | 2753 #undef DECLARE_CONCRETE_INSTRUCTION |
2758 | 2754 |
2759 } // namespace internal | 2755 } // namespace internal |
2760 } // namespace v8 | 2756 } // namespace v8 |
2761 | 2757 |
2762 #endif // V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_H_ | 2758 #endif // V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_H_ |
OLD | NEW |