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

Side by Side Diff: Source/platform/heap/ThreadState.h

Issue 634243004: Oilpan: Simplify Heap::allocate (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 2 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/HeapTest.cpp ('k') | Source/platform/heap/ThreadState.cpp » ('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 664 matching lines...) Expand 10 before | Expand all | Expand 10 after
675 size_t getClassTag(const GCInfo*); 675 size_t getClassTag(const GCInfo*);
676 }; 676 };
677 677
678 void snapshot(); 678 void snapshot();
679 #endif 679 #endif
680 680
681 void pushWeakObjectPointerCallback(void*, WeakPointerCallback); 681 void pushWeakObjectPointerCallback(void*, WeakPointerCallback);
682 bool popAndInvokeWeakPointerCallback(Visitor*); 682 bool popAndInvokeWeakPointerCallback(Visitor*);
683 683
684 void getStats(HeapStats&); 684 void getStats(HeapStats&);
685 void getStatsForTesting(HeapStats&);
685 HeapStats& stats() { return m_stats; } 686 HeapStats& stats() { return m_stats; }
686 HeapStats& statsAfterLastGC() { return m_statsAfterLastGC; } 687 HeapStats& statsAfterLastGC() { return m_statsAfterLastGC; }
687 688
688 void setupHeapsForTermination(); 689 void setupHeapsForTermination();
689 690
690 void registerSweepingTask(); 691 void registerSweepingTask();
691 void unregisterSweepingTask(); 692 void unregisterSweepingTask();
692 693
693 // Request to call a pref-finalizer of the target object before the object 694 // Request to call a pref-finalizer of the target object before the object
694 // is destructed. The class T must have USING_PRE_FINALIZER(). The 695 // is destructed. The class T must have USING_PRE_FINALIZER(). The
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
943 // whether the page is part of a terminting thread or 944 // whether the page is part of a terminting thread or
944 // if the page is traced after being terminated (orphaned). 945 // if the page is traced after being terminated (orphaned).
945 uintptr_t m_terminating : 1; 946 uintptr_t m_terminating : 1;
946 uintptr_t m_tracedAfterOrphaned : 1; 947 uintptr_t m_tracedAfterOrphaned : 1;
947 uintptr_t m_promptlyFreedSize : 17; // == blinkPageSizeLog2 948 uintptr_t m_promptlyFreedSize : 17; // == blinkPageSizeLog2
948 }; 949 };
949 950
950 } 951 }
951 952
952 #endif // ThreadState_h 953 #endif // ThreadState_h
OLDNEW
« no previous file with comments | « Source/platform/heap/HeapTest.cpp ('k') | Source/platform/heap/ThreadState.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698