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

Unified Diff: runtime/vm/object.cc

Issue 1213013002: Update Assembler::TryAllocate to support inline allocation tracing (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 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
« runtime/vm/class_table.h ('K') | « runtime/vm/class_table.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.cc
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc
index 79689346507076d9ad80316a2a4888335a6b6dd2..d9631aa18e6d69b1b79ca90dbdad3b658f49f055 100644
--- a/runtime/vm/object.cc
+++ b/runtime/vm/object.cc
@@ -2736,6 +2736,9 @@ void Class::SetTraceAllocation(bool trace_allocation) const {
set_state_bits(
TraceAllocationBit::update(trace_allocation, raw_ptr()->state_bits_));
Ivan Posva 2015/07/16 11:34:47 Why is this not under "if (changed)"?
Cutch 2015/07/16 14:34:07 My bad- https://codereview.chromium.org/1234943004
if (changed) {
+ Isolate* isolate = Isolate::Current();
+ ClassTable* class_table = isolate->class_table();
+ class_table->TraceAllocationsFor(id(), trace_allocation);
DisableAllocationStub();
}
}
« runtime/vm/class_table.h ('K') | « runtime/vm/class_table.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698