OLD | NEW |
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 2720 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2731 CHACodeArray a(*this); | 2731 CHACodeArray a(*this); |
2732 a.DisableCode(); | 2732 a.DisableCode(); |
2733 } | 2733 } |
2734 | 2734 |
2735 | 2735 |
2736 void Class::SetTraceAllocation(bool trace_allocation) const { | 2736 void Class::SetTraceAllocation(bool trace_allocation) const { |
2737 const bool changed = trace_allocation != this->trace_allocation(); | 2737 const bool changed = trace_allocation != this->trace_allocation(); |
2738 set_state_bits( | 2738 set_state_bits( |
2739 TraceAllocationBit::update(trace_allocation, raw_ptr()->state_bits_)); | 2739 TraceAllocationBit::update(trace_allocation, raw_ptr()->state_bits_)); |
2740 if (changed) { | 2740 if (changed) { |
| 2741 Isolate* isolate = Isolate::Current(); |
| 2742 ClassTable* class_table = isolate->class_table(); |
| 2743 class_table->TraceAllocationsFor(id(), trace_allocation); |
2741 DisableAllocationStub(); | 2744 DisableAllocationStub(); |
2742 } | 2745 } |
2743 } | 2746 } |
2744 | 2747 |
2745 | 2748 |
2746 void Class::set_cha_codes(const Array& cache) const { | 2749 void Class::set_cha_codes(const Array& cache) const { |
2747 StorePointer(&raw_ptr()->cha_codes_, cache.raw()); | 2750 StorePointer(&raw_ptr()->cha_codes_, cache.raw()); |
2748 } | 2751 } |
2749 | 2752 |
2750 | 2753 |
(...skipping 18442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
21193 return tag_label.ToCString(); | 21196 return tag_label.ToCString(); |
21194 } | 21197 } |
21195 | 21198 |
21196 | 21199 |
21197 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { | 21200 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { |
21198 Instance::PrintJSONImpl(stream, ref); | 21201 Instance::PrintJSONImpl(stream, ref); |
21199 } | 21202 } |
21200 | 21203 |
21201 | 21204 |
21202 } // namespace dart | 21205 } // namespace dart |
OLD | NEW |