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

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

Issue 183353002: Merged r19535, r19549, r19586, r19584 into trunk branch. (Closed) Base URL: https://v8.googlecode.com/svn/trunk
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 | « src/deoptimizer.cc ('k') | 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 2600 matching lines...) Expand 10 before | Expand all | Expand 10 after
2611 2611
2612 int new_number_of_transitions = 0; 2612 int new_number_of_transitions = 0;
2613 const int header = Map::kProtoTransitionHeaderSize; 2613 const int header = Map::kProtoTransitionHeaderSize;
2614 const int proto_offset = header + Map::kProtoTransitionPrototypeOffset; 2614 const int proto_offset = header + Map::kProtoTransitionPrototypeOffset;
2615 const int map_offset = header + Map::kProtoTransitionMapOffset; 2615 const int map_offset = header + Map::kProtoTransitionMapOffset;
2616 const int step = Map::kProtoTransitionElementsPerEntry; 2616 const int step = Map::kProtoTransitionElementsPerEntry;
2617 for (int i = 0; i < number_of_transitions; i++) { 2617 for (int i = 0; i < number_of_transitions; i++) {
2618 Object* prototype = prototype_transitions->get(proto_offset + i * step); 2618 Object* prototype = prototype_transitions->get(proto_offset + i * step);
2619 Object* cached_map = prototype_transitions->get(map_offset + i * step); 2619 Object* cached_map = prototype_transitions->get(map_offset + i * step);
2620 if (IsMarked(prototype) && IsMarked(cached_map)) { 2620 if (IsMarked(prototype) && IsMarked(cached_map)) {
2621 ASSERT(!prototype->IsUndefined());
2621 int proto_index = proto_offset + new_number_of_transitions * step; 2622 int proto_index = proto_offset + new_number_of_transitions * step;
2622 int map_index = map_offset + new_number_of_transitions * step; 2623 int map_index = map_offset + new_number_of_transitions * step;
2623 if (new_number_of_transitions != i) { 2624 if (new_number_of_transitions != i) {
2624 prototype_transitions->set( 2625 prototype_transitions->set(
2625 proto_index, 2626 proto_index,
2626 prototype, 2627 prototype,
2627 UPDATE_WRITE_BARRIER); 2628 UPDATE_WRITE_BARRIER);
2628 prototype_transitions->set( 2629 prototype_transitions->set(
2629 map_index, 2630 map_index,
2630 cached_map, 2631 cached_map,
(...skipping 1765 matching lines...) Expand 10 before | Expand all | Expand 10 after
4396 while (buffer != NULL) { 4397 while (buffer != NULL) {
4397 SlotsBuffer* next_buffer = buffer->next(); 4398 SlotsBuffer* next_buffer = buffer->next();
4398 DeallocateBuffer(buffer); 4399 DeallocateBuffer(buffer);
4399 buffer = next_buffer; 4400 buffer = next_buffer;
4400 } 4401 }
4401 *buffer_address = NULL; 4402 *buffer_address = NULL;
4402 } 4403 }
4403 4404
4404 4405
4405 } } // namespace v8::internal 4406 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/deoptimizer.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698