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 1164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1175 public: | 1175 public: |
1176 LCmpT(LOperand* context, LOperand* left, LOperand* right) { | 1176 LCmpT(LOperand* context, LOperand* left, LOperand* right) { |
1177 inputs_[0] = context; | 1177 inputs_[0] = context; |
1178 inputs_[1] = left; | 1178 inputs_[1] = left; |
1179 inputs_[2] = right; | 1179 inputs_[2] = right; |
1180 } | 1180 } |
1181 | 1181 |
1182 DECLARE_CONCRETE_INSTRUCTION(CmpT, "cmp-t") | 1182 DECLARE_CONCRETE_INSTRUCTION(CmpT, "cmp-t") |
1183 DECLARE_HYDROGEN_ACCESSOR(CompareGeneric) | 1183 DECLARE_HYDROGEN_ACCESSOR(CompareGeneric) |
1184 | 1184 |
1185 LanguageMode language_mode() { return hydrogen()->language_mode(); } | 1185 Strength strength() { return hydrogen()->strength(); } |
1186 | 1186 |
1187 LOperand* context() { return inputs_[0]; } | 1187 LOperand* context() { return inputs_[0]; } |
1188 Token::Value op() const { return hydrogen()->token(); } | 1188 Token::Value op() const { return hydrogen()->token(); } |
1189 }; | 1189 }; |
1190 | 1190 |
1191 | 1191 |
1192 class LInstanceOf final : public LTemplateInstruction<1, 3, 0> { | 1192 class LInstanceOf final : public LTemplateInstruction<1, 3, 0> { |
1193 public: | 1193 public: |
1194 LInstanceOf(LOperand* context, LOperand* left, LOperand* right) { | 1194 LInstanceOf(LOperand* context, LOperand* left, LOperand* right) { |
1195 inputs_[0] = context; | 1195 inputs_[0] = context; |
(...skipping 346 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 explicit LReturn(LOperand* value, | 1561 explicit LReturn(LOperand* value, |
1562 LOperand* context, | 1562 LOperand* context, |
(...skipping 1324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2887 | 2887 |
2888 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2888 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2889 }; | 2889 }; |
2890 | 2890 |
2891 #undef DECLARE_HYDROGEN_ACCESSOR | 2891 #undef DECLARE_HYDROGEN_ACCESSOR |
2892 #undef DECLARE_CONCRETE_INSTRUCTION | 2892 #undef DECLARE_CONCRETE_INSTRUCTION |
2893 | 2893 |
2894 } } // namespace v8::internal | 2894 } } // namespace v8::internal |
2895 | 2895 |
2896 #endif // V8_X87_LITHIUM_X87_H_ | 2896 #endif // V8_X87_LITHIUM_X87_H_ |
OLD | NEW |