Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(247)

Side by Side Diff: runtime/vm/object_store.h

Issue 10942025: Convert String and List to abstract classes. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated to tip-of-tree. Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 95
96 RawClass* mint_class() const { return mint_class_; } 96 RawClass* mint_class() const { return mint_class_; }
97 void set_mint_class(const Class& value) { mint_class_ = value.raw(); } 97 void set_mint_class(const Class& value) { mint_class_ = value.raw(); }
98 98
99 RawType* mint_type() const { return mint_type_; } 99 RawType* mint_type() const { return mint_type_; }
100 void set_mint_type(const Type& value) { mint_type_ = value.raw(); } 100 void set_mint_type(const Type& value) { mint_type_ = value.raw(); }
101 101
102 RawClass* bigint_class() const { return bigint_class_; } 102 RawClass* bigint_class() const { return bigint_class_; }
103 void set_bigint_class(const Class& value) { bigint_class_ = value.raw(); } 103 void set_bigint_class(const Class& value) { bigint_class_ = value.raw(); }
104 104
105 RawType* string_interface() const { return string_interface_; } 105 RawType* string_type() const { return string_type_; }
106 void set_string_interface(const Type& value) { 106 void set_string_type(const Type& value) {
107 string_interface_ = value.raw(); 107 string_type_ = value.raw();
108 } 108 }
109 109
110 RawClass* one_byte_string_class() const { return one_byte_string_class_; } 110 RawClass* one_byte_string_class() const { return one_byte_string_class_; }
111 void set_one_byte_string_class(const Class& value) { 111 void set_one_byte_string_class(const Class& value) {
112 one_byte_string_class_ = value.raw(); 112 one_byte_string_class_ = value.raw();
113 } 113 }
114 114
115 RawClass* two_byte_string_class() const { return two_byte_string_class_; } 115 RawClass* two_byte_string_class() const { return two_byte_string_class_; }
116 void set_two_byte_string_class(const Class& value) { 116 void set_two_byte_string_class(const Class& value) {
117 two_byte_string_class_ = value.raw(); 117 two_byte_string_class_ = value.raw();
(...skipping 24 matching lines...) Expand all
142 void set_external_four_byte_string_class(const Class& value) { 142 void set_external_four_byte_string_class(const Class& value) {
143 external_four_byte_string_class_ = value.raw(); 143 external_four_byte_string_class_ = value.raw();
144 } 144 }
145 145
146 RawType* bool_type() const { return bool_type_; } 146 RawType* bool_type() const { return bool_type_; }
147 void set_bool_type(const Type& value) { bool_type_ = value.raw(); } 147 void set_bool_type(const Type& value) { bool_type_ = value.raw(); }
148 148
149 RawClass* bool_class() const { return bool_class_; } 149 RawClass* bool_class() const { return bool_class_; }
150 void set_bool_class(const Class& value) { bool_class_ = value.raw(); } 150 void set_bool_class(const Class& value) { bool_class_ = value.raw(); }
151 151
152 RawType* list_interface() const { return list_interface_; } 152 RawType* list_type() const { return list_type_; }
153 void set_list_interface(const Type& value) { 153 void set_list_type(const Type& value) {
154 list_interface_ = value.raw(); 154 list_type_ = value.raw();
155 } 155 }
156 156
157 RawClass* array_class() const { return array_class_; } 157 RawClass* array_class() const { return array_class_; }
158 void set_array_class(const Class& value) { array_class_ = value.raw(); } 158 void set_array_class(const Class& value) { array_class_ = value.raw(); }
159 static intptr_t array_class_offset() { 159 static intptr_t array_class_offset() {
160 return OFFSET_OF(ObjectStore, array_class_); 160 return OFFSET_OF(ObjectStore, array_class_);
161 } 161 }
162 162
163 RawType* byte_array_interface() const { return byte_array_interface_; } 163 RawType* byte_array_interface() const { return byte_array_interface_; }
164 void set_byte_array_interface(const Type& value) { 164 void set_byte_array_interface(const Type& value) {
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
482 RawType* number_type_; 482 RawType* number_type_;
483 RawType* int_type_; 483 RawType* int_type_;
484 RawClass* integer_implementation_class_; 484 RawClass* integer_implementation_class_;
485 RawClass* smi_class_; 485 RawClass* smi_class_;
486 RawType* smi_type_; 486 RawType* smi_type_;
487 RawClass* mint_class_; 487 RawClass* mint_class_;
488 RawType* mint_type_; 488 RawType* mint_type_;
489 RawClass* bigint_class_; 489 RawClass* bigint_class_;
490 RawClass* double_class_; 490 RawClass* double_class_;
491 RawType* double_type_; 491 RawType* double_type_;
492 RawType* string_interface_; 492 RawType* string_type_;
493 RawClass* one_byte_string_class_; 493 RawClass* one_byte_string_class_;
494 RawClass* two_byte_string_class_; 494 RawClass* two_byte_string_class_;
495 RawClass* four_byte_string_class_; 495 RawClass* four_byte_string_class_;
496 RawClass* external_one_byte_string_class_; 496 RawClass* external_one_byte_string_class_;
497 RawClass* external_two_byte_string_class_; 497 RawClass* external_two_byte_string_class_;
498 RawClass* external_four_byte_string_class_; 498 RawClass* external_four_byte_string_class_;
499 RawType* bool_type_; 499 RawType* bool_type_;
500 RawClass* bool_class_; 500 RawClass* bool_class_;
501 RawType* list_interface_; 501 RawType* list_type_;
502 RawClass* array_class_; 502 RawClass* array_class_;
503 RawClass* immutable_array_class_; 503 RawClass* immutable_array_class_;
504 RawClass* growable_object_array_class_; 504 RawClass* growable_object_array_class_;
505 RawType* byte_array_interface_; 505 RawType* byte_array_interface_;
506 RawClass* int8_array_class_; 506 RawClass* int8_array_class_;
507 RawClass* uint8_array_class_; 507 RawClass* uint8_array_class_;
508 RawClass* int16_array_class_; 508 RawClass* int16_array_class_;
509 RawClass* uint16_array_class_; 509 RawClass* uint16_array_class_;
510 RawClass* int32_array_class_; 510 RawClass* int32_array_class_;
511 RawClass* uint32_array_class_; 511 RawClass* uint32_array_class_;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
549 RawObject** to() { return reinterpret_cast<RawObject**>(&keyword_symbols_); } 549 RawObject** to() { return reinterpret_cast<RawObject**>(&keyword_symbols_); }
550 550
551 friend class SnapshotReader; 551 friend class SnapshotReader;
552 552
553 DISALLOW_COPY_AND_ASSIGN(ObjectStore); 553 DISALLOW_COPY_AND_ASSIGN(ObjectStore);
554 }; 554 };
555 555
556 } // namespace dart 556 } // namespace dart
557 557
558 #endif // VM_OBJECT_STORE_H_ 558 #endif // VM_OBJECT_STORE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698