Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Side by Side Diff: src/mark-compact.cc

Issue 186653002: Merged r19586 into 3.23 branch. (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.23
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/objects.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 2576 matching lines...) Expand 10 before | Expand all | Expand 10 after
2587 2587
2588 int new_number_of_transitions = 0; 2588 int new_number_of_transitions = 0;
2589 const int header = Map::kProtoTransitionHeaderSize; 2589 const int header = Map::kProtoTransitionHeaderSize;
2590 const int proto_offset = header + Map::kProtoTransitionPrototypeOffset; 2590 const int proto_offset = header + Map::kProtoTransitionPrototypeOffset;
2591 const int map_offset = header + Map::kProtoTransitionMapOffset; 2591 const int map_offset = header + Map::kProtoTransitionMapOffset;
2592 const int step = Map::kProtoTransitionElementsPerEntry; 2592 const int step = Map::kProtoTransitionElementsPerEntry;
2593 for (int i = 0; i < number_of_transitions; i++) { 2593 for (int i = 0; i < number_of_transitions; i++) {
2594 Object* prototype = prototype_transitions->get(proto_offset + i * step); 2594 Object* prototype = prototype_transitions->get(proto_offset + i * step);
2595 Object* cached_map = prototype_transitions->get(map_offset + i * step); 2595 Object* cached_map = prototype_transitions->get(map_offset + i * step);
2596 if (IsMarked(prototype) && IsMarked(cached_map)) { 2596 if (IsMarked(prototype) && IsMarked(cached_map)) {
2597 ASSERT(!prototype->IsUndefined());
2597 int proto_index = proto_offset + new_number_of_transitions * step; 2598 int proto_index = proto_offset + new_number_of_transitions * step;
2598 int map_index = map_offset + new_number_of_transitions * step; 2599 int map_index = map_offset + new_number_of_transitions * step;
2599 if (new_number_of_transitions != i) { 2600 if (new_number_of_transitions != i) {
2600 prototype_transitions->set( 2601 prototype_transitions->set(
2601 proto_index, 2602 proto_index,
2602 prototype, 2603 prototype,
2603 UPDATE_WRITE_BARRIER); 2604 UPDATE_WRITE_BARRIER);
2604 prototype_transitions->set( 2605 prototype_transitions->set(
2605 map_index, 2606 map_index,
2606 cached_map, 2607 cached_map,
(...skipping 1760 matching lines...) Expand 10 before | Expand all | Expand 10 after
4367 while (buffer != NULL) { 4368 while (buffer != NULL) {
4368 SlotsBuffer* next_buffer = buffer->next(); 4369 SlotsBuffer* next_buffer = buffer->next();
4369 DeallocateBuffer(buffer); 4370 DeallocateBuffer(buffer);
4370 buffer = next_buffer; 4371 buffer = next_buffer;
4371 } 4372 }
4372 *buffer_address = NULL; 4373 *buffer_address = NULL;
4373 } 4374 }
4374 4375
4375 4376
4376 } } // namespace v8::internal 4377 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698