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

Side by Side Diff: runtime/vm/assembler_arm64.h

Issue 1213013002: Update Assembler::TryAllocate to support inline allocation tracing (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 5 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
« no previous file with comments | « runtime/vm/assembler_arm.cc ('k') | runtime/vm/assembler_arm64.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) 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
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
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_
OLDNEW
« no previous file with comments | « runtime/vm/assembler_arm.cc ('k') | runtime/vm/assembler_arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698