| Index: runtime/lib/invocation_mirror_patch.dart
|
| ===================================================================
|
| --- runtime/lib/invocation_mirror_patch.dart (revision 18846)
|
| +++ runtime/lib/invocation_mirror_patch.dart (working copy)
|
| @@ -4,10 +4,25 @@
|
|
|
| class _InvocationMirror implements InvocationMirror {
|
| // Constants describing the invocation type.
|
| - static final int _METHOD = 0;
|
| - static final int _GETTER = 1;
|
| - static final int _SETTER = 2;
|
| + // _FIELD cannot be generated by regular invocation mirrors.
|
| + static const int _METHOD = 0;
|
| + static const int _GETTER = 1;
|
| + static const int _SETTER = 2;
|
| + static const int _FIELD = 3;
|
| + static const int _TYPE_SHIFT = 0;
|
| + static const int _TYPE_BITS = 2;
|
| + static const int _TYPE_MASK = (1 << _TYPE_BITS) - 1;
|
|
|
| + // These values, except _DYNAMIC, are only used when throwing
|
| + // NoSuchMethodError for compile-time resolution failures.
|
| + static const int _DYNAMIC = 0;
|
| + static const int _STATIC = 1;
|
| + static const int _CONSTRUCTOR = 2;
|
| + static const int _TOP_LEVEL = 3;
|
| + static const int _CALL_SHIFT = _TYPE_BITS;
|
| + static const int _CALL_BITS = 2;
|
| + static const int _CALL_MASK = (1 << _CALL_BITS) - 1;
|
| +
|
| // Internal representation of the invocation mirror.
|
| final String _functionName;
|
| final List _argumentsDescriptor;
|
|
|