| 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 2705 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2716 static HCheckMaps* New(HValue* value, SmallMapList* maps, Zone* zone, | 2716 static HCheckMaps* New(HValue* value, SmallMapList* maps, Zone* zone, |
| 2717 HValue *typecheck = NULL) { | 2717 HValue *typecheck = NULL) { |
| 2718 HCheckMaps* check_map = new(zone) HCheckMaps(value, zone, typecheck); | 2718 HCheckMaps* check_map = new(zone) HCheckMaps(value, zone, typecheck); |
| 2719 for (int i = 0; i < maps->length(); i++) { | 2719 for (int i = 0; i < maps->length(); i++) { |
| 2720 check_map->map_set_.Add(maps->at(i), zone); | 2720 check_map->map_set_.Add(maps->at(i), zone); |
| 2721 } | 2721 } |
| 2722 check_map->map_set_.Sort(); | 2722 check_map->map_set_.Sort(); |
| 2723 return check_map; | 2723 return check_map; |
| 2724 } | 2724 } |
| 2725 | 2725 |
| 2726 static HCheckMaps* NewWithTransitions(HValue* value, Handle<Map> map, | |
| 2727 Zone* zone, CompilationInfo* info); | |
| 2728 | |
| 2729 bool CanOmitMapChecks() { return omit_; } | 2726 bool CanOmitMapChecks() { return omit_; } |
| 2730 | 2727 |
| 2731 virtual bool HasEscapingOperandAt(int index) { return false; } | 2728 virtual bool HasEscapingOperandAt(int index) { return false; } |
| 2732 virtual Representation RequiredInputRepresentation(int index) { | 2729 virtual Representation RequiredInputRepresentation(int index) { |
| 2733 return Representation::Tagged(); | 2730 return Representation::Tagged(); |
| 2734 } | 2731 } |
| 2735 virtual void HandleSideEffectDominator(GVNFlag side_effect, | 2732 virtual void HandleSideEffectDominator(GVNFlag side_effect, |
| 2736 HValue* dominator); | 2733 HValue* dominator); |
| 2737 virtual void PrintDataTo(StringStream* stream); | 2734 virtual void PrintDataTo(StringStream* stream); |
| 2738 virtual HType CalculateInferredType(); | 2735 virtual HType CalculateInferredType(); |
| (...skipping 4267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7006 virtual bool IsDeletable() const { return true; } | 7003 virtual bool IsDeletable() const { return true; } |
| 7007 }; | 7004 }; |
| 7008 | 7005 |
| 7009 | 7006 |
| 7010 #undef DECLARE_INSTRUCTION | 7007 #undef DECLARE_INSTRUCTION |
| 7011 #undef DECLARE_CONCRETE_INSTRUCTION | 7008 #undef DECLARE_CONCRETE_INSTRUCTION |
| 7012 | 7009 |
| 7013 } } // namespace v8::internal | 7010 } } // namespace v8::internal |
| 7014 | 7011 |
| 7015 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 7012 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
| OLD | NEW |