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

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

Issue 1297873002: Oilpan: Don't use guard pages in NaCl (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 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/Heap.h ('k') | Source/platform/heap/PageMemory.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 1668 matching lines...) Expand 10 before | Expand all | Expand 10 after
1679 ++(classAgeCounts.add(className, AgeCounts()).storedValue->value.age s[header->age()]); 1679 ++(classAgeCounts.add(className, AgeCounts()).storedValue->value.age s[header->age()]);
1680 } 1680 }
1681 } 1681 }
1682 } 1682 }
1683 #endif 1683 #endif
1684 1684
1685 #if ENABLE(ASSERT) || ENABLE(GC_PROFILING) 1685 #if ENABLE(ASSERT) || ENABLE(GC_PROFILING)
1686 bool NormalPage::contains(Address addr) 1686 bool NormalPage::contains(Address addr)
1687 { 1687 {
1688 Address blinkPageStart = roundToBlinkPageStart(address()); 1688 Address blinkPageStart = roundToBlinkPageStart(address());
1689 ASSERT(blinkPageStart == address() - WTF::kSystemPageSize); // Page is at al igned address plus guard page size. 1689 ASSERT(blinkPageStart == address() - blinkGuardPageSize); // Page is at alig ned address plus guard page size.
1690 return blinkPageStart <= addr && addr < blinkPageStart + blinkPageSize; 1690 return blinkPageStart <= addr && addr < blinkPageStart + blinkPageSize;
1691 } 1691 }
1692 #endif 1692 #endif
1693 1693
1694 NormalPageHeap* NormalPage::heapForNormalPage() 1694 NormalPageHeap* NormalPage::heapForNormalPage()
1695 { 1695 {
1696 return static_cast<NormalPageHeap*>(heap()); 1696 return static_cast<NormalPageHeap*>(heap());
1697 } 1697 }
1698 1698
1699 LargeObjectPage::LargeObjectPage(PageMemory* storage, BaseHeap* heap, size_t pay loadSize) 1699 LargeObjectPage::LargeObjectPage(PageMemory* storage, BaseHeap* heap, size_t pay loadSize)
(...skipping 848 matching lines...) Expand 10 before | Expand all | Expand 10 after
2548 size_t Heap::s_objectSizeAtLastGC = 0; 2548 size_t Heap::s_objectSizeAtLastGC = 0;
2549 size_t Heap::s_markedObjectSize = 0; 2549 size_t Heap::s_markedObjectSize = 0;
2550 size_t Heap::s_persistentCount = 0; 2550 size_t Heap::s_persistentCount = 0;
2551 size_t Heap::s_persistentCountAtLastGC = 0; 2551 size_t Heap::s_persistentCountAtLastGC = 0;
2552 size_t Heap::s_collectedPersistentCount = 0; 2552 size_t Heap::s_collectedPersistentCount = 0;
2553 size_t Heap::s_partitionAllocSizeAtLastGC = 0; 2553 size_t Heap::s_partitionAllocSizeAtLastGC = 0;
2554 size_t Heap::s_heapSizePerPersistent = 0; 2554 size_t Heap::s_heapSizePerPersistent = 0;
2555 double Heap::s_estimatedMarkingTimePerByte = 0.0; 2555 double Heap::s_estimatedMarkingTimePerByte = 0.0;
2556 2556
2557 } // namespace blink 2557 } // namespace blink
OLDNEW
« no previous file with comments | « Source/platform/heap/Heap.h ('k') | Source/platform/heap/PageMemory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698