OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 RawType* null_type() const { return null_type_; } | 60 RawType* null_type() const { return null_type_; } |
61 void set_null_type(const Type& value) { | 61 void set_null_type(const Type& value) { |
62 null_type_ = value.raw(); | 62 null_type_ = value.raw(); |
63 } | 63 } |
64 | 64 |
65 RawType* function_type() const { return function_type_; } | 65 RawType* function_type() const { return function_type_; } |
66 void set_function_type(const Type& value) { | 66 void set_function_type(const Type& value) { |
67 function_type_ = value.raw(); | 67 function_type_ = value.raw(); |
68 } | 68 } |
69 | 69 |
70 RawType* function_impl_type() const { return function_impl_type_; } | 70 RawClass* closure_class() const { return closure_class_; } |
71 void set_function_impl_type(const Type& value) { | 71 void set_closure_class(const Class& value) { |
72 function_impl_type_ = value.raw(); | 72 closure_class_ = value.raw(); |
73 } | 73 } |
74 | 74 |
75 RawType* number_type() const { return number_type_; } | 75 RawType* number_type() const { return number_type_; } |
76 void set_number_type(const Type& value) { | 76 void set_number_type(const Type& value) { |
77 number_type_ = value.raw(); | 77 number_type_ = value.raw(); |
78 } | 78 } |
79 | 79 |
80 RawType* int_type() const { return int_type_; } | 80 RawType* int_type() const { return int_type_; } |
81 void set_int_type(const Type& value) { | 81 void set_int_type(const Type& value) { |
82 int_type_ = value.raw(); | 82 int_type_ = value.raw(); |
(...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
497 | 497 |
498 private: | 498 private: |
499 ObjectStore(); | 499 ObjectStore(); |
500 | 500 |
501 RawObject** from() { return reinterpret_cast<RawObject**>(&object_class_); } | 501 RawObject** from() { return reinterpret_cast<RawObject**>(&object_class_); } |
502 RawClass* object_class_; | 502 RawClass* object_class_; |
503 RawType* object_type_; | 503 RawType* object_type_; |
504 RawClass* null_class_; | 504 RawClass* null_class_; |
505 RawType* null_type_; | 505 RawType* null_type_; |
506 RawType* function_type_; | 506 RawType* function_type_; |
507 RawType* function_impl_type_; | 507 RawClass* closure_class_; |
508 RawType* number_type_; | 508 RawType* number_type_; |
509 RawType* int_type_; | 509 RawType* int_type_; |
510 RawClass* integer_implementation_class_; | 510 RawClass* integer_implementation_class_; |
511 RawClass* smi_class_; | 511 RawClass* smi_class_; |
512 RawType* smi_type_; | 512 RawType* smi_type_; |
513 RawClass* mint_class_; | 513 RawClass* mint_class_; |
514 RawType* mint_type_; | 514 RawType* mint_type_; |
515 RawClass* bigint_class_; | 515 RawClass* bigint_class_; |
516 RawClass* double_class_; | 516 RawClass* double_class_; |
517 RawType* double_type_; | 517 RawType* double_type_; |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
590 friend class FullSnapshotWriter; | 590 friend class FullSnapshotWriter; |
591 friend class SnapshotReader; | 591 friend class SnapshotReader; |
592 friend class VmIsolateSnapshotReader; | 592 friend class VmIsolateSnapshotReader; |
593 | 593 |
594 DISALLOW_COPY_AND_ASSIGN(ObjectStore); | 594 DISALLOW_COPY_AND_ASSIGN(ObjectStore); |
595 }; | 595 }; |
596 | 596 |
597 } // namespace dart | 597 } // namespace dart |
598 | 598 |
599 #endif // VM_OBJECT_STORE_H_ | 599 #endif // VM_OBJECT_STORE_H_ |
OLD | NEW |