| 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 2833 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2844 } | 2844 } |
| 2845 | 2845 |
| 2846 | 2846 |
| 2847 HCheckMaps* HCheckMaps::New(Zone* zone, | 2847 HCheckMaps* HCheckMaps::New(Zone* zone, |
| 2848 HValue* context, | 2848 HValue* context, |
| 2849 HValue* value, | 2849 HValue* value, |
| 2850 Handle<Map> map, | 2850 Handle<Map> map, |
| 2851 CompilationInfo* info, | 2851 CompilationInfo* info, |
| 2852 HValue* typecheck) { | 2852 HValue* typecheck) { |
| 2853 HCheckMaps* check_map = new(zone) HCheckMaps(value, zone, typecheck); | 2853 HCheckMaps* check_map = new(zone) HCheckMaps(value, zone, typecheck); |
| 2854 check_map->map_set_.Add(map, zone); | 2854 check_map->Add(map, zone); |
| 2855 check_map->has_migration_target_ = map->is_migration_target(); | |
| 2856 if (map->CanOmitMapChecks() && | 2855 if (map->CanOmitMapChecks() && |
| 2857 value->IsConstant() && | 2856 value->IsConstant() && |
| 2858 HConstant::cast(value)->InstanceOf(map)) { | 2857 HConstant::cast(value)->InstanceOf(map)) { |
| 2859 check_map->omit(info); | 2858 check_map->omit(info); |
| 2860 } | 2859 } |
| 2861 return check_map; | 2860 return check_map; |
| 2862 } | 2861 } |
| 2863 | 2862 |
| 2864 | 2863 |
| 2865 void HCheckMaps::FinalizeUniqueValueId() { | 2864 void HCheckMaps::FinalizeUniqueValueId() { |
| (...skipping 1132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3998 break; | 3997 break; |
| 3999 case kExternalMemory: | 3998 case kExternalMemory: |
| 4000 stream->Add("[external-memory]"); | 3999 stream->Add("[external-memory]"); |
| 4001 break; | 4000 break; |
| 4002 } | 4001 } |
| 4003 | 4002 |
| 4004 stream->Add("@%d", offset()); | 4003 stream->Add("@%d", offset()); |
| 4005 } | 4004 } |
| 4006 | 4005 |
| 4007 } } // namespace v8::internal | 4006 } } // namespace v8::internal |
| OLD | NEW |