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

Unified Diff: runtime/vm/object.h

Issue 8503034: Add type check tracing (--trace_type_checks). Inline type checks with class types that have only ... (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 years, 1 month 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
Index: runtime/vm/object.h
===================================================================
--- runtime/vm/object.h (revision 1334)
+++ runtime/vm/object.h (working copy)
@@ -738,6 +738,9 @@
// Check if this type represents the 'Function' interface.
bool IsFunctionInterface() const;
+ // Check if this type represents the 'List' interface.
+ bool IsListInterface() const;
+
// Check if this type is an interface type.
bool IsInterfaceType() const {
if (!HasResolvedTypeClass()) {
@@ -790,6 +793,9 @@
// The 'Function' interface type.
static RawType* FunctionInterface();
+ // The 'List' interface type.
+ static RawType* ListInterface();
+
// The least specific valid raw type of the given class.
// For example, type A<Dynamic> would be returned for class A<T>, and type
// B<Dynamic, A<Dynamic>> would be returned for B<U, V extends A>.

Powered by Google App Engine
This is Rietveld 408576698