Fix bug that could cause a string to be incorrectly tagged as an array index.
authorlrn@chromium.org <lrn@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 2 Jun 2010 09:31:01 +0000 (09:31 +0000)
committerlrn@chromium.org <lrn@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 2 Jun 2010 09:31:01 +0000 (09:31 +0000)
commit5b7e77aceaed87367fb7172620e3c508ce7f96c0
tree05819e2ffb6212fd34a258c689b0073cc3be0c4d
parentf340073e5eaee7403007b477fcf14678c4b211c8
Fix bug that could cause a string to be incorrectly tagged as an array index.
We should only mark a string as an array index if we can store the entire value
of the number in the hash field. We sometimes failed to reject larger numbers.

Fixes http://code.google.com/p/v8/issues/detail?id=728

Review URL: http://codereview.chromium.org/2452007

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@4782 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/objects-inl.h
test/cctest/test-strings.cc