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 2400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2411 if (map->IsFreeSpace()) continue; | 2411 if (map->IsFreeSpace()) continue; |
2412 | 2412 |
2413 ASSERT(map->IsMap()); | 2413 ASSERT(map->IsMap()); |
2414 if (!map->CanTransition()) continue; | 2414 if (!map->CanTransition()) continue; |
2415 | 2415 |
2416 if (map_mark.Get() && | 2416 if (map_mark.Get() && |
2417 map->attached_to_shared_function_info()) { | 2417 map->attached_to_shared_function_info()) { |
2418 // This map is used for inobject slack tracking and has been detached | 2418 // This map is used for inobject slack tracking and has been detached |
2419 // from SharedFunctionInfo during the mark phase. | 2419 // from SharedFunctionInfo during the mark phase. |
2420 // Since it survived the GC, reattach it now. | 2420 // Since it survived the GC, reattach it now. |
2421 map->unchecked_constructor()->unchecked_shared()->AttachInitialMap(map); | 2421 map->unchecked_constructor()->shared()->AttachInitialMap(map); |
2422 } | 2422 } |
2423 | 2423 |
2424 ClearNonLivePrototypeTransitions(map); | 2424 ClearNonLivePrototypeTransitions(map); |
2425 ClearNonLiveMapTransitions(map, map_mark); | 2425 ClearNonLiveMapTransitions(map, map_mark); |
2426 | 2426 |
2427 if (map_mark.Get()) { | 2427 if (map_mark.Get()) { |
2428 ClearNonLiveDependentCode(map); | 2428 ClearNonLiveDependentCode(map); |
2429 } else { | 2429 } else { |
2430 ClearAndDeoptimizeDependentCode(map); | 2430 ClearAndDeoptimizeDependentCode(map); |
2431 } | 2431 } |
(...skipping 1833 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4265 while (buffer != NULL) { | 4265 while (buffer != NULL) { |
4266 SlotsBuffer* next_buffer = buffer->next(); | 4266 SlotsBuffer* next_buffer = buffer->next(); |
4267 DeallocateBuffer(buffer); | 4267 DeallocateBuffer(buffer); |
4268 buffer = next_buffer; | 4268 buffer = next_buffer; |
4269 } | 4269 } |
4270 *buffer_address = NULL; | 4270 *buffer_address = NULL; |
4271 } | 4271 } |
4272 | 4272 |
4273 | 4273 |
4274 } } // namespace v8::internal | 4274 } } // namespace v8::internal |
OLD | NEW |