| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 RawType* dynamic_type() const { return dynamic_type_; } | 43 RawType* dynamic_type() const { return dynamic_type_; } |
| 44 void set_dynamic_type(const Type& value) { | 44 void set_dynamic_type(const Type& value) { |
| 45 dynamic_type_ = value.raw(); | 45 dynamic_type_ = value.raw(); |
| 46 } | 46 } |
| 47 | 47 |
| 48 RawType* void_type() const { return void_type_; } | 48 RawType* void_type() const { return void_type_; } |
| 49 void set_void_type(const Type& value) { | 49 void set_void_type(const Type& value) { |
| 50 void_type_ = value.raw(); | 50 void_type_ = value.raw(); |
| 51 } | 51 } |
| 52 | 52 |
| 53 RawType* function_interface() const { | 53 RawType* function_type() const { |
| 54 return function_interface_; | 54 return function_type_; |
| 55 } | 55 } |
| 56 void set_function_interface(const Type& value) { | 56 void set_function_type(const Type& value) { |
| 57 function_interface_ = value.raw(); | 57 function_type_ = value.raw(); |
| 58 } | 58 } |
| 59 | 59 |
| 60 RawType* number_interface() const { return number_interface_; } | 60 RawType* number_type() const { return number_type_; } |
| 61 void set_number_interface(const Type& value) { | 61 void set_number_type(const Type& value) { |
| 62 number_interface_ = value.raw(); | 62 number_type_ = value.raw(); |
| 63 } | 63 } |
| 64 | 64 |
| 65 RawType* int_interface() const { return int_interface_; } | 65 RawType* int_interface() const { return int_interface_; } |
| 66 void set_int_interface(const Type& value) { | 66 void set_int_interface(const Type& value) { |
| 67 int_interface_ = value.raw(); | 67 int_interface_ = value.raw(); |
| 68 } | 68 } |
| 69 | 69 |
| 70 RawClass* integer_implementation_class() const { | 70 RawClass* integer_implementation_class() const { |
| 71 return integer_implementation_class_; | 71 return integer_implementation_class_; |
| 72 } | 72 } |
| (...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 468 | 468 |
| 469 private: | 469 private: |
| 470 ObjectStore(); | 470 ObjectStore(); |
| 471 | 471 |
| 472 RawObject** from() { return reinterpret_cast<RawObject**>(&object_class_); } | 472 RawObject** from() { return reinterpret_cast<RawObject**>(&object_class_); } |
| 473 RawClass* object_class_; | 473 RawClass* object_class_; |
| 474 RawType* object_type_; | 474 RawType* object_type_; |
| 475 RawType* null_type_; | 475 RawType* null_type_; |
| 476 RawType* dynamic_type_; | 476 RawType* dynamic_type_; |
| 477 RawType* void_type_; | 477 RawType* void_type_; |
| 478 RawType* function_interface_; | 478 RawType* function_type_; |
| 479 RawType* number_interface_; | 479 RawType* number_type_; |
| 480 RawType* int_interface_; | 480 RawType* int_interface_; |
| 481 RawClass* integer_implementation_class_; | 481 RawClass* integer_implementation_class_; |
| 482 RawClass* smi_class_; | 482 RawClass* smi_class_; |
| 483 RawType* smi_type_; | 483 RawType* smi_type_; |
| 484 RawClass* mint_class_; | 484 RawClass* mint_class_; |
| 485 RawType* mint_type_; | 485 RawType* mint_type_; |
| 486 RawClass* bigint_class_; | 486 RawClass* bigint_class_; |
| 487 RawType* double_interface_; | 487 RawType* double_interface_; |
| 488 RawClass* double_class_; | 488 RawClass* double_class_; |
| 489 RawType* double_type_; | 489 RawType* double_type_; |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 547 RawObject** to() { return reinterpret_cast<RawObject**>(&keyword_symbols_); } | 547 RawObject** to() { return reinterpret_cast<RawObject**>(&keyword_symbols_); } |
| 548 | 548 |
| 549 friend class SnapshotReader; | 549 friend class SnapshotReader; |
| 550 | 550 |
| 551 DISALLOW_COPY_AND_ASSIGN(ObjectStore); | 551 DISALLOW_COPY_AND_ASSIGN(ObjectStore); |
| 552 }; | 552 }; |
| 553 | 553 |
| 554 } // namespace dart | 554 } // namespace dart |
| 555 | 555 |
| 556 #endif // VM_OBJECT_STORE_H_ | 556 #endif // VM_OBJECT_STORE_H_ |
| OLD | NEW |