| 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_MIPS_LITHIUM_MIPS_H_ | 5 #ifndef V8_MIPS_LITHIUM_MIPS_H_ |
| 6 #define V8_MIPS_LITHIUM_MIPS_H_ | 6 #define V8_MIPS_LITHIUM_MIPS_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 1510 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1521 | 1521 |
| 1522 LOperand* context() { return inputs_[0]; } | 1522 LOperand* context() { return inputs_[0]; } |
| 1523 LOperand* left() { return inputs_[1]; } | 1523 LOperand* left() { return inputs_[1]; } |
| 1524 LOperand* right() { return inputs_[2]; } | 1524 LOperand* right() { return inputs_[2]; } |
| 1525 Token::Value op() const { return op_; } | 1525 Token::Value op() const { return op_; } |
| 1526 | 1526 |
| 1527 Opcode opcode() const final { return LInstruction::kArithmeticT; } | 1527 Opcode opcode() const final { return LInstruction::kArithmeticT; } |
| 1528 void CompileToNative(LCodeGen* generator) override; | 1528 void CompileToNative(LCodeGen* generator) override; |
| 1529 const char* Mnemonic() const override; | 1529 const char* Mnemonic() const override; |
| 1530 | 1530 |
| 1531 DECLARE_HYDROGEN_ACCESSOR(BinaryOperation) |
| 1532 |
| 1533 LanguageMode language_mode() { return hydrogen()->language_mode(); } |
| 1534 |
| 1531 private: | 1535 private: |
| 1532 Token::Value op_; | 1536 Token::Value op_; |
| 1533 }; | 1537 }; |
| 1534 | 1538 |
| 1535 | 1539 |
| 1536 class LReturn final : public LTemplateInstruction<0, 3, 0> { | 1540 class LReturn final : public LTemplateInstruction<0, 3, 0> { |
| 1537 public: | 1541 public: |
| 1538 LReturn(LOperand* value, LOperand* context, LOperand* parameter_count) { | 1542 LReturn(LOperand* value, LOperand* context, LOperand* parameter_count) { |
| 1539 inputs_[0] = value; | 1543 inputs_[0] = value; |
| 1540 inputs_[1] = context; | 1544 inputs_[1] = context; |
| (...skipping 1286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2827 | 2831 |
| 2828 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2832 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2829 }; | 2833 }; |
| 2830 | 2834 |
| 2831 #undef DECLARE_HYDROGEN_ACCESSOR | 2835 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2832 #undef DECLARE_CONCRETE_INSTRUCTION | 2836 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2833 | 2837 |
| 2834 } } // namespace v8::internal | 2838 } } // namespace v8::internal |
| 2835 | 2839 |
| 2836 #endif // V8_MIPS_LITHIUM_MIPS_H_ | 2840 #endif // V8_MIPS_LITHIUM_MIPS_H_ |
| OLD | NEW |