OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 4415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4426 REGISTER_PARAMETER | 4426 REGISTER_PARAMETER |
4427 }; | 4427 }; |
4428 | 4428 |
4429 explicit HParameter(unsigned index, | 4429 explicit HParameter(unsigned index, |
4430 ParameterKind kind = STACK_PARAMETER) | 4430 ParameterKind kind = STACK_PARAMETER) |
4431 : index_(index), | 4431 : index_(index), |
4432 kind_(kind) { | 4432 kind_(kind) { |
4433 set_representation(Representation::Tagged()); | 4433 set_representation(Representation::Tagged()); |
4434 } | 4434 } |
4435 | 4435 |
| 4436 explicit HParameter(unsigned index, |
| 4437 ParameterKind kind, |
| 4438 Representation r) |
| 4439 : index_(index), |
| 4440 kind_(kind) { |
| 4441 set_representation(r); |
| 4442 } |
| 4443 |
4436 unsigned index() const { return index_; } | 4444 unsigned index() const { return index_; } |
4437 ParameterKind kind() const { return kind_; } | 4445 ParameterKind kind() const { return kind_; } |
4438 | 4446 |
4439 virtual void PrintDataTo(StringStream* stream); | 4447 virtual void PrintDataTo(StringStream* stream); |
4440 | 4448 |
4441 virtual Representation RequiredInputRepresentation(int index) { | 4449 virtual Representation RequiredInputRepresentation(int index) { |
4442 return Representation::None(); | 4450 return Representation::None(); |
4443 } | 4451 } |
4444 | 4452 |
4445 DECLARE_CONCRETE_INSTRUCTION(Parameter) | 4453 DECLARE_CONCRETE_INSTRUCTION(Parameter) |
(...skipping 1752 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6198 virtual bool IsDeletable() const { return true; } | 6206 virtual bool IsDeletable() const { return true; } |
6199 }; | 6207 }; |
6200 | 6208 |
6201 | 6209 |
6202 #undef DECLARE_INSTRUCTION | 6210 #undef DECLARE_INSTRUCTION |
6203 #undef DECLARE_CONCRETE_INSTRUCTION | 6211 #undef DECLARE_CONCRETE_INSTRUCTION |
6204 | 6212 |
6205 } } // namespace v8::internal | 6213 } } // namespace v8::internal |
6206 | 6214 |
6207 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 6215 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
OLD | NEW |