Chromium Code Reviews| 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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 } |
| 73 void set_integer_implementation_class(const Class& value) { | 73 void set_integer_implementation_class(const Class& value) { |
| 74 integer_implementation_class_ = value.raw(); | 74 integer_implementation_class_ = value.raw(); |
| 75 } | 75 } |
| 76 | 76 |
| 77 RawClass* smi_class() const { return smi_class_; } | 77 RawClass* smi_class() const { return smi_class_; } |
| 78 void set_smi_class(const Class& value) { smi_class_ = value.raw(); } | 78 void set_smi_class(const Class& value) { smi_class_ = value.raw(); } |
| 79 static intptr_t smi_class_offset() { | 79 static intptr_t smi_class_offset() { |
|
regis
2012/08/14 21:56:33
I do not think we use this getter anymore.
srdjan
2012/08/14 22:52:08
Removed
| |
| 80 return OFFSET_OF(ObjectStore, smi_class_); | 80 return OFFSET_OF(ObjectStore, smi_class_); |
| 81 } | 81 } |
| 82 | 82 |
| 83 RawType* smi_type() const { return smi_type_; } | |
| 84 void set_smi_type(const Type& value) { | |
| 85 smi_type_ = value.raw(); | |
| 86 } | |
| 87 | |
| 83 RawType* double_interface() const { return double_interface_; } | 88 RawType* double_interface() const { return double_interface_; } |
| 84 void set_double_interface(const Type& value) { | 89 void set_double_interface(const Type& value) { |
| 85 double_interface_ = value.raw(); | 90 double_interface_ = value.raw(); |
| 86 } | 91 } |
| 87 | 92 |
| 88 RawClass* double_class() const { return double_class_; } | 93 RawClass* double_class() const { return double_class_; } |
| 89 void set_double_class(const Class& value) { double_class_ = value.raw(); } | 94 void set_double_class(const Class& value) { double_class_ = value.raw(); } |
| 90 | 95 |
| 96 RawType* double_type() const { return double_type_; } | |
| 97 void set_double_type(const Type& value) { | |
| 98 double_type_ = value.raw(); | |
|
regis
2012/08/14 21:56:33
one line?
srdjan
2012/08/14 22:52:08
Done.
| |
| 99 } | |
| 100 | |
| 91 RawClass* mint_class() const { return mint_class_; } | 101 RawClass* mint_class() const { return mint_class_; } |
| 92 void set_mint_class(const Class& value) { mint_class_ = value.raw(); } | 102 void set_mint_class(const Class& value) { mint_class_ = value.raw(); } |
| 93 | 103 |
| 104 RawType* mint_type() const { return mint_type_; } | |
| 105 void set_mint_type(const Type& value) { | |
|
regis
2012/08/14 21:56:33
one line?
srdjan
2012/08/14 22:52:08
Done.
| |
| 106 mint_type_ = value.raw(); | |
| 107 } | |
| 108 | |
| 94 RawClass* bigint_class() const { return bigint_class_; } | 109 RawClass* bigint_class() const { return bigint_class_; } |
| 95 void set_bigint_class(const Class& value) { bigint_class_ = value.raw(); } | 110 void set_bigint_class(const Class& value) { bigint_class_ = value.raw(); } |
| 96 | 111 |
| 97 RawType* string_interface() const { return string_interface_; } | 112 RawType* string_interface() const { return string_interface_; } |
| 98 void set_string_interface(const Type& value) { | 113 void set_string_interface(const Type& value) { |
| 99 string_interface_ = value.raw(); | 114 string_interface_ = value.raw(); |
| 100 } | 115 } |
| 101 | 116 |
| 102 RawClass* one_byte_string_class() const { return one_byte_string_class_; } | 117 RawClass* one_byte_string_class() const { return one_byte_string_class_; } |
| 103 void set_one_byte_string_class(const Class& value) { | 118 void set_one_byte_string_class(const Class& value) { |
| (...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 459 RawClass* object_class_; | 474 RawClass* object_class_; |
| 460 RawType* object_type_; | 475 RawType* object_type_; |
| 461 RawType* null_type_; | 476 RawType* null_type_; |
| 462 RawType* dynamic_type_; | 477 RawType* dynamic_type_; |
| 463 RawType* void_type_; | 478 RawType* void_type_; |
| 464 RawType* function_interface_; | 479 RawType* function_interface_; |
| 465 RawType* number_interface_; | 480 RawType* number_interface_; |
| 466 RawType* int_interface_; | 481 RawType* int_interface_; |
| 467 RawClass* integer_implementation_class_; | 482 RawClass* integer_implementation_class_; |
| 468 RawClass* smi_class_; | 483 RawClass* smi_class_; |
| 484 RawType* smi_type_; | |
| 469 RawClass* mint_class_; | 485 RawClass* mint_class_; |
| 486 RawType* mint_type_; | |
| 470 RawClass* bigint_class_; | 487 RawClass* bigint_class_; |
| 471 RawType* double_interface_; | 488 RawType* double_interface_; |
| 472 RawClass* double_class_; | 489 RawClass* double_class_; |
| 490 RawType* double_type_; | |
| 473 RawType* string_interface_; | 491 RawType* string_interface_; |
| 474 RawClass* one_byte_string_class_; | 492 RawClass* one_byte_string_class_; |
| 475 RawClass* two_byte_string_class_; | 493 RawClass* two_byte_string_class_; |
| 476 RawClass* four_byte_string_class_; | 494 RawClass* four_byte_string_class_; |
| 477 RawClass* external_one_byte_string_class_; | 495 RawClass* external_one_byte_string_class_; |
| 478 RawClass* external_two_byte_string_class_; | 496 RawClass* external_two_byte_string_class_; |
| 479 RawClass* external_four_byte_string_class_; | 497 RawClass* external_four_byte_string_class_; |
| 480 RawType* bool_interface_; | 498 RawType* bool_interface_; |
| 481 RawClass* bool_class_; | 499 RawClass* bool_class_; |
| 482 RawType* list_interface_; | 500 RawType* list_interface_; |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 529 RawObject** to() { return reinterpret_cast<RawObject**>(&keyword_symbols_); } | 547 RawObject** to() { return reinterpret_cast<RawObject**>(&keyword_symbols_); } |
| 530 | 548 |
| 531 friend class SnapshotReader; | 549 friend class SnapshotReader; |
| 532 | 550 |
| 533 DISALLOW_COPY_AND_ASSIGN(ObjectStore); | 551 DISALLOW_COPY_AND_ASSIGN(ObjectStore); |
| 534 }; | 552 }; |
| 535 | 553 |
| 536 } // namespace dart | 554 } // namespace dart |
| 537 | 555 |
| 538 #endif // VM_OBJECT_STORE_H_ | 556 #endif // VM_OBJECT_STORE_H_ |
| OLD | NEW |