Index: src/ia32/lithium-ia32.h |
diff --git a/src/ia32/lithium-ia32.h b/src/ia32/lithium-ia32.h |
index 15c043b863a4266b8b00641f6c957c4fdc327771..03714a355acd0332d9675ed88db643b5535ef791 100644 |
--- a/src/ia32/lithium-ia32.h |
+++ b/src/ia32/lithium-ia32.h |
@@ -75,6 +75,7 @@ class LCodeGen; |
V(ClassOfTestAndBranch) \ |
V(CompareNumericAndBranch) \ |
V(CmpObjectEqAndBranch) \ |
+ V(CmpHoleAndBranch) \ |
V(CmpMapAndBranch) \ |
V(CmpT) \ |
V(ConstantD) \ |
@@ -849,8 +850,20 @@ class LCmpObjectEqAndBranch: public LControlInstruction<2, 0> { |
LOperand* left() { return inputs_[0]; } |
LOperand* right() { return inputs_[1]; } |
- DECLARE_CONCRETE_INSTRUCTION(CmpObjectEqAndBranch, |
- "cmp-object-eq-and-branch") |
+ DECLARE_CONCRETE_INSTRUCTION(CmpObjectEqAndBranch, "cmp-object-eq-and-branch") |
+}; |
+ |
+ |
+class LCmpHoleAndBranch: public LControlInstruction<1, 0> { |
+ public: |
+ explicit LCmpHoleAndBranch(LOperand* object) { |
+ inputs_[0] = object; |
+ } |
+ |
+ LOperand* object() { return inputs_[0]; } |
+ |
+ DECLARE_CONCRETE_INSTRUCTION(CmpHoleAndBranch, "cmp-hole-and-branch") |
+ DECLARE_HYDROGEN_ACCESSOR(CompareHoleAndBranch) |
}; |