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 1158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1169 inputs_[2] = right; | 1169 inputs_[2] = right; |
1170 } | 1170 } |
1171 | 1171 |
1172 LOperand* context() { return inputs_[0]; } | 1172 LOperand* context() { return inputs_[0]; } |
1173 LOperand* left() { return inputs_[1]; } | 1173 LOperand* left() { return inputs_[1]; } |
1174 LOperand* right() { return inputs_[2]; } | 1174 LOperand* right() { return inputs_[2]; } |
1175 | 1175 |
1176 DECLARE_CONCRETE_INSTRUCTION(CmpT, "cmp-t") | 1176 DECLARE_CONCRETE_INSTRUCTION(CmpT, "cmp-t") |
1177 DECLARE_HYDROGEN_ACCESSOR(CompareGeneric) | 1177 DECLARE_HYDROGEN_ACCESSOR(CompareGeneric) |
1178 | 1178 |
1179 LanguageMode language_mode() { return hydrogen()->language_mode(); } | 1179 Strength strength() { return hydrogen()->strength(); } |
1180 | 1180 |
1181 Token::Value op() const { return hydrogen()->token(); } | 1181 Token::Value op() const { return hydrogen()->token(); } |
1182 }; | 1182 }; |
1183 | 1183 |
1184 | 1184 |
1185 class LInstanceOf final : public LTemplateInstruction<1, 3, 0> { | 1185 class LInstanceOf final : public LTemplateInstruction<1, 3, 0> { |
1186 public: | 1186 public: |
1187 LInstanceOf(LOperand* context, LOperand* left, LOperand* right) { | 1187 LInstanceOf(LOperand* context, LOperand* left, LOperand* right) { |
1188 inputs_[0] = context; | 1188 inputs_[0] = context; |
1189 inputs_[1] = left; | 1189 inputs_[1] = left; |
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1542 LOperand* left() { return inputs_[1]; } | 1542 LOperand* left() { return inputs_[1]; } |
1543 LOperand* right() { return inputs_[2]; } | 1543 LOperand* right() { return inputs_[2]; } |
1544 Token::Value op() const { return op_; } | 1544 Token::Value op() const { return op_; } |
1545 | 1545 |
1546 Opcode opcode() const override { return LInstruction::kArithmeticT; } | 1546 Opcode opcode() const override { return LInstruction::kArithmeticT; } |
1547 void CompileToNative(LCodeGen* generator) override; | 1547 void CompileToNative(LCodeGen* generator) override; |
1548 const char* Mnemonic() const override; | 1548 const char* Mnemonic() const override; |
1549 | 1549 |
1550 DECLARE_HYDROGEN_ACCESSOR(BinaryOperation) | 1550 DECLARE_HYDROGEN_ACCESSOR(BinaryOperation) |
1551 | 1551 |
1552 LanguageMode language_mode() { return hydrogen()->language_mode(); } | 1552 Strength strength() { return hydrogen()->strength(); } |
1553 | 1553 |
1554 private: | 1554 private: |
1555 Token::Value op_; | 1555 Token::Value op_; |
1556 }; | 1556 }; |
1557 | 1557 |
1558 | 1558 |
1559 class LReturn final : public LTemplateInstruction<0, 3, 0> { | 1559 class LReturn final : public LTemplateInstruction<0, 3, 0> { |
1560 public: | 1560 public: |
1561 LReturn(LOperand* value, LOperand* context, LOperand* parameter_count) { | 1561 LReturn(LOperand* value, LOperand* context, LOperand* parameter_count) { |
1562 inputs_[0] = value; | 1562 inputs_[0] = value; |
(...skipping 1314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2877 | 2877 |
2878 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2878 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2879 }; | 2879 }; |
2880 | 2880 |
2881 #undef DECLARE_HYDROGEN_ACCESSOR | 2881 #undef DECLARE_HYDROGEN_ACCESSOR |
2882 #undef DECLARE_CONCRETE_INSTRUCTION | 2882 #undef DECLARE_CONCRETE_INSTRUCTION |
2883 | 2883 |
2884 } } // namespace v8::internal | 2884 } } // namespace v8::internal |
2885 | 2885 |
2886 #endif // V8_ARM_LITHIUM_ARM_H_ | 2886 #endif // V8_ARM_LITHIUM_ARM_H_ |
OLD | NEW |