| Index: runtime/vm/mirrors_api_impl.cc
|
| diff --git a/runtime/vm/mirrors_api_impl.cc b/runtime/vm/mirrors_api_impl.cc
|
| index f367e3b5a4147ba59b34b814beb030a9c80d7151..fdbad3071c6f4d03d627db1e09dcad61692abccb 100644
|
| --- a/runtime/vm/mirrors_api_impl.cc
|
| +++ b/runtime/vm/mirrors_api_impl.cc
|
| @@ -22,7 +22,6 @@ namespace dart {
|
| // Facilitate quick access to the current zone once we have the current thread.
|
| #define Z (T->zone())
|
|
|
| -
|
| // --- Classes and Interfaces Reflection ---
|
|
|
| DART_EXPORT Dart_Handle Dart_TypeName(Dart_Handle object) {
|
| @@ -36,7 +35,6 @@ DART_EXPORT Dart_Handle Dart_TypeName(Dart_Handle object) {
|
| }
|
| }
|
|
|
| -
|
| DART_EXPORT Dart_Handle Dart_QualifiedTypeName(Dart_Handle object) {
|
| DARTSCOPE(Thread::Current());
|
| const Object& obj = Object::Handle(Z, Api::UnwrapHandle(object));
|
| @@ -55,7 +53,6 @@ DART_EXPORT Dart_Handle Dart_QualifiedTypeName(Dart_Handle object) {
|
| }
|
| }
|
|
|
| -
|
| // --- Function and Variable Reflection ---
|
|
|
| // Outside of the vm, we expose setter names with a trailing '='.
|
| @@ -63,13 +60,11 @@ static bool HasExternalSetterSuffix(const String& name) {
|
| return name.CharAt(name.Length() - 1) == '=';
|
| }
|
|
|
| -
|
| static RawString* RemoveExternalSetterSuffix(const String& name) {
|
| ASSERT(HasExternalSetterSuffix(name));
|
| return String::SubString(name, 0, name.Length() - 1);
|
| }
|
|
|
| -
|
| DART_EXPORT Dart_Handle Dart_GetFunctionNames(Dart_Handle target) {
|
| DARTSCOPE(Thread::Current());
|
| const Object& obj = Object::Handle(Z, Api::UnwrapHandle(target));
|
| @@ -127,7 +122,6 @@ DART_EXPORT Dart_Handle Dart_GetFunctionNames(Dart_Handle target) {
|
| return Api::NewHandle(T, Array::MakeFixedLength(names));
|
| }
|
|
|
| -
|
| DART_EXPORT Dart_Handle Dart_LookupFunction(Dart_Handle target,
|
| Dart_Handle function_name) {
|
| DARTSCOPE(Thread::Current());
|
| @@ -207,7 +201,6 @@ DART_EXPORT Dart_Handle Dart_LookupFunction(Dart_Handle target,
|
| return Api::NewHandle(T, func.raw());
|
| }
|
|
|
| -
|
| DART_EXPORT Dart_Handle Dart_FunctionName(Dart_Handle function) {
|
| DARTSCOPE(Thread::Current());
|
| const Function& func = Api::UnwrapFunctionHandle(Z, function);
|
| @@ -217,7 +210,6 @@ DART_EXPORT Dart_Handle Dart_FunctionName(Dart_Handle function) {
|
| return Api::NewHandle(T, func.UserVisibleName());
|
| }
|
|
|
| -
|
| DART_EXPORT Dart_Handle Dart_FunctionOwner(Dart_Handle function) {
|
| DARTSCOPE(Thread::Current());
|
| const Function& func = Api::UnwrapFunctionHandle(Z, function);
|
| @@ -245,7 +237,6 @@ DART_EXPORT Dart_Handle Dart_FunctionOwner(Dart_Handle function) {
|
| }
|
| }
|
|
|
| -
|
| DART_EXPORT Dart_Handle Dart_FunctionIsStatic(Dart_Handle function,
|
| bool* is_static) {
|
| DARTSCOPE(Thread::Current());
|
| @@ -260,7 +251,6 @@ DART_EXPORT Dart_Handle Dart_FunctionIsStatic(Dart_Handle function,
|
| return Api::Success();
|
| }
|
|
|
| -
|
| DART_EXPORT Dart_Handle Dart_FunctionIsConstructor(Dart_Handle function,
|
| bool* is_constructor) {
|
| DARTSCOPE(Thread::Current());
|
| @@ -275,7 +265,6 @@ DART_EXPORT Dart_Handle Dart_FunctionIsConstructor(Dart_Handle function,
|
| return Api::Success();
|
| }
|
|
|
| -
|
| DART_EXPORT Dart_Handle Dart_FunctionIsGetter(Dart_Handle function,
|
| bool* is_getter) {
|
| DARTSCOPE(Thread::Current());
|
| @@ -290,7 +279,6 @@ DART_EXPORT Dart_Handle Dart_FunctionIsGetter(Dart_Handle function,
|
| return Api::Success();
|
| }
|
|
|
| -
|
| DART_EXPORT Dart_Handle Dart_FunctionIsSetter(Dart_Handle function,
|
| bool* is_setter) {
|
| DARTSCOPE(Thread::Current());
|
| @@ -305,7 +293,6 @@ DART_EXPORT Dart_Handle Dart_FunctionIsSetter(Dart_Handle function,
|
| return Api::Success();
|
| }
|
|
|
| -
|
| // --- Libraries Reflection ---
|
|
|
| DART_EXPORT Dart_Handle Dart_LibraryName(Dart_Handle library) {
|
| @@ -339,7 +326,6 @@ DART_EXPORT Dart_Handle Dart_LibraryGetClassNames(Dart_Handle library) {
|
| return Api::NewHandle(T, Array::MakeFixedLength(names));
|
| }
|
|
|
| -
|
| // --- Closures Reflection ---
|
|
|
| DART_EXPORT Dart_Handle Dart_ClosureFunction(Dart_Handle closure) {
|
|
|