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

Unified Diff: src/ia32/lithium-ia32.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/ia32/lithium-ia32.h
diff --git a/src/ia32/lithium-ia32.h b/src/ia32/lithium-ia32.h
index 379d64b1153f97bbde7cfe31b2657409ff458926..7d39447035b80316bfc8e732c24d084be59949db 100644
--- a/src/ia32/lithium-ia32.h
+++ b/src/ia32/lithium-ia32.h
@@ -44,6 +44,7 @@ class LCodeGen;
V(AccessArgumentsAt) \
V(AddI) \
V(Allocate) \
+ V(AndBranch) \
V(ApplyArguments) \
V(ArgumentsElements) \
V(ArgumentsLength) \
@@ -1285,6 +1286,23 @@ class LBranch V8_FINAL : public LControlInstruction<1, 1> {
};
+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 LCmpMapAndBranch V8_FINAL : public LControlInstruction<1, 0> {
public:
explicit LCmpMapAndBranch(LOperand* value) {

Powered by Google App Engine
This is Rietveld 408576698