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

Unified Diff: runtime/vm/object.cc

Issue 10823022: Improve static type propagation. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 5 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
Index: runtime/vm/object.cc
===================================================================
--- runtime/vm/object.cc (revision 9904)
+++ runtime/vm/object.cc (working copy)
@@ -2533,14 +2533,14 @@
// run time.
if (IsMalformed()) {
ASSERT(FLAG_enable_type_checks);
- if (malformed_error->IsNull()) {
+ if ((malformed_error != NULL) && malformed_error->IsNull()) {
*malformed_error = this->malformed_error();
}
return false;
}
if (other.IsMalformed()) {
ASSERT(FLAG_enable_type_checks);
- if (malformed_error->IsNull()) {
+ if ((malformed_error != NULL) && malformed_error->IsNull()) {
*malformed_error = other.malformed_error();
}
return false;
@@ -3309,7 +3309,7 @@
!this_type_arg.IsSubtypeOf(bound, malformed_error)) {
// Ignore this bound error if another malformed error was already
// reported for this type test.
- if (malformed_error->IsNull()) {
+ if ((malformed_error != NULL) && malformed_error->IsNull()) {
const String& type_arg_name =
String::Handle(this_type_arg.UserVisibleName());
const String& class_name = String::Handle(cls.Name());

Powered by Google App Engine
This is Rietveld 408576698