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