OLD | NEW |
---|---|
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 class _Closure implements Function { | 5 class _Closure implements Function { |
6 | 6 |
7 bool operator ==(other) native "Closure_equals"; | 7 bool operator ==(other) native "Closure_equals"; |
8 | 8 |
9 int get hashCode native "Closure_hashCode"; | 9 int get hashCode native "Closure_hashCode"; |
10 | 10 |
11 _Closure get call => this; | 11 _Closure get call => this; |
12 | 12 |
13 _Closure _clone() native "Closure_clone"; | 13 _Closure _clone() native "Closure_clone"; |
14 | 14 |
15 // The type_arguments_, function_, and context_ fields are not declared here. | 15 // The following 3 fields are declared both in raw_object.h (for direct access |
16 // from C++ code) and also here so that the offset-to-field map used by | |
17 // deferred objects is properly initialized. | |
18 // Caution: These fields are not Dart instances, but VM objects. | |
Cutch
2017/02/24 22:15:37
Add a note that no fields can be added *before* th
regis
2017/02/24 22:54:41
Good points. All done.
| |
19 var instantiator_; | |
20 var function_; | |
21 var context_; | |
16 } | 22 } |
OLD | NEW |