OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_PPC_LITHIUM_PPC_H_ | 5 #ifndef V8_PPC_LITHIUM_PPC_H_ |
6 #define V8_PPC_LITHIUM_PPC_H_ | 6 #define V8_PPC_LITHIUM_PPC_H_ |
7 | 7 |
8 #include "src/hydrogen.h" | 8 #include "src/hydrogen.h" |
9 #include "src/lithium.h" | 9 #include "src/lithium.h" |
10 #include "src/lithium-allocator.h" | 10 #include "src/lithium-allocator.h" |
(...skipping 1113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1124 inputs_[2] = right; | 1124 inputs_[2] = right; |
1125 } | 1125 } |
1126 | 1126 |
1127 LOperand* context() { return inputs_[0]; } | 1127 LOperand* context() { return inputs_[0]; } |
1128 LOperand* left() { return inputs_[1]; } | 1128 LOperand* left() { return inputs_[1]; } |
1129 LOperand* right() { return inputs_[2]; } | 1129 LOperand* right() { return inputs_[2]; } |
1130 | 1130 |
1131 DECLARE_CONCRETE_INSTRUCTION(CmpT, "cmp-t") | 1131 DECLARE_CONCRETE_INSTRUCTION(CmpT, "cmp-t") |
1132 DECLARE_HYDROGEN_ACCESSOR(CompareGeneric) | 1132 DECLARE_HYDROGEN_ACCESSOR(CompareGeneric) |
1133 | 1133 |
1134 LanguageMode language_mode() { return hydrogen()->language_mode(); } | 1134 Strength strength() { return hydrogen()->strength(); } |
1135 | 1135 |
1136 Token::Value op() const { return hydrogen()->token(); } | 1136 Token::Value op() const { return hydrogen()->token(); } |
1137 }; | 1137 }; |
1138 | 1138 |
1139 | 1139 |
1140 class LInstanceOf final : public LTemplateInstruction<1, 3, 0> { | 1140 class LInstanceOf final : public LTemplateInstruction<1, 3, 0> { |
1141 public: | 1141 public: |
1142 LInstanceOf(LOperand* context, LOperand* left, LOperand* right) { | 1142 LInstanceOf(LOperand* context, LOperand* left, LOperand* right) { |
1143 inputs_[0] = context; | 1143 inputs_[0] = context; |
1144 inputs_[1] = left; | 1144 inputs_[1] = left; |
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1488 LOperand* left() { return inputs_[1]; } | 1488 LOperand* left() { return inputs_[1]; } |
1489 LOperand* right() { return inputs_[2]; } | 1489 LOperand* right() { return inputs_[2]; } |
1490 Token::Value op() const { return op_; } | 1490 Token::Value op() const { return op_; } |
1491 | 1491 |
1492 Opcode opcode() const override { return LInstruction::kArithmeticT; } | 1492 Opcode opcode() const override { return LInstruction::kArithmeticT; } |
1493 void CompileToNative(LCodeGen* generator) override; | 1493 void CompileToNative(LCodeGen* generator) override; |
1494 const char* Mnemonic() const override; | 1494 const char* Mnemonic() const override; |
1495 | 1495 |
1496 DECLARE_HYDROGEN_ACCESSOR(BinaryOperation) | 1496 DECLARE_HYDROGEN_ACCESSOR(BinaryOperation) |
1497 | 1497 |
1498 LanguageMode language_mode() { return hydrogen()->language_mode(); } | 1498 Strength strength() { return hydrogen()->strength(); } |
1499 | 1499 |
1500 private: | 1500 private: |
1501 Token::Value op_; | 1501 Token::Value op_; |
1502 }; | 1502 }; |
1503 | 1503 |
1504 | 1504 |
1505 class LReturn final : public LTemplateInstruction<0, 3, 0> { | 1505 class LReturn final : public LTemplateInstruction<0, 3, 0> { |
1506 public: | 1506 public: |
1507 LReturn(LOperand* value, LOperand* context, LOperand* parameter_count) { | 1507 LReturn(LOperand* value, LOperand* context, LOperand* parameter_count) { |
1508 inputs_[0] = value; | 1508 inputs_[0] = value; |
(...skipping 1238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2747 | 2747 |
2748 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2748 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2749 }; | 2749 }; |
2750 | 2750 |
2751 #undef DECLARE_HYDROGEN_ACCESSOR | 2751 #undef DECLARE_HYDROGEN_ACCESSOR |
2752 #undef DECLARE_CONCRETE_INSTRUCTION | 2752 #undef DECLARE_CONCRETE_INSTRUCTION |
2753 } | 2753 } |
2754 } // namespace v8::internal | 2754 } // namespace v8::internal |
2755 | 2755 |
2756 #endif // V8_PPC_LITHIUM_PPC_H_ | 2756 #endif // V8_PPC_LITHIUM_PPC_H_ |
OLD | NEW |