| OLD | NEW |
| 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 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 290 // Set up a stub frame so that the stack traversal code can easily identify | 290 // Set up a stub frame so that the stack traversal code can easily identify |
| 291 // a stub frame. | 291 // a stub frame. |
| 292 void EnterStubFrame(intptr_t frame_size = 0); | 292 void EnterStubFrame(intptr_t frame_size = 0); |
| 293 void LeaveStubFrame(); | 293 void LeaveStubFrame(); |
| 294 // A separate macro for when a Ret immediately follows, so that we can use | 294 // A separate macro for when a Ret immediately follows, so that we can use |
| 295 // the branch delay slot. | 295 // the branch delay slot. |
| 296 void LeaveStubFrameAndReturn(Register ra = RA); | 296 void LeaveStubFrameAndReturn(Register ra = RA); |
| 297 | 297 |
| 298 void UpdateAllocationStats(intptr_t cid, | 298 void UpdateAllocationStats(intptr_t cid, |
| 299 Register temp_reg, | 299 Register temp_reg, |
| 300 Heap::Space space, | 300 Heap::Space space); |
| 301 bool inline_isolate = true); | |
| 302 | 301 |
| 303 void UpdateAllocationStatsWithSize(intptr_t cid, | 302 void UpdateAllocationStatsWithSize(intptr_t cid, |
| 304 Register size_reg, | 303 Register size_reg, |
| 305 Register temp_reg, | 304 Register temp_reg, |
| 306 Heap::Space space, | 305 Heap::Space space); |
| 307 bool inline_isolate = true); | |
| 308 | 306 |
| 309 | 307 |
| 310 void MaybeTraceAllocation(intptr_t cid, | 308 void MaybeTraceAllocation(intptr_t cid, |
| 311 Register temp_reg, | 309 Register temp_reg, |
| 312 Label* trace, | 310 Label* trace); |
| 313 bool inline_isolate = true); | |
| 314 | 311 |
| 315 // Inlined allocation of an instance of class 'cls', code has no runtime | 312 // Inlined allocation of an instance of class 'cls', code has no runtime |
| 316 // calls. Jump to 'failure' if the instance cannot be allocated here. | 313 // calls. Jump to 'failure' if the instance cannot be allocated here. |
| 317 // Allocated instance is returned in 'instance_reg'. | 314 // Allocated instance is returned in 'instance_reg'. |
| 318 // Only the tags field of the object is initialized. | 315 // Only the tags field of the object is initialized. |
| 319 void TryAllocate(const Class& cls, | 316 void TryAllocate(const Class& cls, |
| 320 Label* failure, | 317 Label* failure, |
| 321 Register instance_reg, | 318 Register instance_reg, |
| 322 Register temp_reg); | 319 Register temp_reg); |
| 323 | 320 |
| (...skipping 1438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1762 Register value, | 1759 Register value, |
| 1763 Label* no_update); | 1760 Label* no_update); |
| 1764 | 1761 |
| 1765 DISALLOW_ALLOCATION(); | 1762 DISALLOW_ALLOCATION(); |
| 1766 DISALLOW_COPY_AND_ASSIGN(Assembler); | 1763 DISALLOW_COPY_AND_ASSIGN(Assembler); |
| 1767 }; | 1764 }; |
| 1768 | 1765 |
| 1769 } // namespace dart | 1766 } // namespace dart |
| 1770 | 1767 |
| 1771 #endif // VM_ASSEMBLER_MIPS_H_ | 1768 #endif // VM_ASSEMBLER_MIPS_H_ |
| OLD | NEW |