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

Side by Side Diff: third_party/WebKit/Source/bindings/core/v8/V8GCController.cpp

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 m_liveRootGroupIdSet = true; 230 m_liveRootGroupIdSet = true;
231 ++m_domObjectsWithPendingActivity; 231 ++m_domObjectsWithPendingActivity;
232 } 232 }
233 return id; 233 return id;
234 } 234 }
235 235
236 v8::Isolate* m_isolate; 236 v8::Isolate* m_isolate;
237 // v8 guarantees that Blink will not regain control while a v8 GC runs 237 // v8 guarantees that Blink will not regain control while a v8 GC runs
238 // (=> no Oilpan GCs will be triggered), hence raw, untraced members 238 // (=> no Oilpan GCs will be triggered), hence raw, untraced members
239 // can safely be kept here. 239 // can safely be kept here.
240 Vector<RawPtrWillBeUntracedMember<Node>> m_groupsWhichNeedRetainerInfo; 240 Vector<UntracedMember<Node>> m_groupsWhichNeedRetainerInfo;
241 int m_domObjectsWithPendingActivity; 241 int m_domObjectsWithPendingActivity;
242 bool m_liveRootGroupIdSet; 242 bool m_liveRootGroupIdSet;
243 bool m_constructRetainedObjectInfos; 243 bool m_constructRetainedObjectInfos;
244 }; 244 };
245 245
246 static unsigned long long usedHeapSize(v8::Isolate* isolate) 246 static unsigned long long usedHeapSize(v8::Isolate* isolate)
247 { 247 {
248 v8::HeapStatistics heapStatistics; 248 v8::HeapStatistics heapStatistics;
249 isolate->GetHeapStatistics(&heapStatistics); 249 isolate->GetHeapStatistics(&heapStatistics);
250 return heapStatistics.used_heap_size(); 250 return heapStatistics.used_heap_size();
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
424 Visitor* m_visitor; 424 Visitor* m_visitor;
425 }; 425 };
426 426
427 void V8GCController::traceDOMWrappers(v8::Isolate* isolate, Visitor* visitor) 427 void V8GCController::traceDOMWrappers(v8::Isolate* isolate, Visitor* visitor)
428 { 428 {
429 DOMWrapperTracer tracer(visitor); 429 DOMWrapperTracer tracer(visitor);
430 isolate->VisitHandlesWithClassIds(&tracer); 430 isolate->VisitHandlesWithClassIds(&tracer);
431 } 431 }
432 432
433 } // namespace blink 433 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698