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

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

Issue 1381033002: Add data-URI support class to dart:core (next to Uri). (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Add more tests, refactor, rename to DataUriHelper. Need better name! Created 5 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
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 13 matching lines...) Expand all
24 kAsync, 24 kAsync,
25 kCore, 25 kCore,
26 kCollection, 26 kCollection,
27 kConvert, 27 kConvert,
28 kDeveloper, 28 kDeveloper,
29 kInternal, 29 kInternal,
30 kIsolate, 30 kIsolate,
31 kMath, 31 kMath,
32 kMirrors, 32 kMirrors,
33 kTypedData, 33 kTypedData,
34 kUri,
34 kVMService, 35 kVMService,
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 }
43 void set_object_class(const Class& value) { object_class_ = value.raw(); } 44 void set_object_class(const Class& value) { object_class_ = value.raw(); }
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 RawLibrary* builtin_library() const { return builtin_library_; } 258 RawLibrary* builtin_library() const { return builtin_library_; }
258 RawLibrary* core_library() const { return core_library_; } 259 RawLibrary* core_library() const { return core_library_; }
259 RawLibrary* collection_library() const { return collection_library_; } 260 RawLibrary* collection_library() const { return collection_library_; }
260 RawLibrary* convert_library() const { return convert_library_; } 261 RawLibrary* convert_library() const { return convert_library_; }
261 RawLibrary* developer_library() const { return developer_library_; } 262 RawLibrary* developer_library() const { return developer_library_; }
262 RawLibrary* internal_library() const { return internal_library_; } 263 RawLibrary* internal_library() const { return internal_library_; }
263 RawLibrary* isolate_library() const { return isolate_library_; } 264 RawLibrary* isolate_library() const { return isolate_library_; }
264 RawLibrary* math_library() const { return math_library_; } 265 RawLibrary* math_library() const { return math_library_; }
265 RawLibrary* mirrors_library() const { return mirrors_library_; } 266 RawLibrary* mirrors_library() const { return mirrors_library_; }
266 RawLibrary* typed_data_library() const { return typed_data_library_; } 267 RawLibrary* typed_data_library() const { return typed_data_library_; }
268 RawLibrary* uri_library() const { return uri_library_; }
267 RawLibrary* vmservice_library() const { return vmservice_library_; } 269 RawLibrary* vmservice_library() const { return vmservice_library_; }
268 270
269 void set_bootstrap_library(BootstrapLibraryId index, const Library& value) { 271 void set_bootstrap_library(BootstrapLibraryId index, const Library& value) {
270 switch (index) { 272 switch (index) {
271 case kAsync: 273 case kAsync:
272 async_library_ = value.raw(); 274 async_library_ = value.raw();
273 break; 275 break;
274 case kCore: 276 case kCore:
275 core_library_ = value.raw(); 277 core_library_ = value.raw();
276 break; 278 break;
(...skipping 14 matching lines...) Expand all
291 break; 293 break;
292 case kMath: 294 case kMath:
293 math_library_ = value.raw(); 295 math_library_ = value.raw();
294 break; 296 break;
295 case kMirrors: 297 case kMirrors:
296 mirrors_library_ = value.raw(); 298 mirrors_library_ = value.raw();
297 break; 299 break;
298 case kTypedData: 300 case kTypedData:
299 typed_data_library_ = value.raw(); 301 typed_data_library_ = value.raw();
300 break; 302 break;
303 case kUri:
304 uri_library_ = value.raw();
305 break;
301 case kVMService: 306 case kVMService:
302 vmservice_library_ = value.raw(); 307 vmservice_library_ = value.raw();
303 break; 308 break;
304 default: 309 default:
305 UNREACHABLE(); 310 UNREACHABLE();
306 } 311 }
307 } 312 }
308 313
309 void set_builtin_library(const Library& value) { 314 void set_builtin_library(const Library& value) {
310 builtin_library_ = value.raw(); 315 builtin_library_ = value.raw();
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
522 RawLibrary* collection_library_; 527 RawLibrary* collection_library_;
523 RawLibrary* convert_library_; 528 RawLibrary* convert_library_;
524 RawLibrary* developer_library_; 529 RawLibrary* developer_library_;
525 RawLibrary* internal_library_; 530 RawLibrary* internal_library_;
526 RawLibrary* isolate_library_; 531 RawLibrary* isolate_library_;
527 RawLibrary* math_library_; 532 RawLibrary* math_library_;
528 RawLibrary* mirrors_library_; 533 RawLibrary* mirrors_library_;
529 RawLibrary* native_wrappers_library_; 534 RawLibrary* native_wrappers_library_;
530 RawLibrary* root_library_; 535 RawLibrary* root_library_;
531 RawLibrary* typed_data_library_; 536 RawLibrary* typed_data_library_;
537 RawLibrary* uri_library_;
532 RawLibrary* vmservice_library_; 538 RawLibrary* vmservice_library_;
533 RawGrowableObjectArray* libraries_; 539 RawGrowableObjectArray* libraries_;
534 RawGrowableObjectArray* pending_classes_; 540 RawGrowableObjectArray* pending_classes_;
535 RawGrowableObjectArray* pending_deferred_loads_; 541 RawGrowableObjectArray* pending_deferred_loads_;
536 RawGrowableObjectArray* resume_capabilities_; 542 RawGrowableObjectArray* resume_capabilities_;
537 RawGrowableObjectArray* exit_listeners_; 543 RawGrowableObjectArray* exit_listeners_;
538 RawGrowableObjectArray* error_listeners_; 544 RawGrowableObjectArray* error_listeners_;
539 RawError* sticky_error_; 545 RawError* sticky_error_;
540 RawContext* empty_context_; 546 RawContext* empty_context_;
541 RawInstance* stack_overflow_; 547 RawInstance* stack_overflow_;
(...skipping 20 matching lines...) Expand all
562 friend class FullSnapshotWriter; 568 friend class FullSnapshotWriter;
563 friend class SnapshotReader; 569 friend class SnapshotReader;
564 friend class VmIsolateSnapshotReader; 570 friend class VmIsolateSnapshotReader;
565 571
566 DISALLOW_COPY_AND_ASSIGN(ObjectStore); 572 DISALLOW_COPY_AND_ASSIGN(ObjectStore);
567 }; 573 };
568 574
569 } // namespace dart 575 } // namespace dart
570 576
571 #endif // VM_OBJECT_STORE_H_ 577 #endif // VM_OBJECT_STORE_H_
OLDNEW
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/object_store.cc » ('j') | sdk/lib/uri/uri.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698