Codify the assumption that %GetArrayKeys can return only a single interval starting...
authoradamk@chromium.org <adamk@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 3 Apr 2013 15:52:42 +0000 (15:52 +0000)
committeradamk@chromium.org <adamk@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 3 Apr 2013 15:52:42 +0000 (15:52 +0000)
commitc5427d5eea05a0739ae8ecc2dd409c21d69bd1dc
treec463559017cd0ed7deabf1a4a4a1b41c7a88056e
parent98281c62f0d7650eb7af8cdea61d9833cf9b7841
Codify the assumption that %GetArrayKeys can return only a single interval starting at zero

This patch adds comments explaining the interface in runtime.cc and simplifies
all callers given these assumptions (e.g., no need to loop over intervals, or
calculate where the interval starts).

Took care of some unrelated issues in the edited code:
- Fixes one use of [] to InternalArray
- Removed a bunch of comments referring to ES3 which no longer hold in ES5

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@14125 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/array.js
src/runtime.cc