Index: src/arm/lithium-arm.h |
diff --git a/src/arm/lithium-arm.h b/src/arm/lithium-arm.h |
index e0d4293ee3060403a03b8bfa9ed028668956ebd7..4c6237211d1a126816ef2a4adbd7d77bb531cc80 100644 |
--- a/src/arm/lithium-arm.h |
+++ b/src/arm/lithium-arm.h |
@@ -117,6 +117,7 @@ class LCodeGen; |
V(MathPowHalf) \ |
V(MathRound) \ |
V(MathSqrt) \ |
+ V(MaybeGrowElements) \ |
V(ModByConstI) \ |
V(ModByPowerOf2I) \ |
V(ModI) \ |
@@ -2318,6 +2319,28 @@ class LTrapAllocationMemento final : public LTemplateInstruction<0, 1, 1> { |
}; |
+class LMaybeGrowElements final : public LTemplateInstruction<1, 5, 0> { |
+ public: |
+ LMaybeGrowElements(LOperand* context, LOperand* object, LOperand* elements, |
+ LOperand* key, LOperand* current_capacity) { |
+ inputs_[0] = context; |
+ inputs_[1] = object; |
+ inputs_[2] = elements; |
+ inputs_[3] = key; |
+ inputs_[4] = current_capacity; |
+ } |
+ |
+ LOperand* context() { return inputs_[0]; } |
+ LOperand* object() { return inputs_[1]; } |
+ LOperand* elements() { return inputs_[2]; } |
+ LOperand* key() { return inputs_[3]; } |
+ LOperand* current_capacity() { return inputs_[4]; } |
+ |
+ DECLARE_HYDROGEN_ACCESSOR(MaybeGrowElements) |
+ DECLARE_CONCRETE_INSTRUCTION(MaybeGrowElements, "maybe-grow-elements") |
+}; |
+ |
+ |
class LStringAdd final : public LTemplateInstruction<1, 3, 0> { |
public: |
LStringAdd(LOperand* context, LOperand* left, LOperand* right) { |