| 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 5893 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5904 // object must be external in case of external memory access | 5904 // object must be external in case of external memory access |
| 5905 return Representation::External(); | 5905 return Representation::External(); |
| 5906 } else if (index == 1 && | 5906 } else if (index == 1 && |
| 5907 (field_representation().IsDouble() || | 5907 (field_representation().IsDouble() || |
| 5908 field_representation().IsSmi() || | 5908 field_representation().IsSmi() || |
| 5909 field_representation().IsInteger32())) { | 5909 field_representation().IsInteger32())) { |
| 5910 return field_representation(); | 5910 return field_representation(); |
| 5911 } | 5911 } |
| 5912 return Representation::Tagged(); | 5912 return Representation::Tagged(); |
| 5913 } | 5913 } |
| 5914 |
| 5915 virtual Representation observed_input_representation(int index) { |
| 5916 return RequiredInputRepresentation(index); |
| 5917 } |
| 5918 |
| 5914 virtual void HandleSideEffectDominator(GVNFlag side_effect, | 5919 virtual void HandleSideEffectDominator(GVNFlag side_effect, |
| 5915 HValue* dominator) { | 5920 HValue* dominator) { |
| 5916 ASSERT(side_effect == kChangesNewSpacePromotion); | 5921 ASSERT(side_effect == kChangesNewSpacePromotion); |
| 5917 new_space_dominator_ = dominator; | 5922 new_space_dominator_ = dominator; |
| 5918 } | 5923 } |
| 5919 virtual void PrintDataTo(StringStream* stream); | 5924 virtual void PrintDataTo(StringStream* stream); |
| 5920 | 5925 |
| 5921 void SkipWriteBarrier() { write_barrier_mode_ = SKIP_WRITE_BARRIER; } | 5926 void SkipWriteBarrier() { write_barrier_mode_ = SKIP_WRITE_BARRIER; } |
| 5922 bool IsSkipWriteBarrier() const { | 5927 bool IsSkipWriteBarrier() const { |
| 5923 return write_barrier_mode_ == SKIP_WRITE_BARRIER; | 5928 return write_barrier_mode_ == SKIP_WRITE_BARRIER; |
| (...skipping 849 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6773 virtual bool IsDeletable() const { return true; } | 6778 virtual bool IsDeletable() const { return true; } |
| 6774 }; | 6779 }; |
| 6775 | 6780 |
| 6776 | 6781 |
| 6777 #undef DECLARE_INSTRUCTION | 6782 #undef DECLARE_INSTRUCTION |
| 6778 #undef DECLARE_CONCRETE_INSTRUCTION | 6783 #undef DECLARE_CONCRETE_INSTRUCTION |
| 6779 | 6784 |
| 6780 } } // namespace v8::internal | 6785 } } // namespace v8::internal |
| 6781 | 6786 |
| 6782 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 6787 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
| OLD | NEW |