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

Unified Diff: runtime/vm/object.cc

Issue 810593008: Mark mutator methods of canonical constants as invisible to reflective access. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/method_recognizer.h ('k') | tests/lib/mirrors/invocation_fuzz_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.cc
===================================================================
--- runtime/vm/object.cc (revision 42724)
+++ runtime/vm/object.cc (working copy)
@@ -162,11 +162,17 @@
// The following functions are marked as invisible, meaning they will be hidden
// in the stack trace and will be hidden from reflective access.
+// All mutators of canonical constants should be hidden from reflective access.
// Additionally, private functions in dart:* that are native or constructors are
// marked as invisible by the parser.
#define INVISIBLE_CLASS_FUNCTIONS(V) \
V(AsyncLibrary, _AsyncRun, _scheduleImmediate) \
V(CoreLibrary, StringBuffer, _addPart) \
+ V(CoreLibrary, _Bigint, _setInt) \
+ V(CoreLibrary, _Bigint, _setHex) \
+ V(CoreLibrary, _Bigint, _setDouble) \
+ V(CoreLibrary, _Bigint, _ensureLength) \
+ V(CoreLibrary, _Bigint, _clamp) \
V(CoreLibrary, _Bigint, _absAdd) \
V(CoreLibrary, _Bigint, _absSub) \
V(CoreLibrary, _Bigint, _estQuotientDigit) \
« no previous file with comments | « runtime/vm/method_recognizer.h ('k') | tests/lib/mirrors/invocation_fuzz_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698