| 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_X64_LITHIUM_X64_H_ | 5 #ifndef V8_X64_LITHIUM_X64_H_ |
| 6 #define V8_X64_LITHIUM_X64_H_ | 6 #define V8_X64_LITHIUM_X64_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 1518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1529 | 1529 |
| 1530 Token::Value op() const { return op_; } | 1530 Token::Value op() const { return op_; } |
| 1531 LOperand* context() { return inputs_[0]; } | 1531 LOperand* context() { return inputs_[0]; } |
| 1532 LOperand* left() { return inputs_[1]; } | 1532 LOperand* left() { return inputs_[1]; } |
| 1533 LOperand* right() { return inputs_[2]; } | 1533 LOperand* right() { return inputs_[2]; } |
| 1534 | 1534 |
| 1535 Opcode opcode() const override { return LInstruction::kArithmeticT; } | 1535 Opcode opcode() const override { return LInstruction::kArithmeticT; } |
| 1536 void CompileToNative(LCodeGen* generator) override; | 1536 void CompileToNative(LCodeGen* generator) override; |
| 1537 const char* Mnemonic() const override; | 1537 const char* Mnemonic() const override; |
| 1538 | 1538 |
| 1539 DECLARE_HYDROGEN_ACCESSOR(BinaryOperation) |
| 1540 |
| 1541 LanguageMode language_mode() { return hydrogen()->language_mode(); } |
| 1542 |
| 1539 private: | 1543 private: |
| 1540 Token::Value op_; | 1544 Token::Value op_; |
| 1541 }; | 1545 }; |
| 1542 | 1546 |
| 1543 | 1547 |
| 1544 class LReturn final : public LTemplateInstruction<0, 3, 0> { | 1548 class LReturn final : public LTemplateInstruction<0, 3, 0> { |
| 1545 public: | 1549 public: |
| 1546 explicit LReturn(LOperand* value, | 1550 explicit LReturn(LOperand* value, |
| 1547 LOperand* context, | 1551 LOperand* context, |
| 1548 LOperand* parameter_count) { | 1552 LOperand* parameter_count) { |
| (...skipping 1302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2851 | 2855 |
| 2852 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2856 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2853 }; | 2857 }; |
| 2854 | 2858 |
| 2855 #undef DECLARE_HYDROGEN_ACCESSOR | 2859 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2856 #undef DECLARE_CONCRETE_INSTRUCTION | 2860 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2857 | 2861 |
| 2858 } } // namespace v8::int | 2862 } } // namespace v8::int |
| 2859 | 2863 |
| 2860 #endif // V8_X64_LITHIUM_X64_H_ | 2864 #endif // V8_X64_LITHIUM_X64_H_ |
| OLD | NEW |