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

Side by Side Diff: vm/raw_object.h

Issue 8787012: - Add free list to be used for sweep phase of mark-sweep collector. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: '' Created 9 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_RAW_OBJECT_H_ 5 #ifndef VM_RAW_OBJECT_H_
6 #define VM_RAW_OBJECT_H_ 6 #define VM_RAW_OBJECT_H_
7 7
8 #include "vm/assert.h" 8 #include "vm/assert.h"
9 #include "vm/globals.h" 9 #include "vm/globals.h"
10 #include "vm/snapshot.h" 10 #include "vm/snapshot.h"
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 ObjectKind instance_kind_; 245 ObjectKind instance_kind_;
246 intptr_t type_arguments_instance_field_offset_; // May be kNoTypeArguments. 246 intptr_t type_arguments_instance_field_offset_; // May be kNoTypeArguments.
247 intptr_t next_field_offset_; // Offset of then next instance field. 247 intptr_t next_field_offset_; // Offset of then next instance field.
248 intptr_t num_native_fields_; // Number of native fields in class. 248 intptr_t num_native_fields_; // Number of native fields in class.
249 int8_t class_state_; // Of type ClassState. 249 int8_t class_state_; // Of type ClassState.
250 bool is_const_; 250 bool is_const_;
251 bool is_interface_; 251 bool is_interface_;
252 252
253 friend class Object; 253 friend class Object;
254 friend class RawInstance; 254 friend class RawInstance;
255 friend RawClass* AllocateFakeClass();
255 }; 256 };
256 257
257 258
258 class RawUnresolvedClass : public RawObject { 259 class RawUnresolvedClass : public RawObject {
259 RAW_HEAP_OBJECT_IMPLEMENTATION(UnresolvedClass); 260 RAW_HEAP_OBJECT_IMPLEMENTATION(UnresolvedClass);
260 261
261 RawObject** from() { 262 RawObject** from() {
262 return reinterpret_cast<RawObject**>(&ptr()->qualifier_); 263 return reinterpret_cast<RawObject**>(&ptr()->qualifier_);
263 } 264 }
264 RawString* qualifier_; // Qualifier for the identifier. 265 RawString* qualifier_; // Qualifier for the identifier.
(...skipping 589 matching lines...) Expand 10 before | Expand all | Expand 10 after
854 intptr_t type_; // Uninitialized, simple or complex. 855 intptr_t type_; // Uninitialized, simple or complex.
855 intptr_t flags_; // Represents global/local, case insensitive, multiline. 856 intptr_t flags_; // Represents global/local, case insensitive, multiline.
856 857
857 // Variable length data follows here. 858 // Variable length data follows here.
858 uint8_t data_[0]; 859 uint8_t data_[0];
859 }; 860 };
860 861
861 } // namespace dart 862 } // namespace dart
862 863
863 #endif // VM_RAW_OBJECT_H_ 864 #endif // VM_RAW_OBJECT_H_
OLDNEW
« vm/freelist.cc ('K') | « vm/freelist_test.cc ('k') | vm/vm_sources.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698