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

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

Issue 6193002: Fix presubmit issues introduced by r6230. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/gc
Patch Set: Created 9 years, 11 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/spaces.h » ('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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 1184 matching lines...) Expand 10 before | Expand all | Expand 10 after
1195 List<ObjectGroup*>* object_groups = GlobalHandles::ObjectGroups(); 1195 List<ObjectGroup*>* object_groups = GlobalHandles::ObjectGroups();
1196 1196
1197 for (int i = 0; i < object_groups->length(); i++) { 1197 for (int i = 0; i < object_groups->length(); i++) {
1198 ObjectGroup* entry = object_groups->at(i); 1198 ObjectGroup* entry = object_groups->at(i);
1199 if (entry == NULL) continue; 1199 if (entry == NULL) continue;
1200 1200
1201 List<Object**>& objects = entry->objects_; 1201 List<Object**>& objects = entry->objects_;
1202 bool group_marked = false; 1202 bool group_marked = false;
1203 for (int j = 0; j < objects.length(); j++) { 1203 for (int j = 0; j < objects.length(); j++) {
1204 Object* object = *objects[j]; 1204 Object* object = *objects[j];
1205 if (object->IsHeapObject() && Marking::IsMarked(HeapObject::cast(object))) { 1205 if (object->IsHeapObject()
1206 && Marking::IsMarked(HeapObject::cast(object))) {
1206 group_marked = true; 1207 group_marked = true;
1207 break; 1208 break;
1208 } 1209 }
1209 } 1210 }
1210 1211
1211 if (!group_marked) continue; 1212 if (!group_marked) continue;
1212 1213
1213 // An object in the group is marked, so mark as gray all white heap 1214 // An object in the group is marked, so mark as gray all white heap
1214 // objects in the group. 1215 // objects in the group.
1215 for (int j = 0; j < objects.length(); ++j) { 1216 for (int j = 0; j < objects.length(); ++j) {
(...skipping 730 matching lines...) Expand 10 before | Expand all | Expand 10 after
1946 } 1947 }
1947 1948
1948 1949
1949 void MarkCompactCollector::Initialize() { 1950 void MarkCompactCollector::Initialize() {
1950 StaticPointersToNewGenUpdatingVisitor::Initialize(); 1951 StaticPointersToNewGenUpdatingVisitor::Initialize();
1951 StaticMarkingVisitor::Initialize(); 1952 StaticMarkingVisitor::Initialize();
1952 } 1953 }
1953 1954
1954 1955
1955 } } // namespace v8::internal 1956 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/spaces.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698