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

Unified Diff: runtime/vm/jit_optimizer.cc

Issue 1840173003: VM: Fix incorrect debug assertion. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/jit_optimizer.cc
diff --git a/runtime/vm/jit_optimizer.cc b/runtime/vm/jit_optimizer.cc
index 3ae456168757fa44c30585cd0bbd065b170ee31f..edb252402d1dfb4be80644b7a711fbd41e6163ab 100644
--- a/runtime/vm/jit_optimizer.cc
+++ b/runtime/vm/jit_optimizer.cc
@@ -3118,7 +3118,7 @@ bool JitOptimizer::TryInlineInstanceSetter(InstanceCallInstr* instr,
AddReceiverCheck(instr);
}
if (field.guarded_cid() != kDynamicCid) {
- ASSERT(!FLAG_use_field_guards);
+ ASSERT(FLAG_use_field_guards);
InsertBefore(instr,
new(Z) GuardFieldClassInstr(
new(Z) Value(instr->ArgumentAt(1)),
@@ -3129,7 +3129,7 @@ bool JitOptimizer::TryInlineInstanceSetter(InstanceCallInstr* instr,
}
if (field.needs_length_check()) {
- ASSERT(!FLAG_use_field_guards);
+ ASSERT(FLAG_use_field_guards);
InsertBefore(instr,
new(Z) GuardFieldLengthInstr(
new(Z) Value(instr->ArgumentAt(1)),
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698