[VM/Decoupling] Follow-up change to decoupling of stub_code: Fix missing "!"
Change-Id: I5eddd8c1484a70c85851e9a94a61fbbdbed731d5
Reviewed-on: https://dart-review.googlesource.com/c/92565
Reviewed-by: Martin Kustermann <kustermann@google.com>
Commit-Queue: Martin Kustermann <kustermann@google.com>
Auto-Submit: Martin Kustermann <kustermann@google.com>
diff --git a/runtime/vm/compiler/stub_code_compiler_arm.cc b/runtime/vm/compiler/stub_code_compiler_arm.cc
index 53cb5db..38cb9ba 100644
--- a/runtime/vm/compiler/stub_code_compiler_arm.cc
+++ b/runtime/vm/compiler/stub_code_compiler_arm.cc
@@ -1459,7 +1459,7 @@
__ LoadObject(kNullReg, NullObject());
if (FLAG_inline_alloc &&
target::Heap::IsAllocatableInNewSpace(instance_size) &&
- target::Class::TraceAllocation(cls)) {
+ !target::Class::TraceAllocation(cls)) {
Label slow_case;
// Allocate the object and update top to point to
diff --git a/runtime/vm/compiler/stub_code_compiler_arm64.cc b/runtime/vm/compiler/stub_code_compiler_arm64.cc
index 4faf6d3..58f370c 100644
--- a/runtime/vm/compiler/stub_code_compiler_arm64.cc
+++ b/runtime/vm/compiler/stub_code_compiler_arm64.cc
@@ -1661,7 +1661,7 @@
__ LoadObject(kNullReg, NullObject());
if (FLAG_inline_alloc &&
target::Heap::IsAllocatableInNewSpace(instance_size) &&
- target::Class::TraceAllocation(cls)) {
+ !target::Class::TraceAllocation(cls)) {
Label slow_case;
// Allocate the object & initialize header word.
__ TryAllocate(cls, &slow_case, kInstanceReg, kTopReg,