deps: fix up v8 after fd80a3
authorFedor Indutny <fedor@indutny.com>
Thu, 21 Aug 2014 23:59:35 +0000 (03:59 +0400)
committerFedor Indutny <fedor@indutny.com>
Fri, 22 Aug 2014 10:19:08 +0000 (14:19 +0400)
commit3122e0eae64c5ab494b29d0a9cadef902d93f1f9
treee90a802f5815bca646f1d4d88609aafa90f87e77
parentadf2cfd54da2ffe3206a913d595dd3875ff73272
deps: fix up v8 after fd80a3

fd80a31e0697d6317ce8c2d289575399f4e06d21 has introduced a segfault
during redundant boundary check elimination (#8208).

The problem consists of two parts:

  1. Abscense of instruction iterator in
     `EliminateRedundantBoundsChecks`. It was present in recent v8, but
     wasn't considered important at the time of backport. However, since
     the function is changing instructions order in block, it is
     important to not rely at `i->next()` at the end of the loop.
  2. Too strict ASSERT in `MoveIndexIfNecessary`. It is essentially a
     backport of a45c96ab from v8's upstream. See
     https://github.com/v8/v8/commit/a45c96ab for details.

fix #8208
deps/v8/src/hydrogen.cc