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

Unified Diff: runtime/vm/stub_code_arm.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_arm.cc
diff --git a/runtime/vm/stub_code_arm.cc b/runtime/vm/stub_code_arm.cc
index 7023472aac8707d96d557eae0822ce45e01471ef..228546b9d515e208dbd3ef964888cc685a87eb16 100644
--- a/runtime/vm/stub_code_arm.cc
+++ b/runtime/vm/stub_code_arm.cc
@@ -850,6 +850,8 @@ void StubCode::GenerateAllocateContextStub(Assembler* assembler) {
ASSERT(kSmiTagShift == 1);
__ bic(R2, R2, Operand(kObjectAlignment - 1));
+ __ MaybeTraceAllocation(kContextCid, R4, &slow_case,
+ /* inline_isolate = */ false);
// Now allocate the object.
// R1: number of context variables.
// R2: object size.
@@ -1049,7 +1051,7 @@ void StubCode::GenerateAllocationStubForClass(
const intptr_t instance_size = cls.instance_size();
ASSERT(instance_size > 0);
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