Index: src/x64/lithium-x64.h |
diff --git a/src/x64/lithium-x64.h b/src/x64/lithium-x64.h |
index b2fb1daf784e96c2dd1ea09ea13a575b68b610f6..00f4a0efe0207f1ce734b7fab1a87bc04cc6b5ca 100644 |
--- a/src/x64/lithium-x64.h |
+++ b/src/x64/lithium-x64.h |
@@ -74,6 +74,7 @@ class LCodeGen; |
V(ClassOfTestAndBranch) \ |
V(CompareNumericAndBranch) \ |
V(CmpObjectEqAndBranch) \ |
+ V(CmpHoleAndBranch) \ |
V(CmpMapAndBranch) \ |
V(CmpT) \ |
V(ConstantD) \ |
@@ -823,8 +824,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) |
}; |