Index: runtime/vm/stub_code_arm64.cc |
diff --git a/runtime/vm/stub_code_arm64.cc b/runtime/vm/stub_code_arm64.cc |
index eddbd67fd533970d8ffc9bc9bc76d78fa6a714ba..3d72f7000e750acd04ea3be9cf71d8397540500a 100644 |
--- a/runtime/vm/stub_code_arm64.cc |
+++ b/runtime/vm/stub_code_arm64.cc |
@@ -912,6 +912,8 @@ void StubCode::GenerateAllocateContextStub(Assembler* assembler) { |
ASSERT(kSmiTagShift == 1); |
__ andi(R2, R2, Immediate(~(kObjectAlignment - 1))); |
+ __ MaybeTraceAllocation(kContextCid, R4, &slow_case, |
+ /* inline_isolate = */ false); |
// Now allocate the object. |
// R1: number of context variables. |
// R2: object size. |
@@ -1090,7 +1092,7 @@ void StubCode::GenerateAllocationStubForClass( |
// R1: instantiated type arguments. |
} |
if (FLAG_inline_alloc && Heap::IsAllocatableInNewSpace(instance_size) && |
- !cls.trace_allocation()) { |
+ !cls.TraceAllocation()) { |
Label slow_case; |
// Allocate the object and update top to point to |
// next object start and initialize the allocated object. |