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

Side by Side Diff: runtime/vm/assembler_arm.h

Issue 51653006: Track live instance and allocation counts for classes (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 11 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 #ifndef VM_ASSEMBLER_ARM_H_ 5 #ifndef VM_ASSEMBLER_ARM_H_
6 #define VM_ASSEMBLER_ARM_H_ 6 #define VM_ASSEMBLER_ARM_H_
7 7
8 #ifndef VM_ASSEMBLER_H_ 8 #ifndef VM_ASSEMBLER_H_
9 #error Do not include assembler_arm.h directly; use assembler.h instead. 9 #error Do not include assembler_arm.h directly; use assembler.h instead.
10 #endif 10 #endif
(...skipping 716 matching lines...) Expand 10 before | Expand all | Expand 10 after
727 // Set up a stub frame so that the stack traversal code can easily identify 727 // Set up a stub frame so that the stack traversal code can easily identify
728 // a stub frame. 728 // a stub frame.
729 void EnterStubFrame(bool load_pp = false); 729 void EnterStubFrame(bool load_pp = false);
730 void LeaveStubFrame(); 730 void LeaveStubFrame();
731 731
732 // Instruction pattern from entrypoint is used in Dart frame prologs 732 // Instruction pattern from entrypoint is used in Dart frame prologs
733 // to set up the frame and save a PC which can be used to figure out the 733 // to set up the frame and save a PC which can be used to figure out the
734 // RawInstruction object corresponding to the code running in the frame. 734 // RawInstruction object corresponding to the code running in the frame.
735 static const intptr_t kEntryPointToPcMarkerOffset = Instr::kPCReadOffset; 735 static const intptr_t kEntryPointToPcMarkerOffset = Instr::kPCReadOffset;
736 736
737 void UpdateAllocationStats(intptr_t cid,
738 Register temp_reg,
739 Heap::Space space = Heap::kNew);
740
741 void UpdateAllocationStatsWithSize(intptr_t cid,
742 Register size_reg,
743 Register temp_reg,
744 Heap::Space space = Heap::kNew);
745
737 // Inlined allocation of an instance of class 'cls', code has no runtime 746 // Inlined allocation of an instance of class 'cls', code has no runtime
738 // calls. Jump to 'failure' if the instance cannot be allocated here. 747 // calls. Jump to 'failure' if the instance cannot be allocated here.
739 // Allocated instance is returned in 'instance_reg'. 748 // Allocated instance is returned in 'instance_reg'.
740 // Only the tags field of the object is initialized. 749 // Only the tags field of the object is initialized.
741 void TryAllocate(const Class& cls, 750 void TryAllocate(const Class& cls,
742 Label* failure, 751 Label* failure,
743 Register instance_reg); 752 Register instance_reg,
753 Register temp_reg);
744 754
745 // Emit data (e.g encoded instruction or immediate) in instruction stream. 755 // Emit data (e.g encoded instruction or immediate) in instruction stream.
746 void Emit(int32_t value); 756 void Emit(int32_t value);
747 757
748 // On some other platforms, we draw a distinction between safe and unsafe 758 // On some other platforms, we draw a distinction between safe and unsafe
749 // smis. 759 // smis.
750 static bool IsSafe(const Object& object) { return true; } 760 static bool IsSafe(const Object& object) { return true; }
751 static bool IsSafeSmi(const Object& object) { return object.IsSmi(); } 761 static bool IsSafeSmi(const Object& object) { return object.IsSmi(); }
752 762
753 private: 763 private:
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
885 Register value, 895 Register value,
886 Label* no_update); 896 Label* no_update);
887 897
888 DISALLOW_ALLOCATION(); 898 DISALLOW_ALLOCATION();
889 DISALLOW_COPY_AND_ASSIGN(Assembler); 899 DISALLOW_COPY_AND_ASSIGN(Assembler);
890 }; 900 };
891 901
892 } // namespace dart 902 } // namespace dart
893 903
894 #endif // VM_ASSEMBLER_ARM_H_ 904 #endif // VM_ASSEMBLER_ARM_H_
OLDNEW
« no previous file with comments | « runtime/bin/vmservice/client/lib/src/observatory_elements/service_ref.dart ('k') | runtime/vm/assembler_arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698