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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « runtime/vm/intrinsifier_arm.cc ('k') | runtime/vm/profiler_test.cc » ('j') | 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 2720 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« 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