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

Unified Diff: runtime/vm/stub_code_arm64.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_arm.cc ('k') | runtime/vm/stub_code_ia32.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/stub_code_arm64.cc
diff --git a/runtime/vm/stub_code_arm64.cc b/runtime/vm/stub_code_arm64.cc
index 97a20c80c3021e3bbec1e2c6a72bdd1e32fc52af..ddf4406b12223ea7f04d4228a46277b0a1cff56c 100644
--- a/runtime/vm/stub_code_arm64.cc
+++ b/runtime/vm/stub_code_arm64.cc
@@ -652,7 +652,7 @@ void StubCode::GenerateAllocateArrayStub(Assembler* assembler) {
__ b(&slow_case, GT);
const intptr_t cid = kArrayCid;
- __ MaybeTraceAllocation(kArrayCid, R4, &slow_case);
+ NOT_IN_PRODUCT(__ MaybeTraceAllocation(kArrayCid, R4, &slow_case));
Heap::Space space = Heap::SpaceForAllocation(cid);
__ LoadIsolate(R8);
@@ -693,7 +693,7 @@ void StubCode::GenerateAllocateArrayStub(Assembler* assembler) {
// R8: heap.
__ StoreToOffset(R7, R8, Heap::TopOffset(space));
__ add(R0, R0, Operand(kHeapObjectTag));
- __ UpdateAllocationStatsWithSize(cid, R3, space);
+ NOT_IN_PRODUCT(__ UpdateAllocationStatsWithSize(cid, R3, space));
// R0: new object start as a tagged pointer.
// R1: array element type.
@@ -917,7 +917,7 @@ void StubCode::GenerateAllocateContextStub(Assembler* assembler) {
ASSERT(kSmiTagShift == 1);
__ andi(R2, R2, Immediate(~(kObjectAlignment - 1)));
- __ MaybeTraceAllocation(kContextCid, R4, &slow_case);
+ NOT_IN_PRODUCT(__ MaybeTraceAllocation(kContextCid, R4, &slow_case));
// Now allocate the object.
// R1: number of context variables.
// R2: object size.
@@ -950,7 +950,7 @@ void StubCode::GenerateAllocateContextStub(Assembler* assembler) {
// R5: heap.
__ str(R3, Address(R5, Heap::TopOffset(space)));
__ add(R0, R0, Operand(kHeapObjectTag));
- __ UpdateAllocationStatsWithSize(cid, R2, space);
+ NOT_IN_PRODUCT(__ UpdateAllocationStatsWithSize(cid, R2, space));
// Calculate the size tag.
// R0: new object.
@@ -1124,7 +1124,7 @@ void StubCode::GenerateAllocationStubForClass(Assembler* assembler,
__ b(&slow_case, CS); // Unsigned higher or equal.
}
__ str(R3, Address(R5, Heap::TopOffset(space)));
- __ UpdateAllocationStats(cls.id(), space);
+ NOT_IN_PRODUCT(__ UpdateAllocationStats(cls.id(), space));
// R2: new object start.
// R3: next object start.
« no previous file with comments | « runtime/vm/stub_code_arm.cc ('k') | runtime/vm/stub_code_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698