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

Unified Diff: runtime/vm/object.cc

Issue 1255373002: Don't do C++ field guards either when --use_field_guards=false. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 5 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 | no next file » | 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 cbc1d59d5c7584683c601dda2e3e210b2ef8b7b7..7cb1e8af8b68bca5ee21b035fd4341aeb6994a68 100644
--- a/runtime/vm/object.cc
+++ b/runtime/vm/object.cc
@@ -7696,6 +7696,10 @@ bool Field::UpdateGuardedCidAndLength(const Object& value) const {
void Field::RecordStore(const Object& value) const {
+ if (!FLAG_use_field_guards) {
+ return;
+ }
+
if (FLAG_trace_field_guards) {
OS::Print("Store %s %s <- %s\n",
ToCString(),
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698