| Index: runtime/lib/mirrors.cc
|
| diff --git a/runtime/lib/mirrors.cc b/runtime/lib/mirrors.cc
|
| index c11ea6142c5a365926b7073528f0543a0b584621..9dca08b72e924f79e5352ea91e5a8241c8110eb0 100644
|
| --- a/runtime/lib/mirrors.cc
|
| +++ b/runtime/lib/mirrors.cc
|
| @@ -894,6 +894,7 @@ DEFINE_NATIVE_ENTRY(Mirrors_makeLocalTypeMirror, 1) {
|
| return CreateTypeMirror(type);
|
| }
|
|
|
| +
|
| DEFINE_NATIVE_ENTRY(Mirrors_mangleName, 2) {
|
| GET_NON_NULL_NATIVE_ARGUMENT(String, name, arguments->NativeArgAt(0));
|
| GET_NON_NULL_NATIVE_ARGUMENT(MirrorReference, ref, arguments->NativeArgAt(1));
|
| @@ -901,18 +902,6 @@ DEFINE_NATIVE_ENTRY(Mirrors_mangleName, 2) {
|
| return lib.IsPrivate(name) ? lib.PrivateName(name) : name.raw();
|
| }
|
|
|
| -DEFINE_NATIVE_ENTRY(Mirrors_unmangleName, 1) {
|
| - GET_NON_NULL_NATIVE_ARGUMENT(String, name, arguments->NativeArgAt(0));
|
| - // It would be nice to unconditionally use IdentifierPrettyName, alas it
|
| - // cannot cope with the symbols for the names of anonymous mixin applications.
|
| - if (Library::IsPrivate(name) ||
|
| - Field::IsGetterName(name) ||
|
| - Field::IsSetterName(name)) {
|
| - return String::IdentifierPrettyName(name);
|
| - }
|
| - return name.raw();
|
| -}
|
| -
|
|
|
| DEFINE_NATIVE_ENTRY(MirrorReference_equals, 2) {
|
| GET_NON_NULL_NATIVE_ARGUMENT(MirrorReference, a, arguments->NativeArgAt(0));
|
|
|