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

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

Issue 104023011: Introduce kGCCallbackForced flag. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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
« include/v8.h ('K') | « 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 2110 matching lines...) Expand 10 before | Expand all | Expand 10 after
2121 if (group->info == NULL) continue; 2121 if (group->info == NULL) continue;
2122 List<HeapObject*>* list = GetListMaybeDisposeInfo(group->info); 2122 List<HeapObject*>* list = GetListMaybeDisposeInfo(group->info);
2123 for (size_t j = 0; j < group->length; ++j) { 2123 for (size_t j = 0; j < group->length; ++j) {
2124 HeapObject* obj = HeapObject::cast(*group->objects[j]); 2124 HeapObject* obj = HeapObject::cast(*group->objects[j]);
2125 list->Add(obj); 2125 list->Add(obj);
2126 in_groups_.Insert(obj); 2126 in_groups_.Insert(obj);
2127 } 2127 }
2128 group->info = NULL; // Acquire info object ownership. 2128 group->info = NULL; // Acquire info object ownership.
2129 } 2129 }
2130 isolate->global_handles()->RemoveObjectGroups(); 2130 isolate->global_handles()->RemoveObjectGroups();
2131 isolate->heap()->CallGCEpilogueCallbacks(major_gc_type); 2131 isolate->heap()->CallGCEpilogueCallbacks(major_gc_type, kNoGCCallbackFlags);
2132 // Record objects that are not in ObjectGroups, but have class ID. 2132 // Record objects that are not in ObjectGroups, but have class ID.
2133 GlobalHandlesExtractor extractor(this); 2133 GlobalHandlesExtractor extractor(this);
2134 isolate->global_handles()->IterateAllRootsWithClassIds(&extractor); 2134 isolate->global_handles()->IterateAllRootsWithClassIds(&extractor);
2135 embedder_queried_ = true; 2135 embedder_queried_ = true;
2136 } 2136 }
2137 2137
2138 2138
2139 void NativeObjectsExplorer::FillImplicitReferences() { 2139 void NativeObjectsExplorer::FillImplicitReferences() {
2140 Isolate* isolate = isolate_; 2140 Isolate* isolate = isolate_;
2141 List<ImplicitRefGroup*>* groups = 2141 List<ImplicitRefGroup*>* groups =
(...skipping 812 matching lines...) Expand 10 before | Expand all | Expand 10 after
2954 writer_->AddString("\"<dummy>\""); 2954 writer_->AddString("\"<dummy>\"");
2955 for (int i = 1; i < sorted_strings.length(); ++i) { 2955 for (int i = 1; i < sorted_strings.length(); ++i) {
2956 writer_->AddCharacter(','); 2956 writer_->AddCharacter(',');
2957 SerializeString(sorted_strings[i]); 2957 SerializeString(sorted_strings[i]);
2958 if (writer_->aborted()) return; 2958 if (writer_->aborted()) return;
2959 } 2959 }
2960 } 2960 }
2961 2961
2962 2962
2963 } } // namespace v8::internal 2963 } } // namespace v8::internal
OLDNEW
« include/v8.h ('K') | « src/heap-inl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698