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 1508 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1519 | 1519 |
1520 LOperand* context() { return inputs_[0]; } | 1520 LOperand* context() { return inputs_[0]; } |
1521 LOperand* left() { return inputs_[1]; } | 1521 LOperand* left() { return inputs_[1]; } |
1522 LOperand* right() { return inputs_[2]; } | 1522 LOperand* right() { return inputs_[2]; } |
1523 Token::Value op() const { return op_; } | 1523 Token::Value op() const { return op_; } |
1524 | 1524 |
1525 Opcode opcode() const final { return LInstruction::kArithmeticT; } | 1525 Opcode opcode() const final { return LInstruction::kArithmeticT; } |
1526 void CompileToNative(LCodeGen* generator) override; | 1526 void CompileToNative(LCodeGen* generator) override; |
1527 const char* Mnemonic() const override; | 1527 const char* Mnemonic() const override; |
1528 | 1528 |
| 1529 DECLARE_HYDROGEN_ACCESSOR(BinaryOperation) |
| 1530 |
| 1531 LanguageMode language_mode() { return hydrogen()->language_mode(); } |
| 1532 |
1529 private: | 1533 private: |
1530 Token::Value op_; | 1534 Token::Value op_; |
1531 }; | 1535 }; |
1532 | 1536 |
1533 | 1537 |
1534 class LReturn final : public LTemplateInstruction<0, 3, 0> { | 1538 class LReturn final : public LTemplateInstruction<0, 3, 0> { |
1535 public: | 1539 public: |
1536 LReturn(LOperand* value, LOperand* context, LOperand* parameter_count) { | 1540 LReturn(LOperand* value, LOperand* context, LOperand* parameter_count) { |
1537 inputs_[0] = value; | 1541 inputs_[0] = value; |
1538 inputs_[1] = context; | 1542 inputs_[1] = context; |
(...skipping 1270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2809 | 2813 |
2810 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2814 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2811 }; | 2815 }; |
2812 | 2816 |
2813 #undef DECLARE_HYDROGEN_ACCESSOR | 2817 #undef DECLARE_HYDROGEN_ACCESSOR |
2814 #undef DECLARE_CONCRETE_INSTRUCTION | 2818 #undef DECLARE_CONCRETE_INSTRUCTION |
2815 | 2819 |
2816 } } // namespace v8::internal | 2820 } } // namespace v8::internal |
2817 | 2821 |
2818 #endif // V8_MIPS_LITHIUM_MIPS_H_ | 2822 #endif // V8_MIPS_LITHIUM_MIPS_H_ |
OLD | NEW |