[turbofan] Fix invalid access to Parameter index.
authorbmeurer <bmeurer@chromium.org>
Thu, 30 Jul 2015 09:16:12 +0000 (02:16 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 30 Jul 2015 09:16:28 +0000 (09:16 +0000)
commitefab0b74ddfe44ef03cad6822910f178a1055aaa
tree54e2b71c17fc06bc97b88d421005f2173ec88680
parenta67f31c48c7bb7a3f653e32e0a48143099d27b68
[turbofan] Fix invalid access to Parameter index.

A Parameter operator contains a ParameterInfo payload, not an int
payload, so the OpParameter<int> cast is invalid (and only worked by
coincidence currently).

BUG=chromium:515215
LOG=n
R=yangguo@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#29919}
src/compiler/typer.cc