| 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 // NOTE: When making changes to this class, please also update |
| 6 // `VmTarget.instantiateInvocation` in `pkg/kernel/lib/target/vm.dart`. |
| 5 class _InvocationMirror implements Invocation { | 7 class _InvocationMirror implements Invocation { |
| 6 // Constants describing the invocation type. | 8 // Constants describing the invocation type. |
| 7 // _FIELD cannot be generated by regular invocation mirrors. | 9 // _FIELD cannot be generated by regular invocation mirrors. |
| 8 static const int _METHOD = 0; | 10 static const int _METHOD = 0; |
| 9 static const int _GETTER = 1; | 11 static const int _GETTER = 1; |
| 10 static const int _SETTER = 2; | 12 static const int _SETTER = 2; |
| 11 static const int _FIELD = 3; | 13 static const int _FIELD = 3; |
| 12 static const int _LOCAL_VAR = 4; | 14 static const int _LOCAL_VAR = 4; |
| 13 static const int _TYPE_SHIFT = 0; | 15 static const int _TYPE_SHIFT = 0; |
| 14 static const int _TYPE_BITS = 3; | 16 static const int _TYPE_BITS = 3; |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 | 130 |
| 129 _InvocationMirror(this._functionName, this._argumentsDescriptor, | 131 _InvocationMirror(this._functionName, this._argumentsDescriptor, |
| 130 this._arguments, this._isSuperInvocation); | 132 this._arguments, this._isSuperInvocation); |
| 131 | 133 |
| 132 static _allocateInvocationMirror(String functionName, | 134 static _allocateInvocationMirror(String functionName, |
| 133 List argumentsDescriptor, List arguments, bool isSuperInvocation) { | 135 List argumentsDescriptor, List arguments, bool isSuperInvocation) { |
| 134 return new _InvocationMirror( | 136 return new _InvocationMirror( |
| 135 functionName, argumentsDescriptor, arguments, isSuperInvocation); | 137 functionName, argumentsDescriptor, arguments, isSuperInvocation); |
| 136 } | 138 } |
| 137 } | 139 } |
| OLD | NEW |