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..153f705ca7fe615615fb1e7676cbff2e02433f9a 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. |
@@ -1048,8 +1050,9 @@ void StubCode::GenerateAllocationStubForClass( |
const int kInlineInstanceSize = 12; |
const intptr_t instance_size = cls.instance_size(); |
ASSERT(instance_size > 0); |
+ Isolate* isolate = Isolate::Current(); |
if (FLAG_inline_alloc && Heap::IsAllocatableInNewSpace(instance_size) && |
- !cls.trace_allocation()) { |
+ !cls.TraceAllocation(isolate)) { |
Label slow_case; |
// Allocate the object and update top to point to |
// next object start and initialize the allocated object. |