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

Side by Side Diff: third_party/WebKit/Source/platform/heap/ThreadState.cpp

Issue 1826733002: Remove ASSERT_WITH_MESSAGE family. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 839 matching lines...) Expand 10 before | Expand all | Expand 10 after
850 if (isSweepingInProgress()) { 850 if (isSweepingInProgress()) {
851 setGCState(SweepingAndPreciseGCScheduled); 851 setGCState(SweepingAndPreciseGCScheduled);
852 return; 852 return;
853 } 853 }
854 854
855 setGCState(PreciseGCScheduled); 855 setGCState(PreciseGCScheduled);
856 } 856 }
857 857
858 namespace { 858 namespace {
859 859
860 #define UNEXPECTED_GCSTATE(s) case ThreadState::s: RELEASE_ASSERT_WITH_MESSAGE(f alse, "Unexpected transition while in GCState " #s); return 860 #define UNEXPECTED_GCSTATE(s) case ThreadState::s: RELEASE_NOTREACHED() << "Unex pected transition while in GCState " #s; return
861 861
862 void unexpectedGCState(ThreadState::GCState gcState) 862 void unexpectedGCState(ThreadState::GCState gcState)
863 { 863 {
864 switch (gcState) { 864 switch (gcState) {
865 UNEXPECTED_GCSTATE(NoGCScheduled); 865 UNEXPECTED_GCSTATE(NoGCScheduled);
866 UNEXPECTED_GCSTATE(IdleGCScheduled); 866 UNEXPECTED_GCSTATE(IdleGCScheduled);
867 UNEXPECTED_GCSTATE(PreciseGCScheduled); 867 UNEXPECTED_GCSTATE(PreciseGCScheduled);
868 UNEXPECTED_GCSTATE(FullGCScheduled); 868 UNEXPECTED_GCSTATE(FullGCScheduled);
869 UNEXPECTED_GCSTATE(GCRunning); 869 UNEXPECTED_GCSTATE(GCRunning);
870 UNEXPECTED_GCSTATE(EagerSweepScheduled); 870 UNEXPECTED_GCSTATE(EagerSweepScheduled);
(...skipping 686 matching lines...) Expand 10 before | Expand all | Expand 10 after
1557 threadDump->addScalar("dead_count", "objects", totalDeadCount); 1557 threadDump->addScalar("dead_count", "objects", totalDeadCount);
1558 threadDump->addScalar("live_size", "bytes", totalLiveSize); 1558 threadDump->addScalar("live_size", "bytes", totalLiveSize);
1559 threadDump->addScalar("dead_size", "bytes", totalDeadSize); 1559 threadDump->addScalar("dead_size", "bytes", totalDeadSize);
1560 1560
1561 WebMemoryAllocatorDump* heapsDump = BlinkGCMemoryDumpProvider::instance()->c reateMemoryAllocatorDumpForCurrentGC(heapsDumpName); 1561 WebMemoryAllocatorDump* heapsDump = BlinkGCMemoryDumpProvider::instance()->c reateMemoryAllocatorDumpForCurrentGC(heapsDumpName);
1562 WebMemoryAllocatorDump* classesDump = BlinkGCMemoryDumpProvider::instance()- >createMemoryAllocatorDumpForCurrentGC(classesDumpName); 1562 WebMemoryAllocatorDump* classesDump = BlinkGCMemoryDumpProvider::instance()- >createMemoryAllocatorDumpForCurrentGC(classesDumpName);
1563 BlinkGCMemoryDumpProvider::instance()->currentProcessMemoryDump()->addOwners hipEdge(classesDump->guid(), heapsDump->guid()); 1563 BlinkGCMemoryDumpProvider::instance()->currentProcessMemoryDump()->addOwners hipEdge(classesDump->guid(), heapsDump->guid());
1564 } 1564 }
1565 1565
1566 } // namespace blink 1566 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698