Chromium Code Reviews

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

Issue 1774943003: blink: Rename platform/ methods to prefix with get when they collide. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clash-platform: rebase-yayyyyyyyy Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
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 669 matching lines...)
680 #if defined(ADDRESS_SANITIZER) 680 #if defined(ADDRESS_SANITIZER)
681 void poisonArena(BlinkGC::ObjectsToPoison, BlinkGC::Poisoning); 681 void poisonArena(BlinkGC::ObjectsToPoison, BlinkGC::Poisoning);
682 #endif 682 #endif
683 Address lazySweep(size_t, size_t gcInfoIndex); 683 Address lazySweep(size_t, size_t gcInfoIndex);
684 void sweepUnsweptPage(); 684 void sweepUnsweptPage();
685 // Returns true if we have swept all pages within the deadline. 685 // Returns true if we have swept all pages within the deadline.
686 // Returns false otherwise. 686 // Returns false otherwise.
687 bool lazySweepWithDeadline(double deadlineSeconds); 687 bool lazySweepWithDeadline(double deadlineSeconds);
688 void completeSweep(); 688 void completeSweep();
689 689
690 ThreadState* threadState() { return m_threadState; } 690 ThreadState* getThreadState() { return m_threadState; }
691 int arenaIndex() const { return m_index; } 691 int arenaIndex() const { return m_index; }
692 692
693 protected: 693 protected:
694 BasePage* m_firstPage; 694 BasePage* m_firstPage;
695 BasePage* m_firstUnsweptPage; 695 BasePage* m_firstUnsweptPage;
696 696
697 private: 697 private:
698 virtual Address lazySweepPages(size_t, size_t gcInfoIndex) = 0; 698 virtual Address lazySweepPages(size_t, size_t gcInfoIndex) = 0;
699 699
700 ThreadState* m_threadState; 700 ThreadState* m_threadState;
(...skipping 185 matching lines...)
886 SET_MEMORY_ACCESSIBLE(result, allocationSize - sizeof(HeapObjectHeader)) ; 886 SET_MEMORY_ACCESSIBLE(result, allocationSize - sizeof(HeapObjectHeader)) ;
887 ASSERT(findPageFromAddress(headerAddress + allocationSize - 1)); 887 ASSERT(findPageFromAddress(headerAddress + allocationSize - 1));
888 return result; 888 return result;
889 } 889 }
890 return outOfLineAllocate(allocationSize, gcInfoIndex); 890 return outOfLineAllocate(allocationSize, gcInfoIndex);
891 } 891 }
892 892
893 } // namespace blink 893 } // namespace blink
894 894
895 #endif // HeapPage_h 895 #endif // HeapPage_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/heap/HeapAllocator.cpp ('k') | third_party/WebKit/Source/platform/heap/HeapPage.cpp » ('j') | no next file with comments »

Powered by Google App Engine