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

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

Issue 32683002: Add empty dart:platform library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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/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 12 matching lines...) Expand all
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 kJson, 30 kJson,
31 kMath, 31 kMath,
32 kMirrors, 32 kMirrors,
33 kPlatform,
33 kTypedData, 34 kTypedData,
34 kUtf, 35 kUtf,
35 }; 36 };
36 37
37 ~ObjectStore(); 38 ~ObjectStore();
38 39
39 RawClass* object_class() const { 40 RawClass* object_class() const {
40 ASSERT(object_class_ != Object::null()); 41 ASSERT(object_class_ != Object::null());
41 return object_class_; 42 return object_class_;
42 } 43 }
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 RawLibrary* core_library() const { return core_library_; } 274 RawLibrary* core_library() const { return core_library_; }
274 RawLibrary* collection_library() const { return collection_library_; } 275 RawLibrary* collection_library() const { return collection_library_; }
275 RawLibrary* collection_dev_library() const { 276 RawLibrary* collection_dev_library() const {
276 return collection_dev_library_; 277 return collection_dev_library_;
277 } 278 }
278 RawLibrary* convert_library() const { return convert_library_; } 279 RawLibrary* convert_library() const { return convert_library_; }
279 RawLibrary* isolate_library() const { return isolate_library_; } 280 RawLibrary* isolate_library() const { return isolate_library_; }
280 RawLibrary* json_library() const { return json_library_; } 281 RawLibrary* json_library() const { return json_library_; }
281 RawLibrary* math_library() const { return math_library_; } 282 RawLibrary* math_library() const { return math_library_; }
282 RawLibrary* mirrors_library() const { return mirrors_library_; } 283 RawLibrary* mirrors_library() const { return mirrors_library_; }
284 RawLibrary* platform_library() const { return platform_library_; }
283 RawLibrary* typed_data_library() const { return typed_data_library_; } 285 RawLibrary* typed_data_library() const { return typed_data_library_; }
284 RawLibrary* utf_library() const { return utf_library_; } 286 RawLibrary* utf_library() const { return utf_library_; }
285 void set_bootstrap_library(intptr_t index, const Library& value) { 287 void set_bootstrap_library(intptr_t index, const Library& value) {
286 switch (index) { 288 switch (index) {
287 case kAsync: 289 case kAsync:
288 async_library_ = value.raw(); 290 async_library_ = value.raw();
289 break; 291 break;
290 case kCore: 292 case kCore:
291 core_library_ = value.raw(); 293 core_library_ = value.raw();
292 break; 294 break;
(...skipping 11 matching lines...) Expand all
304 break; 306 break;
305 case kJson: 307 case kJson:
306 json_library_ = value.raw(); 308 json_library_ = value.raw();
307 break; 309 break;
308 case kMath: 310 case kMath:
309 math_library_ = value.raw(); 311 math_library_ = value.raw();
310 break; 312 break;
311 case kMirrors: 313 case kMirrors:
312 mirrors_library_ = value.raw(); 314 mirrors_library_ = value.raw();
313 break; 315 break;
316 case kPlatform:
317 platform_library_ = value.raw();
318 break;
314 case kTypedData: 319 case kTypedData:
315 typed_data_library_ = value.raw(); 320 typed_data_library_ = value.raw();
316 break; 321 break;
317 case kUtf: 322 case kUtf:
318 utf_library_ = value.raw(); 323 utf_library_ = value.raw();
319 break; 324 break;
320 default: 325 default:
321 UNREACHABLE(); 326 UNREACHABLE();
322 } 327 }
323 } 328 }
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
477 RawLibrary* builtin_library_; 482 RawLibrary* builtin_library_;
478 RawLibrary* core_library_; 483 RawLibrary* core_library_;
479 RawLibrary* collection_library_; 484 RawLibrary* collection_library_;
480 RawLibrary* collection_dev_library_; 485 RawLibrary* collection_dev_library_;
481 RawLibrary* convert_library_; 486 RawLibrary* convert_library_;
482 RawLibrary* isolate_library_; 487 RawLibrary* isolate_library_;
483 RawLibrary* json_library_; 488 RawLibrary* json_library_;
484 RawLibrary* math_library_; 489 RawLibrary* math_library_;
485 RawLibrary* mirrors_library_; 490 RawLibrary* mirrors_library_;
486 RawLibrary* native_wrappers_library_; 491 RawLibrary* native_wrappers_library_;
492 RawLibrary* platform_library_;
487 RawLibrary* root_library_; 493 RawLibrary* root_library_;
488 RawLibrary* typed_data_library_; 494 RawLibrary* typed_data_library_;
489 RawLibrary* utf_library_; 495 RawLibrary* utf_library_;
490 RawGrowableObjectArray* libraries_; 496 RawGrowableObjectArray* libraries_;
491 RawGrowableObjectArray* pending_classes_; 497 RawGrowableObjectArray* pending_classes_;
492 RawGrowableObjectArray* pending_functions_; 498 RawGrowableObjectArray* pending_functions_;
493 RawError* sticky_error_; 499 RawError* sticky_error_;
494 RawString* unhandled_exception_handler_; 500 RawString* unhandled_exception_handler_;
495 RawContext* empty_context_; 501 RawContext* empty_context_;
496 RawInstance* stack_overflow_; 502 RawInstance* stack_overflow_;
497 RawInstance* out_of_memory_; 503 RawInstance* out_of_memory_;
498 RawStacktrace* preallocated_stack_trace_; 504 RawStacktrace* preallocated_stack_trace_;
499 RawArray* keyword_symbols_; 505 RawArray* keyword_symbols_;
500 RawFunction* receive_port_create_function_; 506 RawFunction* receive_port_create_function_;
501 RawFunction* lookup_receive_port_function_; 507 RawFunction* lookup_receive_port_function_;
502 RawFunction* handle_message_function_; 508 RawFunction* handle_message_function_;
503 RawObject** to() { return reinterpret_cast<RawObject**>(&keyword_symbols_); } 509 RawObject** to() { return reinterpret_cast<RawObject**>(&keyword_symbols_); }
504 510
505 friend class SnapshotReader; 511 friend class SnapshotReader;
506 512
507 DISALLOW_COPY_AND_ASSIGN(ObjectStore); 513 DISALLOW_COPY_AND_ASSIGN(ObjectStore);
508 }; 514 };
509 515
510 } // namespace dart 516 } // namespace dart
511 517
512 #endif // VM_OBJECT_STORE_H_ 518 #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