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 2805 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2816 protected: | 2816 protected: |
2817 virtual bool DataEquals(HValue* other) V8_OVERRIDE { | 2817 virtual bool DataEquals(HValue* other) V8_OVERRIDE { |
2818 return this->map_set_.Equals(&HCheckMaps::cast(other)->map_set_); | 2818 return this->map_set_.Equals(&HCheckMaps::cast(other)->map_set_); |
2819 } | 2819 } |
2820 | 2820 |
2821 virtual int RedefinedOperandIndex() { return 0; } | 2821 virtual int RedefinedOperandIndex() { return 0; } |
2822 | 2822 |
2823 private: | 2823 private: |
2824 void Add(Handle<Map> map, Zone* zone) { | 2824 void Add(Handle<Map> map, Zone* zone) { |
2825 map_set_.Add(Unique<Map>(map), zone); | 2825 map_set_.Add(Unique<Map>(map), zone); |
2826 if (!has_migration_target_ && map->is_migration_target()) { | 2826 if (!has_migration_target_ && |
2827 map->is_migration_target() && | |
2828 map->has_migrated()) { | |
Toon Verwaest
2013/11/20 10:45:54
The map cannot both be a migration target and have
| |
2827 has_migration_target_ = true; | 2829 has_migration_target_ = true; |
2828 SetGVNFlag(kChangesNewSpacePromotion); | 2830 SetGVNFlag(kChangesNewSpacePromotion); |
2829 } | 2831 } |
2830 } | 2832 } |
2831 | 2833 |
2832 // Clients should use one of the static New* methods above. | 2834 // Clients should use one of the static New* methods above. |
2833 HCheckMaps(HValue* value, Zone *zone, HValue* typecheck) | 2835 HCheckMaps(HValue* value, Zone *zone, HValue* typecheck) |
2834 : HTemplateInstruction<2>(value->type()), | 2836 : HTemplateInstruction<2>(value->type()), |
2835 omit_(false), has_migration_target_(false) { | 2837 omit_(false), has_migration_target_(false) { |
2836 SetOperandAt(0, value); | 2838 SetOperandAt(0, value); |
(...skipping 4621 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
7458 virtual bool IsDeletable() const V8_OVERRIDE { return true; } | 7460 virtual bool IsDeletable() const V8_OVERRIDE { return true; } |
7459 }; | 7461 }; |
7460 | 7462 |
7461 | 7463 |
7462 #undef DECLARE_INSTRUCTION | 7464 #undef DECLARE_INSTRUCTION |
7463 #undef DECLARE_CONCRETE_INSTRUCTION | 7465 #undef DECLARE_CONCRETE_INSTRUCTION |
7464 | 7466 |
7465 } } // namespace v8::internal | 7467 } } // namespace v8::internal |
7466 | 7468 |
7467 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 7469 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
OLD | NEW |