Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index 0651e71a081873c57e8399cd2681853415368804..f2dfe7de189ad7d18965111f2f4bb7f328c4035c 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -2683,7 +2683,7 @@ HValue* HGraphBuilder::BuildGrowElementsCapacity(HValue* object, |
HValue* new_capacity) { |
Add<HBoundsCheck>(new_capacity, Add<HConstant>( |
(Page::kMaxRegularHeapObjectSize - FixedArray::kHeaderSize) >> |
- ElementsKindToShiftSize(kind))); |
+ ElementsKindToShiftSize(new_kind))); |
HValue* new_elements = BuildAllocateElementsAndInitializeElementsHeader( |
new_kind, new_capacity); |