OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |