| Index: runtime/vm/code_generator.cc
|
| ===================================================================
|
| --- runtime/vm/code_generator.cc (revision 40518)
|
| +++ runtime/vm/code_generator.cc (working copy)
|
| @@ -117,7 +117,8 @@
|
| Exceptions::ThrowArgumentError(error);
|
| }
|
|
|
| - const Array& array = Array::Handle(Array::New(len));
|
| + Heap::Space space = isolate->heap()->SpaceForAllocation(kArrayCid);
|
| + const Array& array = Array::Handle(Array::New(len, space));
|
| arguments.SetReturn(array);
|
| TypeArguments& element_type =
|
| TypeArguments::CheckedHandle(arguments.ArgAt(1));
|
| @@ -156,9 +157,9 @@
|
| }
|
| }
|
| #endif
|
| + Heap::Space space = isolate->heap()->SpaceForAllocation(cls.id());
|
| + const Instance& instance = Instance::Handle(Instance::New(cls, space));
|
|
|
| - const Instance& instance = Instance::Handle(Instance::New(cls));
|
| -
|
| arguments.SetReturn(instance);
|
| if (cls.NumTypeArguments() == 0) {
|
| // No type arguments required for a non-parameterized type.
|
|
|