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

Unified Diff: runtime/vm/stub_code_arm64.cc

Issue 1210283003: Extend allocation profile testing (Closed) Base URL: git@github.com:dart-lang/sdk.git@profile_model_public
Patch Set: Created 5 years, 6 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
« no previous file with comments | « runtime/vm/stub_code_arm.cc ('k') | runtime/vm/stub_code_ia32.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/stub_code_arm64.cc
diff --git a/runtime/vm/stub_code_arm64.cc b/runtime/vm/stub_code_arm64.cc
index 5d074515ba1add0d4b97cb6d73ada697dfe03330..10e241174ca54a416b805216647e407218dfd843 100644
--- a/runtime/vm/stub_code_arm64.cc
+++ b/runtime/vm/stub_code_arm64.cc
@@ -1128,7 +1128,8 @@ void StubCode::GenerateAllocationStubForClass(
__ ldr(R1, Address(SP));
// R1: instantiated type arguments.
}
- if (FLAG_inline_alloc && Heap::IsAllocatableInNewSpace(instance_size)) {
+ if (FLAG_inline_alloc && Heap::IsAllocatableInNewSpace(instance_size) &&
+ !cls.trace_allocation()) {
Label slow_case;
// Allocate the object and update top to point to
// next object start and initialize the allocated object.
« no previous file with comments | « runtime/vm/stub_code_arm.cc ('k') | runtime/vm/stub_code_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698