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

Side by Side Diff: src/spaces.h

Issue 194100: Fix cut and paste error in memory tracking. MapSpace -> CellSpace. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 3 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 | 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 1668 matching lines...) Expand 10 before | Expand all | Expand 10 after
1679 // Creates a property cell space object with a maximum capacity. 1679 // Creates a property cell space object with a maximum capacity.
1680 CellSpace(int max_capacity, AllocationSpace id) 1680 CellSpace(int max_capacity, AllocationSpace id)
1681 : FixedSpace(max_capacity, id, JSGlobalPropertyCell::kSize, "cell") {} 1681 : FixedSpace(max_capacity, id, JSGlobalPropertyCell::kSize, "cell") {}
1682 1682
1683 protected: 1683 protected:
1684 #ifdef DEBUG 1684 #ifdef DEBUG
1685 virtual void VerifyObject(HeapObject* obj); 1685 virtual void VerifyObject(HeapObject* obj);
1686 #endif 1686 #endif
1687 1687
1688 public: 1688 public:
1689 TRACK_MEMORY("MapSpace") 1689 TRACK_MEMORY("CellSpace")
1690 }; 1690 };
1691 1691
1692 1692
1693 // ----------------------------------------------------------------------------- 1693 // -----------------------------------------------------------------------------
1694 // Large objects ( > Page::kMaxHeapObjectSize ) are allocated and managed by 1694 // Large objects ( > Page::kMaxHeapObjectSize ) are allocated and managed by
1695 // the large object space. A large object is allocated from OS heap with 1695 // the large object space. A large object is allocated from OS heap with
1696 // extra padding bytes (Page::kPageSize + Page::kObjectStartOffset). 1696 // extra padding bytes (Page::kPageSize + Page::kObjectStartOffset).
1697 // A large object always starts at Page::kObjectStartOffset to a page. 1697 // A large object always starts at Page::kObjectStartOffset to a page.
1698 // Large objects do not move during garbage collections. 1698 // Large objects do not move during garbage collections.
1699 1699
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
1863 1863
1864 private: 1864 private:
1865 LargeObjectChunk* current_; 1865 LargeObjectChunk* current_;
1866 HeapObjectCallback size_func_; 1866 HeapObjectCallback size_func_;
1867 }; 1867 };
1868 1868
1869 1869
1870 } } // namespace v8::internal 1870 } } // namespace v8::internal
1871 1871
1872 #endif // V8_SPACES_H_ 1872 #endif // V8_SPACES_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698