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

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

Issue 18316006: Introduce a handle zapping setting, and enable it by default for release and debug (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/handles.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 v8::ImplementationUtilities::HandleScopeData* current = 127 v8::ImplementationUtilities::HandleScopeData* current =
128 isolate->handle_scope_data(); 128 isolate->handle_scope_data();
129 129
130 current->next = prev_next; 130 current->next = prev_next;
131 current->level--; 131 current->level--;
132 if (current->limit != prev_limit) { 132 if (current->limit != prev_limit) {
133 current->limit = prev_limit; 133 current->limit = prev_limit;
134 DeleteExtensions(isolate); 134 DeleteExtensions(isolate);
135 } 135 }
136 136
137 #ifdef ENABLE_EXTRA_CHECKS 137 #ifdef ENABLE_HANDLE_ZAPPING
138 ZapRange(prev_next, prev_limit); 138 ZapRange(prev_next, prev_limit);
139 #endif 139 #endif
140 } 140 }
141 141
142 142
143 template <typename T> 143 template <typename T>
144 Handle<T> HandleScope::CloseAndEscape(Handle<T> handle_value) { 144 Handle<T> HandleScope::CloseAndEscape(Handle<T> handle_value) {
145 v8::ImplementationUtilities::HandleScopeData* current = 145 v8::ImplementationUtilities::HandleScopeData* current =
146 isolate_->handle_scope_data(); 146 isolate_->handle_scope_data();
147 147
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 current->level = level_; 203 current->level = level_;
204 ASSERT_EQ(current->next, current->limit); 204 ASSERT_EQ(current->next, current->limit);
205 current->limit = limit_; 205 current->limit = limit_;
206 } 206 }
207 207
208 #endif 208 #endif
209 209
210 } } // namespace v8::internal 210 } } // namespace v8::internal
211 211
212 #endif // V8_HANDLES_INL_H_ 212 #endif // V8_HANDLES_INL_H_
OLDNEW
« no previous file with comments | « src/handles.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698