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

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

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 | « 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 853 matching lines...) Expand 10 before | Expand all | Expand 10 after
864 // entrypoint: 864 // entrypoint:
865 // pushl ebp (size is 1 byte) 865 // pushl ebp (size is 1 byte)
866 // movl ebp, esp (size is 2 bytes) 866 // movl ebp, esp (size is 2 bytes)
867 // call L (size is 5 bytes) 867 // call L (size is 5 bytes)
868 // L: 868 // L:
869 static const intptr_t kEntryPointToPcMarkerOffset = 8; 869 static const intptr_t kEntryPointToPcMarkerOffset = 8;
870 static intptr_t EntryPointToPcMarkerOffset() { 870 static intptr_t EntryPointToPcMarkerOffset() {
871 return kEntryPointToPcMarkerOffset; 871 return kEntryPointToPcMarkerOffset;
872 } 872 }
873 873
874 void MaybeTraceAllocation(intptr_t cid,
875 Register temp_reg,
876 Label* failure,
877 bool near_jump);
srdjan 2015/07/06 22:23:45 Document when is 'failure' jumped to, I would give
Cutch 2015/07/09 23:37:33 Done.
878
874 void UpdateAllocationStats(intptr_t cid, 879 void UpdateAllocationStats(intptr_t cid,
875 Register temp_reg, 880 Register temp_reg,
876 Heap::Space space); 881 Heap::Space space);
877 882
878 void UpdateAllocationStatsWithSize(intptr_t cid, 883 void UpdateAllocationStatsWithSize(intptr_t cid,
879 Register size_reg, 884 Register size_reg,
880 Register temp_reg, 885 Register temp_reg,
881 Heap::Space space); 886 Heap::Space space);
882 void UpdateAllocationStatsWithSize(intptr_t cid, 887 void UpdateAllocationStatsWithSize(intptr_t cid,
883 intptr_t instance_size, 888 intptr_t instance_size,
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
1031 } 1036 }
1032 1037
1033 1038
1034 inline void Assembler::EmitOperandSizeOverride() { 1039 inline void Assembler::EmitOperandSizeOverride() {
1035 EmitUint8(0x66); 1040 EmitUint8(0x66);
1036 } 1041 }
1037 1042
1038 } // namespace dart 1043 } // namespace dart
1039 1044
1040 #endif // VM_ASSEMBLER_IA32_H_ 1045 #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