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

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

Issue 1144183004: [strong] Refactor ObjectStrength into a replacement for strong boolean args (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: cl feedback and rebase 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 | « src/arm/full-codegen-arm.cc ('k') | src/arm/lithium-codegen-arm.cc » ('j') | 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_ARM_LITHIUM_ARM_H_ 5 #ifndef V8_ARM_LITHIUM_ARM_H_
6 #define V8_ARM_LITHIUM_ARM_H_ 6 #define V8_ARM_LITHIUM_ARM_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 1158 matching lines...) Expand 10 before | Expand all | Expand 10 after
1169 inputs_[2] = right; 1169 inputs_[2] = right;
1170 } 1170 }
1171 1171
1172 LOperand* context() { return inputs_[0]; } 1172 LOperand* context() { return inputs_[0]; }
1173 LOperand* left() { return inputs_[1]; } 1173 LOperand* left() { return inputs_[1]; }
1174 LOperand* right() { return inputs_[2]; } 1174 LOperand* right() { return inputs_[2]; }
1175 1175
1176 DECLARE_CONCRETE_INSTRUCTION(CmpT, "cmp-t") 1176 DECLARE_CONCRETE_INSTRUCTION(CmpT, "cmp-t")
1177 DECLARE_HYDROGEN_ACCESSOR(CompareGeneric) 1177 DECLARE_HYDROGEN_ACCESSOR(CompareGeneric)
1178 1178
1179 LanguageMode language_mode() { return hydrogen()->language_mode(); } 1179 Strength strength() { return hydrogen()->strength(); }
1180 1180
1181 Token::Value op() const { return hydrogen()->token(); } 1181 Token::Value op() const { return hydrogen()->token(); }
1182 }; 1182 };
1183 1183
1184 1184
1185 class LInstanceOf final : public LTemplateInstruction<1, 3, 0> { 1185 class LInstanceOf final : public LTemplateInstruction<1, 3, 0> {
1186 public: 1186 public:
1187 LInstanceOf(LOperand* context, LOperand* left, LOperand* right) { 1187 LInstanceOf(LOperand* context, LOperand* left, LOperand* right) {
1188 inputs_[0] = context; 1188 inputs_[0] = context;
1189 inputs_[1] = left; 1189 inputs_[1] = left;
(...skipping 352 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 LReturn(LOperand* value, LOperand* context, LOperand* parameter_count) { 1561 LReturn(LOperand* value, LOperand* context, LOperand* parameter_count) {
1562 inputs_[0] = value; 1562 inputs_[0] = value;
(...skipping 1314 matching lines...) Expand 10 before | Expand all | Expand 10 after
2877 2877
2878 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2878 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2879 }; 2879 };
2880 2880
2881 #undef DECLARE_HYDROGEN_ACCESSOR 2881 #undef DECLARE_HYDROGEN_ACCESSOR
2882 #undef DECLARE_CONCRETE_INSTRUCTION 2882 #undef DECLARE_CONCRETE_INSTRUCTION
2883 2883
2884 } } // namespace v8::internal 2884 } } // namespace v8::internal
2885 2885
2886 #endif // V8_ARM_LITHIUM_ARM_H_ 2886 #endif // V8_ARM_LITHIUM_ARM_H_
OLDNEW
« no previous file with comments | « src/arm/full-codegen-arm.cc ('k') | src/arm/lithium-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698