| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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_type() const { return function_type_; } | 53 RawType* function_type() const { return function_type_; } |
| 54 void set_function_type(const Type& value) { | 54 void set_function_type(const Type& value) { |
| 55 function_type_ = value.raw(); | 55 function_type_ = value.raw(); |
| 56 } | 56 } |
| 57 | 57 |
| 58 RawClass* type_class() const { return type_class_; } |
| 59 void set_type_class(const Class& value) { type_class_ = value.raw(); } |
| 60 |
| 61 RawClass* type_parameter_class() const { return type_parameter_class_; } |
| 62 void set_type_parameter_class(const Class& value) { |
| 63 type_parameter_class_ = value.raw(); |
| 64 } |
| 65 |
| 58 RawType* number_type() const { return number_type_; } | 66 RawType* number_type() const { return number_type_; } |
| 59 void set_number_type(const Type& value) { | 67 void set_number_type(const Type& value) { |
| 60 number_type_ = value.raw(); | 68 number_type_ = value.raw(); |
| 61 } | 69 } |
| 62 | 70 |
| 63 RawType* int_type() const { return int_type_; } | 71 RawType* int_type() const { return int_type_; } |
| 64 void set_int_type(const Type& value) { | 72 void set_int_type(const Type& value) { |
| 65 int_type_ = value.raw(); | 73 int_type_ = value.raw(); |
| 66 } | 74 } |
| 67 | 75 |
| (...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 462 private: | 470 private: |
| 463 ObjectStore(); | 471 ObjectStore(); |
| 464 | 472 |
| 465 RawObject** from() { return reinterpret_cast<RawObject**>(&object_class_); } | 473 RawObject** from() { return reinterpret_cast<RawObject**>(&object_class_); } |
| 466 RawClass* object_class_; | 474 RawClass* object_class_; |
| 467 RawType* object_type_; | 475 RawType* object_type_; |
| 468 RawType* null_type_; | 476 RawType* null_type_; |
| 469 RawType* dynamic_type_; | 477 RawType* dynamic_type_; |
| 470 RawType* void_type_; | 478 RawType* void_type_; |
| 471 RawType* function_type_; | 479 RawType* function_type_; |
| 480 RawClass* type_class_; |
| 481 RawClass* type_parameter_class_; |
| 472 RawType* number_type_; | 482 RawType* number_type_; |
| 473 RawType* int_type_; | 483 RawType* int_type_; |
| 474 RawClass* integer_implementation_class_; | 484 RawClass* integer_implementation_class_; |
| 475 RawClass* smi_class_; | 485 RawClass* smi_class_; |
| 476 RawType* smi_type_; | 486 RawType* smi_type_; |
| 477 RawClass* mint_class_; | 487 RawClass* mint_class_; |
| 478 RawType* mint_type_; | 488 RawType* mint_type_; |
| 479 RawClass* bigint_class_; | 489 RawClass* bigint_class_; |
| 480 RawClass* double_class_; | 490 RawClass* double_class_; |
| 481 RawType* double_type_; | 491 RawType* double_type_; |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 539 RawObject** to() { return reinterpret_cast<RawObject**>(&keyword_symbols_); } | 549 RawObject** to() { return reinterpret_cast<RawObject**>(&keyword_symbols_); } |
| 540 | 550 |
| 541 friend class SnapshotReader; | 551 friend class SnapshotReader; |
| 542 | 552 |
| 543 DISALLOW_COPY_AND_ASSIGN(ObjectStore); | 553 DISALLOW_COPY_AND_ASSIGN(ObjectStore); |
| 544 }; | 554 }; |
| 545 | 555 |
| 546 } // namespace dart | 556 } // namespace dart |
| 547 | 557 |
| 548 #endif // VM_OBJECT_STORE_H_ | 558 #endif // VM_OBJECT_STORE_H_ |
| OLD | NEW |