| 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_CRANKSHAFT_X64_LITHIUM_X64_H_ | 5 #ifndef V8_CRANKSHAFT_X64_LITHIUM_X64_H_ |
| 6 #define V8_CRANKSHAFT_X64_LITHIUM_X64_H_ | 6 #define V8_CRANKSHAFT_X64_LITHIUM_X64_H_ |
| 7 | 7 |
| 8 #include "src/crankshaft/hydrogen.h" | 8 #include "src/crankshaft/hydrogen.h" |
| 9 #include "src/crankshaft/lithium.h" | 9 #include "src/crankshaft/lithium.h" |
| 10 #include "src/crankshaft/lithium-allocator.h" | 10 #include "src/crankshaft/lithium-allocator.h" |
| (...skipping 1102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1113 inputs_[2] = right; | 1113 inputs_[2] = right; |
| 1114 } | 1114 } |
| 1115 | 1115 |
| 1116 LOperand* context() { return inputs_[0]; } | 1116 LOperand* context() { return inputs_[0]; } |
| 1117 LOperand* left() { return inputs_[1]; } | 1117 LOperand* left() { return inputs_[1]; } |
| 1118 LOperand* right() { return inputs_[2]; } | 1118 LOperand* right() { return inputs_[2]; } |
| 1119 | 1119 |
| 1120 DECLARE_CONCRETE_INSTRUCTION(CmpT, "cmp-t") | 1120 DECLARE_CONCRETE_INSTRUCTION(CmpT, "cmp-t") |
| 1121 DECLARE_HYDROGEN_ACCESSOR(CompareGeneric) | 1121 DECLARE_HYDROGEN_ACCESSOR(CompareGeneric) |
| 1122 | 1122 |
| 1123 Strength strength() { return hydrogen()->strength(); } | |
| 1124 | |
| 1125 Token::Value op() const { return hydrogen()->token(); } | 1123 Token::Value op() const { return hydrogen()->token(); } |
| 1126 }; | 1124 }; |
| 1127 | 1125 |
| 1128 | 1126 |
| 1129 class LInstanceOf final : public LTemplateInstruction<1, 3, 0> { | 1127 class LInstanceOf final : public LTemplateInstruction<1, 3, 0> { |
| 1130 public: | 1128 public: |
| 1131 LInstanceOf(LOperand* context, LOperand* left, LOperand* right) { | 1129 LInstanceOf(LOperand* context, LOperand* left, LOperand* right) { |
| 1132 inputs_[0] = context; | 1130 inputs_[0] = context; |
| 1133 inputs_[1] = left; | 1131 inputs_[1] = left; |
| 1134 inputs_[2] = right; | 1132 inputs_[2] = right; |
| (...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1437 LOperand* context() { return inputs_[0]; } | 1435 LOperand* context() { return inputs_[0]; } |
| 1438 LOperand* left() { return inputs_[1]; } | 1436 LOperand* left() { return inputs_[1]; } |
| 1439 LOperand* right() { return inputs_[2]; } | 1437 LOperand* right() { return inputs_[2]; } |
| 1440 | 1438 |
| 1441 Opcode opcode() const override { return LInstruction::kArithmeticT; } | 1439 Opcode opcode() const override { return LInstruction::kArithmeticT; } |
| 1442 void CompileToNative(LCodeGen* generator) override; | 1440 void CompileToNative(LCodeGen* generator) override; |
| 1443 const char* Mnemonic() const override; | 1441 const char* Mnemonic() const override; |
| 1444 | 1442 |
| 1445 DECLARE_HYDROGEN_ACCESSOR(BinaryOperation) | 1443 DECLARE_HYDROGEN_ACCESSOR(BinaryOperation) |
| 1446 | 1444 |
| 1447 Strength strength() { return hydrogen()->strength(); } | |
| 1448 | |
| 1449 private: | 1445 private: |
| 1450 Token::Value op_; | 1446 Token::Value op_; |
| 1451 }; | 1447 }; |
| 1452 | 1448 |
| 1453 | 1449 |
| 1454 class LReturn final : public LTemplateInstruction<0, 3, 0> { | 1450 class LReturn final : public LTemplateInstruction<0, 3, 0> { |
| 1455 public: | 1451 public: |
| 1456 explicit LReturn(LOperand* value, | 1452 explicit LReturn(LOperand* value, |
| 1457 LOperand* context, | 1453 LOperand* context, |
| 1458 LOperand* parameter_count) { | 1454 LOperand* parameter_count) { |
| (...skipping 1272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2731 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2727 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2732 }; | 2728 }; |
| 2733 | 2729 |
| 2734 #undef DECLARE_HYDROGEN_ACCESSOR | 2730 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2735 #undef DECLARE_CONCRETE_INSTRUCTION | 2731 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2736 | 2732 |
| 2737 } // namespace internal | 2733 } // namespace internal |
| 2738 } // namespace v8 | 2734 } // namespace v8 |
| 2739 | 2735 |
| 2740 #endif // V8_CRANKSHAFT_X64_LITHIUM_X64_H_ | 2736 #endif // V8_CRANKSHAFT_X64_LITHIUM_X64_H_ |
| OLD | NEW |