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 742 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
753 virtual Representation RequiredInputRepresentation(int index) const { | 753 virtual Representation RequiredInputRepresentation(int index) const { |
754 return Representation::None(); | 754 return Representation::None(); |
755 } | 755 } |
756 | 756 |
757 DECLARE_CONCRETE_INSTRUCTION(BlockEntry, "block_entry") | 757 DECLARE_CONCRETE_INSTRUCTION(BlockEntry, "block_entry") |
758 }; | 758 }; |
759 | 759 |
760 | 760 |
761 class HDeoptimize: public HControlInstruction { | 761 class HDeoptimize: public HControlInstruction { |
762 public: | 762 public: |
763 HDeoptimize(int environment_length) | 763 explicit HDeoptimize(int environment_length) |
764 : HControlInstruction(NULL, NULL), | 764 : HControlInstruction(NULL, NULL), |
765 values_(environment_length) { } | 765 values_(environment_length) { } |
766 | 766 |
767 virtual Representation RequiredInputRepresentation(int index) const { | 767 virtual Representation RequiredInputRepresentation(int index) const { |
768 return Representation::None(); | 768 return Representation::None(); |
769 } | 769 } |
770 | 770 |
771 virtual int OperandCount() { return values_.length(); } | 771 virtual int OperandCount() { return values_.length(); } |
772 virtual HValue* OperandAt(int index) { return values_[index]; } | 772 virtual HValue* OperandAt(int index) { return values_[index]; } |
773 | 773 |
(...skipping 2756 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3530 HValue* object() { return left(); } | 3530 HValue* object() { return left(); } |
3531 HValue* key() { return right(); } | 3531 HValue* key() { return right(); } |
3532 }; | 3532 }; |
3533 | 3533 |
3534 #undef DECLARE_INSTRUCTION | 3534 #undef DECLARE_INSTRUCTION |
3535 #undef DECLARE_CONCRETE_INSTRUCTION | 3535 #undef DECLARE_CONCRETE_INSTRUCTION |
3536 | 3536 |
3537 } } // namespace v8::internal | 3537 } } // namespace v8::internal |
3538 | 3538 |
3539 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 3539 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
OLD | NEW |