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 1658 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1669 } | 1669 } |
1670 | 1670 |
1671 virtual bool HasEscapingOperandAt(int index) V8_OVERRIDE { return false; } | 1671 virtual bool HasEscapingOperandAt(int index) V8_OVERRIDE { return false; } |
1672 virtual Representation RequiredInputRepresentation(int index) V8_OVERRIDE { | 1672 virtual Representation RequiredInputRepresentation(int index) V8_OVERRIDE { |
1673 return Representation::None(); | 1673 return Representation::None(); |
1674 } | 1674 } |
1675 | 1675 |
1676 void MergeWith(ZoneList<HSimulate*>* list); | 1676 void MergeWith(ZoneList<HSimulate*>* list); |
1677 bool is_candidate_for_removal() { return removable_ == REMOVABLE_SIMULATE; } | 1677 bool is_candidate_for_removal() { return removable_ == REMOVABLE_SIMULATE; } |
1678 | 1678 |
| 1679 // Replay effects of this instruction on the given environment. |
| 1680 void ReplayEnvironment(HEnvironment* env); |
| 1681 |
1679 DECLARE_CONCRETE_INSTRUCTION(Simulate) | 1682 DECLARE_CONCRETE_INSTRUCTION(Simulate) |
1680 | 1683 |
1681 #ifdef DEBUG | 1684 #ifdef DEBUG |
1682 virtual void Verify() V8_OVERRIDE; | 1685 virtual void Verify() V8_OVERRIDE; |
1683 void set_closure(Handle<JSFunction> closure) { closure_ = closure; } | 1686 void set_closure(Handle<JSFunction> closure) { closure_ = closure; } |
1684 Handle<JSFunction> closure() const { return closure_; } | 1687 Handle<JSFunction> closure() const { return closure_; } |
1685 #endif | 1688 #endif |
1686 | 1689 |
1687 protected: | 1690 protected: |
1688 virtual void InternalSetOperandAt(int index, HValue* value) V8_OVERRIDE { | 1691 virtual void InternalSetOperandAt(int index, HValue* value) V8_OVERRIDE { |
(...skipping 5110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6799 virtual bool IsDeletable() const V8_OVERRIDE { return true; } | 6802 virtual bool IsDeletable() const V8_OVERRIDE { return true; } |
6800 }; | 6803 }; |
6801 | 6804 |
6802 | 6805 |
6803 #undef DECLARE_INSTRUCTION | 6806 #undef DECLARE_INSTRUCTION |
6804 #undef DECLARE_CONCRETE_INSTRUCTION | 6807 #undef DECLARE_CONCRETE_INSTRUCTION |
6805 | 6808 |
6806 } } // namespace v8::internal | 6809 } } // namespace v8::internal |
6807 | 6810 |
6808 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 6811 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
OLD | NEW |