| OLD | NEW |
| 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 kExternalInt16ArrayClass, | 67 kExternalInt16ArrayClass, |
| 68 kExternalUint16ArrayClass, | 68 kExternalUint16ArrayClass, |
| 69 kExternalInt32ArrayClass, | 69 kExternalInt32ArrayClass, |
| 70 kExternalUint32ArrayClass, | 70 kExternalUint32ArrayClass, |
| 71 kExternalInt64ArrayClass, | 71 kExternalInt64ArrayClass, |
| 72 kExternalUint64ArrayClass, | 72 kExternalUint64ArrayClass, |
| 73 kExternalFloat32ArrayClass, | 73 kExternalFloat32ArrayClass, |
| 74 kExternalFloat64ArrayClass, | 74 kExternalFloat64ArrayClass, |
| 75 kStacktraceClass, | 75 kStacktraceClass, |
| 76 kJSRegExpClass, | 76 kJSRegExpClass, |
| 77 kWeakPropertyClass, |
| 77 kMaxId, | 78 kMaxId, |
| 78 kInvalidIndex = -1, | 79 kInvalidIndex = -1, |
| 79 }; | 80 }; |
| 80 | 81 |
| 81 ~ObjectStore(); | 82 ~ObjectStore(); |
| 82 | 83 |
| 83 RawClass* object_class() const { | 84 RawClass* object_class() const { |
| 84 ASSERT(object_class_ != Object::null()); | 85 ASSERT(object_class_ != Object::null()); |
| 85 return object_class_; | 86 return object_class_; |
| 86 } | 87 } |
| (...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 386 RawClass* jsregexp_class() const { | 387 RawClass* jsregexp_class() const { |
| 387 return jsregexp_class_; | 388 return jsregexp_class_; |
| 388 } | 389 } |
| 389 void set_jsregexp_class(const Class& value) { | 390 void set_jsregexp_class(const Class& value) { |
| 390 jsregexp_class_ = value.raw(); | 391 jsregexp_class_ = value.raw(); |
| 391 } | 392 } |
| 392 static intptr_t jsregexp_class_offset() { | 393 static intptr_t jsregexp_class_offset() { |
| 393 return OFFSET_OF(ObjectStore, jsregexp_class_); | 394 return OFFSET_OF(ObjectStore, jsregexp_class_); |
| 394 } | 395 } |
| 395 | 396 |
| 397 RawClass* weak_property_class() const { |
| 398 return weak_property_class_; |
| 399 } |
| 400 void set_weak_property_class(const Class& value) { |
| 401 weak_property_class_ = value.raw(); |
| 402 } |
| 403 |
| 396 RawArray* symbol_table() const { return symbol_table_; } | 404 RawArray* symbol_table() const { return symbol_table_; } |
| 397 void set_symbol_table(const Array& value) { symbol_table_ = value.raw(); } | 405 void set_symbol_table(const Array& value) { symbol_table_ = value.raw(); } |
| 398 | 406 |
| 399 RawArray* canonical_type_arguments() const { | 407 RawArray* canonical_type_arguments() const { |
| 400 return canonical_type_arguments_; | 408 return canonical_type_arguments_; |
| 401 } | 409 } |
| 402 void set_canonical_type_arguments(const Array& value) { | 410 void set_canonical_type_arguments(const Array& value) { |
| 403 canonical_type_arguments_ = value.raw(); | 411 canonical_type_arguments_ = value.raw(); |
| 404 } | 412 } |
| 405 | 413 |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 566 RawClass* external_int16_array_class_; | 574 RawClass* external_int16_array_class_; |
| 567 RawClass* external_uint16_array_class_; | 575 RawClass* external_uint16_array_class_; |
| 568 RawClass* external_int32_array_class_; | 576 RawClass* external_int32_array_class_; |
| 569 RawClass* external_uint32_array_class_; | 577 RawClass* external_uint32_array_class_; |
| 570 RawClass* external_int64_array_class_; | 578 RawClass* external_int64_array_class_; |
| 571 RawClass* external_uint64_array_class_; | 579 RawClass* external_uint64_array_class_; |
| 572 RawClass* external_float32_array_class_; | 580 RawClass* external_float32_array_class_; |
| 573 RawClass* external_float64_array_class_; | 581 RawClass* external_float64_array_class_; |
| 574 RawClass* stacktrace_class_; | 582 RawClass* stacktrace_class_; |
| 575 RawClass* jsregexp_class_; | 583 RawClass* jsregexp_class_; |
| 584 RawClass* weak_property_class_; |
| 576 RawBool* true_value_; | 585 RawBool* true_value_; |
| 577 RawBool* false_value_; | 586 RawBool* false_value_; |
| 578 RawArray* empty_array_; | 587 RawArray* empty_array_; |
| 579 RawArray* symbol_table_; | 588 RawArray* symbol_table_; |
| 580 RawArray* canonical_type_arguments_; | 589 RawArray* canonical_type_arguments_; |
| 581 RawLibrary* core_library_; | 590 RawLibrary* core_library_; |
| 582 RawLibrary* core_impl_library_; | 591 RawLibrary* core_impl_library_; |
| 583 RawLibrary* math_library_; | 592 RawLibrary* math_library_; |
| 584 RawLibrary* isolate_library_; | 593 RawLibrary* isolate_library_; |
| 585 RawLibrary* mirrors_library_; | 594 RawLibrary* mirrors_library_; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 597 RawObject** to() { return reinterpret_cast<RawObject**>(&keyword_symbols_); } | 606 RawObject** to() { return reinterpret_cast<RawObject**>(&keyword_symbols_); } |
| 598 | 607 |
| 599 friend class SnapshotReader; | 608 friend class SnapshotReader; |
| 600 | 609 |
| 601 DISALLOW_COPY_AND_ASSIGN(ObjectStore); | 610 DISALLOW_COPY_AND_ASSIGN(ObjectStore); |
| 602 }; | 611 }; |
| 603 | 612 |
| 604 } // namespace dart | 613 } // namespace dart |
| 605 | 614 |
| 606 #endif // VM_OBJECT_STORE_H_ | 615 #endif // VM_OBJECT_STORE_H_ |
| OLD | NEW |