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

Side by Side Diff: src/spaces.cc

Issue 507025: Force mark sweep if size of map space is to big to allow forward pointers enc... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years 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/spaces.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 1717 matching lines...) Expand 10 before | Expand all | Expand 10 after
1728 head_ = NULL; 1728 head_ = NULL;
1729 } 1729 }
1730 1730
1731 1731
1732 void FixedSizeFreeList::Free(Address start) { 1732 void FixedSizeFreeList::Free(Address start) {
1733 #ifdef DEBUG 1733 #ifdef DEBUG
1734 for (int i = 0; i < object_size_; i += kPointerSize) { 1734 for (int i = 0; i < object_size_; i += kPointerSize) {
1735 Memory::Address_at(start + i) = kZapValue; 1735 Memory::Address_at(start + i) = kZapValue;
1736 } 1736 }
1737 #endif 1737 #endif
1738 ASSERT(!FLAG_always_compact); // We only use the freelists with mark-sweep. 1738 // We only use the freelists with mark-sweep.
1739 ASSERT(!MarkCompactCollector::IsCompacting());
1739 FreeListNode* node = FreeListNode::FromAddress(start); 1740 FreeListNode* node = FreeListNode::FromAddress(start);
1740 node->set_size(object_size_); 1741 node->set_size(object_size_);
1741 node->set_next(head_); 1742 node->set_next(head_);
1742 head_ = node->address(); 1743 head_ = node->address();
1743 available_ += object_size_; 1744 available_ += object_size_;
1744 } 1745 }
1745 1746
1746 1747
1747 Object* FixedSizeFreeList::Allocate() { 1748 Object* FixedSizeFreeList::Allocate() {
1748 if (head_ == NULL) { 1749 if (head_ == NULL) {
(...skipping 1042 matching lines...) Expand 10 before | Expand all | Expand 10 after
2791 reinterpret_cast<Object**>(object->address() 2792 reinterpret_cast<Object**>(object->address()
2792 + Page::kObjectAreaSize), 2793 + Page::kObjectAreaSize),
2793 allocation_top); 2794 allocation_top);
2794 PrintF("\n"); 2795 PrintF("\n");
2795 } 2796 }
2796 } 2797 }
2797 } 2798 }
2798 #endif // DEBUG 2799 #endif // DEBUG
2799 2800
2800 } } // namespace v8::internal 2801 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/spaces.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698