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

Unified Diff: runtime/vm/flow_graph_builder.cc

Issue 1125803002: Revert parts of r45502 and always generate guard field instructions. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 8 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 | runtime/vm/intermediate_language_arm.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flow_graph_builder.cc
===================================================================
--- runtime/vm/flow_graph_builder.cc (revision 45502)
+++ runtime/vm/flow_graph_builder.cc (working copy)
@@ -3504,30 +3504,19 @@
}
if (FLAG_use_field_guards) {
- if (node->field().guarded_cid() != kDynamicCid) {
- store_value = Bind(BuildStoreExprTemp(store_value));
- GuardFieldClassInstr* guard_field_class =
- new(Z) GuardFieldClassInstr(store_value,
- node->field(),
- isolate()->GetNextDeoptId());
- AddInstruction(guard_field_class);
- store_value = Bind(BuildLoadExprTemp());
- if (node->field().guarded_list_length() != Field::kNoFixedLength) {
- GuardFieldLengthInstr* guard_field_length =
- new(Z) GuardFieldLengthInstr(store_value,
- node->field(),
- isolate()->GetNextDeoptId());
- AddInstruction(guard_field_length);
- store_value = Bind(BuildLoadExprTemp());
- } else {
- // Advance deopt-id counter to remain in sync.
- isolate()->GetNextDeoptId();
- }
- } else {
- // Advance deopt-id counter to remain in sync.
- isolate()->GetNextDeoptId();
- isolate()->GetNextDeoptId();
- }
+ store_value = Bind(BuildStoreExprTemp(store_value));
+ GuardFieldClassInstr* guard_field_class =
+ new(Z) GuardFieldClassInstr(store_value,
+ node->field(),
+ isolate()->GetNextDeoptId());
+ AddInstruction(guard_field_class);
+ store_value = Bind(BuildLoadExprTemp());
+ GuardFieldLengthInstr* guard_field_length =
+ new(Z) GuardFieldLengthInstr(store_value,
+ node->field(),
+ isolate()->GetNextDeoptId());
+ AddInstruction(guard_field_length);
+ store_value = Bind(BuildLoadExprTemp());
}
StoreInstanceFieldInstr* store =
new(Z) StoreInstanceFieldInstr(node->field(),
« no previous file with comments | « no previous file | runtime/vm/intermediate_language_arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698