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

Unified Diff: runtime/vm/object.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/kernel_to_il.cc ('k') | 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/object.cc
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc
index 04c77edc519f1770ccc368e887f5020028213dca..b78cc697313a673a13185cc41ad7b0381ee57931 100644
--- a/runtime/vm/object.cc
+++ b/runtime/vm/object.cc
@@ -7655,7 +7655,7 @@ void Field::InitializeNew(const Field& result,
// dynamic and possibly null). Attempt to relax this later.
const bool use_guarded_cid =
FLAG_precompiled_mode ||
- (FLAG_use_field_guards && !isolate->HasAttemptedReload());
+ (isolate->use_field_guards() && !isolate->HasAttemptedReload());
result.set_guarded_cid(use_guarded_cid ? kIllegalCid : kDynamicCid);
result.set_is_nullable(use_guarded_cid ? false : true);
result.set_guarded_list_length_in_object_offset(Field::kUnknownLengthOffset);
@@ -8166,7 +8166,7 @@ bool Field::UpdateGuardedCidAndLength(const Object& value) const {
void Field::RecordStore(const Object& value) const {
ASSERT(IsOriginal());
- if (!FLAG_use_field_guards) {
+ if (!Isolate::Current()->use_field_guards()) {
return;
}
« no previous file with comments | « runtime/vm/kernel_to_il.cc ('k') | runtime/vm/raw_object_snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698