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

Side by Side Diff: runtime/vm/assembler_ia32.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
« no previous file with comments | « runtime/vm/assembler_arm.cc ('k') | runtime/vm/assembler_ia32.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) 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_IA32_H_ 5 #ifndef VM_ASSEMBLER_IA32_H_
6 #define VM_ASSEMBLER_IA32_H_ 6 #define VM_ASSEMBLER_IA32_H_
7 7
8 #ifndef VM_ASSEMBLER_H_ 8 #ifndef VM_ASSEMBLER_H_
9 #error Do not include assembler_ia32.h directly; use assembler.h instead. 9 #error Do not include assembler_ia32.h directly; use assembler.h instead.
10 #endif 10 #endif
(...skipping 747 matching lines...) Expand 10 before | Expand all | Expand 10 after
758 // Instruction pattern from entrypoint is used in dart frame prologs 758 // Instruction pattern from entrypoint is used in dart frame prologs
759 // to set up the frame and save a PC which can be used to figure out the 759 // to set up the frame and save a PC which can be used to figure out the
760 // RawInstruction object corresponding to the code running in the frame. 760 // RawInstruction object corresponding to the code running in the frame.
761 // entrypoint: 761 // entrypoint:
762 // pushl ebp (size is 1 byte) 762 // pushl ebp (size is 1 byte)
763 // movl ebp, esp (size is 2 bytes) 763 // movl ebp, esp (size is 2 bytes)
764 // call L (size is 5 bytes) 764 // call L (size is 5 bytes)
765 // L: 765 // L:
766 static const intptr_t kEntryPointToPcMarkerOffset = 8; 766 static const intptr_t kEntryPointToPcMarkerOffset = 8;
767 767
768 void UpdateAllocationStats(intptr_t cid,
769 Register temp_reg,
770 Heap::Space space = Heap::kNew);
771
772 void UpdateAllocationStatsWithSize(intptr_t cid,
773 Register size_reg,
774 Register temp_reg,
775 Heap::Space space = Heap::kNew);
776
768 // Inlined allocation of an instance of class 'cls', code has no runtime 777 // Inlined allocation of an instance of class 'cls', code has no runtime
769 // calls. Jump to 'failure' if the instance cannot be allocated here. 778 // calls. Jump to 'failure' if the instance cannot be allocated here.
770 // Allocated instance is returned in 'instance_reg'. 779 // Allocated instance is returned in 'instance_reg'.
771 // Only the tags field of the object is initialized. 780 // Only the tags field of the object is initialized.
772 void TryAllocate(const Class& cls, 781 void TryAllocate(const Class& cls,
773 Label* failure, 782 Label* failure,
774 bool near_jump, 783 bool near_jump,
775 Register instance_reg); 784 Register instance_reg,
785 Register temp_reg);
776 786
777 // Debugging and bringup support. 787 // Debugging and bringup support.
778 void Stop(const char* message); 788 void Stop(const char* message);
779 void Unimplemented(const char* message); 789 void Unimplemented(const char* message);
780 void Untested(const char* message); 790 void Untested(const char* message);
781 void Unreachable(const char* message); 791 void Unreachable(const char* message);
782 792
783 static void InitializeMemoryWithBreakpoints(uword data, intptr_t length); 793 static void InitializeMemoryWithBreakpoints(uword data, intptr_t length);
784 794
785 void Comment(const char* format, ...) PRINTF_ATTRIBUTE(2, 3); 795 void Comment(const char* format, ...) PRINTF_ATTRIBUTE(2, 3);
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
878 } 888 }
879 889
880 890
881 inline void Assembler::EmitOperandSizeOverride() { 891 inline void Assembler::EmitOperandSizeOverride() {
882 EmitUint8(0x66); 892 EmitUint8(0x66);
883 } 893 }
884 894
885 } // namespace dart 895 } // namespace dart
886 896
887 #endif // VM_ASSEMBLER_IA32_H_ 897 #endif // VM_ASSEMBLER_IA32_H_
OLDNEW
« no previous file with comments | « runtime/vm/assembler_arm.cc ('k') | runtime/vm/assembler_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698