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

Unified Diff: runtime/vm/intermediate_language.h

Issue 10559072: Fuse Comparison->BooleanNegate->Branch. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 6 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/intermediate_language.h
===================================================================
--- runtime/vm/intermediate_language.h (revision 8878)
+++ runtime/vm/intermediate_language.h (working copy)
@@ -2312,7 +2312,8 @@
value_(value),
true_successor_(NULL),
false_successor_(NULL),
- is_fused_with_comparison_(false) { }
+ is_fused_with_comparison_(false),
+ is_negated_(false) { }
DECLARE_INSTRUCTION(Branch)
@@ -2349,12 +2350,15 @@
}
bool is_fused_with_comparison() const { return is_fused_with_comparison_; }
+ bool is_negated() const { return is_negated_; }
+ void set_is_negated(bool value) { is_negated_ = value; }
private:
Value* value_;
TargetEntryInstr* true_successor_;
TargetEntryInstr* false_successor_;
bool is_fused_with_comparison_;
+ bool is_negated_;
DISALLOW_COPY_AND_ASSIGN(BranchInstr);
};

Powered by Google App Engine
This is Rietveld 408576698