BuildGrowElementsCapacity bounds check used wrong elements kind.
authormvstanton@chromium.org <mvstanton@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 1 Jul 2014 14:52:14 +0000 (14:52 +0000)
committermvstanton@chromium.org <mvstanton@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 1 Jul 2014 14:52:14 +0000 (14:52 +0000)
commitdd676cb62881b095e2370aeccf4207c8f37bb31f
treede2c9716468fa514682cc575c64da797523e31f4
parente3af6b1821eae95a680519fa4fa325af00c6e84e
BuildGrowElementsCapacity bounds check used wrong elements kind.

In a refactoring, HGraphBuilder::BuildGrowElementsCapacity() ended up
using the old_elements_kind instead of new_kind when calculating if a
new capacity for an array exceeds Page::kMaxRegularHeapObjectSize.

Repair, such that the check is correct.

R=hpayer@chromium.org
BUG=

Review URL: https://codereview.chromium.org/366583006

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@22126 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/hydrogen.cc