| OLD | NEW |
| 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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 do { \ | 123 do { \ |
| 124 } while (false) | 124 } while (false) |
| 125 #endif | 125 #endif |
| 126 | 126 |
| 127 #if !ENABLE(ASSERT) && CPU(64BIT) | 127 #if !ENABLE(ASSERT) && CPU(64BIT) |
| 128 #define USE_4BYTE_HEADER_PADDING 1 | 128 #define USE_4BYTE_HEADER_PADDING 1 |
| 129 #else | 129 #else |
| 130 #define USE_4BYTE_HEADER_PADDING 0 | 130 #define USE_4BYTE_HEADER_PADDING 0 |
| 131 #endif | 131 #endif |
| 132 | 132 |
| 133 class CallbackStack; | |
| 134 class FreePagePool; | |
| 135 class NormalPageArena; | 133 class NormalPageArena; |
| 136 class OrphanedPagePool; | |
| 137 class PageMemory; | 134 class PageMemory; |
| 138 class PageMemoryRegion; | |
| 139 class WebMemoryAllocatorDump; | |
| 140 | 135 |
| 141 // HeapObjectHeader is 4 byte (32 bit) that has the following layout: | 136 // HeapObjectHeader is 4 byte (32 bit) that has the following layout: |
| 142 // | 137 // |
| 143 // | gcInfoIndex (14 bit) | | 138 // | gcInfoIndex (14 bit) | |
| 144 // | DOM mark bit (1 bit) | | 139 // | DOM mark bit (1 bit) | |
| 145 // | size (14 bit) | | 140 // | size (14 bit) | |
| 146 // | dead bit (1 bit) | | 141 // | dead bit (1 bit) | |
| 147 // | freed bit (1 bit) | | 142 // | freed bit (1 bit) | |
| 148 // | mark bit (1 bit) | | 143 // | mark bit (1 bit) | |
| 149 // | 144 // |
| (...skipping 775 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 925 return outOfLineAllocate(allocationSize, gcInfoIndex); | 920 return outOfLineAllocate(allocationSize, gcInfoIndex); |
| 926 } | 921 } |
| 927 | 922 |
| 928 inline NormalPageArena* NormalPage::arenaForNormalPage() const { | 923 inline NormalPageArena* NormalPage::arenaForNormalPage() const { |
| 929 return static_cast<NormalPageArena*>(arena()); | 924 return static_cast<NormalPageArena*>(arena()); |
| 930 } | 925 } |
| 931 | 926 |
| 932 } // namespace blink | 927 } // namespace blink |
| 933 | 928 |
| 934 #endif // HeapPage_h | 929 #endif // HeapPage_h |
| OLD | NEW |