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

Side by Side Diff: src/heap.cc

Issue 9178021: When adjusting page's live bytes counter from the mutator adjust owners unswept free bytes counter. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 11 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
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 1534 matching lines...) Expand 10 before | Expand all | Expand 10 after
1545 CpuProfiler::is_profiling(isolate)) { 1545 CpuProfiler::is_profiling(isolate)) {
1546 if (target->IsSharedFunctionInfo()) { 1546 if (target->IsSharedFunctionInfo()) {
1547 PROFILE(isolate, SharedFunctionInfoMoveEvent( 1547 PROFILE(isolate, SharedFunctionInfoMoveEvent(
1548 source->address(), target->address())); 1548 source->address(), target->address()));
1549 } 1549 }
1550 } 1550 }
1551 } 1551 }
1552 1552
1553 if (marks_handling == TRANSFER_MARKS) { 1553 if (marks_handling == TRANSFER_MARKS) {
1554 if (Marking::TransferColor(source, target)) { 1554 if (Marking::TransferColor(source, target)) {
1555 MemoryChunk::IncrementLiveBytes(target->address(), size); 1555 MemoryChunk::IncrementLiveBytesFromGC(target->address(), size);
1556 } 1556 }
1557 } 1557 }
1558 } 1558 }
1559 1559
1560 template<ObjectContents object_contents, SizeRestriction size_restriction> 1560 template<ObjectContents object_contents, SizeRestriction size_restriction>
1561 static inline void EvacuateObject(Map* map, 1561 static inline void EvacuateObject(Map* map,
1562 HeapObject** slot, 1562 HeapObject** slot,
1563 HeapObject* object, 1563 HeapObject* object,
1564 int object_size) { 1564 int object_size) {
1565 SLOW_ASSERT((size_restriction != SMALL) || 1565 SLOW_ASSERT((size_restriction != SMALL) ||
(...skipping 5088 matching lines...) Expand 10 before | Expand all | Expand 10 after
6654 isolate_->heap()->store_buffer()->Compact(); 6654 isolate_->heap()->store_buffer()->Compact();
6655 isolate_->heap()->store_buffer()->Filter(MemoryChunk::ABOUT_TO_BE_FREED); 6655 isolate_->heap()->store_buffer()->Filter(MemoryChunk::ABOUT_TO_BE_FREED);
6656 for (chunk = chunks_queued_for_free_; chunk != NULL; chunk = next) { 6656 for (chunk = chunks_queued_for_free_; chunk != NULL; chunk = next) {
6657 next = chunk->next_chunk(); 6657 next = chunk->next_chunk();
6658 isolate_->memory_allocator()->Free(chunk); 6658 isolate_->memory_allocator()->Free(chunk);
6659 } 6659 }
6660 chunks_queued_for_free_ = NULL; 6660 chunks_queued_for_free_ = NULL;
6661 } 6661 }
6662 6662
6663 } } // namespace v8::internal 6663 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/builtins.cc ('k') | src/incremental-marking.cc » ('j') | src/spaces.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698