| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |