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

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

Issue 1355983003: X87: [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/x87/lithium-codegen-x87.cc ('k') | 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 1049 matching lines...) Expand 10 before | Expand all | Expand 10 after
1060 1060
1061 1061
1062 class LStringCompareAndBranch final : public LControlInstruction<3, 0> { 1062 class LStringCompareAndBranch final : public LControlInstruction<3, 0> {
1063 public: 1063 public:
1064 LStringCompareAndBranch(LOperand* context, LOperand* left, LOperand* right) { 1064 LStringCompareAndBranch(LOperand* context, LOperand* left, LOperand* right) {
1065 inputs_[0] = context; 1065 inputs_[0] = context;
1066 inputs_[1] = left; 1066 inputs_[1] = left;
1067 inputs_[2] = right; 1067 inputs_[2] = right;
1068 } 1068 }
1069 1069
1070 LOperand* context() { return inputs_[1]; } 1070 LOperand* context() { return inputs_[0]; }
1071 LOperand* left() { return inputs_[1]; } 1071 LOperand* left() { return inputs_[1]; }
1072 LOperand* right() { return inputs_[2]; } 1072 LOperand* right() { return inputs_[2]; }
1073 1073
1074 DECLARE_CONCRETE_INSTRUCTION(StringCompareAndBranch, 1074 DECLARE_CONCRETE_INSTRUCTION(StringCompareAndBranch,
1075 "string-compare-and-branch") 1075 "string-compare-and-branch")
1076 DECLARE_HYDROGEN_ACCESSOR(StringCompareAndBranch) 1076 DECLARE_HYDROGEN_ACCESSOR(StringCompareAndBranch)
1077 1077
1078 void PrintDataTo(StringStream* stream) override; 1078 void PrintDataTo(StringStream* stream) override;
1079 1079
1080 Token::Value op() const { return hydrogen()->token(); } 1080 Token::Value op() const { return hydrogen()->token(); }
(...skipping 1812 matching lines...) Expand 10 before | Expand all | Expand 10 after
2893 2893
2894 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2894 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2895 }; 2895 };
2896 2896
2897 #undef DECLARE_HYDROGEN_ACCESSOR 2897 #undef DECLARE_HYDROGEN_ACCESSOR
2898 #undef DECLARE_CONCRETE_INSTRUCTION 2898 #undef DECLARE_CONCRETE_INSTRUCTION
2899 2899
2900 } } // namespace v8::internal 2900 } } // namespace v8::internal
2901 2901
2902 #endif // V8_X87_LITHIUM_X87_H_ 2902 #endif // V8_X87_LITHIUM_X87_H_
OLDNEW
« no previous file with comments | « src/x87/lithium-codegen-x87.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698