Fix invalid read of language mode from StorePropertyParameters.
authorpcc <pcc@chromium.org>
Tue, 1 Sep 2015 05:04:59 +0000 (22:04 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 1 Sep 2015 05:05:12 +0000 (05:05 +0000)
commit718fc1c9a24d3870220ff19a85b226a66fb3a17b
tree74240c62a9ea7b1b3d5b7a197610bf98c5db59ea
parent71779375adb4a4de86f5f02ba0103769f92b376c
Fix invalid read of language mode from StorePropertyParameters.

Fixes an invalid cast of an Operator1<StorePropertyParameters> object
to Operator1<LanguageMode> by reading the language mode from
StorePropertyParameters. This code happened to work before because
StorePropertyParameters's first field has type LanguageMode.

Cleanup for cfi_vptr=1; see https://www.chromium.org/developers/testing/control-flow-integrity

BUG=chromium:457523
R=bmeurer@chromium.org
LOG=N

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

Cr-Commit-Position: refs/heads/master@{#30493}
src/compiler/js-generic-lowering.cc