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

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

Issue 17580014: dart:convert library. Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update Created 7 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/bootstrap.cc ('k') | runtime/vm/symbols.h » ('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) 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 {
11 11
12 // Forward declarations. 12 // Forward declarations.
13 class Isolate; 13 class Isolate;
14 class ObjectPointerVisitor; 14 class ObjectPointerVisitor;
15 15
16 // The object store is a per isolate instance which stores references to 16 // The object store is a per isolate instance which stores references to
17 // objects used by the VM. 17 // objects used by the VM.
18 // TODO(iposva): Move the actual store into the object heap for quick handling 18 // TODO(iposva): Move the actual store into the object heap for quick handling
19 // by snapshots eventually. 19 // by snapshots eventually.
20 class ObjectStore { 20 class ObjectStore {
21 public: 21 public:
22 enum { 22 enum {
23 kNone = 0, 23 kNone = 0,
24 kAsync, 24 kAsync,
25 kCodec,
25 kCore, 26 kCore,
26 kCollection, 27 kCollection,
27 kCollectionDev, 28 kCollectionDev,
29 kConvert,
28 kIsolate, 30 kIsolate,
29 kJson, 31 kJson,
30 kMath, 32 kMath,
31 kMirrors, 33 kMirrors,
32 kTypedData, 34 kTypedData,
33 kUtf, 35 kUtf,
34 }; 36 };
35 37
36 ~ObjectStore(); 38 ~ObjectStore();
37 39
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 249
248 RawArray* canonical_type_arguments() const { 250 RawArray* canonical_type_arguments() const {
249 return canonical_type_arguments_; 251 return canonical_type_arguments_;
250 } 252 }
251 void set_canonical_type_arguments(const Array& value) { 253 void set_canonical_type_arguments(const Array& value) {
252 canonical_type_arguments_ = value.raw(); 254 canonical_type_arguments_ = value.raw();
253 } 255 }
254 256
255 RawLibrary* async_library() const { return async_library_; } 257 RawLibrary* async_library() const { return async_library_; }
256 RawLibrary* builtin_library() const { return builtin_library_; } 258 RawLibrary* builtin_library() const { return builtin_library_; }
259 RawLibrary* codec_library() const { return codec_library_; }
257 RawLibrary* core_library() const { return core_library_; } 260 RawLibrary* core_library() const { return core_library_; }
258 RawLibrary* collection_library() const { return collection_library_; } 261 RawLibrary* collection_library() const { return collection_library_; }
259 RawLibrary* collection_dev_library() const { 262 RawLibrary* collection_dev_library() const {
260 return collection_dev_library_; 263 return collection_dev_library_;
261 } 264 }
265 RawLibrary* convert_library() const { return convert_library_; }
262 RawLibrary* isolate_library() const { return isolate_library_; } 266 RawLibrary* isolate_library() const { return isolate_library_; }
263 RawLibrary* json_library() const { return json_library_; } 267 RawLibrary* json_library() const { return json_library_; }
264 RawLibrary* math_library() const { return math_library_; } 268 RawLibrary* math_library() const { return math_library_; }
265 RawLibrary* mirrors_library() const { return mirrors_library_; } 269 RawLibrary* mirrors_library() const { return mirrors_library_; }
266 RawLibrary* typed_data_library() const { return typed_data_library_; } 270 RawLibrary* typed_data_library() const { return typed_data_library_; }
267 RawLibrary* utf_library() const { return utf_library_; } 271 RawLibrary* utf_library() const { return utf_library_; }
268 void set_bootstrap_library(intptr_t index, const Library& value) { 272 void set_bootstrap_library(intptr_t index, const Library& value) {
269 switch (index) { 273 switch (index) {
270 case kAsync: 274 case kAsync:
271 async_library_ = value.raw(); 275 async_library_ = value.raw();
272 break; 276 break;
277 case kCodec:
278 codec_library_ = value.raw();
279 break;
273 case kCore: 280 case kCore:
274 core_library_ = value.raw(); 281 core_library_ = value.raw();
275 break; 282 break;
276 case kCollection: 283 case kCollection:
277 collection_library_ = value.raw(); 284 collection_library_ = value.raw();
278 break; 285 break;
279 case kCollectionDev: 286 case kCollectionDev:
280 collection_dev_library_ = value.raw(); 287 collection_dev_library_ = value.raw();
281 break; 288 break;
289 case kConvert:
290 convert_library_ = value.raw();
291 break;
282 case kIsolate: 292 case kIsolate:
283 isolate_library_ = value.raw(); 293 isolate_library_ = value.raw();
284 break; 294 break;
285 case kJson: 295 case kJson:
286 json_library_ = value.raw(); 296 json_library_ = value.raw();
287 break; 297 break;
288 case kMath: 298 case kMath:
289 math_library_ = value.raw(); 299 math_library_ = value.raw();
290 break; 300 break;
291 case kMirrors: 301 case kMirrors:
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
443 RawClass* float32x4_class_; 453 RawClass* float32x4_class_;
444 RawClass* uint32x4_class_; 454 RawClass* uint32x4_class_;
445 RawArray* typed_data_classes_; 455 RawArray* typed_data_classes_;
446 RawClass* stacktrace_class_; 456 RawClass* stacktrace_class_;
447 RawClass* jsregexp_class_; 457 RawClass* jsregexp_class_;
448 RawClass* weak_property_class_; 458 RawClass* weak_property_class_;
449 RawArray* symbol_table_; 459 RawArray* symbol_table_;
450 RawArray* canonical_type_arguments_; 460 RawArray* canonical_type_arguments_;
451 RawLibrary* async_library_; 461 RawLibrary* async_library_;
452 RawLibrary* builtin_library_; 462 RawLibrary* builtin_library_;
463 RawLibrary* codec_library_;
453 RawLibrary* core_library_; 464 RawLibrary* core_library_;
454 RawLibrary* collection_library_; 465 RawLibrary* collection_library_;
455 RawLibrary* collection_dev_library_; 466 RawLibrary* collection_dev_library_;
467 RawLibrary* convert_library_;
456 RawLibrary* isolate_library_; 468 RawLibrary* isolate_library_;
457 RawLibrary* json_library_; 469 RawLibrary* json_library_;
458 RawLibrary* math_library_; 470 RawLibrary* math_library_;
459 RawLibrary* mirrors_library_; 471 RawLibrary* mirrors_library_;
460 RawLibrary* native_wrappers_library_; 472 RawLibrary* native_wrappers_library_;
461 RawLibrary* root_library_; 473 RawLibrary* root_library_;
462 RawLibrary* typed_data_library_; 474 RawLibrary* typed_data_library_;
463 RawLibrary* utf_library_; 475 RawLibrary* utf_library_;
464 RawGrowableObjectArray* libraries_; 476 RawGrowableObjectArray* libraries_;
465 RawGrowableObjectArray* pending_classes_; 477 RawGrowableObjectArray* pending_classes_;
(...skipping 10 matching lines...) Expand all
476 RawObject** to() { return reinterpret_cast<RawObject**>(&keyword_symbols_); } 488 RawObject** to() { return reinterpret_cast<RawObject**>(&keyword_symbols_); }
477 489
478 friend class SnapshotReader; 490 friend class SnapshotReader;
479 491
480 DISALLOW_COPY_AND_ASSIGN(ObjectStore); 492 DISALLOW_COPY_AND_ASSIGN(ObjectStore);
481 }; 493 };
482 494
483 } // namespace dart 495 } // namespace dart
484 496
485 #endif // VM_OBJECT_STORE_H_ 497 #endif // VM_OBJECT_STORE_H_
OLDNEW
« no previous file with comments | « runtime/vm/bootstrap.cc ('k') | runtime/vm/symbols.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698