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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "vm/object.h" 5 #include "vm/object.h"
6 6
7 #include "include/dart_api.h" 7 #include "include/dart_api.h"
8 #include "platform/assert.h" 8 #include "platform/assert.h"
9 #include "vm/assembler.h" 9 #include "vm/assembler.h"
10 #include "vm/cpu.h" 10 #include "vm/cpu.h"
(...skipping 2718 matching lines...) Expand 10 before | Expand all | Expand 10 after
2729 2729
2730 2730
2731 void Class::DisableCHAOptimizedCode() { 2731 void Class::DisableCHAOptimizedCode() {
2732 CHACodeArray a(*this); 2732 CHACodeArray a(*this);
2733 a.DisableCode(); 2733 a.DisableCode();
2734 } 2734 }
2735 2735
2736 2736
2737 void Class::SetTraceAllocation(bool trace_allocation) const { 2737 void Class::SetTraceAllocation(bool trace_allocation) const {
2738 const bool changed = trace_allocation != this->trace_allocation(); 2738 const bool changed = trace_allocation != this->trace_allocation();
2739 set_state_bits(
2740 TraceAllocationBit::update(trace_allocation, raw_ptr()->state_bits_));
2741 if (changed) { 2739 if (changed) {
2740 set_state_bits(
2741 TraceAllocationBit::update(trace_allocation, raw_ptr()->state_bits_));
2742 Isolate* isolate = Isolate::Current(); 2742 Isolate* isolate = Isolate::Current();
2743 ClassTable* class_table = isolate->class_table(); 2743 ClassTable* class_table = isolate->class_table();
2744 class_table->TraceAllocationsFor(id(), trace_allocation); 2744 class_table->TraceAllocationsFor(id(), trace_allocation);
2745 DisableAllocationStub(); 2745 DisableAllocationStub();
2746 } 2746 }
2747 } 2747 }
2748 2748
2749 2749
2750 void Class::set_cha_codes(const Array& cache) const { 2750 void Class::set_cha_codes(const Array& cache) const {
2751 StorePointer(&raw_ptr()->cha_codes_, cache.raw()); 2751 StorePointer(&raw_ptr()->cha_codes_, cache.raw());
(...skipping 18446 matching lines...) Expand 10 before | Expand all | Expand 10 after
21198 return tag_label.ToCString(); 21198 return tag_label.ToCString();
21199 } 21199 }
21200 21200
21201 21201
21202 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { 21202 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const {
21203 Instance::PrintJSONImpl(stream, ref); 21203 Instance::PrintJSONImpl(stream, ref);
21204 } 21204 }
21205 21205
21206 21206
21207 } // namespace dart 21207 } // namespace dart
OLDNEW
« 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