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

Side by Side Diff: vm/handles.h

Issue 11469036: - Create frame work for adding read only handles for symbols in the VM isolate (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years 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
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 #include "vm/flags.h"
10 10
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 207
208 // Zaps the free scoped handles to an uninitialized value. 208 // Zaps the free scoped handles to an uninitialized value.
209 void ZapFreeScopedHandles(); 209 void ZapFreeScopedHandles();
210 #endif 210 #endif
211 211
212 HandlesBlock* zone_blocks_; // List of zone handles. 212 HandlesBlock* zone_blocks_; // List of zone handles.
213 HandlesBlock first_scoped_block_; // First block of scoped handles. 213 HandlesBlock first_scoped_block_; // First block of scoped handles.
214 HandlesBlock* scoped_blocks_; // List of scoped handles. 214 HandlesBlock* scoped_blocks_; // List of scoped handles.
215 215
216 friend class HandleScope; 216 friend class HandleScope;
217 friend class Symbols;
217 DISALLOW_ALLOCATION(); 218 DISALLOW_ALLOCATION();
218 DISALLOW_COPY_AND_ASSIGN(Handles); 219 DISALLOW_COPY_AND_ASSIGN(Handles);
219 }; 220 };
220 221
221 222
222 static const int kVMHandleSizeInWords = 2; 223 static const int kVMHandleSizeInWords = 2;
223 static const int kVMHandlesPerChunk = 64; 224 static const int kVMHandlesPerChunk = 64;
224 static const int kOffsetOfRawPtr = kWordSize; 225 static const int kOffsetOfRawPtr = kWordSize;
225 class VMHandles : public Handles<kVMHandleSizeInWords, 226 class VMHandles : public Handles<kVMHandleSizeInWords,
226 kVMHandlesPerChunk, 227 kVMHandlesPerChunk,
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 }; 317 };
317 #endif // defined(DEBUG) 318 #endif // defined(DEBUG)
318 319
319 // Macro to start a no handles scope in the code. 320 // Macro to start a no handles scope in the code.
320 #define NOHANDLESCOPE(isolate) \ 321 #define NOHANDLESCOPE(isolate) \
321 dart::NoHandleScope no_vm_internal_handles_scope_(isolate); 322 dart::NoHandleScope no_vm_internal_handles_scope_(isolate);
322 323
323 } // namespace dart 324 } // namespace dart
324 325
325 #endif // VM_HANDLES_H_ 326 #endif // VM_HANDLES_H_
OLDNEW
« no previous file with comments | « vm/flow_graph_builder.cc ('k') | vm/parser.cc » ('j') | vm/parser.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698