Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index 90968373a51e16b68b1b12b4740665ff9c297e2c..d2624161bcff57d7bbdcd94d46d7b132af303592 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -1314,11 +1314,8 @@ HValue* HGraphBuilder::BuildCheckForCapacityGrow( |
HValue* max_gap = Add<HConstant>(static_cast<int32_t>(JSObject::kMaxGap)); |
HValue* max_capacity = AddUncasted<HAdd>(current_capacity, max_gap); |
- IfBuilder key_checker(this); |
- key_checker.If<HCompareNumericAndBranch>(key, max_capacity, Token::LT); |
- key_checker.Then(); |
- key_checker.ElseDeopt("Key out of capacity range"); |
- key_checker.End(); |
+ |
+ Add<HBoundsCheck>(key, max_capacity); |
HValue* new_capacity = BuildNewElementsCapacity(key); |
HValue* new_elements = BuildGrowElementsCapacity(object, elements, |