deps: backport 066747e from upstream V8
authorAli Ijaz Sheikh <ofrobots@google.com>
Mon, 11 Jan 2016 19:39:51 +0000 (11:39 -0800)
committerMyles Borins <mborins@us.ibm.com>
Tue, 19 Jan 2016 19:52:30 +0000 (11:52 -0800)
commit9baa5618f51b2d4d1537feab9b7591c2fd9badcf
treebfe63630f371581d0ed9545cf2c5c1fff033de05
parentf5bfacd8589db33b6343e456ef2befc84ba714f5
deps: backport 066747e from upstream V8

This backport fixes a performance pathology in how arrays grow/shrink.

Fixes: https://github.com/nodejs/node/issues/3538
V8-Commit: https://github.com/v8/v8/commit/066747ea053012a99e0cd3e20f36b8ed053b2124
PR-URL: https://github.com/nodejs/node/pull/4625
Reviewed-By: cjihrig - Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: targos - Michaël Zasso <mic.besace@gmail.com>
Reviewed-By: indutny - Fedor Indutny <fedor.indutny@gmail.com>
Original commit message:
  Make sure that NormalizeElements and ShouldConvertToFastElements are …

  …based on the same values

  BUG=v8:4518
  LOG=n

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

  Cr-Commit-Position: refs/heads/master@{#32265}

Commit metadata for v4.x-staging:
PR-URL: https://github.com/nodejs/node/pull/4655
Reviewed-By: James M Snell <jasnell@gmail.com>
deps/v8/src/elements.cc
deps/v8/src/objects.cc