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

Unified Diff: runtime/vm/jit_optimizer.cc

Issue 2715213008: VM: Allow configuring use_field_guards on the per-isolate basis and include it into snapshot featur… (Closed)
Patch Set: Created 3 years, 10 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/jit_optimizer.cc
diff --git a/runtime/vm/jit_optimizer.cc b/runtime/vm/jit_optimizer.cc
index 8bc07769b532db7e1b553235c51fc1ef7d04a4a1..ac9db2d3b469558732d79922c926ffcdc0521a89 100644
--- a/runtime/vm/jit_optimizer.cc
+++ b/runtime/vm/jit_optimizer.cc
@@ -1805,7 +1805,7 @@ bool JitOptimizer::TryInlineInstanceSetter(InstanceCallInstr* instr,
AddReceiverCheck(instr);
}
if (field.guarded_cid() != kDynamicCid) {
- ASSERT(FLAG_use_field_guards);
+ ASSERT(I->use_field_guards());
InsertBefore(
instr, new (Z) GuardFieldClassInstr(new (Z) Value(instr->ArgumentAt(1)),
field, instr->deopt_id()),
@@ -1813,7 +1813,7 @@ bool JitOptimizer::TryInlineInstanceSetter(InstanceCallInstr* instr,
}
if (field.needs_length_check()) {
- ASSERT(FLAG_use_field_guards);
+ ASSERT(I->use_field_guards());
InsertBefore(instr, new (Z) GuardFieldLengthInstr(
new (Z) Value(instr->ArgumentAt(1)), field,
instr->deopt_id()),

Powered by Google App Engine
This is Rietveld 408576698