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

Side by Side Diff: vm/object_store.h

Issue 10827249: - Register canonical names for internal VM classes and get rid of the method GetSingletonClassName (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
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
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 403 matching lines...) Expand 10 before | Expand all | Expand 10 after
414 sticky_error_ = value.raw(); 414 sticky_error_ = value.raw();
415 } 415 }
416 void clear_sticky_error() { sticky_error_ = Error::null(); } 416 void clear_sticky_error() { sticky_error_ = Error::null(); }
417 417
418 RawBool* true_value() const { return true_value_; } 418 RawBool* true_value() const { return true_value_; }
419 void set_true_value(const Bool& value) { true_value_ = value.raw(); } 419 void set_true_value(const Bool& value) { true_value_ = value.raw(); }
420 420
421 RawBool* false_value() const { return false_value_; } 421 RawBool* false_value() const { return false_value_; }
422 void set_false_value(const Bool& value) { false_value_ = value.raw(); } 422 void set_false_value(const Bool& value) { false_value_ = value.raw(); }
423 423
424 RawArray* empty_array() const { return empty_array_; }
425 void set_empty_array(const Array& value) { empty_array_ = value.raw(); }
426
427 RawContext* empty_context() const { return empty_context_; } 424 RawContext* empty_context() const { return empty_context_; }
428 void set_empty_context(const Context& value) { 425 void set_empty_context(const Context& value) {
429 empty_context_ = value.raw(); 426 empty_context_ = value.raw();
430 } 427 }
431 428
432 RawInstance* stack_overflow() const { return stack_overflow_; } 429 RawInstance* stack_overflow() const { return stack_overflow_; }
433 void set_stack_overflow(const Instance& value) { 430 void set_stack_overflow(const Instance& value) {
434 stack_overflow_ = value.raw(); 431 stack_overflow_ = value.raw();
435 } 432 }
436 433
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
507 RawClass* external_int32_array_class_; 504 RawClass* external_int32_array_class_;
508 RawClass* external_uint32_array_class_; 505 RawClass* external_uint32_array_class_;
509 RawClass* external_int64_array_class_; 506 RawClass* external_int64_array_class_;
510 RawClass* external_uint64_array_class_; 507 RawClass* external_uint64_array_class_;
511 RawClass* external_float32_array_class_; 508 RawClass* external_float32_array_class_;
512 RawClass* external_float64_array_class_; 509 RawClass* external_float64_array_class_;
513 RawClass* stacktrace_class_; 510 RawClass* stacktrace_class_;
514 RawClass* jsregexp_class_; 511 RawClass* jsregexp_class_;
515 RawBool* true_value_; 512 RawBool* true_value_;
516 RawBool* false_value_; 513 RawBool* false_value_;
517 RawArray* empty_array_;
518 RawArray* symbol_table_; 514 RawArray* symbol_table_;
519 RawArray* canonical_type_arguments_; 515 RawArray* canonical_type_arguments_;
520 RawLibrary* core_library_; 516 RawLibrary* core_library_;
521 RawLibrary* core_impl_library_; 517 RawLibrary* core_impl_library_;
522 RawLibrary* math_library_; 518 RawLibrary* math_library_;
523 RawLibrary* isolate_library_; 519 RawLibrary* isolate_library_;
524 RawLibrary* mirrors_library_; 520 RawLibrary* mirrors_library_;
525 RawLibrary* native_wrappers_library_; 521 RawLibrary* native_wrappers_library_;
526 RawLibrary* builtin_library_; 522 RawLibrary* builtin_library_;
527 RawLibrary* root_library_; 523 RawLibrary* root_library_;
528 RawGrowableObjectArray* libraries_; 524 RawGrowableObjectArray* libraries_;
529 RawArray* import_map_; 525 RawArray* import_map_;
530 RawGrowableObjectArray* pending_classes_; 526 RawGrowableObjectArray* pending_classes_;
531 RawError* sticky_error_; 527 RawError* sticky_error_;
532 RawContext* empty_context_; 528 RawContext* empty_context_;
533 RawInstance* stack_overflow_; 529 RawInstance* stack_overflow_;
534 RawInstance* out_of_memory_; 530 RawInstance* out_of_memory_;
535 RawArray* keyword_symbols_; 531 RawArray* keyword_symbols_;
536 RawObject** to() { return reinterpret_cast<RawObject**>(&keyword_symbols_); } 532 RawObject** to() { return reinterpret_cast<RawObject**>(&keyword_symbols_); }
537 533
538 friend class SnapshotReader; 534 friend class SnapshotReader;
539 535
540 DISALLOW_COPY_AND_ASSIGN(ObjectStore); 536 DISALLOW_COPY_AND_ASSIGN(ObjectStore);
541 }; 537 };
542 538
543 } // namespace dart 539 } // namespace dart
544 540
545 #endif // VM_OBJECT_STORE_H_ 541 #endif // VM_OBJECT_STORE_H_
OLDNEW
« vm/object.h ('K') | « vm/object.cc ('k') | vm/object_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698