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

Side by Side Diff: runtime/vm/assembler_mips.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_ia32.cc ('k') | runtime/vm/assembler_mips.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_MIPS_H_ 5 #ifndef VM_ASSEMBLER_MIPS_H_
6 #define VM_ASSEMBLER_MIPS_H_ 6 #define VM_ASSEMBLER_MIPS_H_
7 7
8 #ifndef VM_ASSEMBLER_H_ 8 #ifndef VM_ASSEMBLER_H_
9 #error Do not include assembler_mips.h directly; use assembler.h instead. 9 #error Do not include assembler_mips.h directly; use assembler.h instead.
10 #endif 10 #endif
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 // A separate macro for when a Ret immediately follows, so that we can use 190 // A separate macro for when a Ret immediately follows, so that we can use
191 // the branch delay slot. 191 // the branch delay slot.
192 void LeaveStubFrameAndReturn(Register ra = RA); 192 void LeaveStubFrameAndReturn(Register ra = RA);
193 193
194 // Instruction pattern from entrypoint is used in dart frame prologs 194 // Instruction pattern from entrypoint is used in dart frame prologs
195 // to set up the frame and save a PC which can be used to figure out the 195 // to set up the frame and save a PC which can be used to figure out the
196 // RawInstruction object corresponding to the code running in the frame. 196 // RawInstruction object corresponding to the code running in the frame.
197 // See EnterDartFrame. There are 6 instructions before we know the PC. 197 // See EnterDartFrame. There are 6 instructions before we know the PC.
198 static const intptr_t kEntryPointToPcMarkerOffset = 6 * Instr::kInstrSize; 198 static const intptr_t kEntryPointToPcMarkerOffset = 6 * Instr::kInstrSize;
199 199
200 void UpdateAllocationStats(intptr_t cid,
201 Register temp_reg,
202 Heap::Space space = Heap::kNew);
203
204 void UpdateAllocationStatsWithSize(intptr_t cid,
205 Register size_reg,
206 Register temp_reg,
207 Heap::Space space = Heap::kNew);
208
209
200 // Inlined allocation of an instance of class 'cls', code has no runtime 210 // Inlined allocation of an instance of class 'cls', code has no runtime
201 // calls. Jump to 'failure' if the instance cannot be allocated here. 211 // calls. Jump to 'failure' if the instance cannot be allocated here.
202 // Allocated instance is returned in 'instance_reg'. 212 // Allocated instance is returned in 'instance_reg'.
203 // Only the tags field of the object is initialized. 213 // Only the tags field of the object is initialized.
204 void TryAllocate(const Class& cls, 214 void TryAllocate(const Class& cls,
205 Label* failure, 215 Label* failure,
206 Register instance_reg); 216 Register instance_reg,
217 Register temp_reg);
207 218
208 // Debugging and bringup support. 219 // Debugging and bringup support.
209 void Stop(const char* message); 220 void Stop(const char* message);
210 221
211 // TODO(zra): TraceSimMsg enables printing of helpful messages when 222 // TODO(zra): TraceSimMsg enables printing of helpful messages when
212 // --trace_sim is given. Eventually these calls will be changed to Comment. 223 // --trace_sim is given. Eventually these calls will be changed to Comment.
213 void TraceSimMsg(const char* message); 224 void TraceSimMsg(const char* message);
214 void Unimplemented(const char* message); 225 void Unimplemented(const char* message);
215 void Untested(const char* message); 226 void Untested(const char* message);
216 void Unreachable(const char* message); 227 void Unreachable(const char* message);
(...skipping 1074 matching lines...) Expand 10 before | Expand all | Expand 10 after
1291 Register value, 1302 Register value,
1292 Label* no_update); 1303 Label* no_update);
1293 1304
1294 DISALLOW_ALLOCATION(); 1305 DISALLOW_ALLOCATION();
1295 DISALLOW_COPY_AND_ASSIGN(Assembler); 1306 DISALLOW_COPY_AND_ASSIGN(Assembler);
1296 }; 1307 };
1297 1308
1298 } // namespace dart 1309 } // namespace dart
1299 1310
1300 #endif // VM_ASSEMBLER_MIPS_H_ 1311 #endif // VM_ASSEMBLER_MIPS_H_
OLDNEW
« no previous file with comments | « runtime/vm/assembler_ia32.cc ('k') | runtime/vm/assembler_mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698