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

Side by Side Diff: third_party/WebKit/Source/platform/heap/Visitor.h

Issue 2619493003: Replace ASSERTs in platform/heap/ with DCHECKs
Patch Set: temp Created 3 years, 11 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) 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 352 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 // if objects pointed to are alive it is crucial that the object 363 // if objects pointed to are alive it is crucial that the object
364 // pointed to belong to the same thread as the object receiving 364 // pointed to belong to the same thread as the object receiving
365 // the weak callback. Since other threads have been resumed the 365 // the weak callback. Since other threads have been resumed the
366 // mark bits are not valid for objects from other threads. 366 // mark bits are not valid for objects from other threads.
367 virtual void registerWeakMembers(const void*, const void*, WeakCallback) = 0; 367 virtual void registerWeakMembers(const void*, const void*, WeakCallback) = 0;
368 using VisitorHelper<Visitor>::registerWeakMembers; 368 using VisitorHelper<Visitor>::registerWeakMembers;
369 369
370 virtual void registerWeakTable(const void*, 370 virtual void registerWeakTable(const void*,
371 EphemeronCallback, 371 EphemeronCallback,
372 EphemeronCallback) = 0; 372 EphemeronCallback) = 0;
373 #if ENABLE(ASSERT) 373 #if DCHECK_IS_ON()
374 virtual bool weakTableRegistered(const void*) = 0; 374 virtual bool weakTableRegistered(const void*) = 0;
375 #endif 375 #endif
376 376
377 virtual bool ensureMarked(const void*) = 0; 377 virtual bool ensureMarked(const void*) = 0;
378 378
379 virtual void registerMovingObjectReference(MovableReference*) = 0; 379 virtual void registerMovingObjectReference(MovableReference*) = 0;
380 380
381 virtual void registerMovingObjectCallback(MovableReference, 381 virtual void registerMovingObjectCallback(MovableReference,
382 MovingObjectCallback, 382 MovingObjectCallback,
383 void*) = 0; 383 void*) = 0;
(...skipping 14 matching lines...) Expand all
398 static Visitor* fromHelper(VisitorHelper<Visitor>* helper) { 398 static Visitor* fromHelper(VisitorHelper<Visitor>* helper) {
399 return static_cast<Visitor*>(helper); 399 return static_cast<Visitor*>(helper);
400 } 400 }
401 401
402 const MarkingMode m_markingMode; 402 const MarkingMode m_markingMode;
403 }; 403 };
404 404
405 } // namespace blink 405 } // namespace blink
406 406
407 #endif // Visitor_h 407 #endif // Visitor_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698