Index: src/arm/lithium-arm.h |
diff --git a/src/arm/lithium-arm.h b/src/arm/lithium-arm.h |
index 5fa997cb6a0ae874be05560b47671be63403951c..76580febb609491940941ec0e7cb07a4fb6cad2f 100644 |
--- a/src/arm/lithium-arm.h |
+++ b/src/arm/lithium-arm.h |
@@ -74,6 +74,7 @@ class LCodeGen; |
V(ClassOfTestAndBranch) \ |
V(CompareNumericAndBranch) \ |
V(CmpObjectEqAndBranch) \ |
+ V(CmpHoleAndBranch) \ |
V(CmpMapAndBranch) \ |
V(CmpT) \ |
V(ConstantD) \ |
@@ -879,12 +880,24 @@ 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") |
DECLARE_HYDROGEN_ACCESSOR(CompareObjectEqAndBranch) |
}; |
+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) |
+}; |
+ |
+ |
class LIsObjectAndBranch: public LControlInstruction<1, 1> { |
public: |
LIsObjectAndBranch(LOperand* value, LOperand* temp) { |