Index: runtime/vm/assembler_mips.cc |
diff --git a/runtime/vm/assembler_mips.cc b/runtime/vm/assembler_mips.cc |
index 3c8301f658cd4ae858c1d371e68980c19a679428..b96cb1bd8c8d1a8b960e6f1f484dd3166719d8eb 100644 |
--- a/runtime/vm/assembler_mips.cc |
+++ b/runtime/vm/assembler_mips.cc |
@@ -971,6 +971,10 @@ void Assembler::TryAllocateArray(intptr_t cid, |
Register temp1, |
Register temp2) { |
if (FLAG_inline_alloc) { |
+ // If this allocation is traced, program will jump to failure path |
+ // (i.e. the allocation stub) which will allocate the object and trace the |
+ // allocation call site. |
+ MaybeTraceAllocation(cid, temp1, failure); |
Isolate* isolate = Isolate::Current(); |
Heap* heap = isolate->heap(); |
Heap::Space space = heap->SpaceForAllocation(cid); |