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

Unified Diff: runtime/vm/stub_code_mips.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_mips.cc
diff --git a/runtime/vm/stub_code_mips.cc b/runtime/vm/stub_code_mips.cc
index ce213e6650746366b2d34f5ba513064a5ca787a4..616799db74ed1e048d92e63d33df218802e5f4c3 100644
--- a/runtime/vm/stub_code_mips.cc
+++ b/runtime/vm/stub_code_mips.cc
@@ -950,6 +950,8 @@ void StubCode::GenerateAllocateContextStub(Assembler* assembler) {
__ LoadImmediate(T0, ~((kObjectAlignment) - 1));
__ and_(T2, T2, T0);
+ __ MaybeTraceAllocation(kContextCid, T4, &slow_case,
+ /* inline_isolate = */ false);
// Now allocate the object.
// T1: number of context variables.
// T2: object size.
@@ -1142,7 +1144,7 @@ void StubCode::GenerateAllocationStubForClass(
// T1: 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