Hydrogen: fix keyed loads with string keys
authorfedor.indutny <fedor.indutny@gmail.com>
Mon, 15 Dec 2014 13:36:13 +0000 (05:36 -0800)
committerCommit bot <commit-bot@chromium.org>
Mon, 15 Dec 2014 13:36:23 +0000 (13:36 +0000)
commitf6e68d2c2c1e92c14f220223f4a0b54b54aadff6
tree105e569f315322c436b86564a35ee5d57f2d9f52
parentb74cfe4a8f58dc87a7f9620e3075b558785eb020
Hydrogen: fix keyed loads with string keys

Keyed loads should not unconditionally be compiled to element loads. Update KeyedLoadICs to keep track of the key type, so that Hydrogen can emit ICs for string-keyed loads it doesn't have inline support for.

BUG=v8:3167
R=jkummerow@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#25817}
src/ast.h
src/hydrogen.cc
src/ic/ic-compiler.cc
src/ic/ic.h
src/type-info.cc
src/type-info.h
src/typing.cc
test/mjsunit/keyed-load-with-string-key.js [new file with mode: 0644]