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

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

Issue 22902002: Ensure the classes void and dynamic have empty arrays for fields, functions, etc. Move their Types … (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 ASSERT(null_class_ != Object::null()); 54 ASSERT(null_class_ != Object::null());
55 return null_class_; 55 return null_class_;
56 } 56 }
57 void set_null_class(const Class& value) { null_class_ = value.raw(); } 57 void set_null_class(const Class& value) { null_class_ = value.raw(); }
58 58
59 RawType* null_type() const { return null_type_; } 59 RawType* null_type() const { return null_type_; }
60 void set_null_type(const Type& value) { 60 void set_null_type(const Type& value) {
61 null_type_ = value.raw(); 61 null_type_ = value.raw();
62 } 62 }
63 63
64 RawType* dynamic_type() const { return dynamic_type_; }
65 void set_dynamic_type(const Type& value) {
66 dynamic_type_ = value.raw();
67 }
68
69 RawType* void_type() const { return void_type_; }
70 void set_void_type(const Type& value) {
71 void_type_ = value.raw();
72 }
73
74 RawType* function_type() const { return function_type_; } 64 RawType* function_type() const { return function_type_; }
75 void set_function_type(const Type& value) { 65 void set_function_type(const Type& value) {
76 function_type_ = value.raw(); 66 function_type_ = value.raw();
77 } 67 }
78 68
79 RawClass* type_class() const { return type_class_; } 69 RawClass* type_class() const { return type_class_; }
80 void set_type_class(const Class& value) { type_class_ = value.raw(); } 70 void set_type_class(const Class& value) { type_class_ = value.raw(); }
81 71
82 RawClass* type_parameter_class() const { return type_parameter_class_; } 72 RawClass* type_parameter_class() const { return type_parameter_class_; }
83 void set_type_parameter_class(const Class& value) { 73 void set_type_parameter_class(const Class& value) {
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after
428 static void Init(Isolate* isolate); 418 static void Init(Isolate* isolate);
429 419
430 private: 420 private:
431 ObjectStore(); 421 ObjectStore();
432 422
433 RawObject** from() { return reinterpret_cast<RawObject**>(&object_class_); } 423 RawObject** from() { return reinterpret_cast<RawObject**>(&object_class_); }
434 RawClass* object_class_; 424 RawClass* object_class_;
435 RawType* object_type_; 425 RawType* object_type_;
436 RawClass* null_class_; 426 RawClass* null_class_;
437 RawType* null_type_; 427 RawType* null_type_;
438 RawType* dynamic_type_;
439 RawType* void_type_;
440 RawType* function_type_; 428 RawType* function_type_;
441 RawClass* type_class_; 429 RawClass* type_class_;
442 RawClass* type_parameter_class_; 430 RawClass* type_parameter_class_;
443 RawClass* bounded_type_class_; 431 RawClass* bounded_type_class_;
444 RawClass* mixin_app_type_class_; 432 RawClass* mixin_app_type_class_;
445 RawType* number_type_; 433 RawType* number_type_;
446 RawType* int_type_; 434 RawType* int_type_;
447 RawClass* integer_implementation_class_; 435 RawClass* integer_implementation_class_;
448 RawClass* smi_class_; 436 RawClass* smi_class_;
449 RawType* smi_type_; 437 RawType* smi_type_;
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
504 RawObject** to() { return reinterpret_cast<RawObject**>(&keyword_symbols_); } 492 RawObject** to() { return reinterpret_cast<RawObject**>(&keyword_symbols_); }
505 493
506 friend class SnapshotReader; 494 friend class SnapshotReader;
507 495
508 DISALLOW_COPY_AND_ASSIGN(ObjectStore); 496 DISALLOW_COPY_AND_ASSIGN(ObjectStore);
509 }; 497 };
510 498
511 } // namespace dart 499 } // namespace dart
512 500
513 #endif // VM_OBJECT_STORE_H_ 501 #endif // VM_OBJECT_STORE_H_
OLDNEW
« runtime/vm/object.cc ('K') | « runtime/vm/object.cc ('k') | runtime/vm/object_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698