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

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

Issue 16019002: Merge the dart:uri library into dart:core and update the Uri class (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Final cleanup Created 7 years, 6 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/object_store.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 #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 6699 matching lines...) Expand 10 before | Expand all | Expand 10 after
6710 RawLibrary* Library::NativeWrappersLibrary() { 6710 RawLibrary* Library::NativeWrappersLibrary() {
6711 return Isolate::Current()->object_store()->native_wrappers_library(); 6711 return Isolate::Current()->object_store()->native_wrappers_library();
6712 } 6712 }
6713 6713
6714 6714
6715 RawLibrary* Library::TypedDataLibrary() { 6715 RawLibrary* Library::TypedDataLibrary() {
6716 return Isolate::Current()->object_store()->typed_data_library(); 6716 return Isolate::Current()->object_store()->typed_data_library();
6717 } 6717 }
6718 6718
6719 6719
6720 RawLibrary* Library::UriLibrary() {
6721 return Isolate::Current()->object_store()->uri_library();
6722 }
6723
6724
6725 RawLibrary* Library::UtfLibrary() { 6720 RawLibrary* Library::UtfLibrary() {
6726 return Isolate::Current()->object_store()->utf_library(); 6721 return Isolate::Current()->object_store()->utf_library();
6727 } 6722 }
6728 6723
6729 6724
6730 const char* Library::ToCString() const { 6725 const char* Library::ToCString() const {
6731 const char* kFormat = "Library:'%s'"; 6726 const char* kFormat = "Library:'%s'";
6732 const String& name = String::Handle(url()); 6727 const String& name = String::Handle(url());
6733 intptr_t len = OS::SNPrint(NULL, 0, kFormat, name.ToCString()) + 1; 6728 intptr_t len = OS::SNPrint(NULL, 0, kFormat, name.ToCString()) + 1;
6734 char* chars = Isolate::Current()->current_zone()->Alloc<char>(len); 6729 char* chars = Isolate::Current()->current_zone()->Alloc<char>(len);
(...skipping 6595 matching lines...) Expand 10 before | Expand all | Expand 10 after
13330 } 13325 }
13331 return result.raw(); 13326 return result.raw();
13332 } 13327 }
13333 13328
13334 13329
13335 const char* WeakProperty::ToCString() const { 13330 const char* WeakProperty::ToCString() const {
13336 return "_WeakProperty"; 13331 return "_WeakProperty";
13337 } 13332 }
13338 13333
13339 } // namespace dart 13334 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/bootstrap.cc ('k') | runtime/vm/object_store.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698