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

Side by Side Diff: src/crankshaft/x87/lithium-x87.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_X87_LITHIUM_X87_H_ 5 #ifndef V8_CRANKSHAFT_X87_LITHIUM_X87_H_
6 #define V8_CRANKSHAFT_X87_LITHIUM_X87_H_ 6 #define V8_CRANKSHAFT_X87_LITHIUM_X87_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 1120 matching lines...) Expand 10 before | Expand all | Expand 10 after
1131 public: 1131 public:
1132 LCmpT(LOperand* context, LOperand* left, LOperand* right) { 1132 LCmpT(LOperand* context, LOperand* left, LOperand* right) {
1133 inputs_[0] = context; 1133 inputs_[0] = context;
1134 inputs_[1] = left; 1134 inputs_[1] = left;
1135 inputs_[2] = right; 1135 inputs_[2] = right;
1136 } 1136 }
1137 1137
1138 DECLARE_CONCRETE_INSTRUCTION(CmpT, "cmp-t") 1138 DECLARE_CONCRETE_INSTRUCTION(CmpT, "cmp-t")
1139 DECLARE_HYDROGEN_ACCESSOR(CompareGeneric) 1139 DECLARE_HYDROGEN_ACCESSOR(CompareGeneric)
1140 1140
1141 Strength strength() { return hydrogen()->strength(); }
1142
1143 LOperand* context() { return inputs_[0]; } 1141 LOperand* context() { return inputs_[0]; }
1144 Token::Value op() const { return hydrogen()->token(); } 1142 Token::Value op() const { return hydrogen()->token(); }
1145 }; 1143 };
1146 1144
1147 1145
1148 class LInstanceOf final : public LTemplateInstruction<1, 3, 0> { 1146 class LInstanceOf final : public LTemplateInstruction<1, 3, 0> {
1149 public: 1147 public:
1150 LInstanceOf(LOperand* context, LOperand* left, LOperand* right) { 1148 LInstanceOf(LOperand* context, LOperand* left, LOperand* right) {
1151 inputs_[0] = context; 1149 inputs_[0] = context;
1152 inputs_[1] = left; 1150 inputs_[1] = left;
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after
1456 LOperand* left() { return inputs_[1]; } 1454 LOperand* left() { return inputs_[1]; }
1457 LOperand* right() { return inputs_[2]; } 1455 LOperand* right() { return inputs_[2]; }
1458 Token::Value op() const { return op_; } 1456 Token::Value op() const { return op_; }
1459 1457
1460 Opcode opcode() const override { return LInstruction::kArithmeticT; } 1458 Opcode opcode() const override { return LInstruction::kArithmeticT; }
1461 void CompileToNative(LCodeGen* generator) override; 1459 void CompileToNative(LCodeGen* generator) override;
1462 const char* Mnemonic() const override; 1460 const char* Mnemonic() const override;
1463 1461
1464 DECLARE_HYDROGEN_ACCESSOR(BinaryOperation) 1462 DECLARE_HYDROGEN_ACCESSOR(BinaryOperation)
1465 1463
1466 Strength strength() { return hydrogen()->strength(); }
1467
1468 private: 1464 private:
1469 Token::Value op_; 1465 Token::Value op_;
1470 }; 1466 };
1471 1467
1472 1468
1473 class LReturn final : public LTemplateInstruction<0, 3, 0> { 1469 class LReturn final : public LTemplateInstruction<0, 3, 0> {
1474 public: 1470 public:
1475 explicit LReturn(LOperand* value, 1471 explicit LReturn(LOperand* value,
1476 LOperand* context, 1472 LOperand* context,
1477 LOperand* parameter_count) { 1473 LOperand* parameter_count) {
(...skipping 1285 matching lines...) Expand 10 before | Expand all | Expand 10 after
2763 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2759 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2764 }; 2760 };
2765 2761
2766 #undef DECLARE_HYDROGEN_ACCESSOR 2762 #undef DECLARE_HYDROGEN_ACCESSOR
2767 #undef DECLARE_CONCRETE_INSTRUCTION 2763 #undef DECLARE_CONCRETE_INSTRUCTION
2768 2764
2769 } // namespace internal 2765 } // namespace internal
2770 } // namespace v8 2766 } // namespace v8
2771 2767
2772 #endif // V8_CRANKSHAFT_X87_LITHIUM_X87_H_ 2768 #endif // V8_CRANKSHAFT_X87_LITHIUM_X87_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698