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

Side by Side Diff: src/builtins.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
« no previous file with comments | « no previous file | src/heap.cc » ('j') | src/spaces.cc » ('J')
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 393 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 heap->CreateFillerObjectAt(elms->address(), to_trim * kPointerSize); 404 heap->CreateFillerObjectAt(elms->address(), to_trim * kPointerSize);
405 405
406 former_start[to_trim] = heap->fixed_array_map(); 406 former_start[to_trim] = heap->fixed_array_map();
407 former_start[to_trim + 1] = Smi::FromInt(len - to_trim); 407 former_start[to_trim + 1] = Smi::FromInt(len - to_trim);
408 408
409 // Maintain marking consistency for HeapObjectIterator and 409 // Maintain marking consistency for HeapObjectIterator and
410 // IncrementalMarking. 410 // IncrementalMarking.
411 int size_delta = to_trim * kPointerSize; 411 int size_delta = to_trim * kPointerSize;
412 if (heap->marking()->TransferMark(elms->address(), 412 if (heap->marking()->TransferMark(elms->address(),
413 elms->address() + size_delta)) { 413 elms->address() + size_delta)) {
414 MemoryChunk::IncrementLiveBytes(elms->address(), -size_delta); 414 MemoryChunk::IncrementLiveBytesFromMutator(elms->address(), -size_delta);
415 } 415 }
416 416
417 return FixedArray::cast(HeapObject::FromAddress( 417 return FixedArray::cast(HeapObject::FromAddress(
418 elms->address() + to_trim * kPointerSize)); 418 elms->address() + to_trim * kPointerSize));
419 } 419 }
420 420
421 421
422 static bool ArrayPrototypeHasNoElements(Heap* heap, 422 static bool ArrayPrototypeHasNoElements(Heap* heap,
423 Context* global_context, 423 Context* global_context,
424 JSObject* array_proto) { 424 JSObject* array_proto) {
(...skipping 1403 matching lines...) Expand 10 before | Expand all | Expand 10 after
1828 return Handle<Code>(code_address); \ 1828 return Handle<Code>(code_address); \
1829 } 1829 }
1830 BUILTIN_LIST_C(DEFINE_BUILTIN_ACCESSOR_C) 1830 BUILTIN_LIST_C(DEFINE_BUILTIN_ACCESSOR_C)
1831 BUILTIN_LIST_A(DEFINE_BUILTIN_ACCESSOR_A) 1831 BUILTIN_LIST_A(DEFINE_BUILTIN_ACCESSOR_A)
1832 BUILTIN_LIST_DEBUG_A(DEFINE_BUILTIN_ACCESSOR_A) 1832 BUILTIN_LIST_DEBUG_A(DEFINE_BUILTIN_ACCESSOR_A)
1833 #undef DEFINE_BUILTIN_ACCESSOR_C 1833 #undef DEFINE_BUILTIN_ACCESSOR_C
1834 #undef DEFINE_BUILTIN_ACCESSOR_A 1834 #undef DEFINE_BUILTIN_ACCESSOR_A
1835 1835
1836 1836
1837 } } // namespace v8::internal 1837 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/heap.cc » ('j') | src/spaces.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698