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

Unified Diff: runtime/vm/object.cc

Issue 1234943004: Move update state bits under changed branch (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 | « no previous file | 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 5149eaa3437e59c498823929f53b7e82cba9184a..71441175a6272bed1ff1adb33e1b560da9ba544f 100644
--- a/runtime/vm/object.cc
+++ b/runtime/vm/object.cc
@@ -2736,9 +2736,9 @@ void Class::DisableCHAOptimizedCode() {
void Class::SetTraceAllocation(bool trace_allocation) const {
const bool changed = trace_allocation != this->trace_allocation();
- set_state_bits(
- TraceAllocationBit::update(trace_allocation, raw_ptr()->state_bits_));
if (changed) {
+ set_state_bits(
+ TraceAllocationBit::update(trace_allocation, raw_ptr()->state_bits_));
Isolate* isolate = Isolate::Current();
ClassTable* class_table = isolate->class_table();
class_table->TraceAllocationsFor(id(), trace_allocation);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698