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

Unified Diff: runtime/vm/object.h

Issue 8329005: Replace calls to Class::IsParameterized() by either (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 9 years, 2 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.h
===================================================================
--- runtime/vm/object.h (revision 502)
+++ runtime/vm/object.h (working copy)
@@ -426,14 +426,6 @@
void set_type_arguments_instance_field_offset(intptr_t value) const {
raw_ptr()->type_arguments_instance_field_offset_ = value;
}
siva 2011/10/18 05:06:19 The old comment says IsParametrized is more effici
regis 2011/10/18 17:28:21 Yes, I think I should reintroduce a helper functio
- bool IsParameterized() const {
- if (is_finalized() || is_prefinalized()) {
- // More efficient than calling NumTypeArguments().
- return type_arguments_instance_field_offset() != kNoTypeArguments;
- } else {
- return NumTypeArguments() > 0;
- }
- }
// The super type of this class, Object type if not explicitly specified.
RawType* super_type() const { return raw_ptr()->super_type_; }

Powered by Google App Engine
This is Rietveld 408576698