Inline keyed stores if the code is in a loop and the key is likely to
authorager@chromium.org <ager@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 11 Jun 2009 13:17:26 +0000 (13:17 +0000)
committerager@chromium.org <ager@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 11 Jun 2009 13:17:26 +0000 (13:17 +0000)
commita8507cb43d29b1ff1e92899ae34bacb1416c54aa
treed3617304ecc42cda1bccfe762f6acad5a88aa894
parente797b865aad2425c8746ba2d4a6f50c830c5e12e
Inline keyed stores if the code is in a loop and the key is likely to
be a smi.

The inlined version works for stores to JSArrays where the key is a
smi that is within bounds of the array and the value is either
constant or a smi so we can skip the write-barrier.
Review URL: http://codereview.chromium.org/122035

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@2144 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/ia32/codegen-ia32.cc
src/objects.cc
src/v8-counters.h