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

Side by Side Diff: src/x87/lithium-x87.h

Issue 1173973002: X87: [strong] Refactor ObjectStrength into a replacement for strong boolean args (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 6 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_X87_LITHIUM_X87_H_ 5 #ifndef V8_X87_LITHIUM_X87_H_
6 #define V8_X87_LITHIUM_X87_H_ 6 #define V8_X87_LITHIUM_X87_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 1164 matching lines...) Expand 10 before | Expand all | Expand 10 after
1175 public: 1175 public:
1176 LCmpT(LOperand* context, LOperand* left, LOperand* right) { 1176 LCmpT(LOperand* context, LOperand* left, LOperand* right) {
1177 inputs_[0] = context; 1177 inputs_[0] = context;
1178 inputs_[1] = left; 1178 inputs_[1] = left;
1179 inputs_[2] = right; 1179 inputs_[2] = right;
1180 } 1180 }
1181 1181
1182 DECLARE_CONCRETE_INSTRUCTION(CmpT, "cmp-t") 1182 DECLARE_CONCRETE_INSTRUCTION(CmpT, "cmp-t")
1183 DECLARE_HYDROGEN_ACCESSOR(CompareGeneric) 1183 DECLARE_HYDROGEN_ACCESSOR(CompareGeneric)
1184 1184
1185 LanguageMode language_mode() { return hydrogen()->language_mode(); } 1185 Strength strength() { return hydrogen()->strength(); }
1186 1186
1187 LOperand* context() { return inputs_[0]; } 1187 LOperand* context() { return inputs_[0]; }
1188 Token::Value op() const { return hydrogen()->token(); } 1188 Token::Value op() const { return hydrogen()->token(); }
1189 }; 1189 };
1190 1190
1191 1191
1192 class LInstanceOf final : public LTemplateInstruction<1, 3, 0> { 1192 class LInstanceOf final : public LTemplateInstruction<1, 3, 0> {
1193 public: 1193 public:
1194 LInstanceOf(LOperand* context, LOperand* left, LOperand* right) { 1194 LInstanceOf(LOperand* context, LOperand* left, LOperand* right) {
1195 inputs_[0] = context; 1195 inputs_[0] = context;
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after
1542 LOperand* left() { return inputs_[1]; } 1542 LOperand* left() { return inputs_[1]; }
1543 LOperand* right() { return inputs_[2]; } 1543 LOperand* right() { return inputs_[2]; }
1544 Token::Value op() const { return op_; } 1544 Token::Value op() const { return op_; }
1545 1545
1546 Opcode opcode() const override { return LInstruction::kArithmeticT; } 1546 Opcode opcode() const override { return LInstruction::kArithmeticT; }
1547 void CompileToNative(LCodeGen* generator) override; 1547 void CompileToNative(LCodeGen* generator) override;
1548 const char* Mnemonic() const override; 1548 const char* Mnemonic() const override;
1549 1549
1550 DECLARE_HYDROGEN_ACCESSOR(BinaryOperation) 1550 DECLARE_HYDROGEN_ACCESSOR(BinaryOperation)
1551 1551
1552 LanguageMode language_mode() { return hydrogen()->language_mode(); } 1552 Strength strength() { return hydrogen()->strength(); }
1553 1553
1554 private: 1554 private:
1555 Token::Value op_; 1555 Token::Value op_;
1556 }; 1556 };
1557 1557
1558 1558
1559 class LReturn final : public LTemplateInstruction<0, 3, 0> { 1559 class LReturn final : public LTemplateInstruction<0, 3, 0> {
1560 public: 1560 public:
1561 explicit LReturn(LOperand* value, 1561 explicit LReturn(LOperand* value,
1562 LOperand* context, 1562 LOperand* context,
(...skipping 1324 matching lines...) Expand 10 before | Expand all | Expand 10 after
2887 2887
2888 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2888 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2889 }; 2889 };
2890 2890
2891 #undef DECLARE_HYDROGEN_ACCESSOR 2891 #undef DECLARE_HYDROGEN_ACCESSOR
2892 #undef DECLARE_CONCRETE_INSTRUCTION 2892 #undef DECLARE_CONCRETE_INSTRUCTION
2893 2893
2894 } } // namespace v8::internal 2894 } } // namespace v8::internal
2895 2895
2896 #endif // V8_X87_LITHIUM_X87_H_ 2896 #endif // V8_X87_LITHIUM_X87_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698