OLD | NEW |
---|---|
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 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
227 v8::UniqueId id(*idPointer); | 227 v8::UniqueId id(*idPointer); |
228 if (!m_liveRootGroupIdSet) { | 228 if (!m_liveRootGroupIdSet) { |
229 m_isolate->SetObjectGroupId(liveRoot, id); | 229 m_isolate->SetObjectGroupId(liveRoot, id); |
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 WillBePersistentHeapVector<RawPtrWillBeMember<Node>> m_groupsWhichNeedRetain erInfo; | 237 Vector<RawPtrWillBeUntracedMember<Node>> m_groupsWhichNeedRetainerInfo; |
haraken
2015/12/30 16:00:14
Maybe worth adding a comment to explain why we nee
sof
2015/12/30 16:08:01
added explanatory comment.
| |
238 int m_domObjectsWithPendingActivity; | 238 int m_domObjectsWithPendingActivity; |
239 bool m_liveRootGroupIdSet; | 239 bool m_liveRootGroupIdSet; |
240 bool m_constructRetainedObjectInfos; | 240 bool m_constructRetainedObjectInfos; |
241 }; | 241 }; |
242 | 242 |
243 static unsigned long long usedHeapSize(v8::Isolate* isolate) | 243 static unsigned long long usedHeapSize(v8::Isolate* isolate) |
244 { | 244 { |
245 v8::HeapStatistics heapStatistics; | 245 v8::HeapStatistics heapStatistics; |
246 isolate->GetHeapStatistics(&heapStatistics); | 246 isolate->GetHeapStatistics(&heapStatistics); |
247 return heapStatistics.used_heap_size(); | 247 return heapStatistics.used_heap_size(); |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
445 Visitor* m_visitor; | 445 Visitor* m_visitor; |
446 }; | 446 }; |
447 | 447 |
448 void V8GCController::traceDOMWrappers(v8::Isolate* isolate, Visitor* visitor) | 448 void V8GCController::traceDOMWrappers(v8::Isolate* isolate, Visitor* visitor) |
449 { | 449 { |
450 DOMWrapperTracer tracer(visitor); | 450 DOMWrapperTracer tracer(visitor); |
451 isolate->VisitHandlesWithClassIds(&tracer); | 451 isolate->VisitHandlesWithClassIds(&tracer); |
452 } | 452 } |
453 | 453 |
454 } // namespace blink | 454 } // namespace blink |
OLD | NEW |