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

Side by Side Diff: src/spaces.h

Issue 549174: Fix 64-bit build on Windows and Visual Studio project files... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 10 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 | « SConstruct ('k') | test/cctest/test-serialize.cc » ('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 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 1819 matching lines...) Expand 10 before | Expand all | Expand 10 after
1830 1830
1831 SetAllocationInfo(&allocation_info_, top_page); 1831 SetAllocationInfo(&allocation_info_, top_page);
1832 allocation_info_.top = new_top; 1832 allocation_info_.top = new_top;
1833 1833
1834 int new_size = live_maps * Map::kSize; 1834 int new_size = live_maps * Map::kSize;
1835 accounting_stats_.DeallocateBytes(accounting_stats_.Size()); 1835 accounting_stats_.DeallocateBytes(accounting_stats_.Size());
1836 accounting_stats_.AllocateBytes(new_size); 1836 accounting_stats_.AllocateBytes(new_size);
1837 1837
1838 #ifdef DEBUG 1838 #ifdef DEBUG
1839 if (FLAG_enable_slow_asserts) { 1839 if (FLAG_enable_slow_asserts) {
1840 int actual_size = 0; 1840 intptr_t actual_size = 0;
1841 for (Page* p = first_page_; p != top_page; p = p->next_page()) 1841 for (Page* p = first_page_; p != top_page; p = p->next_page())
1842 actual_size += kMapsPerPage * Map::kSize; 1842 actual_size += kMapsPerPage * Map::kSize;
1843 actual_size += (new_top - top_page->ObjectAreaStart()); 1843 actual_size += (new_top - top_page->ObjectAreaStart());
1844 ASSERT(accounting_stats_.Size() == actual_size); 1844 ASSERT(accounting_stats_.Size() == actual_size);
1845 } 1845 }
1846 #endif 1846 #endif
1847 1847
1848 Shrink(); 1848 Shrink();
1849 ResetFreeList(); 1849 ResetFreeList();
1850 } 1850 }
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
2067 2067
2068 private: 2068 private:
2069 LargeObjectChunk* current_; 2069 LargeObjectChunk* current_;
2070 HeapObjectCallback size_func_; 2070 HeapObjectCallback size_func_;
2071 }; 2071 };
2072 2072
2073 2073
2074 } } // namespace v8::internal 2074 } } // namespace v8::internal
2075 2075
2076 #endif // V8_SPACES_H_ 2076 #endif // V8_SPACES_H_
OLDNEW
« no previous file with comments | « SConstruct ('k') | test/cctest/test-serialize.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698