Fixed an ordering issue found by UBSan_vptr.
authorsvenpanne <svenpanne@chromium.org>
Fri, 12 Dec 2014 12:36:03 +0000 (04:36 -0800)
committerCommit bot <commit-bot@chromium.org>
Fri, 12 Dec 2014 12:36:15 +0000 (12:36 +0000)
commit7c42ae3e4746149fcbc331d1d9cd2c663fff9e49
treec511984f39f800da6fd51a909db71647e84580c1
parenteb41d0cfc1882a54329b0f6a395287841ed4b69c
Fixed an ordering issue found by UBSan_vptr.

We managed to access the scope_ member of CompilationInfo before its
containing object was actually constructed.

Rule of thumb: When constructing an object, never ever pass around
pointers to members which come later in the member initializer list,
you simply can't see locally if this might cause trouble or not.

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

Cr-Commit-Position: refs/heads/master@{#25796}
src/code-stubs-hydrogen.cc