OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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_ARM64_H_ | 5 #ifndef VM_ASSEMBLER_ARM64_H_ |
6 #define VM_ASSEMBLER_ARM64_H_ | 6 #define VM_ASSEMBLER_ARM64_H_ |
7 | 7 |
8 #ifndef VM_ASSEMBLER_H_ | 8 #ifndef VM_ASSEMBLER_H_ |
9 #error Do not include assembler_arm64.h directly; use assembler.h instead. | 9 #error Do not include assembler_arm64.h directly; use assembler.h instead. |
10 #endif | 10 #endif |
(...skipping 1369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1380 | 1380 |
1381 void UpdateAllocationStats(intptr_t cid, | 1381 void UpdateAllocationStats(intptr_t cid, |
1382 Register pp, | 1382 Register pp, |
1383 Heap::Space space); | 1383 Heap::Space space); |
1384 | 1384 |
1385 void UpdateAllocationStatsWithSize(intptr_t cid, | 1385 void UpdateAllocationStatsWithSize(intptr_t cid, |
1386 Register size_reg, | 1386 Register size_reg, |
1387 Register pp, | 1387 Register pp, |
1388 Heap::Space space); | 1388 Heap::Space space); |
1389 | 1389 |
| 1390 // If allocation tracing for |cid| is enabled, will jump to |trace| label, |
| 1391 // which will allocate in the runtime where tracing occurs. |
| 1392 void MaybeTraceAllocation(intptr_t cid, |
| 1393 Register temp_reg, |
| 1394 Register pp, |
| 1395 Label* trace); |
| 1396 |
1390 // Inlined allocation of an instance of class 'cls', code has no runtime | 1397 // Inlined allocation of an instance of class 'cls', code has no runtime |
1391 // calls. Jump to 'failure' if the instance cannot be allocated here. | 1398 // calls. Jump to 'failure' if the instance cannot be allocated here. |
1392 // Allocated instance is returned in 'instance_reg'. | 1399 // Allocated instance is returned in 'instance_reg'. |
1393 // Only the tags field of the object is initialized. | 1400 // Only the tags field of the object is initialized. |
1394 void TryAllocate(const Class& cls, | 1401 void TryAllocate(const Class& cls, |
1395 Label* failure, | 1402 Label* failure, |
1396 Register instance_reg, | 1403 Register instance_reg, |
1397 Register temp_reg, | 1404 Register temp_reg, |
1398 Register pp); | 1405 Register pp); |
1399 | 1406 |
(...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1942 Register value, | 1949 Register value, |
1943 Label* no_update); | 1950 Label* no_update); |
1944 | 1951 |
1945 DISALLOW_ALLOCATION(); | 1952 DISALLOW_ALLOCATION(); |
1946 DISALLOW_COPY_AND_ASSIGN(Assembler); | 1953 DISALLOW_COPY_AND_ASSIGN(Assembler); |
1947 }; | 1954 }; |
1948 | 1955 |
1949 } // namespace dart | 1956 } // namespace dart |
1950 | 1957 |
1951 #endif // VM_ASSEMBLER_ARM64_H_ | 1958 #endif // VM_ASSEMBLER_ARM64_H_ |
OLD | NEW |