Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(124)

Unified Diff: runtime/vm/stub_code_x64.cc

Issue 2105383003: VM: Don't generate allocation stats code in product mode. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/stub_code_mips.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « runtime/vm/stub_code_mips.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698