| 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 2671 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2682 protected: | 2682 protected: |
| 2683 virtual bool DataEquals(HValue* other) V8_OVERRIDE { | 2683 virtual bool DataEquals(HValue* other) V8_OVERRIDE { |
| 2684 return this->map_set_.Equals(&HCheckMaps::cast(other)->map_set_); | 2684 return this->map_set_.Equals(&HCheckMaps::cast(other)->map_set_); |
| 2685 } | 2685 } |
| 2686 | 2686 |
| 2687 virtual int RedefinedOperandIndex() { return 0; } | 2687 virtual int RedefinedOperandIndex() { return 0; } |
| 2688 | 2688 |
| 2689 private: | 2689 private: |
| 2690 void Add(Handle<Map> map, Zone* zone) { | 2690 void Add(Handle<Map> map, Zone* zone) { |
| 2691 map_set_.Add(Unique<Map>(map), zone); | 2691 map_set_.Add(Unique<Map>(map), zone); |
| 2692 if (!has_migration_target_ && map->is_migration_target()) { | 2692 if (!has_migration_target_ && |
| 2693 map->is_migration_target() && |
| 2694 map->has_migrated()) { |
| 2693 has_migration_target_ = true; | 2695 has_migration_target_ = true; |
| 2694 SetGVNFlag(kChangesNewSpacePromotion); | 2696 SetGVNFlag(kChangesNewSpacePromotion); |
| 2695 } | 2697 } |
| 2696 } | 2698 } |
| 2697 | 2699 |
| 2698 // Clients should use one of the static New* methods above. | 2700 // Clients should use one of the static New* methods above. |
| 2699 HCheckMaps(HValue* value, Zone *zone, HValue* typecheck) | 2701 HCheckMaps(HValue* value, Zone *zone, HValue* typecheck) |
| 2700 : HTemplateInstruction<2>(value->type()), | 2702 : HTemplateInstruction<2>(value->type()), |
| 2701 omit_(false), has_migration_target_(false) { | 2703 omit_(false), has_migration_target_(false) { |
| 2702 SetOperandAt(0, value); | 2704 SetOperandAt(0, value); |
| (...skipping 4487 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7190 virtual bool IsDeletable() const V8_OVERRIDE { return true; } | 7192 virtual bool IsDeletable() const V8_OVERRIDE { return true; } |
| 7191 }; | 7193 }; |
| 7192 | 7194 |
| 7193 | 7195 |
| 7194 #undef DECLARE_INSTRUCTION | 7196 #undef DECLARE_INSTRUCTION |
| 7195 #undef DECLARE_CONCRETE_INSTRUCTION | 7197 #undef DECLARE_CONCRETE_INSTRUCTION |
| 7196 | 7198 |
| 7197 } } // namespace v8::internal | 7199 } } // namespace v8::internal |
| 7198 | 7200 |
| 7199 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 7201 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
| OLD | NEW |