| 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 1493 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1504 | 1504 |
| 1505 LOperand* context() { return inputs_[0]; } | 1505 LOperand* context() { return inputs_[0]; } |
| 1506 LOperand* left() { return inputs_[1]; } | 1506 LOperand* left() { return inputs_[1]; } |
| 1507 LOperand* right() { return inputs_[2]; } | 1507 LOperand* right() { return inputs_[2]; } |
| 1508 Token::Value op() const { return op_; } | 1508 Token::Value op() const { return op_; } |
| 1509 | 1509 |
| 1510 Opcode opcode() const override { return LInstruction::kArithmeticT; } | 1510 Opcode opcode() const override { return LInstruction::kArithmeticT; } |
| 1511 void CompileToNative(LCodeGen* generator) override; | 1511 void CompileToNative(LCodeGen* generator) override; |
| 1512 const char* Mnemonic() const override; | 1512 const char* Mnemonic() const override; |
| 1513 | 1513 |
| 1514 DECLARE_HYDROGEN_ACCESSOR(BinaryOperation) |
| 1515 |
| 1516 LanguageMode language_mode() { return hydrogen()->language_mode(); } |
| 1517 |
| 1514 private: | 1518 private: |
| 1515 Token::Value op_; | 1519 Token::Value op_; |
| 1516 }; | 1520 }; |
| 1517 | 1521 |
| 1518 | 1522 |
| 1519 class LReturn final : public LTemplateInstruction<0, 3, 0> { | 1523 class LReturn final : public LTemplateInstruction<0, 3, 0> { |
| 1520 public: | 1524 public: |
| 1521 LReturn(LOperand* value, LOperand* context, LOperand* parameter_count) { | 1525 LReturn(LOperand* value, LOperand* context, LOperand* parameter_count) { |
| 1522 inputs_[0] = value; | 1526 inputs_[0] = value; |
| 1523 inputs_[1] = context; | 1527 inputs_[1] = context; |
| (...skipping 1215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2739 | 2743 |
| 2740 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2744 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2741 }; | 2745 }; |
| 2742 | 2746 |
| 2743 #undef DECLARE_HYDROGEN_ACCESSOR | 2747 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2744 #undef DECLARE_CONCRETE_INSTRUCTION | 2748 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2745 } | 2749 } |
| 2746 } // namespace v8::internal | 2750 } // namespace v8::internal |
| 2747 | 2751 |
| 2748 #endif // V8_PPC_LITHIUM_PPC_H_ | 2752 #endif // V8_PPC_LITHIUM_PPC_H_ |
| OLD | NEW |