| Index: runtime/vm/code_generator.cc
|
| diff --git a/runtime/vm/code_generator.cc b/runtime/vm/code_generator.cc
|
| index 5de912a0928919942675ffef1c679bf933f8d9bb..e31f38362c253b6e6408d088872b2cf403168fb1 100644
|
| --- a/runtime/vm/code_generator.cc
|
| +++ b/runtime/vm/code_generator.cc
|
| @@ -109,6 +109,8 @@ DEFINE_RUNTIME_ENTRY(AllocateArray, 2) {
|
| // Return value: newly allocated object.
|
| DEFINE_RUNTIME_ENTRY(AllocateObject, 3) {
|
| const Class& cls = Class::CheckedHandle(arguments.ArgAt(0));
|
| + // Report allocate to heap class stats.
|
| + isolate->class_table()->AllocateClassNewSpace(cls.id(), cls.instance_size());
|
| const Instance& instance = Instance::Handle(Instance::New(cls));
|
| arguments.SetReturn(instance);
|
| if (cls.NumTypeArguments() == 0) {
|
|
|