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

Side by Side Diff: src/heap.h

Issue 11085015: Allow collection of DOM objects in minor GC cycles. (Closed) Base URL: git://github.com/v8/v8.git@master
Patch Set: All comments addressed Created 8 years, 1 month 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
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 1884 matching lines...) Expand 10 before | Expand all | Expand 10 after
1895 // Checks whether a global GC is necessary 1895 // Checks whether a global GC is necessary
1896 GarbageCollector SelectGarbageCollector(AllocationSpace space, 1896 GarbageCollector SelectGarbageCollector(AllocationSpace space,
1897 const char** reason); 1897 const char** reason);
1898 1898
1899 // Performs garbage collection 1899 // Performs garbage collection
1900 // Returns whether there is a chance another major GC could 1900 // Returns whether there is a chance another major GC could
1901 // collect more garbage. 1901 // collect more garbage.
1902 bool PerformGarbageCollection(GarbageCollector collector, 1902 bool PerformGarbageCollection(GarbageCollector collector,
1903 GCTracer* tracer); 1903 GCTracer* tracer);
1904 1904
1905 bool IterateObjectGroups(ObjectVisitor* scavenge_visitor);
1905 1906
1906 inline void UpdateOldSpaceLimits(); 1907 inline void UpdateOldSpaceLimits();
1907 1908
1908 // Allocate an uninitialized object in map space. The behavior is identical 1909 // Allocate an uninitialized object in map space. The behavior is identical
1909 // to Heap::AllocateRaw(size_in_bytes, MAP_SPACE), except that (a) it doesn't 1910 // to Heap::AllocateRaw(size_in_bytes, MAP_SPACE), except that (a) it doesn't
1910 // have to test the allocation space argument and (b) can reduce code size 1911 // have to test the allocation space argument and (b) can reduce code size
1911 // (since both AllocateRaw and AllocateRawMap are inlined). 1912 // (since both AllocateRaw and AllocateRawMap are inlined).
1912 MUST_USE_RESULT inline MaybeObject* AllocateRawMap(); 1913 MUST_USE_RESULT inline MaybeObject* AllocateRawMap();
1913 1914
1914 // Allocate an uninitialized object in the global property cell space. 1915 // Allocate an uninitialized object in the global property cell space.
(...skipping 903 matching lines...) Expand 10 before | Expand all | Expand 10 after
2818 AssertNoAllocation no_alloc; // i.e. no gc allowed. 2819 AssertNoAllocation no_alloc; // i.e. no gc allowed.
2819 2820
2820 private: 2821 private:
2821 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 2822 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
2822 }; 2823 };
2823 #endif // DEBUG || LIVE_OBJECT_LIST 2824 #endif // DEBUG || LIVE_OBJECT_LIST
2824 2825
2825 } } // namespace v8::internal 2826 } } // namespace v8::internal
2826 2827
2827 #endif // V8_HEAP_H_ 2828 #endif // V8_HEAP_H_
OLDNEW
« src/global-handles.cc ('K') | « src/global-handles.cc ('k') | src/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698