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

Side by Side Diff: src/heap.h

Issue 282493004: Simplified slot buffer logic during weak list visiting. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 7 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') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_HEAP_H_ 5 #ifndef V8_HEAP_H_
6 #define V8_HEAP_H_ 6 #define V8_HEAP_H_
7 7
8 #include <cmath> 8 #include <cmath>
9 9
10 #include "allocation.h" 10 #include "allocation.h"
(...skipping 1956 matching lines...) Expand 10 before | Expand all | Expand 10 after
1967 static void ScavengeStoreBufferCallback(Heap* heap, 1967 static void ScavengeStoreBufferCallback(Heap* heap,
1968 MemoryChunk* page, 1968 MemoryChunk* page,
1969 StoreBufferEvent event); 1969 StoreBufferEvent event);
1970 1970
1971 // Performs a major collection in the whole heap. 1971 // Performs a major collection in the whole heap.
1972 void MarkCompact(GCTracer* tracer); 1972 void MarkCompact(GCTracer* tracer);
1973 1973
1974 // Code to be run before and after mark-compact. 1974 // Code to be run before and after mark-compact.
1975 void MarkCompactPrologue(); 1975 void MarkCompactPrologue();
1976 1976
1977 void ProcessNativeContexts(WeakObjectRetainer* retainer, bool record_slots); 1977 void ProcessNativeContexts(WeakObjectRetainer* retainer);
1978 void ProcessArrayBuffers(WeakObjectRetainer* retainer, bool record_slots); 1978 void ProcessArrayBuffers(WeakObjectRetainer* retainer);
1979 void ProcessAllocationSites(WeakObjectRetainer* retainer, bool record_slots); 1979 void ProcessAllocationSites(WeakObjectRetainer* retainer);
1980 1980
1981 // Deopts all code that contains allocation instruction which are tenured or 1981 // Deopts all code that contains allocation instruction which are tenured or
1982 // not tenured. Moreover it clears the pretenuring allocation site statistics. 1982 // not tenured. Moreover it clears the pretenuring allocation site statistics.
1983 void ResetAllAllocationSitesDependentCode(PretenureFlag flag); 1983 void ResetAllAllocationSitesDependentCode(PretenureFlag flag);
1984 1984
1985 // Evaluates local pretenuring for the old space and calls 1985 // Evaluates local pretenuring for the old space and calls
1986 // ResetAllTenuredAllocationSitesDependentCode if too many objects died in 1986 // ResetAllTenuredAllocationSitesDependentCode if too many objects died in
1987 // the old space. 1987 // the old space.
1988 void EvaluateOldSpaceLocalPretenuring(uint64_t size_of_objects_before_gc); 1988 void EvaluateOldSpaceLocalPretenuring(uint64_t size_of_objects_before_gc);
1989 1989
(...skipping 828 matching lines...) Expand 10 before | Expand all | Expand 10 after
2818 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. 2818 DisallowHeapAllocation no_allocation; // i.e. no gc allowed.
2819 2819
2820 private: 2820 private:
2821 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 2821 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
2822 }; 2822 };
2823 #endif // DEBUG 2823 #endif // DEBUG
2824 2824
2825 } } // namespace v8::internal 2825 } } // namespace v8::internal
2826 2826
2827 #endif // V8_HEAP_H_ 2827 #endif // V8_HEAP_H_
OLDNEW
« no previous file with comments | « no previous file | src/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698