Chromium Code Reviews| Index: runtime/vm/object.cc |
| diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc |
| index f1f2289b6119e85f7f598c850b9010ba5f3dc39e..952fe443d63cba5bf04146767c5670cb2a5e322c 100644 |
| --- a/runtime/vm/object.cc |
| +++ b/runtime/vm/object.cc |
| @@ -1446,6 +1446,11 @@ RawObject* Object::Allocate(intptr_t cls_id, |
| Exceptions::Throw(exception); |
| UNREACHABLE(); |
| } |
| + if (space == Heap::kNew) { |
| + isolate->class_table()->ReportAllocationNewSpace(cls_id, size); |
|
Ivan Posva
2013/12/12 13:53:24
This separation should probably be done in the cla
Cutch
2013/12/13 01:31:09
Agreed, but, #including heap.h into class_table.h
|
| + } else { |
| + isolate->class_table()->ReportAllocationOldSpace(cls_id, size); |
| + } |
| NoGCScope no_gc; |
| InitializeObject(address, cls_id, size); |
| RawObject* raw_obj = reinterpret_cast<RawObject*>(address + kHeapObjectTag); |