| Index: sdk/lib/_internal/compiler/js_lib/js_mirrors.dart
|
| diff --git a/sdk/lib/_internal/compiler/js_lib/js_mirrors.dart b/sdk/lib/_internal/compiler/js_lib/js_mirrors.dart
|
| index beca2f530fc44269931db682e8ed2424269ee590..9fc50b79836fd5d187c75d30a091f6f814f8cc1e 100644
|
| --- a/sdk/lib/_internal/compiler/js_lib/js_mirrors.dart
|
| +++ b/sdk/lib/_internal/compiler/js_lib/js_mirrors.dart
|
| @@ -991,7 +991,7 @@ class JsInstanceMirror extends JsObjectMirror implements InstanceMirror {
|
| case JSInvocationMirror.METHOD:
|
| if (namedArguments.isNotEmpty) return '$name*';
|
| int nbArgs = positionalArguments.length as int;
|
| - return "$name:$nbArgs";
|
| + return "$name:$nbArgs:0";
|
| }
|
| throw new RuntimeError("Could not compute reflective name for $name");
|
| }
|
| @@ -1685,7 +1685,7 @@ class JsClassMirror extends JsTypeMirror with JsObjectMirror
|
| // reflection with metadata.
|
| if (simpleName == null) continue;
|
| var function = JS('', '#[#]', prototype, key);
|
| - if (isStubMethod(function)) continue;
|
| + if (isNoSuchMethodStub(function)) continue;
|
| if (isAliasedSuperMethod(function, key)) continue;
|
| var mirror =
|
| new JsMethodMirror.fromUnmangledName(
|
| @@ -2331,11 +2331,8 @@ class JsMethodMirror extends JsDeclarationMirror implements MethodMirror {
|
| requiredParameterCount = 0;
|
| }
|
| } else {
|
| - ReflectionInfo reflectionInfo = new ReflectionInfo(jsFunction);
|
| - requiredParameterCount = reflectionInfo.requiredParameterCount;
|
| - optionalParameterCount = reflectionInfo.optionalParameterCount;
|
| - assert(int.parse(info[1]) == requiredParameterCount
|
| - + optionalParameterCount);
|
| + requiredParameterCount = int.parse(info[1]);
|
| + optionalParameterCount = int.parse(info[2]);
|
| }
|
| return new JsMethodMirror(
|
| s(name), jsFunction, requiredParameterCount, optionalParameterCount,
|
| @@ -2962,7 +2959,7 @@ bool isReflectiveDataInPrototype(String key) {
|
| return firstChar == '*' || firstChar == '+';
|
| }
|
|
|
| -bool isStubMethod(var jsFunction) {
|
| +bool isNoSuchMethodStub(var jsFunction) {
|
| return JS('bool', r'#.$reflectable == 2', jsFunction);
|
| }
|
|
|
|
|