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_; } |