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

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: Done 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
« no previous file with comments | « runtime/vm/isolate.cc ('k') | runtime/vm/kernel_isolate.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 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()),
« no previous file with comments | « runtime/vm/isolate.cc ('k') | runtime/vm/kernel_isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698