| 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_IA32_LITHIUM_IA32_H_ | 5 #ifndef V8_IA32_LITHIUM_IA32_H_ |
| 6 #define V8_IA32_LITHIUM_IA32_H_ | 6 #define V8_IA32_LITHIUM_IA32_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 1533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1544 LOperand* right) | 1544 LOperand* right) |
| 1545 : op_(op) { | 1545 : op_(op) { |
| 1546 inputs_[0] = context; | 1546 inputs_[0] = context; |
| 1547 inputs_[1] = left; | 1547 inputs_[1] = left; |
| 1548 inputs_[2] = right; | 1548 inputs_[2] = right; |
| 1549 } | 1549 } |
| 1550 | 1550 |
| 1551 LOperand* context() { return inputs_[0]; } | 1551 LOperand* context() { return inputs_[0]; } |
| 1552 LOperand* left() { return inputs_[1]; } | 1552 LOperand* left() { return inputs_[1]; } |
| 1553 LOperand* right() { return inputs_[2]; } | 1553 LOperand* right() { return inputs_[2]; } |
| 1554 Token::Value op() const { return op_; } |
| 1554 | 1555 |
| 1555 Opcode opcode() const override { return LInstruction::kArithmeticT; } | 1556 Opcode opcode() const override { return LInstruction::kArithmeticT; } |
| 1556 void CompileToNative(LCodeGen* generator) override; | 1557 void CompileToNative(LCodeGen* generator) override; |
| 1557 const char* Mnemonic() const override; | 1558 const char* Mnemonic() const override; |
| 1558 | 1559 |
| 1559 Token::Value op() const { return op_; } | 1560 DECLARE_HYDROGEN_ACCESSOR(BinaryOperation) |
| 1561 |
| 1562 LanguageMode language_mode() { return hydrogen()->language_mode(); } |
| 1560 | 1563 |
| 1561 private: | 1564 private: |
| 1562 Token::Value op_; | 1565 Token::Value op_; |
| 1563 }; | 1566 }; |
| 1564 | 1567 |
| 1565 | 1568 |
| 1566 class LReturn final : public LTemplateInstruction<0, 3, 0> { | 1569 class LReturn final : public LTemplateInstruction<0, 3, 0> { |
| 1567 public: | 1570 public: |
| 1568 explicit LReturn(LOperand* value, | 1571 explicit LReturn(LOperand* value, |
| 1569 LOperand* context, | 1572 LOperand* context, |
| (...skipping 1298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2868 | 2871 |
| 2869 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2872 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2870 }; | 2873 }; |
| 2871 | 2874 |
| 2872 #undef DECLARE_HYDROGEN_ACCESSOR | 2875 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2873 #undef DECLARE_CONCRETE_INSTRUCTION | 2876 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2874 | 2877 |
| 2875 } } // namespace v8::internal | 2878 } } // namespace v8::internal |
| 2876 | 2879 |
| 2877 #endif // V8_IA32_LITHIUM_IA32_H_ | 2880 #endif // V8_IA32_LITHIUM_IA32_H_ |
| OLD | NEW |