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

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

Issue 182303005: Inline context allocation in optimized code. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 9 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 | « no previous file | runtime/vm/assembler_ia32.cc » ('j') | runtime/vm/assembler_ia32.cc » ('J')
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 754 matching lines...) Expand 10 before | Expand all | Expand 10 after
765 static const intptr_t kEntryPointToPcMarkerOffset = 8; 765 static const intptr_t kEntryPointToPcMarkerOffset = 8;
766 766
767 void UpdateAllocationStats(intptr_t cid, 767 void UpdateAllocationStats(intptr_t cid,
768 Register temp_reg, 768 Register temp_reg,
769 Heap::Space space = Heap::kNew); 769 Heap::Space space = Heap::kNew);
770 770
771 void UpdateAllocationStatsWithSize(intptr_t cid, 771 void UpdateAllocationStatsWithSize(intptr_t cid,
772 Register size_reg, 772 Register size_reg,
773 Register temp_reg, 773 Register temp_reg,
774 Heap::Space space = Heap::kNew); 774 Heap::Space space = Heap::kNew);
775 void UpdateAllocationStatsWithSize(intptr_t cid,
776 intptr_t instance_size,
777 Register temp_reg,
778 Heap::Space space = Heap::kNew);
srdjan 2014/03/03 18:30:08 Can you use a different name. Register is almost a
775 779
776 // Inlined allocation of an instance of class 'cls', code has no runtime 780 // Inlined allocation of an instance of class 'cls', code has no runtime
777 // calls. Jump to 'failure' if the instance cannot be allocated here. 781 // calls. Jump to 'failure' if the instance cannot be allocated here.
778 // Allocated instance is returned in 'instance_reg'. 782 // Allocated instance is returned in 'instance_reg'.
779 // Only the tags field of the object is initialized. 783 // Only the tags field of the object is initialized.
780 void TryAllocate(const Class& cls, 784 void TryAllocate(const Class& cls,
781 Label* failure, 785 Label* failure,
782 bool near_jump, 786 bool near_jump,
783 Register instance_reg, 787 Register instance_reg,
784 Register temp_reg); 788 Register temp_reg);
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
887 } 891 }
888 892
889 893
890 inline void Assembler::EmitOperandSizeOverride() { 894 inline void Assembler::EmitOperandSizeOverride() {
891 EmitUint8(0x66); 895 EmitUint8(0x66);
892 } 896 }
893 897
894 } // namespace dart 898 } // namespace dart
895 899
896 #endif // VM_ASSEMBLER_IA32_H_ 900 #endif // VM_ASSEMBLER_IA32_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/assembler_ia32.cc » ('j') | runtime/vm/assembler_ia32.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698