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

Side by Side Diff: runtime/vm/object.cc

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 #include "vm/object.h" 5 #include "vm/object.h"
6 6
7 #include "include/dart_api.h" 7 #include "include/dart_api.h"
8 #include "platform/assert.h" 8 #include "platform/assert.h"
9 #include "vm/assembler.h" 9 #include "vm/assembler.h"
10 #include "vm/cpu.h" 10 #include "vm/cpu.h"
(...skipping 10443 matching lines...) Expand 10 before | Expand all | Expand 10 after
10454 10454
10455 RawLibrary* Library::NativeWrappersLibrary() { 10455 RawLibrary* Library::NativeWrappersLibrary() {
10456 return Isolate::Current()->object_store()->native_wrappers_library(); 10456 return Isolate::Current()->object_store()->native_wrappers_library();
10457 } 10457 }
10458 10458
10459 10459
10460 RawLibrary* Library::TypedDataLibrary() { 10460 RawLibrary* Library::TypedDataLibrary() {
10461 return Isolate::Current()->object_store()->typed_data_library(); 10461 return Isolate::Current()->object_store()->typed_data_library();
10462 } 10462 }
10463 10463
10464 RawLibrary* Library::UriLibrary() {
10465 return Isolate::Current()->object_store()->uri_library();
10466 }
10464 10467
10465 RawLibrary* Library::VMServiceLibrary() { 10468 RawLibrary* Library::VMServiceLibrary() {
10466 return Isolate::Current()->object_store()->vmservice_library(); 10469 return Isolate::Current()->object_store()->vmservice_library();
10467 } 10470 }
10468 10471
10469 10472
10470 const char* Library::ToCString() const { 10473 const char* Library::ToCString() const {
10471 const String& name = String::Handle(url()); 10474 const String& name = String::Handle(url());
10472 return OS::SCreate(Thread::Current()->zone(), 10475 return OS::SCreate(Thread::Current()->zone(),
10473 "Library:'%s'", name.ToCString()); 10476 "Library:'%s'", name.ToCString());
(...skipping 11439 matching lines...) Expand 10 before | Expand all | Expand 10 after
21913 return tag_label.ToCString(); 21916 return tag_label.ToCString();
21914 } 21917 }
21915 21918
21916 21919
21917 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { 21920 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const {
21918 Instance::PrintJSONImpl(stream, ref); 21921 Instance::PrintJSONImpl(stream, ref);
21919 } 21922 }
21920 21923
21921 21924
21922 } // namespace dart 21925 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/object.h ('k') | runtime/vm/object_store.h » ('j') | sdk/lib/uri/uri.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698