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

Side by Side Diff: src/ia32/lithium-ia32.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/ia32/lithium-codegen-ia32.cc ('k') | src/ic/ic.h » ('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_IA32_LITHIUM_IA32_H_ 5 #ifndef V8_IA32_LITHIUM_IA32_H_
6 #define V8_IA32_LITHIUM_IA32_H_ 6 #define V8_IA32_LITHIUM_IA32_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 1152 matching lines...) Expand 10 before | Expand all | Expand 10 after
1163 public: 1163 public:
1164 LCmpT(LOperand* context, LOperand* left, LOperand* right) { 1164 LCmpT(LOperand* context, LOperand* left, LOperand* right) {
1165 inputs_[0] = context; 1165 inputs_[0] = context;
1166 inputs_[1] = left; 1166 inputs_[1] = left;
1167 inputs_[2] = right; 1167 inputs_[2] = right;
1168 } 1168 }
1169 1169
1170 DECLARE_CONCRETE_INSTRUCTION(CmpT, "cmp-t") 1170 DECLARE_CONCRETE_INSTRUCTION(CmpT, "cmp-t")
1171 DECLARE_HYDROGEN_ACCESSOR(CompareGeneric) 1171 DECLARE_HYDROGEN_ACCESSOR(CompareGeneric)
1172 1172
1173 LanguageMode language_mode() { return hydrogen()->language_mode(); } 1173 Strength strength() { return hydrogen()->strength(); }
1174 1174
1175 LOperand* context() { return inputs_[0]; } 1175 LOperand* context() { return inputs_[0]; }
1176 Token::Value op() const { return hydrogen()->token(); } 1176 Token::Value op() const { return hydrogen()->token(); }
1177 }; 1177 };
1178 1178
1179 1179
1180 class LInstanceOf final : public LTemplateInstruction<1, 3, 0> { 1180 class LInstanceOf final : public LTemplateInstruction<1, 3, 0> {
1181 public: 1181 public:
1182 LInstanceOf(LOperand* context, LOperand* left, LOperand* right) { 1182 LInstanceOf(LOperand* context, LOperand* left, LOperand* right) {
1183 inputs_[0] = context; 1183 inputs_[0] = context;
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after
1534 LOperand* left() { return inputs_[1]; } 1534 LOperand* left() { return inputs_[1]; }
1535 LOperand* right() { return inputs_[2]; } 1535 LOperand* right() { return inputs_[2]; }
1536 Token::Value op() const { return op_; } 1536 Token::Value op() const { return op_; }
1537 1537
1538 Opcode opcode() const override { return LInstruction::kArithmeticT; } 1538 Opcode opcode() const override { return LInstruction::kArithmeticT; }
1539 void CompileToNative(LCodeGen* generator) override; 1539 void CompileToNative(LCodeGen* generator) override;
1540 const char* Mnemonic() const override; 1540 const char* Mnemonic() const override;
1541 1541
1542 DECLARE_HYDROGEN_ACCESSOR(BinaryOperation) 1542 DECLARE_HYDROGEN_ACCESSOR(BinaryOperation)
1543 1543
1544 LanguageMode language_mode() { return hydrogen()->language_mode(); } 1544 Strength strength() { return hydrogen()->strength(); }
1545 1545
1546 private: 1546 private:
1547 Token::Value op_; 1547 Token::Value op_;
1548 }; 1548 };
1549 1549
1550 1550
1551 class LReturn final : public LTemplateInstruction<0, 3, 0> { 1551 class LReturn final : public LTemplateInstruction<0, 3, 0> {
1552 public: 1552 public:
1553 explicit LReturn(LOperand* value, 1553 explicit LReturn(LOperand* value,
1554 LOperand* context, 1554 LOperand* context,
(...skipping 1320 matching lines...) Expand 10 before | Expand all | Expand 10 after
2875 2875
2876 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2876 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2877 }; 2877 };
2878 2878
2879 #undef DECLARE_HYDROGEN_ACCESSOR 2879 #undef DECLARE_HYDROGEN_ACCESSOR
2880 #undef DECLARE_CONCRETE_INSTRUCTION 2880 #undef DECLARE_CONCRETE_INSTRUCTION
2881 2881
2882 } } // namespace v8::internal 2882 } } // namespace v8::internal
2883 2883
2884 #endif // V8_IA32_LITHIUM_IA32_H_ 2884 #endif // V8_IA32_LITHIUM_IA32_H_
OLDNEW
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | src/ic/ic.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698