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

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

Issue 11299020: Make creation of list literal more resilient to changes in the underlying (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 1 month 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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 void set_external_two_byte_string_class(const Class& value) { 130 void set_external_two_byte_string_class(const Class& value) {
131 external_two_byte_string_class_ = value.raw(); 131 external_two_byte_string_class_ = value.raw();
132 } 132 }
133 133
134 RawType* bool_type() const { return bool_type_; } 134 RawType* bool_type() const { return bool_type_; }
135 void set_bool_type(const Type& value) { bool_type_ = value.raw(); } 135 void set_bool_type(const Type& value) { bool_type_ = value.raw(); }
136 136
137 RawClass* bool_class() const { return bool_class_; } 137 RawClass* bool_class() const { return bool_class_; }
138 void set_bool_class(const Class& value) { bool_class_ = value.raw(); } 138 void set_bool_class(const Class& value) { bool_class_ = value.raw(); }
139 139
140 RawType* list_interface() const { return list_interface_; } 140 RawClass* list_class() const { return list_class_; }
141 void set_list_interface(const Type& value) { 141 void set_list_class(const Class& value) { list_class_ = value.raw(); }
142 list_interface_ = value.raw();
143 }
144 142
145 RawClass* array_class() const { return array_class_; } 143 RawClass* array_class() const { return array_class_; }
146 void set_array_class(const Class& value) { array_class_ = value.raw(); } 144 void set_array_class(const Class& value) { array_class_ = value.raw(); }
147 static intptr_t array_class_offset() { 145 static intptr_t array_class_offset() {
148 return OFFSET_OF(ObjectStore, array_class_); 146 return OFFSET_OF(ObjectStore, array_class_);
149 } 147 }
150 148
149 RawType* array_type() const { return array_type_; }
150 void set_array_type(const Type& value) { array_type_ = value.raw(); }
151
151 RawClass* immutable_array_class() const { return immutable_array_class_; } 152 RawClass* immutable_array_class() const { return immutable_array_class_; }
152 void set_immutable_array_class(const Class& value) { 153 void set_immutable_array_class(const Class& value) {
153 immutable_array_class_ = value.raw(); 154 immutable_array_class_ = value.raw();
154 } 155 }
155 156
156 RawClass* growable_object_array_class() const { 157 RawClass* growable_object_array_class() const {
157 return growable_object_array_class_; 158 return growable_object_array_class_;
158 } 159 }
159 void set_growable_object_array_class(const Class& value) { 160 void set_growable_object_array_class(const Class& value) {
160 growable_object_array_class_ = value.raw(); 161 growable_object_array_class_ = value.raw();
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
479 RawClass* bigint_class_; 480 RawClass* bigint_class_;
480 RawClass* double_class_; 481 RawClass* double_class_;
481 RawType* double_type_; 482 RawType* double_type_;
482 RawType* string_type_; 483 RawType* string_type_;
483 RawClass* one_byte_string_class_; 484 RawClass* one_byte_string_class_;
484 RawClass* two_byte_string_class_; 485 RawClass* two_byte_string_class_;
485 RawClass* external_one_byte_string_class_; 486 RawClass* external_one_byte_string_class_;
486 RawClass* external_two_byte_string_class_; 487 RawClass* external_two_byte_string_class_;
487 RawType* bool_type_; 488 RawType* bool_type_;
488 RawClass* bool_class_; 489 RawClass* bool_class_;
489 RawType* list_interface_; 490 RawClass* list_class_;
490 RawClass* array_class_; 491 RawClass* array_class_;
492 RawType* array_type_;
491 RawClass* immutable_array_class_; 493 RawClass* immutable_array_class_;
492 RawClass* growable_object_array_class_; 494 RawClass* growable_object_array_class_;
493 RawClass* int8_array_class_; 495 RawClass* int8_array_class_;
494 RawClass* uint8_array_class_; 496 RawClass* uint8_array_class_;
495 RawClass* int16_array_class_; 497 RawClass* int16_array_class_;
496 RawClass* uint16_array_class_; 498 RawClass* uint16_array_class_;
497 RawClass* int32_array_class_; 499 RawClass* int32_array_class_;
498 RawClass* uint32_array_class_; 500 RawClass* uint32_array_class_;
499 RawClass* int64_array_class_; 501 RawClass* int64_array_class_;
500 RawClass* uint64_array_class_; 502 RawClass* uint64_array_class_;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
537 RawObject** to() { return reinterpret_cast<RawObject**>(&keyword_symbols_); } 539 RawObject** to() { return reinterpret_cast<RawObject**>(&keyword_symbols_); }
538 540
539 friend class SnapshotReader; 541 friend class SnapshotReader;
540 542
541 DISALLOW_COPY_AND_ASSIGN(ObjectStore); 543 DISALLOW_COPY_AND_ASSIGN(ObjectStore);
542 }; 544 };
543 545
544 } // namespace dart 546 } // namespace dart
545 547
546 #endif // VM_OBJECT_STORE_H_ 548 #endif // VM_OBJECT_STORE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698