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

Unified Diff: src/x64/lithium-x64.h

Issue 24366004: Split HCompareGeneric in a test and a branch part. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 3 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: src/x64/lithium-x64.h
diff --git a/src/x64/lithium-x64.h b/src/x64/lithium-x64.h
index 0ccbeb8fc80889f0394ff5e69a472507b475d151..4e1e8bdd02e60024e3b435d4abe090b600bf14ef 100644
--- a/src/x64/lithium-x64.h
+++ b/src/x64/lithium-x64.h
@@ -44,6 +44,7 @@ class LCodeGen;
V(AccessArgumentsAt) \
V(AddI) \
V(Allocate) \
+ V(AndBranch) \
V(ApplyArguments) \
V(ArgumentsElements) \
V(ArgumentsLength) \
@@ -1229,6 +1230,23 @@ class LBranch V8_FINAL : public LControlInstruction<1, 0> {
};
+class LAndBranch V8_FINAL : public LControlInstruction<1, 0> {
+ public:
+ LAndBranch(LOperand* value, Token::Value op) : op_(op) {
+ inputs_[0] = value;
+ }
+
+ LOperand* value() { return inputs_[0]; }
+ Token::Value op() { return op_; }
+
+ DECLARE_CONCRETE_INSTRUCTION(AndBranch, "and-branch")
+ DECLARE_HYDROGEN_ACCESSOR(AndBranch)
+
+ private:
+ Token::Value op_;
+};
+
+
class LDebugBreak V8_FINAL : public LTemplateInstruction<0, 0, 0> {
public:
DECLARE_CONCRETE_INSTRUCTION(DebugBreak, "break")

Powered by Google App Engine
This is Rietveld 408576698