Fix for regression in content shell tests (see b/36131545)
Renamed public fields in class _Closure to make them private fields,
these fields were added to ensure that the offset of _Closure fields
matched up in Dart and C++ (definition of closure object in raw_object.h).
R=regis@google.com, rmacnak@google.com
Review-Url: https://codereview.chromium.org/2751883002 .
diff --git a/runtime/lib/function.dart b/runtime/lib/function.dart
index e5308a4..0946702 100644
--- a/runtime/lib/function.dart
+++ b/runtime/lib/function.dart
@@ -19,7 +19,12 @@
// 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.
- var instantiator_;
- var function_;
- var context_;
+ // The fields had to be renamed here so that they would be private fields
+ // in dart
+ // instantiator_ ===> _instantiator
+ // function_ ===> _function
+ // context_ ===> _context
+ var _instantiator;
+ var _function;
+ var _context;
}