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

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

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/handles.h ('k') | runtime/vm/object.h » ('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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 #include "vm/handles.h" 5 #include "vm/handles.h"
6 6
7 #include "platform/assert.h" 7 #include "platform/assert.h"
8 #include "platform/utils.h" 8 #include "platform/utils.h"
9 #include "vm/flags.h" 9 #include "vm/flags.h"
10 #include "vm/isolate.h" 10 #include "vm/isolate.h"
11 #include "vm/os.h" 11 #include "vm/os.h"
12 #include "vm/raw_object.h" 12 #include "vm/raw_object.h"
13 #include "vm/visitor.h" 13 #include "vm/visitor.h"
14 #include "vm/zone.h" 14 #include "vm/zone.h"
15 15
16 #include "vm/handles_impl.h" 16 #include "vm/handles_impl.h"
17 17
18 namespace dart { 18 namespace dart {
19 19
20 DEFINE_FLAG(bool, verify_handles, false, "Verify handles.");
20 DEFINE_DEBUG_FLAG(bool, trace_handles_count, 21 DEFINE_DEBUG_FLAG(bool, trace_handles_count,
21 false, "Trace count of handles allocated."); 22 false, "Trace count of handles allocated.");
22 23
23 24
24 VMHandles::~VMHandles() { 25 VMHandles::~VMHandles() {
25 } 26 }
26 27
27 28
28 void VMHandles::VisitObjectPointers(ObjectPointerVisitor* visitor) { 29 void VMHandles::VisitObjectPointers(ObjectPointerVisitor* visitor) {
29 return Handles<kVMHandleSizeInWords, 30 return Handles<kVMHandleSizeInWords,
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 isolate()->IncrementNoHandleScopeDepth(); 108 isolate()->IncrementNoHandleScopeDepth();
108 } 109 }
109 110
110 111
111 NoHandleScope::~NoHandleScope() { 112 NoHandleScope::~NoHandleScope() {
112 isolate()->DecrementNoHandleScopeDepth(); 113 isolate()->DecrementNoHandleScopeDepth();
113 } 114 }
114 #endif // defined(DEBUG) 115 #endif // defined(DEBUG)
115 116
116 } // namespace dart 117 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/handles.h ('k') | runtime/vm/object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698