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_ARM_LITHIUM_ARM_H_ | 5 #ifndef V8_ARM_LITHIUM_ARM_H_ |
6 #define V8_ARM_LITHIUM_ARM_H_ | 6 #define V8_ARM_LITHIUM_ARM_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 1547 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Token::Value op() const { return op_; } |
1563 | 1563 |
1564 Opcode opcode() const override { return LInstruction::kArithmeticT; } | 1564 Opcode opcode() const override { return LInstruction::kArithmeticT; } |
1565 void CompileToNative(LCodeGen* generator) override; | 1565 void CompileToNative(LCodeGen* generator) override; |
1566 const char* Mnemonic() const override; | 1566 const char* Mnemonic() const override; |
1567 | 1567 |
| 1568 DECLARE_HYDROGEN_ACCESSOR(BinaryOperation) |
| 1569 |
| 1570 LanguageMode language_mode() { return hydrogen()->language_mode(); } |
| 1571 |
1568 private: | 1572 private: |
1569 Token::Value op_; | 1573 Token::Value op_; |
1570 }; | 1574 }; |
1571 | 1575 |
1572 | 1576 |
1573 class LReturn final : public LTemplateInstruction<0, 3, 0> { | 1577 class LReturn final : public LTemplateInstruction<0, 3, 0> { |
1574 public: | 1578 public: |
1575 LReturn(LOperand* value, LOperand* context, LOperand* parameter_count) { | 1579 LReturn(LOperand* value, LOperand* context, LOperand* parameter_count) { |
1576 inputs_[0] = value; | 1580 inputs_[0] = value; |
1577 inputs_[1] = context; | 1581 inputs_[1] = context; |
(...skipping 1291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2869 | 2873 |
2870 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2874 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2871 }; | 2875 }; |
2872 | 2876 |
2873 #undef DECLARE_HYDROGEN_ACCESSOR | 2877 #undef DECLARE_HYDROGEN_ACCESSOR |
2874 #undef DECLARE_CONCRETE_INSTRUCTION | 2878 #undef DECLARE_CONCRETE_INSTRUCTION |
2875 | 2879 |
2876 } } // namespace v8::internal | 2880 } } // namespace v8::internal |
2877 | 2881 |
2878 #endif // V8_ARM_LITHIUM_ARM_H_ | 2882 #endif // V8_ARM_LITHIUM_ARM_H_ |
OLD | NEW |