| 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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(); |
| 83 } | 83 } |
| 84 static intptr_t int_type_offset() { |
| 85 return OFFSET_OF(ObjectStore, int_type_); |
| 86 } |
| 84 | 87 |
| 85 RawClass* integer_implementation_class() const { | 88 RawClass* integer_implementation_class() const { |
| 86 return integer_implementation_class_; | 89 return integer_implementation_class_; |
| 87 } | 90 } |
| 88 void set_integer_implementation_class(const Class& value) { | 91 void set_integer_implementation_class(const Class& value) { |
| 89 integer_implementation_class_ = value.raw(); | 92 integer_implementation_class_ = value.raw(); |
| 90 } | 93 } |
| 91 | 94 |
| 92 RawClass* smi_class() const { return smi_class_; } | 95 RawClass* smi_class() const { return smi_class_; } |
| 93 void set_smi_class(const Class& value) { smi_class_ = value.raw(); } | 96 void set_smi_class(const Class& value) { smi_class_ = value.raw(); } |
| 94 | 97 |
| 95 RawType* smi_type() const { return smi_type_; } | 98 RawType* smi_type() const { return smi_type_; } |
| 96 void set_smi_type(const Type& value) { smi_type_ = value.raw(); | 99 void set_smi_type(const Type& value) { smi_type_ = value.raw(); } |
| 97 } | |
| 98 | 100 |
| 99 RawClass* double_class() const { return double_class_; } | 101 RawClass* double_class() const { return double_class_; } |
| 100 void set_double_class(const Class& value) { double_class_ = value.raw(); } | 102 void set_double_class(const Class& value) { double_class_ = value.raw(); } |
| 101 | 103 |
| 102 RawType* double_type() const { return double_type_; } | 104 RawType* double_type() const { return double_type_; } |
| 103 void set_double_type(const Type& value) { double_type_ = value.raw(); } | 105 void set_double_type(const Type& value) { double_type_ = value.raw(); } |
| 106 static intptr_t double_type_offset() { |
| 107 return OFFSET_OF(ObjectStore, double_type_); |
| 108 } |
| 104 | 109 |
| 105 RawClass* mint_class() const { return mint_class_; } | 110 RawClass* mint_class() const { return mint_class_; } |
| 106 void set_mint_class(const Class& value) { mint_class_ = value.raw(); } | 111 void set_mint_class(const Class& value) { mint_class_ = value.raw(); } |
| 107 | 112 |
| 108 RawType* mint_type() const { return mint_type_; } | 113 RawType* mint_type() const { return mint_type_; } |
| 109 void set_mint_type(const Type& value) { mint_type_ = value.raw(); } | 114 void set_mint_type(const Type& value) { mint_type_ = value.raw(); } |
| 110 | 115 |
| 111 RawClass* bigint_class() const { return bigint_class_; } | 116 RawClass* bigint_class() const { return bigint_class_; } |
| 112 void set_bigint_class(const Class& value) { bigint_class_ = value.raw(); } | 117 void set_bigint_class(const Class& value) { bigint_class_ = value.raw(); } |
| 113 | 118 |
| 114 RawType* string_type() const { return string_type_; } | 119 RawType* string_type() const { return string_type_; } |
| 115 void set_string_type(const Type& value) { | 120 void set_string_type(const Type& value) { |
| 116 string_type_ = value.raw(); | 121 string_type_ = value.raw(); |
| 117 } | 122 } |
| 123 static intptr_t string_type_offset() { |
| 124 return OFFSET_OF(ObjectStore, string_type_); |
| 125 } |
| 118 | 126 |
| 119 RawClass* compiletime_error_class() const { | 127 RawClass* compiletime_error_class() const { |
| 120 return compiletime_error_class_; | 128 return compiletime_error_class_; |
| 121 } | 129 } |
| 122 void set_compiletime_error_class(const Class& value) { | 130 void set_compiletime_error_class(const Class& value) { |
| 123 compiletime_error_class_ = value.raw(); | 131 compiletime_error_class_ = value.raw(); |
| 124 } | 132 } |
| 125 | 133 |
| 126 RawClass* future_class() const { return future_class_; } | 134 RawClass* future_class() const { return future_class_; } |
| 127 void set_future_class(const Class& value) { | 135 void set_future_class(const Class& value) { |
| (...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 633 | 641 |
| 634 friend class Serializer; | 642 friend class Serializer; |
| 635 friend class Deserializer; | 643 friend class Deserializer; |
| 636 | 644 |
| 637 DISALLOW_COPY_AND_ASSIGN(ObjectStore); | 645 DISALLOW_COPY_AND_ASSIGN(ObjectStore); |
| 638 }; | 646 }; |
| 639 | 647 |
| 640 } // namespace dart | 648 } // namespace dart |
| 641 | 649 |
| 642 #endif // VM_OBJECT_STORE_H_ | 650 #endif // VM_OBJECT_STORE_H_ |
| OLD | NEW |