| OLD | NEW | 
|---|
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. | 
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be | 
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. | 
| 4 | 4 | 
| 5 #include "src/heap/spaces.h" | 5 #include "src/heap/spaces.h" | 
| 6 | 6 | 
| 7 #include "src/base/bits.h" | 7 #include "src/base/bits.h" | 
| 8 #include "src/base/platform/platform.h" | 8 #include "src/base/platform/platform.h" | 
| 9 #include "src/full-codegen/full-codegen.h" | 9 #include "src/full-codegen/full-codegen.h" | 
| 10 #include "src/heap/slot-set.h" | 10 #include "src/heap/slot-set.h" | 
| (...skipping 3070 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 3081       LargePage* page = current; | 3081       LargePage* page = current; | 
| 3082       // Cut the chunk out from the chunk list. | 3082       // Cut the chunk out from the chunk list. | 
| 3083       current = current->next_page(); | 3083       current = current->next_page(); | 
| 3084       if (previous == NULL) { | 3084       if (previous == NULL) { | 
| 3085         first_page_ = current; | 3085         first_page_ = current; | 
| 3086       } else { | 3086       } else { | 
| 3087         previous->set_next_page(current); | 3087         previous->set_next_page(current); | 
| 3088       } | 3088       } | 
| 3089 | 3089 | 
| 3090       // Free the chunk. | 3090       // Free the chunk. | 
| 3091       heap()->mark_compact_collector()->ReportDeleteIfNeeded(object, |  | 
| 3092                                                              heap()->isolate()); |  | 
| 3093       size_ -= static_cast<int>(page->size()); | 3091       size_ -= static_cast<int>(page->size()); | 
| 3094       AccountUncommitted(static_cast<intptr_t>(page->size())); | 3092       AccountUncommitted(static_cast<intptr_t>(page->size())); | 
| 3095       objects_size_ -= object->Size(); | 3093       objects_size_ -= object->Size(); | 
| 3096       page_count_--; | 3094       page_count_--; | 
| 3097 | 3095 | 
| 3098       // Remove entries belonging to this page. | 3096       // Remove entries belonging to this page. | 
| 3099       // Use variable alignment to help pass length check (<= 80 characters) | 3097       // Use variable alignment to help pass length check (<= 80 characters) | 
| 3100       // of single line in tools/presubmit.py. | 3098       // of single line in tools/presubmit.py. | 
| 3101       const intptr_t alignment = MemoryChunk::kAlignment; | 3099       const intptr_t alignment = MemoryChunk::kAlignment; | 
| 3102       uintptr_t base = reinterpret_cast<uintptr_t>(page) / alignment; | 3100       uintptr_t base = reinterpret_cast<uintptr_t>(page) / alignment; | 
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 3230     object->ShortPrint(); | 3228     object->ShortPrint(); | 
| 3231     PrintF("\n"); | 3229     PrintF("\n"); | 
| 3232   } | 3230   } | 
| 3233   printf(" --------------------------------------\n"); | 3231   printf(" --------------------------------------\n"); | 
| 3234   printf(" Marked: %x, LiveCount: %x\n", mark_size, LiveBytes()); | 3232   printf(" Marked: %x, LiveCount: %x\n", mark_size, LiveBytes()); | 
| 3235 } | 3233 } | 
| 3236 | 3234 | 
| 3237 #endif  // DEBUG | 3235 #endif  // DEBUG | 
| 3238 }  // namespace internal | 3236 }  // namespace internal | 
| 3239 }  // namespace v8 | 3237 }  // namespace v8 | 
| OLD | NEW | 
|---|