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 7933 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7944 RawLibrary* Library::NativeWrappersLibrary() { | 7944 RawLibrary* Library::NativeWrappersLibrary() { |
7945 return Isolate::Current()->object_store()->native_wrappers_library(); | 7945 return Isolate::Current()->object_store()->native_wrappers_library(); |
7946 } | 7946 } |
7947 | 7947 |
7948 | 7948 |
7949 RawLibrary* Library::TypedDataLibrary() { | 7949 RawLibrary* Library::TypedDataLibrary() { |
7950 return Isolate::Current()->object_store()->typed_data_library(); | 7950 return Isolate::Current()->object_store()->typed_data_library(); |
7951 } | 7951 } |
7952 | 7952 |
7953 | 7953 |
7954 RawLibrary* Library::UtfLibrary() { | |
7955 return Isolate::Current()->object_store()->utf_library(); | |
7956 } | |
7957 | |
7958 | |
7959 const char* Library::ToCString() const { | 7954 const char* Library::ToCString() const { |
7960 const char* kFormat = "Library:'%s'"; | 7955 const char* kFormat = "Library:'%s'"; |
7961 const String& name = String::Handle(url()); | 7956 const String& name = String::Handle(url()); |
7962 intptr_t len = OS::SNPrint(NULL, 0, kFormat, name.ToCString()) + 1; | 7957 intptr_t len = OS::SNPrint(NULL, 0, kFormat, name.ToCString()) + 1; |
7963 char* chars = Isolate::Current()->current_zone()->Alloc<char>(len); | 7958 char* chars = Isolate::Current()->current_zone()->Alloc<char>(len); |
7964 OS::SNPrint(chars, len, kFormat, name.ToCString()); | 7959 OS::SNPrint(chars, len, kFormat, name.ToCString()); |
7965 return chars; | 7960 return chars; |
7966 } | 7961 } |
7967 | 7962 |
7968 | 7963 |
(...skipping 7632 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
15601 return "_MirrorReference"; | 15596 return "_MirrorReference"; |
15602 } | 15597 } |
15603 | 15598 |
15604 | 15599 |
15605 void MirrorReference::PrintToJSONStream(JSONStream* stream, bool ref) const { | 15600 void MirrorReference::PrintToJSONStream(JSONStream* stream, bool ref) const { |
15606 JSONObject jsobj(stream); | 15601 JSONObject jsobj(stream); |
15607 } | 15602 } |
15608 | 15603 |
15609 | 15604 |
15610 } // namespace dart | 15605 } // namespace dart |
OLD | NEW |