| 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_X64_H_ | 5 #ifndef VM_ASSEMBLER_X64_H_ |
| 6 #define VM_ASSEMBLER_X64_H_ | 6 #define VM_ASSEMBLER_X64_H_ |
| 7 | 7 |
| 8 #ifndef VM_ASSEMBLER_H_ | 8 #ifndef VM_ASSEMBLER_H_ |
| 9 #error Do not include assembler_x64.h directly; use assembler.h instead. | 9 #error Do not include assembler_x64.h directly; use assembler.h instead. |
| 10 #endif | 10 #endif |
| (...skipping 983 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 994 bool inline_isolate = true); | 994 bool inline_isolate = true); |
| 995 void UpdateAllocationStatsWithSize(intptr_t cid, | 995 void UpdateAllocationStatsWithSize(intptr_t cid, |
| 996 intptr_t instance_size, | 996 intptr_t instance_size, |
| 997 Heap::Space space, | 997 Heap::Space space, |
| 998 bool inline_isolate = true); | 998 bool inline_isolate = true); |
| 999 | 999 |
| 1000 // If allocation tracing for |cid| is enabled, will jump to |trace| label, | 1000 // If allocation tracing for |cid| is enabled, will jump to |trace| label, |
| 1001 // which will allocate in the runtime where tracing occurs. | 1001 // which will allocate in the runtime where tracing occurs. |
| 1002 void MaybeTraceAllocation(intptr_t cid, | 1002 void MaybeTraceAllocation(intptr_t cid, |
| 1003 Label* trace, | 1003 Label* trace, |
| 1004 bool near_jump); | 1004 bool near_jump, |
| 1005 bool inline_isolate = true); |
| 1005 | 1006 |
| 1006 // Inlined allocation of an instance of class 'cls', code has no runtime | 1007 // Inlined allocation of an instance of class 'cls', code has no runtime |
| 1007 // calls. Jump to 'failure' if the instance cannot be allocated here. | 1008 // calls. Jump to 'failure' if the instance cannot be allocated here. |
| 1008 // Allocated instance is returned in 'instance_reg'. | 1009 // Allocated instance is returned in 'instance_reg'. |
| 1009 // Only the tags field of the object is initialized. | 1010 // Only the tags field of the object is initialized. |
| 1010 // Loads large immediates from the object pool with pool pointer in PP if it | 1011 // Loads large immediates from the object pool with pool pointer in PP if it |
| 1011 // is not kNoRegister | 1012 // is not kNoRegister |
| 1012 void TryAllocate(const Class& cls, | 1013 void TryAllocate(const Class& cls, |
| 1013 Label* failure, | 1014 Label* failure, |
| 1014 bool near_jump, | 1015 bool near_jump, |
| (...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1214 } | 1215 } |
| 1215 | 1216 |
| 1216 | 1217 |
| 1217 inline void Assembler::EmitOperandSizeOverride() { | 1218 inline void Assembler::EmitOperandSizeOverride() { |
| 1218 EmitUint8(0x66); | 1219 EmitUint8(0x66); |
| 1219 } | 1220 } |
| 1220 | 1221 |
| 1221 } // namespace dart | 1222 } // namespace dart |
| 1222 | 1223 |
| 1223 #endif // VM_ASSEMBLER_X64_H_ | 1224 #endif // VM_ASSEMBLER_X64_H_ |
| OLD | NEW |