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_X87_LITHIUM_X87_H_ | 5 #ifndef V8_X87_LITHIUM_X87_H_ |
6 #define V8_X87_LITHIUM_X87_H_ | 6 #define V8_X87_LITHIUM_X87_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 1541 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1552 LOperand* right) | 1552 LOperand* right) |
1553 : op_(op) { | 1553 : op_(op) { |
1554 inputs_[0] = context; | 1554 inputs_[0] = context; |
1555 inputs_[1] = left; | 1555 inputs_[1] = left; |
1556 inputs_[2] = right; | 1556 inputs_[2] = right; |
1557 } | 1557 } |
1558 | 1558 |
1559 LOperand* context() { return inputs_[0]; } | 1559 LOperand* context() { return inputs_[0]; } |
1560 LOperand* left() { return inputs_[1]; } | 1560 LOperand* left() { return inputs_[1]; } |
1561 LOperand* right() { return inputs_[2]; } | 1561 LOperand* right() { return inputs_[2]; } |
| 1562 Token::Value op() const { return op_; } |
1562 | 1563 |
1563 Opcode opcode() const override { return LInstruction::kArithmeticT; } | 1564 Opcode opcode() const override { return LInstruction::kArithmeticT; } |
1564 void CompileToNative(LCodeGen* generator) override; | 1565 void CompileToNative(LCodeGen* generator) override; |
1565 const char* Mnemonic() const override; | 1566 const char* Mnemonic() const override; |
1566 | 1567 |
1567 Token::Value op() const { return op_; } | 1568 DECLARE_HYDROGEN_ACCESSOR(BinaryOperation) |
| 1569 |
| 1570 LanguageMode language_mode() { return hydrogen()->language_mode(); } |
1568 | 1571 |
1569 private: | 1572 private: |
1570 Token::Value op_; | 1573 Token::Value op_; |
1571 }; | 1574 }; |
1572 | 1575 |
1573 | 1576 |
1574 class LReturn final : public LTemplateInstruction<0, 3, 0> { | 1577 class LReturn final : public LTemplateInstruction<0, 3, 0> { |
1575 public: | 1578 public: |
1576 explicit LReturn(LOperand* value, | 1579 explicit LReturn(LOperand* value, |
1577 LOperand* context, | 1580 LOperand* context, |
(...skipping 1302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2880 | 2883 |
2881 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2884 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2882 }; | 2885 }; |
2883 | 2886 |
2884 #undef DECLARE_HYDROGEN_ACCESSOR | 2887 #undef DECLARE_HYDROGEN_ACCESSOR |
2885 #undef DECLARE_CONCRETE_INSTRUCTION | 2888 #undef DECLARE_CONCRETE_INSTRUCTION |
2886 | 2889 |
2887 } } // namespace v8::internal | 2890 } } // namespace v8::internal |
2888 | 2891 |
2889 #endif // V8_X87_LITHIUM_X87_H_ | 2892 #endif // V8_X87_LITHIUM_X87_H_ |
OLD | NEW |