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

Unified Diff: runtime/vm/class_finalizer.cc

Issue 12528013: Add the typed data classes to the do not extend list. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 9 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/class_finalizer.cc
===================================================================
--- runtime/vm/class_finalizer.cc (revision 19652)
+++ runtime/vm/class_finalizer.cc (working copy)
@@ -1543,6 +1543,11 @@
case kExternalFloat32ArrayCid:
case kFloat64ArrayCid:
case kExternalFloat64ArrayCid:
+#define DO_NOT_EXTEND_TYPED_DATA_CLASSES(clazz) \
+ case kTypedData##clazz##Cid: \
+ case kExternalTypedData##clazz##Cid:
+ CLASS_LIST_TYPED_DATA(DO_NOT_EXTEND_TYPED_DATA_CLASSES)
+#undef DO_NOT_EXTEND_TYPED_DATA_CLASSES
case kDartFunctionCid:
case kWeakPropertyCid:
is_error = true;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698