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

Side by Side Diff: src/heap-snapshot-generator.cc

Issue 98973002: OilPan related infrastructure on the V8 side. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Add api comments. Created 7 years 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/heap-inl.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 2218 matching lines...) Expand 10 before | Expand all | Expand 10 after
2229 if (group->info == NULL) continue; 2229 if (group->info == NULL) continue;
2230 List<HeapObject*>* list = GetListMaybeDisposeInfo(group->info); 2230 List<HeapObject*>* list = GetListMaybeDisposeInfo(group->info);
2231 for (size_t j = 0; j < group->length; ++j) { 2231 for (size_t j = 0; j < group->length; ++j) {
2232 HeapObject* obj = HeapObject::cast(*group->objects[j]); 2232 HeapObject* obj = HeapObject::cast(*group->objects[j]);
2233 list->Add(obj); 2233 list->Add(obj);
2234 in_groups_.Insert(obj); 2234 in_groups_.Insert(obj);
2235 } 2235 }
2236 group->info = NULL; // Acquire info object ownership. 2236 group->info = NULL; // Acquire info object ownership.
2237 } 2237 }
2238 isolate->global_handles()->RemoveObjectGroups(); 2238 isolate->global_handles()->RemoveObjectGroups();
2239 isolate->heap()->CallGCEpilogueCallbacks(major_gc_type); 2239 isolate->heap()->CallGCEpilogueCallbacks(major_gc_type, kNoGCCallbackFlags);
2240 // Record objects that are not in ObjectGroups, but have class ID. 2240 // Record objects that are not in ObjectGroups, but have class ID.
2241 GlobalHandlesExtractor extractor(this); 2241 GlobalHandlesExtractor extractor(this);
2242 isolate->global_handles()->IterateAllRootsWithClassIds(&extractor); 2242 isolate->global_handles()->IterateAllRootsWithClassIds(&extractor);
2243 embedder_queried_ = true; 2243 embedder_queried_ = true;
2244 } 2244 }
2245 2245
2246 2246
2247 void NativeObjectsExplorer::FillImplicitReferences() { 2247 void NativeObjectsExplorer::FillImplicitReferences() {
2248 Isolate* isolate = isolate_; 2248 Isolate* isolate = isolate_;
2249 List<ImplicitRefGroup*>* groups = 2249 List<ImplicitRefGroup*>* groups =
(...skipping 812 matching lines...) Expand 10 before | Expand all | Expand 10 after
3062 writer_->AddString("\"<dummy>\""); 3062 writer_->AddString("\"<dummy>\"");
3063 for (int i = 1; i < sorted_strings.length(); ++i) { 3063 for (int i = 1; i < sorted_strings.length(); ++i) {
3064 writer_->AddCharacter(','); 3064 writer_->AddCharacter(',');
3065 SerializeString(sorted_strings[i]); 3065 SerializeString(sorted_strings[i]);
3066 if (writer_->aborted()) return; 3066 if (writer_->aborted()) return;
3067 } 3067 }
3068 } 3068 }
3069 3069
3070 3070
3071 } } // namespace v8::internal 3071 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/heap-inl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698