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

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

Issue 197263002: Implement PersistentValueMap, a map that stores UniquePersistent values. Part 2. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix use-after-free in test-api.cc. Now works on win32 Debug. Created 6 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/api.cc ('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 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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 // Returns the current number of weak handles to global objects. 154 // Returns the current number of weak handles to global objects.
155 // These handles are also included in NumberOfWeakHandles(). 155 // These handles are also included in NumberOfWeakHandles().
156 int NumberOfGlobalObjectWeakHandles(); 156 int NumberOfGlobalObjectWeakHandles();
157 157
158 // Returns the current number of handles to global objects. 158 // Returns the current number of handles to global objects.
159 int global_handles_count() const { 159 int global_handles_count() const {
160 return number_of_global_handles_; 160 return number_of_global_handles_;
161 } 161 }
162 162
163 // Clear the weakness of a global handle. 163 // Clear the weakness of a global handle.
164 static void ClearWeakness(Object** location); 164 static void* ClearWeakness(Object** location);
165 165
166 // Clear the weakness of a global handle. 166 // Clear the weakness of a global handle.
167 static void MarkIndependent(Object** location); 167 static void MarkIndependent(Object** location);
168 168
169 // Mark the reference to this object externaly unreachable. 169 // Mark the reference to this object externaly unreachable.
170 static void MarkPartiallyDependent(Object** location); 170 static void MarkPartiallyDependent(Object** location);
171 171
172 static bool IsIndependent(Object** location); 172 static bool IsIndependent(Object** location);
173 173
174 // Tells whether global handle is near death. 174 // Tells whether global handle is near death.
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
401 List<int> new_space_indices_; 401 List<int> new_space_indices_;
402 int singleton_handles_[NUMBER_OF_SINGLETON_HANDLES]; 402 int singleton_handles_[NUMBER_OF_SINGLETON_HANDLES];
403 403
404 DISALLOW_COPY_AND_ASSIGN(EternalHandles); 404 DISALLOW_COPY_AND_ASSIGN(EternalHandles);
405 }; 405 };
406 406
407 407
408 } } // namespace v8::internal 408 } } // namespace v8::internal
409 409
410 #endif // V8_GLOBAL_HANDLES_H_ 410 #endif // V8_GLOBAL_HANDLES_H_
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/global-handles.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698