Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(835)

Side by Side Diff: src/crankshaft/arm/lithium-arm.h

Issue 1693833002: Remove strong mode support from binary operations. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressed comments. Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_ARM_LITHIUM_ARM_H_ 5 #ifndef V8_CRANKSHAFT_ARM_LITHIUM_ARM_H_
6 #define V8_CRANKSHAFT_ARM_LITHIUM_ARM_H_ 6 #define V8_CRANKSHAFT_ARM_LITHIUM_ARM_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 1122 matching lines...) Expand 10 before | Expand all | Expand 10 after
1133 inputs_[2] = right; 1133 inputs_[2] = right;
1134 } 1134 }
1135 1135
1136 LOperand* context() { return inputs_[0]; } 1136 LOperand* context() { return inputs_[0]; }
1137 LOperand* left() { return inputs_[1]; } 1137 LOperand* left() { return inputs_[1]; }
1138 LOperand* right() { return inputs_[2]; } 1138 LOperand* right() { return inputs_[2]; }
1139 1139
1140 DECLARE_CONCRETE_INSTRUCTION(CmpT, "cmp-t") 1140 DECLARE_CONCRETE_INSTRUCTION(CmpT, "cmp-t")
1141 DECLARE_HYDROGEN_ACCESSOR(CompareGeneric) 1141 DECLARE_HYDROGEN_ACCESSOR(CompareGeneric)
1142 1142
1143 Strength strength() { return hydrogen()->strength(); }
1144
1145 Token::Value op() const { return hydrogen()->token(); } 1143 Token::Value op() const { return hydrogen()->token(); }
1146 }; 1144 };
1147 1145
1148 1146
1149 class LInstanceOf final : public LTemplateInstruction<1, 3, 0> { 1147 class LInstanceOf final : public LTemplateInstruction<1, 3, 0> {
1150 public: 1148 public:
1151 LInstanceOf(LOperand* context, LOperand* left, LOperand* right) { 1149 LInstanceOf(LOperand* context, LOperand* left, LOperand* right) {
1152 inputs_[0] = context; 1150 inputs_[0] = context;
1153 inputs_[1] = left; 1151 inputs_[1] = left;
1154 inputs_[2] = right; 1152 inputs_[2] = right;
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
1461 LOperand* left() { return inputs_[1]; } 1459 LOperand* left() { return inputs_[1]; }
1462 LOperand* right() { return inputs_[2]; } 1460 LOperand* right() { return inputs_[2]; }
1463 Token::Value op() const { return op_; } 1461 Token::Value op() const { return op_; }
1464 1462
1465 Opcode opcode() const override { return LInstruction::kArithmeticT; } 1463 Opcode opcode() const override { return LInstruction::kArithmeticT; }
1466 void CompileToNative(LCodeGen* generator) override; 1464 void CompileToNative(LCodeGen* generator) override;
1467 const char* Mnemonic() const override; 1465 const char* Mnemonic() const override;
1468 1466
1469 DECLARE_HYDROGEN_ACCESSOR(BinaryOperation) 1467 DECLARE_HYDROGEN_ACCESSOR(BinaryOperation)
1470 1468
1471 Strength strength() { return hydrogen()->strength(); }
1472
1473 private: 1469 private:
1474 Token::Value op_; 1470 Token::Value op_;
1475 }; 1471 };
1476 1472
1477 1473
1478 class LReturn final : public LTemplateInstruction<0, 3, 0> { 1474 class LReturn final : public LTemplateInstruction<0, 3, 0> {
1479 public: 1475 public:
1480 LReturn(LOperand* value, LOperand* context, LOperand* parameter_count) { 1476 LReturn(LOperand* value, LOperand* context, LOperand* parameter_count) {
1481 inputs_[0] = value; 1477 inputs_[0] = value;
1482 inputs_[1] = context; 1478 inputs_[1] = context;
(...skipping 1266 matching lines...) Expand 10 before | Expand all | Expand 10 after
2749 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2745 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2750 }; 2746 };
2751 2747
2752 #undef DECLARE_HYDROGEN_ACCESSOR 2748 #undef DECLARE_HYDROGEN_ACCESSOR
2753 #undef DECLARE_CONCRETE_INSTRUCTION 2749 #undef DECLARE_CONCRETE_INSTRUCTION
2754 2750
2755 } // namespace internal 2751 } // namespace internal
2756 } // namespace v8 2752 } // namespace v8
2757 2753
2758 #endif // V8_CRANKSHAFT_ARM_LITHIUM_ARM_H_ 2754 #endif // V8_CRANKSHAFT_ARM_LITHIUM_ARM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698