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

Side by Side Diff: src/global-handles.h

Issue 13952005: Add tests for GlobalHandles::IterateObjectGroups. (Closed) Base URL: git://github.com/v8/v8.git@master
Patch Set: Code review (mstarzinger) Created 7 years, 8 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
« no previous file with comments | « no previous file | test/cctest/cctest.gyp » ('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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 14 matching lines...) Expand all
25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 27
28 #ifndef V8_GLOBAL_HANDLES_H_ 28 #ifndef V8_GLOBAL_HANDLES_H_
29 #define V8_GLOBAL_HANDLES_H_ 29 #define V8_GLOBAL_HANDLES_H_
30 30
31 #include "../include/v8.h" 31 #include "../include/v8.h"
32 #include "../include/v8-profiler.h" 32 #include "../include/v8-profiler.h"
33 33
34 #include "list.h" 34 #include "list.h"
35 #include "v8utils.h"
35 36
36 namespace v8 { 37 namespace v8 {
37 namespace internal { 38 namespace internal {
38 39
40 class GCTracer;
41 class HeapStats;
42 class ObjectVisitor;
43
39 // Structure for tracking global handles. 44 // Structure for tracking global handles.
40 // A single list keeps all the allocated global handles. 45 // A single list keeps all the allocated global handles.
41 // Destroyed handles stay in the list but is added to the free list. 46 // Destroyed handles stay in the list but is added to the free list.
42 // At GC the destroyed global handles are removed from the free list 47 // At GC the destroyed global handles are removed from the free list
43 // and deallocated. 48 // and deallocated.
44 49
45 // An object group is treated like a single JS object: if one of object in 50 // An object group is treated like a single JS object: if one of object in
46 // the group is alive, all objects in the same group are considered alive. 51 // the group is alive, all objects in the same group are considered alive.
47 // An object group is used to simulate object relationship in a DOM tree. 52 // An object group is used to simulate object relationship in a DOM tree.
48 53
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 298
294 friend class Isolate; 299 friend class Isolate;
295 300
296 DISALLOW_COPY_AND_ASSIGN(GlobalHandles); 301 DISALLOW_COPY_AND_ASSIGN(GlobalHandles);
297 }; 302 };
298 303
299 304
300 } } // namespace v8::internal 305 } } // namespace v8::internal
301 306
302 #endif // V8_GLOBAL_HANDLES_H_ 307 #endif // V8_GLOBAL_HANDLES_H_
OLDNEW
« no previous file with comments | « no previous file | test/cctest/cctest.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698