| Index: runtime/vm/assembler_arm64.cc
|
| diff --git a/runtime/vm/assembler_arm64.cc b/runtime/vm/assembler_arm64.cc
|
| index 9832dae6d621bddc1cf8eb30672d3522c3a86fb8..100d02a7cc2b108f122af6949b2e18c52aefd02e 100644
|
| --- a/runtime/vm/assembler_arm64.cc
|
| +++ b/runtime/vm/assembler_arm64.cc
|
| @@ -1354,7 +1354,7 @@ void Assembler::TryAllocate(const Class& cls,
|
| // 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(cls.id(), temp_reg, failure);
|
| + NOT_IN_PRODUCT(MaybeTraceAllocation(cls.id(), temp_reg, failure));
|
| const intptr_t instance_size = cls.instance_size();
|
| Heap::Space space = Heap::SpaceForAllocation(cls.id());
|
| ldr(temp_reg, Address(THR, Thread::heap_offset()));
|
| @@ -1375,7 +1375,7 @@ void Assembler::TryAllocate(const Class& cls,
|
| ASSERT(instance_size >= kHeapObjectTag);
|
| AddImmediate(
|
| instance_reg, instance_reg, -instance_size + kHeapObjectTag);
|
| - UpdateAllocationStats(cls.id(), space);
|
| + NOT_IN_PRODUCT(UpdateAllocationStats(cls.id(), space));
|
|
|
| uword tags = 0;
|
| tags = RawObject::SizeTag::update(instance_size, tags);
|
| @@ -1400,7 +1400,7 @@ void Assembler::TryAllocateArray(intptr_t cid,
|
| // 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);
|
| + NOT_IN_PRODUCT(MaybeTraceAllocation(cid, temp1, failure));
|
| Heap::Space space = Heap::SpaceForAllocation(cid);
|
| ldr(temp1, Address(THR, Thread::heap_offset()));
|
| // Potential new object start.
|
| @@ -1420,7 +1420,7 @@ void Assembler::TryAllocateArray(intptr_t cid,
|
| str(end_address, Address(temp1, Heap::TopOffset(space)));
|
| add(instance, instance, Operand(kHeapObjectTag));
|
| LoadImmediate(temp2, instance_size);
|
| - UpdateAllocationStatsWithSize(cid, temp2, space);
|
| + NOT_IN_PRODUCT(UpdateAllocationStatsWithSize(cid, temp2, space));
|
|
|
| // Initialize the tags.
|
| // instance: new object start as a tagged pointer.
|
|
|