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

Side by Side Diff: Source/platform/heap/HeapTest.cpp

Issue 1149943003: Oilpan: Rename weak callback related methods (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 7 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 | « Source/platform/heap/HeapAllocator.h ('k') | Source/platform/heap/MarkingVisitor.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 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 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 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 m_count++; 279 m_count++;
280 } 280 }
281 281
282 virtual void markHeader(HeapObjectHeader* header, TraceCallback callback) ov erride 282 virtual void markHeader(HeapObjectHeader* header, TraceCallback callback) ov erride
283 { 283 {
284 ASSERT(header->payload()); 284 ASSERT(header->payload());
285 m_count++; 285 m_count++;
286 } 286 }
287 287
288 virtual void registerDelayedMarkNoTracing(const void*) override { } 288 virtual void registerDelayedMarkNoTracing(const void*) override { }
289 virtual void registerWeakMembers(const void*, const void*, WeakPointerCallba ck) override { } 289 virtual void registerWeakMembers(const void*, const void*, WeakCallback) ove rride { }
290 virtual void registerWeakTable(const void*, EphemeronCallback, EphemeronCall back) override { } 290 virtual void registerWeakTable(const void*, EphemeronCallback, EphemeronCall back) override { }
291 #if ENABLE(ASSERT) 291 #if ENABLE(ASSERT)
292 virtual bool weakTableRegistered(const void*) override { return false; } 292 virtual bool weakTableRegistered(const void*) override { return false; }
293 #endif 293 #endif
294 virtual void registerWeakCellWithCallback(void**, WeakPointerCallback) overr ide { } 294 virtual void registerWeakCellWithCallback(void**, WeakCallback) override { }
295 #if ENABLE(GC_PROFILING) 295 #if ENABLE(GC_PROFILING)
296 virtual void recordObjectGraphEdge(const void*) override { } 296 virtual void recordObjectGraphEdge(const void*) override { }
297 #endif 297 #endif
298 virtual bool isMarked(const void*) override { return false; } 298 virtual bool isMarked(const void*) override { return false; }
299 virtual bool ensureMarked(const void* objectPointer) override 299 virtual bool ensureMarked(const void* objectPointer) override
300 { 300 {
301 if (!objectPointer || isMarked(objectPointer)) 301 if (!objectPointer || isMarked(objectPointer))
302 return false; 302 return false;
303 markNoTracing(objectPointer); 303 markNoTracing(objectPointer);
304 return true; 304 return true;
(...skipping 5777 matching lines...) Expand 10 before | Expand all | Expand 10 after
6082 { 6082 {
6083 Persistent<ClassWithMember> object = ClassWithMember::create(); 6083 Persistent<ClassWithMember> object = ClassWithMember::create();
6084 EXPECT_EQ(0, object->traceCount()); 6084 EXPECT_EQ(0, object->traceCount());
6085 TestMixinAllocatingObject* mixin = TestMixinAllocatingObject::create(object. get()); 6085 TestMixinAllocatingObject* mixin = TestMixinAllocatingObject::create(object. get());
6086 EXPECT_TRUE(mixin); 6086 EXPECT_TRUE(mixin);
6087 EXPECT_GT(object->traceCount(), 0); 6087 EXPECT_GT(object->traceCount(), 0);
6088 EXPECT_GT(mixin->traceCount(), 0); 6088 EXPECT_GT(mixin->traceCount(), 0);
6089 } 6089 }
6090 6090
6091 } // namespace blink 6091 } // namespace blink
OLDNEW
« no previous file with comments | « Source/platform/heap/HeapAllocator.h ('k') | Source/platform/heap/MarkingVisitor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698