[turbofan] Optimize string "length" property access based on types.
authorbmeurer <bmeurer@chromium.org>
Wed, 8 Jul 2015 19:12:41 +0000 (12:12 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 8 Jul 2015 19:12:58 +0000 (19:12 +0000)
commit17add22ff4b9c5ca638502e7708f0d9d99baca40
tree7d4faa713adf32e26f6e880e8c300232eb7b6e69
parent0640e295770c4831cd79b197e26e78a1eb3840b3
[turbofan] Optimize string "length" property access based on types.

Optimize string "length" property access based on static type
information if possible, but also optimistically optimize the access
based on type feedback from the LoadIC.

R=jarin@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#29543}
BUILD.gn
src/compiler/access-builder.cc
src/compiler/js-type-feedback-lowering.cc [new file with mode: 0644]
src/compiler/js-type-feedback-lowering.h [new file with mode: 0644]
src/compiler/js-typed-lowering.cc
src/compiler/js-typed-lowering.h
src/compiler/pipeline.cc
test/mjsunit/compiler/string-length.js [new file with mode: 0644]
test/unittests/compiler/js-typed-lowering-unittest.cc
tools/gyp/v8.gyp