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_HYDROGEN_INSTRUCTIONS_H_ | 5 #ifndef V8_HYDROGEN_INSTRUCTIONS_H_ |
6 #define V8_HYDROGEN_INSTRUCTIONS_H_ | 6 #define V8_HYDROGEN_INSTRUCTIONS_H_ |
7 | 7 |
8 #include <cstring> | 8 #include <cstring> |
9 #include <iosfwd> | 9 #include <iosfwd> |
10 | 10 |
(...skipping 2258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2269 | 2269 |
2270 int OperandCount() const final { return values_.length(); } | 2270 int OperandCount() const final { return values_.length(); } |
2271 HValue* OperandAt(int index) const final { return values_[index]; } | 2271 HValue* OperandAt(int index) const final { return values_[index]; } |
2272 | 2272 |
2273 Representation RequiredInputRepresentation(int index) final { | 2273 Representation RequiredInputRepresentation(int index) final { |
2274 if (index == 0) { | 2274 if (index == 0) { |
2275 return Representation::Tagged(); | 2275 return Representation::Tagged(); |
2276 } else { | 2276 } else { |
2277 int par_index = index - 1; | 2277 int par_index = index - 1; |
2278 DCHECK(par_index < descriptor_.GetEnvironmentLength()); | 2278 DCHECK(par_index < descriptor_.GetEnvironmentLength()); |
2279 return descriptor_.GetParameterRepresentation(par_index); | 2279 return RepresentationFromType(descriptor_.GetParameterType(par_index)); |
2280 } | 2280 } |
2281 } | 2281 } |
2282 | 2282 |
2283 DECLARE_CONCRETE_INSTRUCTION(CallWithDescriptor) | 2283 DECLARE_CONCRETE_INSTRUCTION(CallWithDescriptor) |
2284 | 2284 |
2285 HType CalculateInferredType() final { return HType::Tagged(); } | 2285 HType CalculateInferredType() final { return HType::Tagged(); } |
2286 | 2286 |
2287 bool IsTailCall() const { return call_mode_ == TAIL_CALL; } | 2287 bool IsTailCall() const { return call_mode_ == TAIL_CALL; } |
2288 | 2288 |
2289 virtual int argument_count() const { | 2289 virtual int argument_count() const { |
(...skipping 5607 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7897 }; | 7897 }; |
7898 | 7898 |
7899 | 7899 |
7900 | 7900 |
7901 #undef DECLARE_INSTRUCTION | 7901 #undef DECLARE_INSTRUCTION |
7902 #undef DECLARE_CONCRETE_INSTRUCTION | 7902 #undef DECLARE_CONCRETE_INSTRUCTION |
7903 | 7903 |
7904 } } // namespace v8::internal | 7904 } } // namespace v8::internal |
7905 | 7905 |
7906 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 7906 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
OLD | NEW |