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

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

Issue 11028145: Changed StackZone and ApiZone to be containers for Zone. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Added assertion for ApiZone linking. Created 8 years, 2 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
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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 // Accessors. 170 // Accessors.
171 intptr_t next_handle_slot() const { return next_handle_slot_; } 171 intptr_t next_handle_slot() const { return next_handle_slot_; }
172 void set_next_handle_slot(intptr_t next_handle_slot) { 172 void set_next_handle_slot(intptr_t next_handle_slot) {
173 next_handle_slot_ = next_handle_slot; 173 next_handle_slot_ = next_handle_slot;
174 } 174 }
175 HandlesBlock* next_block() const { return next_block_; } 175 HandlesBlock* next_block() const { return next_block_; }
176 void set_next_block(HandlesBlock* next) { next_block_ = next; } 176 void set_next_block(HandlesBlock* next) { next_block_ = next; }
177 177
178 private: 178 private:
179 // Zap value used to indicate uninitialized handle area (debug purposes). 179 // Zap value used to indicate uninitialized handle area (debug purposes).
180 static const uword kZapUninitializedWord = 0xabababab; 180 static const uword kZapUninitializedWord = (uword) 0xabababababababab;
siva 2012/10/12 20:40:21 We should probably move this to vm/globals.h and d
Ivan Posva 2012/10/12 21:46:33 Please use C++ style casts.
Tom Ball 2012/10/12 22:56:51 Done.
Tom Ball 2012/10/12 22:56:51 Removed cast.
181 181
182 uword data_[kHandleSizeInWords * kHandlesPerChunk]; // Handles area. 182 uword data_[kHandleSizeInWords * kHandlesPerChunk]; // Handles area.
183 intptr_t next_handle_slot_; // Next slot for allocation in current block. 183 intptr_t next_handle_slot_; // Next slot for allocation in current block.
184 HandlesBlock* next_block_; // Link to next block of handles. 184 HandlesBlock* next_block_; // Link to next block of handles.
185 185
186 DISALLOW_COPY_AND_ASSIGN(HandlesBlock); 186 DISALLOW_COPY_AND_ASSIGN(HandlesBlock);
187 }; 187 };
188 188
189 // Deletes all the allocated handle blocks. 189 // Deletes all the allocated handle blocks.
190 void DeleteAll(); 190 void DeleteAll();
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 }; 319 };
320 #endif // defined(DEBUG) 320 #endif // defined(DEBUG)
321 321
322 // Macro to start a no handles scope in the code. 322 // Macro to start a no handles scope in the code.
323 #define NOHANDLESCOPE(isolate) \ 323 #define NOHANDLESCOPE(isolate) \
324 dart::NoHandleScope no_vm_internal_handles_scope_(isolate); 324 dart::NoHandleScope no_vm_internal_handles_scope_(isolate);
325 325
326 } // namespace dart 326 } // namespace dart
327 327
328 #endif // VM_HANDLES_H_ 328 #endif // VM_HANDLES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698