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

Side by Side Diff: runtime/vm/assembler_x64.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, 12 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_X64_H_ 5 #ifndef VM_ASSEMBLER_X64_H_
6 #define VM_ASSEMBLER_X64_H_ 6 #define VM_ASSEMBLER_X64_H_
7 7
8 #ifndef VM_ASSEMBLER_H_ 8 #ifndef VM_ASSEMBLER_H_
9 #error Do not include assembler_x64.h directly; use assembler.h instead. 9 #error Do not include assembler_x64.h directly; use assembler.h instead.
10 #endif 10 #endif
(...skipping 807 matching lines...) Expand 10 before | Expand all | Expand 10 after
818 // Instruction pattern from entrypoint is used in dart frame prologues 818 // Instruction pattern from entrypoint is used in dart frame prologues
819 // to set up the frame and save a PC which can be used to figure out the 819 // to set up the frame and save a PC which can be used to figure out the
820 // RawInstruction object corresponding to the code running in the frame. 820 // RawInstruction object corresponding to the code running in the frame.
821 // entrypoint: 821 // entrypoint:
822 // pushq rbp (size is 1 byte) 822 // pushq rbp (size is 1 byte)
823 // movq rbp, rsp (size is 3 bytes) 823 // movq rbp, rsp (size is 3 bytes)
824 // call L (size is 5 bytes) 824 // call L (size is 5 bytes)
825 // L: 825 // L:
826 static const intptr_t kEntryPointToPcMarkerOffset = 9; 826 static const intptr_t kEntryPointToPcMarkerOffset = 9;
827 827
828 void UpdateAllocationStats(intptr_t cid,
829 Heap::Space space = Heap::kNew);
830
831 void UpdateAllocationStatsWithSize(intptr_t cid,
832 Register size_reg,
833 Heap::Space space = Heap::kNew);
834
828 // Inlined allocation of an instance of class 'cls', code has no runtime 835 // Inlined allocation of an instance of class 'cls', code has no runtime
829 // calls. Jump to 'failure' if the instance cannot be allocated here. 836 // calls. Jump to 'failure' if the instance cannot be allocated here.
830 // Allocated instance is returned in 'instance_reg'. 837 // Allocated instance is returned in 'instance_reg'.
831 // Only the tags field of the object is initialized. 838 // Only the tags field of the object is initialized.
832 // Loads large immediates from the object pool with pool pointer in PP if it 839 // Loads large immediates from the object pool with pool pointer in PP if it
833 // is not kNoRegister 840 // is not kNoRegister
834 void TryAllocate(const Class& cls, 841 void TryAllocate(const Class& cls,
835 Label* failure, 842 Label* failure,
836 bool near_jump, 843 bool near_jump,
837 Register instance_reg, 844 Register instance_reg,
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
1049 } 1056 }
1050 1057
1051 1058
1052 inline void Assembler::EmitOperandSizeOverride() { 1059 inline void Assembler::EmitOperandSizeOverride() {
1053 EmitUint8(0x66); 1060 EmitUint8(0x66);
1054 } 1061 }
1055 1062
1056 } // namespace dart 1063 } // namespace dart
1057 1064
1058 #endif // VM_ASSEMBLER_X64_H_ 1065 #endif // VM_ASSEMBLER_X64_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698