| 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_X64_LITHIUM_X64_H_ | 5 #ifndef V8_X64_LITHIUM_X64_H_ |
| 6 #define V8_X64_LITHIUM_X64_H_ | 6 #define V8_X64_LITHIUM_X64_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 1134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1145 inputs_[2] = right; | 1145 inputs_[2] = right; |
| 1146 } | 1146 } |
| 1147 | 1147 |
| 1148 LOperand* context() { return inputs_[0]; } | 1148 LOperand* context() { return inputs_[0]; } |
| 1149 LOperand* left() { return inputs_[1]; } | 1149 LOperand* left() { return inputs_[1]; } |
| 1150 LOperand* right() { return inputs_[2]; } | 1150 LOperand* right() { return inputs_[2]; } |
| 1151 | 1151 |
| 1152 DECLARE_CONCRETE_INSTRUCTION(CmpT, "cmp-t") | 1152 DECLARE_CONCRETE_INSTRUCTION(CmpT, "cmp-t") |
| 1153 DECLARE_HYDROGEN_ACCESSOR(CompareGeneric) | 1153 DECLARE_HYDROGEN_ACCESSOR(CompareGeneric) |
| 1154 | 1154 |
| 1155 LanguageMode language_mode() { return hydrogen()->language_mode(); } | 1155 Strength strength() { return hydrogen()->strength(); } |
| 1156 | 1156 |
| 1157 Token::Value op() const { return hydrogen()->token(); } | 1157 Token::Value op() const { return hydrogen()->token(); } |
| 1158 }; | 1158 }; |
| 1159 | 1159 |
| 1160 | 1160 |
| 1161 class LInstanceOf final : public LTemplateInstruction<1, 3, 0> { | 1161 class LInstanceOf final : public LTemplateInstruction<1, 3, 0> { |
| 1162 public: | 1162 public: |
| 1163 LInstanceOf(LOperand* context, LOperand* left, LOperand* right) { | 1163 LInstanceOf(LOperand* context, LOperand* left, LOperand* right) { |
| 1164 inputs_[0] = context; | 1164 inputs_[0] = context; |
| 1165 inputs_[1] = left; | 1165 inputs_[1] = left; |
| (...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1512 LOperand* context() { return inputs_[0]; } | 1512 LOperand* context() { return inputs_[0]; } |
| 1513 LOperand* left() { return inputs_[1]; } | 1513 LOperand* left() { return inputs_[1]; } |
| 1514 LOperand* right() { return inputs_[2]; } | 1514 LOperand* right() { return inputs_[2]; } |
| 1515 | 1515 |
| 1516 Opcode opcode() const override { return LInstruction::kArithmeticT; } | 1516 Opcode opcode() const override { return LInstruction::kArithmeticT; } |
| 1517 void CompileToNative(LCodeGen* generator) override; | 1517 void CompileToNative(LCodeGen* generator) override; |
| 1518 const char* Mnemonic() const override; | 1518 const char* Mnemonic() const override; |
| 1519 | 1519 |
| 1520 DECLARE_HYDROGEN_ACCESSOR(BinaryOperation) | 1520 DECLARE_HYDROGEN_ACCESSOR(BinaryOperation) |
| 1521 | 1521 |
| 1522 LanguageMode language_mode() { return hydrogen()->language_mode(); } | 1522 Strength strength() { return hydrogen()->strength(); } |
| 1523 | 1523 |
| 1524 private: | 1524 private: |
| 1525 Token::Value op_; | 1525 Token::Value op_; |
| 1526 }; | 1526 }; |
| 1527 | 1527 |
| 1528 | 1528 |
| 1529 class LReturn final : public LTemplateInstruction<0, 3, 0> { | 1529 class LReturn final : public LTemplateInstruction<0, 3, 0> { |
| 1530 public: | 1530 public: |
| 1531 explicit LReturn(LOperand* value, | 1531 explicit LReturn(LOperand* value, |
| 1532 LOperand* context, | 1532 LOperand* context, |
| (...skipping 1325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2858 | 2858 |
| 2859 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2859 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2860 }; | 2860 }; |
| 2861 | 2861 |
| 2862 #undef DECLARE_HYDROGEN_ACCESSOR | 2862 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2863 #undef DECLARE_CONCRETE_INSTRUCTION | 2863 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2864 | 2864 |
| 2865 } } // namespace v8::int | 2865 } } // namespace v8::int |
| 2866 | 2866 |
| 2867 #endif // V8_X64_LITHIUM_X64_H_ | 2867 #endif // V8_X64_LITHIUM_X64_H_ |
| OLD | NEW |