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

Side by Side Diff: runtime/vm/handles.h

Issue 10872043: - Remove redundant assertion. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 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 | « runtime/vm/gc_marker.cc ('k') | runtime/vm/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 (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef VM_HANDLES_H_ 5 #ifndef VM_HANDLES_H_
6 #define VM_HANDLES_H_ 6 #define VM_HANDLES_H_
7 7
8 #include "vm/allocation.h" 8 #include "vm/allocation.h"
9 #include "vm/flags.h"
9 10
10 namespace dart { 11 namespace dart {
11 12
12 // Handles are used in the Dart Virtual Machine to ensure that access 13 // Handles are used in the Dart Virtual Machine to ensure that access
13 // to dart objects in the virtual machine code is done in a 14 // to dart objects in the virtual machine code is done in a
14 // Garbage Collection safe manner. 15 // Garbage Collection safe manner.
15 // 16 //
16 // The class Handles is the basic type that implements creation of handles and 17 // The class Handles is the basic type that implements creation of handles and
17 // manages their life cycle (allocated either in the current zone or 18 // manages their life cycle (allocated either in the current zone or
18 // current handle scope). 19 // current handle scope).
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 // { 51 // {
51 // NOHANDLESCOPE(isolate); 52 // NOHANDLESCOPE(isolate);
52 // .... 53 // ....
53 // .... 54 // ....
54 // } 55 // }
55 56
56 57
57 // Forward declarations. 58 // Forward declarations.
58 class ObjectPointerVisitor; 59 class ObjectPointerVisitor;
59 60
61 DECLARE_FLAG(bool, verify_handles);
60 62
61 class HandleVisitor { 63 class HandleVisitor {
62 public: 64 public:
63 virtual void VisitHandle(uword addr) = 0; 65 virtual void VisitHandle(uword addr) = 0;
64 66
65 virtual ~HandleVisitor() { 67 virtual ~HandleVisitor() {
66 } 68 }
67 }; 69 };
68 70
69 71
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 }; 319 };
318 #endif // defined(DEBUG) 320 #endif // defined(DEBUG)
319 321
320 // Macro to start a no handles scope in the code. 322 // Macro to start a no handles scope in the code.
321 #define NOHANDLESCOPE(isolate) \ 323 #define NOHANDLESCOPE(isolate) \
322 dart::NoHandleScope no_vm_internal_handles_scope_(isolate); 324 dart::NoHandleScope no_vm_internal_handles_scope_(isolate);
323 325
324 } // namespace dart 326 } // namespace dart
325 327
326 #endif // VM_HANDLES_H_ 328 #endif // VM_HANDLES_H_
OLDNEW
« no previous file with comments | « runtime/vm/gc_marker.cc ('k') | runtime/vm/handles.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698