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

Unified Diff: runtime/vm/jit_optimizer.cc

Issue 1842853002: VM: Fix --no-use-field-guards. (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 | runtime/vm/raw_object_snapshot.cc » ('j') | 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 c02fa8c7030b45c77316b6165ed47351c6c9a40f..3ae456168757fa44c30585cd0bbd065b170ee31f 100644
--- a/runtime/vm/jit_optimizer.cc
+++ b/runtime/vm/jit_optimizer.cc
@@ -3118,6 +3118,7 @@ bool JitOptimizer::TryInlineInstanceSetter(InstanceCallInstr* instr,
AddReceiverCheck(instr);
}
if (field.guarded_cid() != kDynamicCid) {
+ ASSERT(!FLAG_use_field_guards);
InsertBefore(instr,
new(Z) GuardFieldClassInstr(
new(Z) Value(instr->ArgumentAt(1)),
@@ -3128,6 +3129,7 @@ bool JitOptimizer::TryInlineInstanceSetter(InstanceCallInstr* instr,
}
if (field.needs_length_check()) {
+ ASSERT(!FLAG_use_field_guards);
InsertBefore(instr,
new(Z) GuardFieldLengthInstr(
new(Z) Value(instr->ArgumentAt(1)),
« no previous file with comments | « no previous file | runtime/vm/raw_object_snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698