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

Side by Side Diff: src/handles.h

Issue 18325027: Revert "Introduce a handle zapping setting, and enable it by default for release and debug" due to … (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 5 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/global-handles.cc ('k') | src/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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 Object** prev_limit_; 170 Object** prev_limit_;
171 171
172 // Close the handle scope resetting limits to a previous state. 172 // Close the handle scope resetting limits to a previous state.
173 static inline void CloseScope(Isolate* isolate, 173 static inline void CloseScope(Isolate* isolate,
174 Object** prev_next, 174 Object** prev_next,
175 Object** prev_limit); 175 Object** prev_limit);
176 176
177 // Extend the handle scope making room for more handles. 177 // Extend the handle scope making room for more handles.
178 static internal::Object** Extend(Isolate* isolate); 178 static internal::Object** Extend(Isolate* isolate);
179 179
180 #ifdef ENABLE_HANDLE_ZAPPING 180 #ifdef ENABLE_EXTRA_CHECKS
181 // Zaps the handles in the half-open interval [start, end). 181 // Zaps the handles in the half-open interval [start, end).
182 static void ZapRange(Object** start, Object** end); 182 static void ZapRange(Object** start, Object** end);
183 #endif 183 #endif
184 184
185 friend class v8::HandleScope; 185 friend class v8::HandleScope;
186 friend class v8::internal::DeferredHandles; 186 friend class v8::internal::DeferredHandles;
187 friend class v8::internal::HandleScopeImplementer; 187 friend class v8::internal::HandleScopeImplementer;
188 friend class v8::internal::Isolate; 188 friend class v8::internal::Isolate;
189 }; 189 };
190 190
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 private: 352 private:
353 Isolate* isolate_; 353 Isolate* isolate_;
354 Object** limit_; 354 Object** limit_;
355 int level_; 355 int level_;
356 #endif 356 #endif
357 }; 357 };
358 358
359 } } // namespace v8::internal 359 } } // namespace v8::internal
360 360
361 #endif // V8_HANDLES_H_ 361 #endif // V8_HANDLES_H_
OLDNEW
« no previous file with comments | « src/global-handles.cc ('k') | src/handles.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698