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

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

Issue 10800002: Hide names of internal classes from the user by mapping them to the documented (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 5 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
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/object_store.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 19 matching lines...) Expand all
30 kVoidType, 30 kVoidType,
31 kFunctionInterface, 31 kFunctionInterface,
32 kNumberInterface, 32 kNumberInterface,
33 kDoubleInterface, 33 kDoubleInterface,
34 kIntInterface, 34 kIntInterface,
35 kBoolInterface, 35 kBoolInterface,
36 kStringInterface, 36 kStringInterface,
37 kListInterface, 37 kListInterface,
38 kByteArrayInterface, 38 kByteArrayInterface,
39 kObjectClass, 39 kObjectClass,
40 kIntegerImplementationClass,
40 kSmiClass, 41 kSmiClass,
41 kMintClass, 42 kMintClass,
42 kBigintClass, 43 kBigintClass,
43 kDoubleClass, 44 kDoubleClass,
44 kOneByteStringClass, 45 kOneByteStringClass,
45 kTwoByteStringClass, 46 kTwoByteStringClass,
46 kFourByteStringClass, 47 kFourByteStringClass,
47 kExternalOneByteStringClass, 48 kExternalOneByteStringClass,
48 kExternalTwoByteStringClass, 49 kExternalTwoByteStringClass,
49 kExternalFourByteStringClass, 50 kExternalFourByteStringClass,
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 RawType* number_interface() const { return number_interface_; } 119 RawType* number_interface() const { return number_interface_; }
119 void set_number_interface(const Type& value) { 120 void set_number_interface(const Type& value) {
120 number_interface_ = value.raw(); 121 number_interface_ = value.raw();
121 } 122 }
122 123
123 RawType* int_interface() const { return int_interface_; } 124 RawType* int_interface() const { return int_interface_; }
124 void set_int_interface(const Type& value) { 125 void set_int_interface(const Type& value) {
125 int_interface_ = value.raw(); 126 int_interface_ = value.raw();
126 } 127 }
127 128
129 RawClass* integer_implementation_class() const {
130 return integer_implementation_class_;
131 }
132 void set_integer_implementation_class(const Class& value) {
133 integer_implementation_class_ = value.raw();
134 }
135
128 RawClass* smi_class() const { return smi_class_; } 136 RawClass* smi_class() const { return smi_class_; }
129 void set_smi_class(const Class& value) { smi_class_ = value.raw(); } 137 void set_smi_class(const Class& value) { smi_class_ = value.raw(); }
130 static intptr_t smi_class_offset() { 138 static intptr_t smi_class_offset() {
131 return OFFSET_OF(ObjectStore, smi_class_); 139 return OFFSET_OF(ObjectStore, smi_class_);
132 } 140 }
133 141
134 RawType* double_interface() const { return double_interface_; } 142 RawType* double_interface() const { return double_interface_; }
135 void set_double_interface(const Type& value) { 143 void set_double_interface(const Type& value) {
136 double_interface_ = value.raw(); 144 double_interface_ = value.raw();
137 } 145 }
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after
516 524
517 RawObject** from() { return reinterpret_cast<RawObject**>(&object_class_); } 525 RawObject** from() { return reinterpret_cast<RawObject**>(&object_class_); }
518 RawClass* object_class_; 526 RawClass* object_class_;
519 RawType* object_type_; 527 RawType* object_type_;
520 RawType* null_type_; 528 RawType* null_type_;
521 RawType* dynamic_type_; 529 RawType* dynamic_type_;
522 RawType* void_type_; 530 RawType* void_type_;
523 RawType* function_interface_; 531 RawType* function_interface_;
524 RawType* number_interface_; 532 RawType* number_interface_;
525 RawType* int_interface_; 533 RawType* int_interface_;
534 RawClass* integer_implementation_class_;
526 RawClass* smi_class_; 535 RawClass* smi_class_;
527 RawClass* mint_class_; 536 RawClass* mint_class_;
528 RawClass* bigint_class_; 537 RawClass* bigint_class_;
529 RawType* double_interface_; 538 RawType* double_interface_;
530 RawClass* double_class_; 539 RawClass* double_class_;
531 RawType* string_interface_; 540 RawType* string_interface_;
532 RawClass* one_byte_string_class_; 541 RawClass* one_byte_string_class_;
533 RawClass* two_byte_string_class_; 542 RawClass* two_byte_string_class_;
534 RawClass* four_byte_string_class_; 543 RawClass* four_byte_string_class_;
535 RawClass* external_one_byte_string_class_; 544 RawClass* external_one_byte_string_class_;
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
588 RawObject** to() { return reinterpret_cast<RawObject**>(&keyword_symbols_); } 597 RawObject** to() { return reinterpret_cast<RawObject**>(&keyword_symbols_); }
589 598
590 friend class SnapshotReader; 599 friend class SnapshotReader;
591 600
592 DISALLOW_COPY_AND_ASSIGN(ObjectStore); 601 DISALLOW_COPY_AND_ASSIGN(ObjectStore);
593 }; 602 };
594 603
595 } // namespace dart 604 } // namespace dart
596 605
597 #endif // VM_OBJECT_STORE_H_ 606 #endif // VM_OBJECT_STORE_H_
OLDNEW
« no previous file with comments | « 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