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

Unified Diff: runtime/vm/assembler_x64.cc

Issue 2143153002: Don't track allocations in product mode. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: . Created 4 years, 5 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 | « no previous file | runtime/vm/class_table.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/assembler_x64.cc
diff --git a/runtime/vm/assembler_x64.cc b/runtime/vm/assembler_x64.cc
index 7c6ed4663791fc2664748043efdfb6680d68b8d2..19027799f840326cc862ce1e583f7e550b3c147d 100644
--- a/runtime/vm/assembler_x64.cc
+++ b/runtime/vm/assembler_x64.cc
@@ -3321,6 +3321,7 @@ void Assembler::LeaveStubFrame() {
}
+#ifndef PRODUCT
Florian Schneider 2016/07/12 20:13:41 What about the other platforms?
rmacnak 2016/07/12 21:00:39 Done.
void Assembler::MaybeTraceAllocation(intptr_t cid,
Label* trace,
bool near_jump) {
@@ -3375,6 +3376,7 @@ void Assembler::UpdateAllocationStatsWithSize(intptr_t cid,
intptr_t size_offset = ClassTable::SizeOffsetFor(cid, space == Heap::kNew);
addq(Address(temp_reg, size_offset), Immediate(size_in_bytes));
}
+#endif // !PRODUCT
void Assembler::TryAllocate(const Class& cls,
« no previous file with comments | « no previous file | runtime/vm/class_table.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698