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

Unified Diff: runtime/vm/intermediate_language.h

Issue 11232063: Enable merging of comparisons into branches in checked mode. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 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 13969)
+++ runtime/vm/intermediate_language.h (working copy)
@@ -1484,8 +1484,8 @@
class BranchInstr : public ControlInstruction {
public:
- explicit BranchInstr(ComparisonInstr* comparison)
- : comparison_(comparison) { }
+ explicit BranchInstr(ComparisonInstr* comparison, bool is_checked = false)
+ : comparison_(comparison), is_checked_(is_checked) { }
DECLARE_INSTRUCTION(Branch)
@@ -1500,6 +1500,8 @@
ComparisonInstr* comparison() const { return comparison_; }
void set_comparison(ComparisonInstr* value) { comparison_ = value; }
+ bool is_checked() const { return is_checked_; }
+
virtual LocationSummary* locs();
virtual intptr_t DeoptimizationTarget() const;
virtual Representation RequiredInputRepresentation(intptr_t i) const;
@@ -1514,6 +1516,7 @@
private:
ComparisonInstr* comparison_;
+ bool is_checked_;
srdjan 2012/10/23 18:06:06 const
Florian Schneider 2012/10/24 13:02:09 Done.
DISALLOW_COPY_AND_ASSIGN(BranchInstr);
};

Powered by Google App Engine
This is Rietveld 408576698