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

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 7 years, 1 month 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_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 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 // A separate macro for when a Ret immediately follows, so that we can use 185 // A separate macro for when a Ret immediately follows, so that we can use
186 // the branch delay slot. 186 // the branch delay slot.
187 void LeaveStubFrameAndReturn(Register ra = RA); 187 void LeaveStubFrameAndReturn(Register ra = RA);
188 188
189 // Instruction pattern from entrypoint is used in dart frame prologs 189 // Instruction pattern from entrypoint is used in dart frame prologs
190 // to set up the frame and save a PC which can be used to figure out the 190 // to set up the frame and save a PC which can be used to figure out the
191 // RawInstruction object corresponding to the code running in the frame. 191 // RawInstruction object corresponding to the code running in the frame.
192 // See EnterDartFrame. There are 6 instructions before we know the PC. 192 // See EnterDartFrame. There are 6 instructions before we know the PC.
193 static const intptr_t kEntryPointToPcMarkerOffset = 6 * Instr::kInstrSize; 193 static const intptr_t kEntryPointToPcMarkerOffset = 6 * Instr::kInstrSize;
194 194
195 void BumpAllocationCount(Heap::Space space,
196 intptr_t cid,
197 Register temp_reg);
198
199 void BumpAllocationCount(Heap::Space space,
200 intptr_t cid,
201 Register size_reg,
202 Register temp_reg);
203
195 // Inlined allocation of an instance of class 'cls', code has no runtime 204 // Inlined allocation of an instance of class 'cls', code has no runtime
196 // calls. Jump to 'failure' if the instance cannot be allocated here. 205 // calls. Jump to 'failure' if the instance cannot be allocated here.
197 // Allocated instance is returned in 'instance_reg'. 206 // Allocated instance is returned in 'instance_reg'.
198 // Only the tags field of the object is initialized. 207 // Only the tags field of the object is initialized.
199 void TryAllocate(const Class& cls, 208 void TryAllocate(const Class& cls,
200 Label* failure, 209 Label* failure,
201 Register instance_reg); 210 Register instance_reg,
211 Register temp_reg);
202 212
203 // Debugging and bringup support. 213 // Debugging and bringup support.
204 void Stop(const char* message); 214 void Stop(const char* message);
205 215
206 // TODO(zra): TraceSimMsg enables printing of helpful messages when 216 // TODO(zra): TraceSimMsg enables printing of helpful messages when
207 // --trace_sim is given. Eventually these calls will be changed to Comment. 217 // --trace_sim is given. Eventually these calls will be changed to Comment.
208 void TraceSimMsg(const char* message); 218 void TraceSimMsg(const char* message);
209 void Unimplemented(const char* message); 219 void Unimplemented(const char* message);
210 void Untested(const char* message); 220 void Untested(const char* message);
211 void Unreachable(const char* message); 221 void Unreachable(const char* message);
(...skipping 1074 matching lines...) Expand 10 before | Expand all | Expand 10 after
1286 Register value, 1296 Register value,
1287 Label* no_update); 1297 Label* no_update);
1288 1298
1289 DISALLOW_ALLOCATION(); 1299 DISALLOW_ALLOCATION();
1290 DISALLOW_COPY_AND_ASSIGN(Assembler); 1300 DISALLOW_COPY_AND_ASSIGN(Assembler);
1291 }; 1301 };
1292 1302
1293 } // namespace dart 1303 } // namespace dart
1294 1304
1295 #endif // VM_ASSEMBLER_MIPS_H_ 1305 #endif // VM_ASSEMBLER_MIPS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698