OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_PPC_LITHIUM_PPC_H_ | 5 #ifndef V8_PPC_LITHIUM_PPC_H_ |
6 #define V8_PPC_LITHIUM_PPC_H_ | 6 #define V8_PPC_LITHIUM_PPC_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 1133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1144 inputs_[2] = right; | 1144 inputs_[2] = right; |
1145 } | 1145 } |
1146 | 1146 |
1147 LOperand* context() { return inputs_[0]; } | 1147 LOperand* context() { return inputs_[0]; } |
1148 LOperand* left() { return inputs_[1]; } | 1148 LOperand* left() { return inputs_[1]; } |
1149 LOperand* right() { return inputs_[2]; } | 1149 LOperand* right() { return inputs_[2]; } |
1150 | 1150 |
1151 DECLARE_CONCRETE_INSTRUCTION(CmpT, "cmp-t") | 1151 DECLARE_CONCRETE_INSTRUCTION(CmpT, "cmp-t") |
1152 DECLARE_HYDROGEN_ACCESSOR(CompareGeneric) | 1152 DECLARE_HYDROGEN_ACCESSOR(CompareGeneric) |
1153 | 1153 |
| 1154 LanguageMode language_mode() { return hydrogen()->language_mode(); } |
| 1155 |
1154 Token::Value op() const { return hydrogen()->token(); } | 1156 Token::Value op() const { return hydrogen()->token(); } |
1155 }; | 1157 }; |
1156 | 1158 |
1157 | 1159 |
1158 class LInstanceOf final : public LTemplateInstruction<1, 3, 0> { | 1160 class LInstanceOf final : public LTemplateInstruction<1, 3, 0> { |
1159 public: | 1161 public: |
1160 LInstanceOf(LOperand* context, LOperand* left, LOperand* right) { | 1162 LInstanceOf(LOperand* context, LOperand* left, LOperand* right) { |
1161 inputs_[0] = context; | 1163 inputs_[0] = context; |
1162 inputs_[1] = left; | 1164 inputs_[1] = left; |
1163 inputs_[2] = right; | 1165 inputs_[2] = right; |
(...skipping 1579 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2743 | 2745 |
2744 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2746 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2745 }; | 2747 }; |
2746 | 2748 |
2747 #undef DECLARE_HYDROGEN_ACCESSOR | 2749 #undef DECLARE_HYDROGEN_ACCESSOR |
2748 #undef DECLARE_CONCRETE_INSTRUCTION | 2750 #undef DECLARE_CONCRETE_INSTRUCTION |
2749 } | 2751 } |
2750 } // namespace v8::internal | 2752 } // namespace v8::internal |
2751 | 2753 |
2752 #endif // V8_PPC_LITHIUM_PPC_H_ | 2754 #endif // V8_PPC_LITHIUM_PPC_H_ |
OLD | NEW |