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

Unified Diff: runtime/vm/flow_graph_compiler.cc

Issue 1693843002: VM: Correctly intrinsify implicit getters/setters when using field guards (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: removed obsolete comment Created 4 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 | « 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/flow_graph_compiler.cc
diff --git a/runtime/vm/flow_graph_compiler.cc b/runtime/vm/flow_graph_compiler.cc
index 34a6eec06d2cb94f5c953db25157e55609ee4048..ef109ac8a8f4243658a862594c9ef8d017f26950 100644
--- a/runtime/vm/flow_graph_compiler.cc
+++ b/runtime/vm/flow_graph_compiler.cc
@@ -1096,7 +1096,7 @@ bool FlowGraphCompiler::TryIntrinsify() {
// Reading from a mutable double box requires allocating a fresh double.
if (load_node.field().guarded_cid() == kDynamicCid) {
GenerateInlinedGetter(load_node.field().Offset());
- return true;
+ return !FLAG_use_field_guards;
srdjan 2016/02/12 17:03:50 It would have been helpful to add comment why it d
}
return false;
}
@@ -1111,7 +1111,7 @@ bool FlowGraphCompiler::TryIntrinsify() {
*sequence_node.NodeAt(0)->AsStoreInstanceFieldNode();
if (store_node.field().guarded_cid() == kDynamicCid) {
GenerateInlinedSetter(store_node.field().Offset());
- return true;
+ return !FLAG_use_field_guards;
}
}
}
« 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