| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 773 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 784 virtual Representation RequiredInputRepresentation(int index) const { | 784 virtual Representation RequiredInputRepresentation(int index) const { |
| 785 return Representation::None(); | 785 return Representation::None(); |
| 786 } | 786 } |
| 787 | 787 |
| 788 DECLARE_CONCRETE_INSTRUCTION(BlockEntry, "block_entry") | 788 DECLARE_CONCRETE_INSTRUCTION(BlockEntry, "block_entry") |
| 789 }; | 789 }; |
| 790 | 790 |
| 791 | 791 |
| 792 class HDeoptimize: public HControlInstruction { | 792 class HDeoptimize: public HControlInstruction { |
| 793 public: | 793 public: |
| 794 HDeoptimize(int environment_length) | 794 explicit HDeoptimize(int environment_length) |
| 795 : HControlInstruction(NULL, NULL), | 795 : HControlInstruction(NULL, NULL), |
| 796 values_(environment_length) { } | 796 values_(environment_length) { } |
| 797 | 797 |
| 798 virtual Representation RequiredInputRepresentation(int index) const { | 798 virtual Representation RequiredInputRepresentation(int index) const { |
| 799 return Representation::None(); | 799 return Representation::None(); |
| 800 } | 800 } |
| 801 | 801 |
| 802 virtual int OperandCount() { return values_.length(); } | 802 virtual int OperandCount() { return values_.length(); } |
| 803 virtual HValue* OperandAt(int index) { return values_[index]; } | 803 virtual HValue* OperandAt(int index) { return values_[index]; } |
| 804 | 804 |
| (...skipping 2702 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3507 HValue* object() { return left(); } | 3507 HValue* object() { return left(); } |
| 3508 HValue* key() { return right(); } | 3508 HValue* key() { return right(); } |
| 3509 }; | 3509 }; |
| 3510 | 3510 |
| 3511 #undef DECLARE_INSTRUCTION | 3511 #undef DECLARE_INSTRUCTION |
| 3512 #undef DECLARE_CONCRETE_INSTRUCTION | 3512 #undef DECLARE_CONCRETE_INSTRUCTION |
| 3513 | 3513 |
| 3514 } } // namespace v8::internal | 3514 } } // namespace v8::internal |
| 3515 | 3515 |
| 3516 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 3516 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
| OLD | NEW |