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_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 1172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1183 public: | 1183 public: |
1184 LCmpT(LOperand* context, LOperand* left, LOperand* right) { | 1184 LCmpT(LOperand* context, LOperand* left, LOperand* right) { |
1185 inputs_[0] = context; | 1185 inputs_[0] = context; |
1186 inputs_[1] = left; | 1186 inputs_[1] = left; |
1187 inputs_[2] = right; | 1187 inputs_[2] = right; |
1188 } | 1188 } |
1189 | 1189 |
1190 DECLARE_CONCRETE_INSTRUCTION(CmpT, "cmp-t") | 1190 DECLARE_CONCRETE_INSTRUCTION(CmpT, "cmp-t") |
1191 DECLARE_HYDROGEN_ACCESSOR(CompareGeneric) | 1191 DECLARE_HYDROGEN_ACCESSOR(CompareGeneric) |
1192 | 1192 |
| 1193 LanguageMode language_mode() { return hydrogen()->language_mode(); } |
| 1194 |
1193 LOperand* context() { return inputs_[0]; } | 1195 LOperand* context() { return inputs_[0]; } |
1194 Token::Value op() const { return hydrogen()->token(); } | 1196 Token::Value op() const { return hydrogen()->token(); } |
1195 }; | 1197 }; |
1196 | 1198 |
1197 | 1199 |
1198 class LInstanceOf final : public LTemplateInstruction<1, 3, 0> { | 1200 class LInstanceOf final : public LTemplateInstruction<1, 3, 0> { |
1199 public: | 1201 public: |
1200 LInstanceOf(LOperand* context, LOperand* left, LOperand* right) { | 1202 LInstanceOf(LOperand* context, LOperand* left, LOperand* right) { |
1201 inputs_[0] = context; | 1203 inputs_[0] = context; |
1202 inputs_[1] = left; | 1204 inputs_[1] = left; |
(...skipping 1668 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2871 | 2873 |
2872 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2874 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2873 }; | 2875 }; |
2874 | 2876 |
2875 #undef DECLARE_HYDROGEN_ACCESSOR | 2877 #undef DECLARE_HYDROGEN_ACCESSOR |
2876 #undef DECLARE_CONCRETE_INSTRUCTION | 2878 #undef DECLARE_CONCRETE_INSTRUCTION |
2877 | 2879 |
2878 } } // namespace v8::internal | 2880 } } // namespace v8::internal |
2879 | 2881 |
2880 #endif // V8_IA32_LITHIUM_IA32_H_ | 2882 #endif // V8_IA32_LITHIUM_IA32_H_ |
OLD | NEW |