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

Unified Diff: runtime/vm/object.h

Issue 10399051: First shot at static type propagation and type test elimination. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 7 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
« runtime/vm/intermediate_language.cc ('K') | « runtime/vm/intermediate_language.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.h
===================================================================
--- runtime/vm/object.h (revision 7698)
+++ runtime/vm/object.h (working copy)
@@ -823,6 +823,11 @@
return HasResolvedTypeClass() && (type_class() == Object::dynamic_class());
}
+ // Check if this type represents the 'Null' type.
+ bool IsNullType() const {
+ return HasResolvedTypeClass() && (type_class() == Object::null_class());
+ }
+
// Check if this type represents the 'void' type.
bool IsVoidType() const {
return HasResolvedTypeClass() && (type_class() == Object::void_class());
@@ -1302,6 +1307,7 @@
case RawFunction::kImplicitGetter:
case RawFunction::kImplicitSetter:
return true;
+ case RawFunction::kClosureFunction:
case RawFunction::kConstructor:
case RawFunction::kConstImplicitGetter:
case RawFunction::kAbstract:
@@ -1323,6 +1329,7 @@
case RawFunction::kImplicitSetter:
case RawFunction::kConstImplicitGetter:
return true;
+ case RawFunction::kClosureFunction:
case RawFunction::kConstructor:
return false;
default:
« runtime/vm/intermediate_language.cc ('K') | « runtime/vm/intermediate_language.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698