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

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

Issue 1347913003: [stubs] Refactor StringCompareStub and use it for HStringCompareAndBranch. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 3 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/interface-descriptors.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 1037 matching lines...) Expand 10 before | Expand all | Expand 10 after
1048 1048
1049 1049
1050 class LStringCompareAndBranch final : public LControlInstruction<3, 0> { 1050 class LStringCompareAndBranch final : public LControlInstruction<3, 0> {
1051 public: 1051 public:
1052 LStringCompareAndBranch(LOperand* context, LOperand* left, LOperand* right) { 1052 LStringCompareAndBranch(LOperand* context, LOperand* left, LOperand* right) {
1053 inputs_[0] = context; 1053 inputs_[0] = context;
1054 inputs_[1] = left; 1054 inputs_[1] = left;
1055 inputs_[2] = right; 1055 inputs_[2] = right;
1056 } 1056 }
1057 1057
1058 LOperand* context() { return inputs_[1]; } 1058 LOperand* context() { return inputs_[0]; }
1059 LOperand* left() { return inputs_[1]; } 1059 LOperand* left() { return inputs_[1]; }
1060 LOperand* right() { return inputs_[2]; } 1060 LOperand* right() { return inputs_[2]; }
1061 1061
1062 DECLARE_CONCRETE_INSTRUCTION(StringCompareAndBranch, 1062 DECLARE_CONCRETE_INSTRUCTION(StringCompareAndBranch,
1063 "string-compare-and-branch") 1063 "string-compare-and-branch")
1064 DECLARE_HYDROGEN_ACCESSOR(StringCompareAndBranch) 1064 DECLARE_HYDROGEN_ACCESSOR(StringCompareAndBranch)
1065 1065
1066 void PrintDataTo(StringStream* stream) override; 1066 void PrintDataTo(StringStream* stream) override;
1067 1067
1068 Token::Value op() const { return hydrogen()->token(); } 1068 Token::Value op() const { return hydrogen()->token(); }
(...skipping 1812 matching lines...) Expand 10 before | Expand all | Expand 10 after
2881 2881
2882 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2882 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2883 }; 2883 };
2884 2884
2885 #undef DECLARE_HYDROGEN_ACCESSOR 2885 #undef DECLARE_HYDROGEN_ACCESSOR
2886 #undef DECLARE_CONCRETE_INSTRUCTION 2886 #undef DECLARE_CONCRETE_INSTRUCTION
2887 2887
2888 } } // namespace v8::internal 2888 } } // namespace v8::internal
2889 2889
2890 #endif // V8_IA32_LITHIUM_IA32_H_ 2890 #endif // V8_IA32_LITHIUM_IA32_H_
OLDNEW
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | src/interface-descriptors.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698