| 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 1135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1146 inputs_[2] = right; | 1146 inputs_[2] = right; |
| 1147 } | 1147 } |
| 1148 | 1148 |
| 1149 LOperand* context() { return inputs_[0]; } | 1149 LOperand* context() { return inputs_[0]; } |
| 1150 LOperand* left() { return inputs_[1]; } | 1150 LOperand* left() { return inputs_[1]; } |
| 1151 LOperand* right() { return inputs_[2]; } | 1151 LOperand* right() { return inputs_[2]; } |
| 1152 | 1152 |
| 1153 DECLARE_CONCRETE_INSTRUCTION(CmpT, "cmp-t") | 1153 DECLARE_CONCRETE_INSTRUCTION(CmpT, "cmp-t") |
| 1154 DECLARE_HYDROGEN_ACCESSOR(CompareGeneric) | 1154 DECLARE_HYDROGEN_ACCESSOR(CompareGeneric) |
| 1155 | 1155 |
| 1156 LanguageMode language_mode() { return hydrogen()->language_mode(); } | 1156 Strength strength() { return hydrogen()->strength(); } |
| 1157 | 1157 |
| 1158 Token::Value op() const { return hydrogen()->token(); } | 1158 Token::Value op() const { return hydrogen()->token(); } |
| 1159 }; | 1159 }; |
| 1160 | 1160 |
| 1161 | 1161 |
| 1162 class LInstanceOf final : public LTemplateInstruction<1, 3, 0> { | 1162 class LInstanceOf final : public LTemplateInstruction<1, 3, 0> { |
| 1163 public: | 1163 public: |
| 1164 LInstanceOf(LOperand* context, LOperand* left, LOperand* right) { | 1164 LInstanceOf(LOperand* context, LOperand* left, LOperand* right) { |
| 1165 inputs_[0] = context; | 1165 inputs_[0] = context; |
| 1166 inputs_[1] = left; | 1166 inputs_[1] = left; |
| (...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1503 LOperand* left() { return inputs_[1]; } | 1503 LOperand* left() { return inputs_[1]; } |
| 1504 LOperand* right() { return inputs_[2]; } | 1504 LOperand* right() { return inputs_[2]; } |
| 1505 Token::Value op() const { return op_; } | 1505 Token::Value op() const { return op_; } |
| 1506 | 1506 |
| 1507 Opcode opcode() const final { return LInstruction::kArithmeticT; } | 1507 Opcode opcode() const final { return LInstruction::kArithmeticT; } |
| 1508 void CompileToNative(LCodeGen* generator) override; | 1508 void CompileToNative(LCodeGen* generator) override; |
| 1509 const char* Mnemonic() const override; | 1509 const char* Mnemonic() const override; |
| 1510 | 1510 |
| 1511 DECLARE_HYDROGEN_ACCESSOR(BinaryOperation) | 1511 DECLARE_HYDROGEN_ACCESSOR(BinaryOperation) |
| 1512 | 1512 |
| 1513 LanguageMode language_mode() { return hydrogen()->language_mode(); } | 1513 Strength strength() { return hydrogen()->strength(); } |
| 1514 | 1514 |
| 1515 private: | 1515 private: |
| 1516 Token::Value op_; | 1516 Token::Value op_; |
| 1517 }; | 1517 }; |
| 1518 | 1518 |
| 1519 | 1519 |
| 1520 class LReturn final : public LTemplateInstruction<0, 3, 0> { | 1520 class LReturn final : public LTemplateInstruction<0, 3, 0> { |
| 1521 public: | 1521 public: |
| 1522 LReturn(LOperand* value, LOperand* context, LOperand* parameter_count) { | 1522 LReturn(LOperand* value, LOperand* context, LOperand* parameter_count) { |
| 1523 inputs_[0] = value; | 1523 inputs_[0] = value; |
| (...skipping 1293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2817 | 2817 |
| 2818 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2818 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2819 }; | 2819 }; |
| 2820 | 2820 |
| 2821 #undef DECLARE_HYDROGEN_ACCESSOR | 2821 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2822 #undef DECLARE_CONCRETE_INSTRUCTION | 2822 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2823 | 2823 |
| 2824 } } // namespace v8::internal | 2824 } } // namespace v8::internal |
| 2825 | 2825 |
| 2826 #endif // V8_MIPS_LITHIUM_MIPS_H_ | 2826 #endif // V8_MIPS_LITHIUM_MIPS_H_ |
| OLD | NEW |