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

Side by Side Diff: src/heap.cc

Issue 7247002: Estimate a (close) upper bound on the size of black-marked objects on each page. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/gc
Patch Set: Address review comments. Make compile on x64. Created 9 years, 6 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 | « src/builtins.cc ('k') | src/ia32/assembler-ia32.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 // 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 1403 matching lines...) Expand 10 before | Expand all | Expand 10 after
1414 CpuProfiler::is_profiling(isolate)) { 1414 CpuProfiler::is_profiling(isolate)) {
1415 if (target->IsSharedFunctionInfo()) { 1415 if (target->IsSharedFunctionInfo()) {
1416 PROFILE(isolate, SharedFunctionInfoMoveEvent( 1416 PROFILE(isolate, SharedFunctionInfoMoveEvent(
1417 source->address(), target->address())); 1417 source->address(), target->address()));
1418 } 1418 }
1419 } 1419 }
1420 #endif 1420 #endif
1421 } 1421 }
1422 1422
1423 if (marks_handling == TRANSFER_MARKS) { 1423 if (marks_handling == TRANSFER_MARKS) {
1424 Marking::TransferColor(source, target); 1424 if (Marking::TransferColor(source, target)) {
1425 MemoryChunk::IncrementLiveBytes(target->address(), size);
1426 }
1425 } 1427 }
1426 1428
1427 return target; 1429 return target;
1428 } 1430 }
1429 1431
1430 template<ObjectContents object_contents, SizeRestriction size_restriction> 1432 template<ObjectContents object_contents, SizeRestriction size_restriction>
1431 static inline void EvacuateObject(Map* map, 1433 static inline void EvacuateObject(Map* map,
1432 HeapObject** slot, 1434 HeapObject** slot,
1433 HeapObject* object, 1435 HeapObject* object,
1434 int object_size) { 1436 int object_size) {
(...skipping 4396 matching lines...) Expand 10 before | Expand all | Expand 10 after
5831 } 5833 }
5832 isolate_->heap()->store_buffer()->Filter(MemoryChunk::ABOUT_TO_BE_FREED); 5834 isolate_->heap()->store_buffer()->Filter(MemoryChunk::ABOUT_TO_BE_FREED);
5833 for (chunk = chunks_queued_for_free_; chunk != NULL; chunk = next) { 5835 for (chunk = chunks_queued_for_free_; chunk != NULL; chunk = next) {
5834 next = chunk->next_chunk(); 5836 next = chunk->next_chunk();
5835 isolate_->memory_allocator()->Free(chunk); 5837 isolate_->memory_allocator()->Free(chunk);
5836 } 5838 }
5837 chunks_queued_for_free_ = NULL; 5839 chunks_queued_for_free_ = NULL;
5838 } 5840 }
5839 5841
5840 } } // namespace v8::internal 5842 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/builtins.cc ('k') | src/ia32/assembler-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698