| Index: runtime/vm/stub_code_mips.cc
|
| ===================================================================
|
| --- runtime/vm/stub_code_mips.cc (revision 28669)
|
| +++ runtime/vm/stub_code_mips.cc (working copy)
|
| @@ -1251,8 +1251,8 @@
|
| const Class& cls) {
|
| __ TraceSimMsg("AllocationStubForClass");
|
| // The generated code is different if the class is parameterized.
|
| - const bool is_cls_parameterized = cls.HasTypeArguments();
|
| - ASSERT(!cls.HasTypeArguments() ||
|
| + const bool is_cls_parameterized = cls.NumTypeArguments() > 0;
|
| + ASSERT(!is_cls_parameterized ||
|
| (cls.type_arguments_field_offset() != Class::kNoTypeArguments));
|
| // kInlineInstanceSize is a constant used as a threshold for determining
|
| // when the object initialization should be done as a loop or as
|
| @@ -1430,7 +1430,7 @@
|
| const bool is_implicit_instance_closure =
|
| func.IsImplicitInstanceClosureFunction();
|
| const Class& cls = Class::ZoneHandle(func.signature_class());
|
| - const bool has_type_arguments = cls.HasTypeArguments();
|
| + const bool has_type_arguments = cls.NumTypeArguments() > 0;
|
|
|
| __ TraceSimMsg("AllocationStubForClosure");
|
| __ EnterStubFrame(true); // Uses pool pointer to refer to function.
|
|
|