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

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
« no previous file with comments | « runtime/vm/intrinsifier_arm.cc ('k') | runtime/vm/profiler_test.cc » ('j') | 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 8869d3583e10dcac6793ff77d238d1709a2a4bf9..a8864818fe9d9e70e3248c1e2cbf330da6676ddc 100644
--- a/runtime/vm/object.cc
+++ b/runtime/vm/object.cc
@@ -2738,6 +2738,9 @@ void Class::SetTraceAllocation(bool trace_allocation) const {
set_state_bits(
TraceAllocationBit::update(trace_allocation, raw_ptr()->state_bits_));
if (changed) {
+ Isolate* isolate = Isolate::Current();
+ ClassTable* class_table = isolate->class_table();
+ class_table->TraceAllocationsFor(id(), trace_allocation);
DisableAllocationStub();
}
}
« no previous file with comments | « runtime/vm/intrinsifier_arm.cc ('k') | runtime/vm/profiler_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698