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_MIPS_LITHIUM_MIPS_H_ | 5 #ifndef V8_MIPS_LITHIUM_MIPS_H_ |
6 #define V8_MIPS_LITHIUM_MIPS_H_ | 6 #define V8_MIPS_LITHIUM_MIPS_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 1136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1147 inputs_[2] = right; | 1147 inputs_[2] = right; |
1148 } | 1148 } |
1149 | 1149 |
1150 LOperand* context() { return inputs_[0]; } | 1150 LOperand* context() { return inputs_[0]; } |
1151 LOperand* left() { return inputs_[1]; } | 1151 LOperand* left() { return inputs_[1]; } |
1152 LOperand* right() { return inputs_[2]; } | 1152 LOperand* right() { return inputs_[2]; } |
1153 | 1153 |
1154 DECLARE_CONCRETE_INSTRUCTION(CmpT, "cmp-t") | 1154 DECLARE_CONCRETE_INSTRUCTION(CmpT, "cmp-t") |
1155 DECLARE_HYDROGEN_ACCESSOR(CompareGeneric) | 1155 DECLARE_HYDROGEN_ACCESSOR(CompareGeneric) |
1156 | 1156 |
1157 LanguageMode language_mode() { return hydrogen()->language_mode(); } | 1157 Strength strength() { return hydrogen()->strength(); } |
1158 | 1158 |
1159 Token::Value op() const { return hydrogen()->token(); } | 1159 Token::Value op() const { return hydrogen()->token(); } |
1160 }; | 1160 }; |
1161 | 1161 |
1162 | 1162 |
1163 class LInstanceOf final : public LTemplateInstruction<1, 3, 0> { | 1163 class LInstanceOf final : public LTemplateInstruction<1, 3, 0> { |
1164 public: | 1164 public: |
1165 LInstanceOf(LOperand* context, LOperand* left, LOperand* right) { | 1165 LInstanceOf(LOperand* context, LOperand* left, LOperand* right) { |
1166 inputs_[0] = context; | 1166 inputs_[0] = context; |
1167 inputs_[1] = left; | 1167 inputs_[1] = left; |
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1505 LOperand* left() { return inputs_[1]; } | 1505 LOperand* left() { return inputs_[1]; } |
1506 LOperand* right() { return inputs_[2]; } | 1506 LOperand* right() { return inputs_[2]; } |
1507 Token::Value op() const { return op_; } | 1507 Token::Value op() const { return op_; } |
1508 | 1508 |
1509 Opcode opcode() const final { return LInstruction::kArithmeticT; } | 1509 Opcode opcode() const final { return LInstruction::kArithmeticT; } |
1510 void CompileToNative(LCodeGen* generator) override; | 1510 void CompileToNative(LCodeGen* generator) override; |
1511 const char* Mnemonic() const override; | 1511 const char* Mnemonic() const override; |
1512 | 1512 |
1513 DECLARE_HYDROGEN_ACCESSOR(BinaryOperation) | 1513 DECLARE_HYDROGEN_ACCESSOR(BinaryOperation) |
1514 | 1514 |
1515 LanguageMode language_mode() { return hydrogen()->language_mode(); } | 1515 Strength strength() { return hydrogen()->strength(); } |
1516 | 1516 |
1517 private: | 1517 private: |
1518 Token::Value op_; | 1518 Token::Value op_; |
1519 }; | 1519 }; |
1520 | 1520 |
1521 | 1521 |
1522 class LReturn final : public LTemplateInstruction<0, 3, 0> { | 1522 class LReturn final : public LTemplateInstruction<0, 3, 0> { |
1523 public: | 1523 public: |
1524 LReturn(LOperand* value, LOperand* context, LOperand* parameter_count) { | 1524 LReturn(LOperand* value, LOperand* context, LOperand* parameter_count) { |
1525 inputs_[0] = value; | 1525 inputs_[0] = value; |
(...skipping 1309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2835 | 2835 |
2836 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2836 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2837 }; | 2837 }; |
2838 | 2838 |
2839 #undef DECLARE_HYDROGEN_ACCESSOR | 2839 #undef DECLARE_HYDROGEN_ACCESSOR |
2840 #undef DECLARE_CONCRETE_INSTRUCTION | 2840 #undef DECLARE_CONCRETE_INSTRUCTION |
2841 | 2841 |
2842 } } // namespace v8::internal | 2842 } } // namespace v8::internal |
2843 | 2843 |
2844 #endif // V8_MIPS_LITHIUM_MIPS_H_ | 2844 #endif // V8_MIPS_LITHIUM_MIPS_H_ |
OLD | NEW |