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

Side by Side Diff: src/heap.h

Issue 16950013: Do not use weak handles for ArrayBuffers. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 6 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 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 2174 matching lines...) Expand 10 before | Expand all | Expand 10 after
2185 2185
2186 // Performs a major collection in the whole heap. 2186 // Performs a major collection in the whole heap.
2187 void MarkCompact(GCTracer* tracer); 2187 void MarkCompact(GCTracer* tracer);
2188 2188
2189 // Code to be run before and after mark-compact. 2189 // Code to be run before and after mark-compact.
2190 void MarkCompactPrologue(); 2190 void MarkCompactPrologue();
2191 2191
2192 void ProcessNativeContexts(WeakObjectRetainer* retainer, bool record_slots); 2192 void ProcessNativeContexts(WeakObjectRetainer* retainer, bool record_slots);
2193 void ProcessArrayBuffers(WeakObjectRetainer* retainer, bool record_slots); 2193 void ProcessArrayBuffers(WeakObjectRetainer* retainer, bool record_slots);
2194 2194
2195 void TearDownArrayBuffers();
Michael Starzinger 2013/06/19 11:35:09 nit: Let's add a short one-liner comments clarifyi
Dmitry Lomov (no reviews) 2013/06/19 11:51:25 Done.
2196
2195 // Record statistics before and after garbage collection. 2197 // Record statistics before and after garbage collection.
2196 void ReportStatisticsBeforeGC(); 2198 void ReportStatisticsBeforeGC();
2197 void ReportStatisticsAfterGC(); 2199 void ReportStatisticsAfterGC();
2198 2200
2199 // Slow part of scavenge object. 2201 // Slow part of scavenge object.
2200 static void ScavengeObjectSlow(HeapObject** p, HeapObject* object); 2202 static void ScavengeObjectSlow(HeapObject** p, HeapObject* object);
2201 2203
2202 // Initializes a function with a shared part and prototype. 2204 // Initializes a function with a shared part and prototype.
2203 // Note: this code was factored out of AllocateFunction such that 2205 // Note: this code was factored out of AllocateFunction such that
2204 // other parts of the VM could use it. Specifically, a function that creates 2206 // other parts of the VM could use it. Specifically, a function that creates
(...skipping 871 matching lines...) Expand 10 before | Expand all | Expand 10 after
3076 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. 3078 DisallowHeapAllocation no_allocation; // i.e. no gc allowed.
3077 3079
3078 private: 3080 private:
3079 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 3081 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
3080 }; 3082 };
3081 #endif // DEBUG 3083 #endif // DEBUG
3082 3084
3083 } } // namespace v8::internal 3085 } } // namespace v8::internal
3084 3086
3085 #endif // V8_HEAP_H_ 3087 #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