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

Side by Side Diff: src/handles.h

Issue 1210153003: Fix flag convention in handle count tests and comment. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | test/mjsunit/handle-count-ast.js » ('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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_HANDLES_H_ 5 #ifndef V8_HANDLES_H_
6 #define V8_HANDLES_H_ 6 #define V8_HANDLES_H_
7 7
8 #include "src/objects.h" 8 #include "src/objects.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 219
220 // Closes the HandleScope (invalidating all handles 220 // Closes the HandleScope (invalidating all handles
221 // created in the scope of the HandleScope) and returns 221 // created in the scope of the HandleScope) and returns
222 // a Handle backed by the parent scope holding the 222 // a Handle backed by the parent scope holding the
223 // value of the argument handle. 223 // value of the argument handle.
224 template <typename T> 224 template <typename T>
225 Handle<T> CloseAndEscape(Handle<T> handle_value); 225 Handle<T> CloseAndEscape(Handle<T> handle_value);
226 226
227 Isolate* isolate() { return isolate_; } 227 Isolate* isolate() { return isolate_; }
228 228
229 // Limit for number of handles with --check_handle-count. This is 229 // Limit for number of handles with --check-handle-count. This is
230 // large enough to compile natives and pass unit tests with some 230 // large enough to compile natives and pass unit tests with some
231 // slack for future changes to natives. 231 // slack for future changes to natives.
232 static const int kCheckHandleThreshold = 30 * 1024; 232 static const int kCheckHandleThreshold = 30 * 1024;
233 233
234 private: 234 private:
235 // Prevent heap allocation or illegal handle scopes. 235 // Prevent heap allocation or illegal handle scopes.
236 HandleScope(const HandleScope&); 236 HandleScope(const HandleScope&);
237 void operator=(const HandleScope&); 237 void operator=(const HandleScope&);
238 void* operator new(size_t size); 238 void* operator new(size_t size);
239 void operator delete(void* size_t); 239 void operator delete(void* size_t);
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 312
313 void Initialize() { 313 void Initialize() {
314 next = limit = NULL; 314 next = limit = NULL;
315 level = 0; 315 level = 0;
316 } 316 }
317 }; 317 };
318 318
319 } } // namespace v8::internal 319 } } // namespace v8::internal
320 320
321 #endif // V8_HANDLES_H_ 321 #endif // V8_HANDLES_H_
OLDNEW
« no previous file with comments | « no previous file | test/mjsunit/handle-count-ast.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698