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

Unified Diff: runtime/vm/stub_code_arm64.cc

Issue 1292723002: Enable allocation tracing for classes owned by vm isolate (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: runtime/vm/stub_code_arm64.cc
diff --git a/runtime/vm/stub_code_arm64.cc b/runtime/vm/stub_code_arm64.cc
index eddbd67fd533970d8ffc9bc9bc76d78fa6a714ba..3d72f7000e750acd04ea3be9cf71d8397540500a 100644
--- a/runtime/vm/stub_code_arm64.cc
+++ b/runtime/vm/stub_code_arm64.cc
@@ -912,6 +912,8 @@ void StubCode::GenerateAllocateContextStub(Assembler* assembler) {
ASSERT(kSmiTagShift == 1);
__ andi(R2, R2, Immediate(~(kObjectAlignment - 1)));
+ __ MaybeTraceAllocation(kContextCid, R4, &slow_case,
+ /* inline_isolate = */ false);
// Now allocate the object.
// R1: number of context variables.
// R2: object size.
@@ -1090,7 +1092,7 @@ void StubCode::GenerateAllocationStubForClass(
// R1: instantiated type arguments.
}
if (FLAG_inline_alloc && Heap::IsAllocatableInNewSpace(instance_size) &&
- !cls.trace_allocation()) {
+ !cls.TraceAllocation()) {
Label slow_case;
// Allocate the object and update top to point to
// next object start and initialize the allocated object.

Powered by Google App Engine
This is Rietveld 408576698