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

Unified Diff: runtime/vm/object.h

Issue 75713002: Distinguish between malformed and malbounded types more efficiently using the (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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
« no previous file with comments | « runtime/vm/intermediate_language.cc ('k') | runtime/vm/object.cc » ('j') | 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 30381)
+++ runtime/vm/object.h (working copy)
@@ -3789,6 +3789,8 @@
kMalboundedType,
};
+ Kind kind() const { return static_cast<Kind>(raw_ptr()->kind_); }
+
// Build, cache, and return formatted message.
RawString* FormatMessage() const;
@@ -3829,7 +3831,6 @@
intptr_t token_pos() const { return raw_ptr()->token_pos_; }
void set_token_pos(intptr_t value) const;
- Kind kind() const { return static_cast<Kind>(raw_ptr()->kind_); }
void set_kind(uint8_t value) const;
RawString* message() const { return raw_ptr()->message_; }
@@ -3999,10 +4000,10 @@
virtual bool IsFinalized() const;
virtual bool IsBeingFinalized() const;
virtual bool IsMalformed() const;
- virtual bool IsMalbounded() const { return IsMalboundedWithError(NULL); }
- virtual bool IsMalboundedWithError(Error* bound_error) const;
- virtual RawError* malformed_error() const;
- virtual void set_malformed_error(const Error& value) const;
+ virtual bool IsMalbounded() const;
+ virtual bool IsMalformedOrMalbounded() const;
+ virtual RawLanguageError* error() const;
+ virtual void set_error(const LanguageError& value) const;
virtual bool IsResolved() const;
virtual bool HasResolvedTypeClass() const;
virtual RawClass* type_class() const;
@@ -4143,10 +4144,10 @@
}
void set_is_being_finalized() const;
virtual bool IsMalformed() const;
- virtual bool IsMalbounded() const { return IsMalboundedWithError(NULL); }
- virtual bool IsMalboundedWithError(Error* bound_error) const;
- virtual RawError* malformed_error() const;
- virtual void set_malformed_error(const Error& value) const;
+ virtual bool IsMalbounded() const;
+ virtual bool IsMalformedOrMalbounded() const;
+ virtual RawLanguageError* error() const { return raw_ptr()->error_; }
+ virtual void set_error(const LanguageError& value) const;
virtual bool IsResolved() const; // Class and all arguments classes resolved.
virtual bool HasResolvedTypeClass() const; // Own type class resolved.
virtual RawClass* type_class() const;
@@ -4254,7 +4255,7 @@
virtual bool IsBeingFinalized() const { return false; }
virtual bool IsMalformed() const { return false; }
virtual bool IsMalbounded() const { return false; }
- virtual bool IsMalboundedWithError(Error* bound_error) const { return false; }
+ virtual bool IsMalformedOrMalbounded() const { return false; }
virtual bool IsResolved() const { return true; }
virtual bool HasResolvedTypeClass() const { return false; }
RawClass* parameterized_class() const {
@@ -4321,9 +4322,9 @@
return AbstractType::Handle(type()).IsBeingFinalized();
}
virtual bool IsMalformed() const;
- virtual bool IsMalbounded() const { return IsMalboundedWithError(NULL); }
- virtual bool IsMalboundedWithError(Error* bound_error) const;
- virtual RawError* malformed_error() const;
+ virtual bool IsMalbounded() const;
+ virtual bool IsMalformedOrMalbounded() const;
+ virtual RawLanguageError* error() const;
virtual bool IsResolved() const { return true; }
virtual bool HasResolvedTypeClass() const {
return AbstractType::Handle(type()).HasResolvedTypeClass();
@@ -4400,6 +4401,7 @@
// TODO(regis): Handle malformed and malbounded MixinAppType.
virtual bool IsMalformed() const { return false; }
virtual bool IsMalbounded() const { return false; }
+ virtual bool IsMalformedOrMalbounded() const { return false; }
virtual bool IsResolved() const { return false; }
virtual bool HasResolvedTypeClass() const { return false; }
virtual RawString* Name() const;
« no previous file with comments | « runtime/vm/intermediate_language.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698