| Index: runtime/vm/stub_code_x64.cc
|
| diff --git a/runtime/vm/stub_code_x64.cc b/runtime/vm/stub_code_x64.cc
|
| index d66c1254bc9868da34ed2e28aa75ca95f71e6096..25b5833fe9eae8e32e64d164670eea00fce6822e 100644
|
| --- a/runtime/vm/stub_code_x64.cc
|
| +++ b/runtime/vm/stub_code_x64.cc
|
| @@ -588,9 +588,9 @@ void StubCode::GenerateAllocateArrayStub(Assembler* assembler) {
|
| __ j(GREATER, &slow_case);
|
|
|
| // Check for allocation tracing.
|
| - __ MaybeTraceAllocation(kArrayCid,
|
| - &slow_case,
|
| - Assembler::kFarJump);
|
| + NOT_IN_PRODUCT(__ MaybeTraceAllocation(kArrayCid,
|
| + &slow_case,
|
| + Assembler::kFarJump));
|
|
|
| const intptr_t fixed_size = sizeof(RawArray) + kObjectAlignment - 1;
|
| __ leaq(RDI, Address(RDI, TIMES_4, fixed_size)); // RDI is a Smi.
|
| @@ -619,7 +619,7 @@ void StubCode::GenerateAllocateArrayStub(Assembler* assembler) {
|
| // next object start and initialize the object.
|
| __ movq(Address(R13, Heap::TopOffset(space)), RCX);
|
| __ addq(RAX, Immediate(kHeapObjectTag));
|
| - __ UpdateAllocationStatsWithSize(cid, RDI, space);
|
| + NOT_IN_PRODUCT(__ UpdateAllocationStatsWithSize(cid, RDI, space));
|
| // Initialize the tags.
|
| // RAX: new object start as a tagged pointer.
|
| // RDI: allocation size.
|
| @@ -843,9 +843,9 @@ void StubCode::GenerateAllocateContextStub(Assembler* assembler) {
|
| __ andq(R13, Immediate(-kObjectAlignment));
|
|
|
| // Check for allocation tracing.
|
| - __ MaybeTraceAllocation(kContextCid,
|
| - &slow_case,
|
| - Assembler::kFarJump);
|
| + NOT_IN_PRODUCT(__ MaybeTraceAllocation(kContextCid,
|
| + &slow_case,
|
| + Assembler::kFarJump));
|
|
|
| // Now allocate the object.
|
| // R10: number of context variables.
|
| @@ -877,7 +877,7 @@ void StubCode::GenerateAllocateContextStub(Assembler* assembler) {
|
| __ subq(R13, RAX);
|
| __ addq(RAX, Immediate(kHeapObjectTag));
|
| // Generate isolate-independent code to allow sharing between isolates.
|
| - __ UpdateAllocationStatsWithSize(cid, R13, space);
|
| + NOT_IN_PRODUCT(__ UpdateAllocationStatsWithSize(cid, R13, space));
|
|
|
| // Calculate the size tag.
|
| // RAX: new object.
|
| @@ -1068,7 +1068,7 @@ void StubCode::GenerateAllocationStubForClass(Assembler* assembler,
|
| __ j(ABOVE_EQUAL, &slow_case);
|
| }
|
| __ movq(Address(RCX, Heap::TopOffset(space)), RBX);
|
| - __ UpdateAllocationStats(cls.id(), space);
|
| + NOT_IN_PRODUCT(__ UpdateAllocationStats(cls.id(), space));
|
|
|
| // RAX: new object start (untagged).
|
| // RBX: next object start.
|
|
|