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 3273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3284 | 3284 |
3285 | 3285 |
3286 HCheckMaps* HCheckMaps::New(Zone* zone, | 3286 HCheckMaps* HCheckMaps::New(Zone* zone, |
3287 HValue* context, | 3287 HValue* context, |
3288 HValue* value, | 3288 HValue* value, |
3289 Handle<Map> map, | 3289 Handle<Map> map, |
3290 CompilationInfo* info, | 3290 CompilationInfo* info, |
3291 HValue* typecheck) { | 3291 HValue* typecheck) { |
3292 HCheckMaps* check_map = new(zone) HCheckMaps(value, zone, typecheck); | 3292 HCheckMaps* check_map = new(zone) HCheckMaps(value, zone, typecheck); |
3293 check_map->map_set_.Add(map, zone); | 3293 check_map->map_set_.Add(map, zone); |
| 3294 check_map->has_migration_target_ = map->is_migration_target(); |
3294 if (map->CanOmitMapChecks() && | 3295 if (map->CanOmitMapChecks() && |
3295 value->IsConstant() && | 3296 value->IsConstant() && |
3296 HConstant::cast(value)->InstanceOf(map)) { | 3297 HConstant::cast(value)->InstanceOf(map)) { |
3297 check_map->omit(info); | 3298 check_map->omit(info); |
3298 } | 3299 } |
3299 return check_map; | 3300 return check_map; |
3300 } | 3301 } |
3301 | 3302 |
3302 | 3303 |
3303 void HCheckMaps::FinalizeUniqueValueId() { | 3304 void HCheckMaps::FinalizeUniqueValueId() { |
(...skipping 1168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4472 break; | 4473 break; |
4473 case kExternalMemory: | 4474 case kExternalMemory: |
4474 stream->Add("[external-memory]"); | 4475 stream->Add("[external-memory]"); |
4475 break; | 4476 break; |
4476 } | 4477 } |
4477 | 4478 |
4478 stream->Add("@%d", offset()); | 4479 stream->Add("@%d", offset()); |
4479 } | 4480 } |
4480 | 4481 |
4481 } } // namespace v8::internal | 4482 } } // namespace v8::internal |
OLD | NEW |