| Index: runtime/vm/stub_code_arm.cc
|
| ===================================================================
|
| --- runtime/vm/stub_code_arm.cc (revision 28669)
|
| +++ runtime/vm/stub_code_arm.cc (working copy)
|
| @@ -1067,8 +1067,8 @@
|
| void StubCode::GenerateAllocationStubForClass(Assembler* assembler,
|
| const Class& cls) {
|
| // 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
|
| @@ -1239,7 +1239,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;
|
|
|
| __ EnterStubFrame(true); // Uses pool pointer to refer to function.
|
| const intptr_t kTypeArgumentsFPOffset = 3 * kWordSize;
|
|
|