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 5575 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5586 SetFlag(kTrackSideEffectDominators); | 5586 SetFlag(kTrackSideEffectDominators); |
5587 if (FLAG_track_double_fields && field_representation.IsDouble()) { | 5587 if (FLAG_track_double_fields && field_representation.IsDouble()) { |
5588 SetGVNFlag(kChangesDoubleFields); | 5588 SetGVNFlag(kChangesDoubleFields); |
5589 } else if (is_in_object_) { | 5589 } else if (is_in_object_) { |
5590 SetGVNFlag(kChangesInobjectFields); | 5590 SetGVNFlag(kChangesInobjectFields); |
5591 SetGVNFlag(kDependsOnNewSpacePromotion); | 5591 SetGVNFlag(kDependsOnNewSpacePromotion); |
5592 } else { | 5592 } else { |
5593 SetGVNFlag(kChangesBackingStoreFields); | 5593 SetGVNFlag(kChangesBackingStoreFields); |
5594 SetGVNFlag(kDependsOnNewSpacePromotion); | 5594 SetGVNFlag(kDependsOnNewSpacePromotion); |
5595 } | 5595 } |
| 5596 SetFlag(kDeoptimizeOnUndefined); |
5596 } | 5597 } |
5597 | 5598 |
5598 DECLARE_CONCRETE_INSTRUCTION(StoreNamedField) | 5599 DECLARE_CONCRETE_INSTRUCTION(StoreNamedField) |
5599 | 5600 |
5600 virtual Representation RequiredInputRepresentation(int index) { | 5601 virtual Representation RequiredInputRepresentation(int index) { |
5601 if (FLAG_track_double_fields && | 5602 if (FLAG_track_double_fields && |
5602 index == 1 && field_representation_.IsDouble()) { | 5603 index == 1 && field_representation_.IsDouble()) { |
5603 return field_representation_; | 5604 return field_representation_; |
5604 } else if (FLAG_track_fields && | 5605 } else if (FLAG_track_fields && |
5605 index == 1 && field_representation_.IsSmi()) { | 5606 index == 1 && field_representation_.IsSmi()) { |
(...skipping 855 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6461 virtual bool IsDeletable() const { return true; } | 6462 virtual bool IsDeletable() const { return true; } |
6462 }; | 6463 }; |
6463 | 6464 |
6464 | 6465 |
6465 #undef DECLARE_INSTRUCTION | 6466 #undef DECLARE_INSTRUCTION |
6466 #undef DECLARE_CONCRETE_INSTRUCTION | 6467 #undef DECLARE_CONCRETE_INSTRUCTION |
6467 | 6468 |
6468 } } // namespace v8::internal | 6469 } } // namespace v8::internal |
6469 | 6470 |
6470 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 6471 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
OLD | NEW |