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

Unified Diff: runtime/vm/isolate.h

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/isolate.h
diff --git a/runtime/vm/isolate.h b/runtime/vm/isolate.h
index 115a3a9d6ab7a998565c936479bd94e8f3cc2357..c235cb15557b54c83b99c9fbe3ae16cf4548f8dd 100644
--- a/runtime/vm/isolate.h
+++ b/runtime/vm/isolate.h
@@ -630,11 +630,13 @@ class Isolate : public BaseIsolate {
bool asserts() const { return FLAG_enable_asserts; }
bool error_on_bad_type() const { return FLAG_error_on_bad_type; }
bool error_on_bad_override() const { return FLAG_error_on_bad_override; }
+ bool use_field_guards() const { return FLAG_use_field_guards; }
#else // defined(PRODUCT)
bool type_checks() const { return type_checks_; }
bool asserts() const { return asserts_; }
bool error_on_bad_type() const { return error_on_bad_type_; }
bool error_on_bad_override() const { return error_on_bad_override_; }
+ bool use_field_guards() const { return use_field_guards_; }
#endif // defined(PRODUCT)
static void KillAllIsolates(LibMsgId msg_id);
@@ -764,6 +766,7 @@ class Isolate : public BaseIsolate {
bool asserts_;
bool error_on_bad_type_;
bool error_on_bad_override_;
+ bool use_field_guards_;
#endif // !defined(PRODUCT)
// Timestamps of last operation via service.

Powered by Google App Engine
This is Rietveld 408576698