Chromium Code Reviews| Index: runtime/lib/function.dart |
| diff --git a/runtime/lib/function.dart b/runtime/lib/function.dart |
| index 6c1d5ccbd9d5228e8778c1b91d4599b4eaee1618..0233f56b8e17987783a71bb03a2694bdd4898de1 100644 |
| --- a/runtime/lib/function.dart |
| +++ b/runtime/lib/function.dart |
| @@ -12,5 +12,11 @@ class _Closure implements Function { |
| _Closure _clone() native "Closure_clone"; |
| - // The type_arguments_, function_, and context_ fields are not declared here. |
| + // The following 3 fields are declared both in raw_object.h (for direct access |
| + // from C++ code) and also here so that the offset-to-field map used by |
| + // deferred objects is properly initialized. |
| + // 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.
|
| + var instantiator_; |
| + var function_; |
| + var context_; |
| } |