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

Unified Diff: runtime/vm/intermediate_language.cc

Issue 3003593002: [vm] Cleanup Instruction::Effects(), prepare to cleanup Dependencies() (Closed)
Patch Set: Address review comment Created 3 years, 4 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/intermediate_language.h ('k') | runtime/vm/redundancy_elimination.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/intermediate_language.cc
diff --git a/runtime/vm/intermediate_language.cc b/runtime/vm/intermediate_language.cc
index 4a85521d060621f4b721a3efa7f4a0982e24ccf1..129622ffedfcee8d4c2e2bb10b0d3bd002fb51ea 100644
--- a/runtime/vm/intermediate_language.cc
+++ b/runtime/vm/intermediate_language.cc
@@ -428,7 +428,12 @@ bool BinaryIntegerOpInstr::AttributesEqual(Instruction* other) const {
}
EffectSet LoadFieldInstr::Dependencies() const {
- return immutable_ ? EffectSet::None() : EffectSet::All();
+ if (immutable_) {
+ return EffectSet::None();
+ } else {
+ UNREACHABLE(); // TODO(dartbug.com/30474): cleanup
+ return EffectSet::All();
+ }
}
bool LoadFieldInstr::AttributesEqual(Instruction* other) const {
@@ -454,9 +459,12 @@ Instruction* InitStaticFieldInstr::Canonicalize(FlowGraph* flow_graph) {
}
EffectSet LoadStaticFieldInstr::Dependencies() const {
- return (StaticField().is_final() && !FLAG_fields_may_be_reset)
- ? EffectSet::None()
- : EffectSet::All();
+ if (StaticField().is_final() && !FLAG_fields_may_be_reset) {
+ return EffectSet::None();
+ } else {
+ UNREACHABLE(); // TODO(dartbug.com/30474): cleanup
+ return EffectSet::All();
+ }
}
bool LoadStaticFieldInstr::AttributesEqual(Instruction* other) const {
« no previous file with comments | « runtime/vm/intermediate_language.h ('k') | runtime/vm/redundancy_elimination.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698