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

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

Issue 6696042: Adding 'isolates' argument to LOG to get rid of multiple TLS fetches in profiling. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/isolates
Patch Set: Addressing code review feedback + rebase Created 9 years, 9 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 | « src/cpu-profiler.h ('k') | src/global-handles.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 2007-2008 the V8 project authors. All rights reserved. 1 // Copyright 2007-2008 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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 138
139 // Returns the object groups. 139 // Returns the object groups.
140 List<ObjectGroup*>* object_groups() { return &object_groups_; } 140 List<ObjectGroup*>* object_groups() { return &object_groups_; }
141 141
142 // Remove bags, this should only happen after GC. 142 // Remove bags, this should only happen after GC.
143 void RemoveObjectGroups(); 143 void RemoveObjectGroups();
144 144
145 // Tear down the global handle structure. 145 // Tear down the global handle structure.
146 void TearDown(); 146 void TearDown();
147 147
148 Isolate* isolate() { return isolate_; }
149
148 #ifdef DEBUG 150 #ifdef DEBUG
149 void PrintStats(); 151 void PrintStats();
150 void Print(); 152 void Print();
151 #endif 153 #endif
152 class Pool; 154 class Pool;
153 private: 155 private:
154 explicit GlobalHandles(Isolate* isolate); 156 explicit GlobalHandles(Isolate* isolate);
155 157
156 // Internal node structure, one for each global handle. 158 // Internal node structure, one for each global handle.
157 class Node; 159 class Node;
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 201
200 friend class Isolate; 202 friend class Isolate;
201 203
202 DISALLOW_COPY_AND_ASSIGN(GlobalHandles); 204 DISALLOW_COPY_AND_ASSIGN(GlobalHandles);
203 }; 205 };
204 206
205 207
206 } } // namespace v8::internal 208 } } // namespace v8::internal
207 209
208 #endif // V8_GLOBAL_HANDLES_H_ 210 #endif // V8_GLOBAL_HANDLES_H_
OLDNEW
« no previous file with comments | « src/cpu-profiler.h ('k') | src/global-handles.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698