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

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

Issue 50573002: Remove dart:platform library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/vm.gypi » ('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 {
(...skipping 11 matching lines...) Expand all
22 enum BootstrapLibraryId { 22 enum BootstrapLibraryId {
23 kNone = 0, 23 kNone = 0,
24 kAsync, 24 kAsync,
25 kCore, 25 kCore,
26 kCollection, 26 kCollection,
27 kCollectionDev, 27 kCollectionDev,
28 kConvert, 28 kConvert,
29 kIsolate, 29 kIsolate,
30 kMath, 30 kMath,
31 kMirrors, 31 kMirrors,
32 kPlatform,
33 kTypedData, 32 kTypedData,
34 kUtf, 33 kUtf,
35 }; 34 };
36 35
37 ~ObjectStore(); 36 ~ObjectStore();
38 37
39 RawClass* object_class() const { 38 RawClass* object_class() const {
40 ASSERT(object_class_ != Object::null()); 39 ASSERT(object_class_ != Object::null());
41 return object_class_; 40 return object_class_;
42 } 41 }
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 RawLibrary* builtin_library() const { return builtin_library_; } 271 RawLibrary* builtin_library() const { return builtin_library_; }
273 RawLibrary* core_library() const { return core_library_; } 272 RawLibrary* core_library() const { return core_library_; }
274 RawLibrary* collection_library() const { return collection_library_; } 273 RawLibrary* collection_library() const { return collection_library_; }
275 RawLibrary* collection_dev_library() const { 274 RawLibrary* collection_dev_library() const {
276 return collection_dev_library_; 275 return collection_dev_library_;
277 } 276 }
278 RawLibrary* convert_library() const { return convert_library_; } 277 RawLibrary* convert_library() const { return convert_library_; }
279 RawLibrary* isolate_library() const { return isolate_library_; } 278 RawLibrary* isolate_library() const { return isolate_library_; }
280 RawLibrary* math_library() const { return math_library_; } 279 RawLibrary* math_library() const { return math_library_; }
281 RawLibrary* mirrors_library() const { return mirrors_library_; } 280 RawLibrary* mirrors_library() const { return mirrors_library_; }
282 RawLibrary* platform_library() const { return platform_library_; }
283 RawLibrary* typed_data_library() const { return typed_data_library_; } 281 RawLibrary* typed_data_library() const { return typed_data_library_; }
284 RawLibrary* utf_library() const { return utf_library_; } 282 RawLibrary* utf_library() const { return utf_library_; }
285 void set_bootstrap_library(BootstrapLibraryId index, const Library& value) { 283 void set_bootstrap_library(BootstrapLibraryId index, const Library& value) {
286 switch (index) { 284 switch (index) {
287 case kAsync: 285 case kAsync:
288 async_library_ = value.raw(); 286 async_library_ = value.raw();
289 break; 287 break;
290 case kCore: 288 case kCore:
291 core_library_ = value.raw(); 289 core_library_ = value.raw();
292 break; 290 break;
293 case kCollection: 291 case kCollection:
294 collection_library_ = value.raw(); 292 collection_library_ = value.raw();
295 break; 293 break;
296 case kCollectionDev: 294 case kCollectionDev:
297 collection_dev_library_ = value.raw(); 295 collection_dev_library_ = value.raw();
298 break; 296 break;
299 case kConvert: 297 case kConvert:
300 convert_library_ = value.raw(); 298 convert_library_ = value.raw();
301 break; 299 break;
302 case kIsolate: 300 case kIsolate:
303 isolate_library_ = value.raw(); 301 isolate_library_ = value.raw();
304 break; 302 break;
305 case kMath: 303 case kMath:
306 math_library_ = value.raw(); 304 math_library_ = value.raw();
307 break; 305 break;
308 case kMirrors: 306 case kMirrors:
309 mirrors_library_ = value.raw(); 307 mirrors_library_ = value.raw();
310 break; 308 break;
311 case kPlatform:
312 platform_library_ = value.raw();
313 break;
314 case kTypedData: 309 case kTypedData:
315 typed_data_library_ = value.raw(); 310 typed_data_library_ = value.raw();
316 break; 311 break;
317 case kUtf: 312 case kUtf:
318 utf_library_ = value.raw(); 313 utf_library_ = value.raw();
319 break; 314 break;
320 default: 315 default:
321 UNREACHABLE(); 316 UNREACHABLE();
322 } 317 }
323 } 318 }
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
476 RawLibrary* async_library_; 471 RawLibrary* async_library_;
477 RawLibrary* builtin_library_; 472 RawLibrary* builtin_library_;
478 RawLibrary* core_library_; 473 RawLibrary* core_library_;
479 RawLibrary* collection_library_; 474 RawLibrary* collection_library_;
480 RawLibrary* collection_dev_library_; 475 RawLibrary* collection_dev_library_;
481 RawLibrary* convert_library_; 476 RawLibrary* convert_library_;
482 RawLibrary* isolate_library_; 477 RawLibrary* isolate_library_;
483 RawLibrary* math_library_; 478 RawLibrary* math_library_;
484 RawLibrary* mirrors_library_; 479 RawLibrary* mirrors_library_;
485 RawLibrary* native_wrappers_library_; 480 RawLibrary* native_wrappers_library_;
486 RawLibrary* platform_library_;
487 RawLibrary* root_library_; 481 RawLibrary* root_library_;
488 RawLibrary* typed_data_library_; 482 RawLibrary* typed_data_library_;
489 RawLibrary* utf_library_; 483 RawLibrary* utf_library_;
490 RawGrowableObjectArray* libraries_; 484 RawGrowableObjectArray* libraries_;
491 RawGrowableObjectArray* pending_classes_; 485 RawGrowableObjectArray* pending_classes_;
492 RawGrowableObjectArray* pending_functions_; 486 RawGrowableObjectArray* pending_functions_;
493 RawError* sticky_error_; 487 RawError* sticky_error_;
494 RawString* unhandled_exception_handler_; 488 RawString* unhandled_exception_handler_;
495 RawContext* empty_context_; 489 RawContext* empty_context_;
496 RawInstance* stack_overflow_; 490 RawInstance* stack_overflow_;
497 RawInstance* out_of_memory_; 491 RawInstance* out_of_memory_;
498 RawStacktrace* preallocated_stack_trace_; 492 RawStacktrace* preallocated_stack_trace_;
499 RawArray* keyword_symbols_; 493 RawArray* keyword_symbols_;
500 RawFunction* receive_port_create_function_; 494 RawFunction* receive_port_create_function_;
501 RawFunction* lookup_receive_port_function_; 495 RawFunction* lookup_receive_port_function_;
502 RawFunction* handle_message_function_; 496 RawFunction* handle_message_function_;
503 RawObject** to() { return reinterpret_cast<RawObject**>(&keyword_symbols_); } 497 RawObject** to() { return reinterpret_cast<RawObject**>(&keyword_symbols_); }
504 498
505 friend class SnapshotReader; 499 friend class SnapshotReader;
506 500
507 DISALLOW_COPY_AND_ASSIGN(ObjectStore); 501 DISALLOW_COPY_AND_ASSIGN(ObjectStore);
508 }; 502 };
509 503
510 } // namespace dart 504 } // namespace dart
511 505
512 #endif // VM_OBJECT_STORE_H_ 506 #endif // VM_OBJECT_STORE_H_
OLDNEW
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/vm.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698