Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(145)

Side by Side Diff: runtime/lib/invocation_mirror_patch.dart

Issue 2927613002: Improve NSM handling. (Closed)
Patch Set: Address review comments. Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « runtime/lib/errors_patch.dart ('k') | tests/co19/co19-kernel.status » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « runtime/lib/errors_patch.dart ('k') | tests/co19/co19-kernel.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698