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

Side by Side Diff: vm/object_store.h

Issue 9030013: Fix issue 1023: (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 11 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 | « vm/object.cc ('k') | vm/object_store.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_OBJECT_STORE_H_ 5 #ifndef VM_OBJECT_STORE_H_
6 #define VM_OBJECT_STORE_H_ 6 #define VM_OBJECT_STORE_H_
7 7
8 #include "vm/object.h" 8 #include "vm/object.h"
9 9
10 namespace dart { 10 namespace dart {
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 RawContext* empty_context() const { return empty_context_; } 284 RawContext* empty_context() const { return empty_context_; }
285 void set_empty_context(const Context& value) { 285 void set_empty_context(const Context& value) {
286 empty_context_ = value.raw(); 286 empty_context_ = value.raw();
287 } 287 }
288 288
289 RawInstance* stack_overflow() const { return stack_overflow_; } 289 RawInstance* stack_overflow() const { return stack_overflow_; }
290 void set_stack_overflow(const Instance& value) { 290 void set_stack_overflow(const Instance& value) {
291 stack_overflow_ = value.raw(); 291 stack_overflow_ = value.raw();
292 } 292 }
293 293
294 RawInstance* out_of_memory() const { return out_of_memory_; }
295 void set_out_of_memory(const Instance& value) {
296 out_of_memory_ = value.raw();
297 }
298
294 // Visit all object pointers. 299 // Visit all object pointers.
295 void VisitObjectPointers(ObjectPointerVisitor* visitor); 300 void VisitObjectPointers(ObjectPointerVisitor* visitor);
296 301
297 RawClass* GetClass(int index); 302 RawClass* GetClass(int index);
298 int GetClassIndex(const RawClass* raw_class); 303 int GetClassIndex(const RawClass* raw_class);
299 RawType* GetType(int index); 304 RawType* GetType(int index);
300 int GetTypeIndex(const RawType* raw_type); 305 int GetTypeIndex(const RawType* raw_type);
301 306
302 // Called to initialize objects required by the vm but which invoke 307 // Called to initialize objects required by the vm but which invoke
303 // dart code. If an error occurs then false is returned and error 308 // dart code. If an error occurs then false is returned and error
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 RawArray* canonical_type_arguments_; 351 RawArray* canonical_type_arguments_;
347 RawLibrary* core_library_; 352 RawLibrary* core_library_;
348 RawLibrary* core_impl_library_; 353 RawLibrary* core_impl_library_;
349 RawLibrary* native_wrappers_library_; 354 RawLibrary* native_wrappers_library_;
350 RawLibrary* root_library_; 355 RawLibrary* root_library_;
351 RawLibrary* registered_libraries_; 356 RawLibrary* registered_libraries_;
352 RawArray* pending_classes_; 357 RawArray* pending_classes_;
353 RawString* sticky_error_; 358 RawString* sticky_error_;
354 RawContext* empty_context_; 359 RawContext* empty_context_;
355 RawInstance* stack_overflow_; 360 RawInstance* stack_overflow_;
356 RawObject** to() { return reinterpret_cast<RawObject**>(&stack_overflow_); } 361 RawInstance* out_of_memory_;
362 RawObject** to() { return reinterpret_cast<RawObject**>(&out_of_memory_); }
357 363
358 bool preallocate_objects_called_; 364 bool preallocate_objects_called_;
359 365
360 friend class SnapshotReader; 366 friend class SnapshotReader;
361 367
362 DISALLOW_COPY_AND_ASSIGN(ObjectStore); 368 DISALLOW_COPY_AND_ASSIGN(ObjectStore);
363 }; 369 };
364 370
365 } // namespace dart 371 } // namespace dart
366 372
367 #endif // VM_OBJECT_STORE_H_ 373 #endif // VM_OBJECT_STORE_H_
OLDNEW
« no previous file with comments | « vm/object.cc ('k') | vm/object_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698