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

Side by Side Diff: src/heap.h

Issue 6088012: Separate markbits from heap object map words into bitmaps. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/gc
Patch Set: profiler related code reenabled Created 9 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/heap.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 849 matching lines...) Expand 10 before | Expand all | Expand 10 after
860 // Iterate pointers to new space found in memory interval from start to end. 860 // Iterate pointers to new space found in memory interval from start to end.
861 // This interval is considered to belong to the map space. 861 // This interval is considered to belong to the map space.
862 // Return true if pointers to new space was found. 862 // Return true if pointers to new space was found.
863 static bool IteratePointersInDirtyMapsRegion(Address start, 863 static bool IteratePointersInDirtyMapsRegion(Address start,
864 Address end, 864 Address end,
865 ObjectSlotCallback callback); 865 ObjectSlotCallback callback);
866 866
867 867
868 // Returns whether the object resides in new space. 868 // Returns whether the object resides in new space.
869 static inline bool InNewSpace(Object* object); 869 static inline bool InNewSpace(Object* object);
870 static inline bool InNewSpace(Address addr);
870 static inline bool InFromSpace(Object* object); 871 static inline bool InFromSpace(Object* object);
871 static inline bool InToSpace(Object* object); 872 static inline bool InToSpace(Object* object);
872 873
873 // Checks whether an address/object in the heap (including auxiliary 874 // Checks whether an address/object in the heap (including auxiliary
874 // area and unused area). 875 // area and unused area).
875 static bool Contains(Address addr); 876 static bool Contains(Address addr);
876 static bool Contains(HeapObject* value); 877 static bool Contains(HeapObject* value);
877 878
878 // Checks whether an address/object in a space. 879 // Checks whether an address/object in a space.
879 // Currently used by tests, serialization and heap verification only. 880 // Currently used by tests, serialization and heap verification only.
(...skipping 1055 matching lines...) Expand 10 before | Expand all | Expand 10 after
1935 1936
1936 // True if the *previous* full GC cwas a compacting collection (will be 1937 // True if the *previous* full GC cwas a compacting collection (will be
1937 // false if there has not been a previous full GC). 1938 // false if there has not been a previous full GC).
1938 bool previous_has_compacted_; 1939 bool previous_has_compacted_;
1939 1940
1940 // On a full GC, a count of the number of marked objects. Incremented 1941 // On a full GC, a count of the number of marked objects. Incremented
1941 // when an object is marked and decremented when an object's mark bit is 1942 // when an object is marked and decremented when an object's mark bit is
1942 // cleared. Will be zero on a scavenge collection. 1943 // cleared. Will be zero on a scavenge collection.
1943 int marked_count_; 1944 int marked_count_;
1944 1945
1945 // The count from the end of the previous full GC. Will be zero if there
1946 // was no previous full GC.
1947 int previous_marked_count_;
1948
1949 // Amounts of time spent in different scopes during GC. 1946 // Amounts of time spent in different scopes during GC.
1950 double scopes_[Scope::kNumberOfScopes]; 1947 double scopes_[Scope::kNumberOfScopes];
1951 1948
1952 // Total amount of space either wasted or contained in one of free lists 1949 // Total amount of space either wasted or contained in one of free lists
1953 // before the current GC. 1950 // before the current GC.
1954 intptr_t in_free_list_or_wasted_before_gc_; 1951 intptr_t in_free_list_or_wasted_before_gc_;
1955 1952
1956 // Difference between space used in the heap at the beginning of the current 1953 // Difference between space used in the heap at the beginning of the current
1957 // collection and the end of the previous collection. 1954 // collection and the end of the previous collection.
1958 intptr_t allocated_since_last_gc_; 1955 intptr_t allocated_since_last_gc_;
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
2122 // Return whether this object should be retained. If NULL is returned the 2119 // Return whether this object should be retained. If NULL is returned the
2123 // object has no references. Otherwise the address of the retained object 2120 // object has no references. Otherwise the address of the retained object
2124 // should be returned as in some GC situations the object has been moved. 2121 // should be returned as in some GC situations the object has been moved.
2125 virtual Object* RetainAs(Object* object) = 0; 2122 virtual Object* RetainAs(Object* object) = 0;
2126 }; 2123 };
2127 2124
2128 2125
2129 } } // namespace v8::internal 2126 } } // namespace v8::internal
2130 2127
2131 #endif // V8_HEAP_H_ 2128 #endif // V8_HEAP_H_
OLDNEW
« no previous file with comments | « no previous file | src/heap.cc » ('j') | src/heap.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698