Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(53)

Issue 13071006: Codify the assumption that %GetArrayKeys can return only a single interval starting at zero (Closed)

Created:
7 years, 9 months ago by adamk
Modified:
7 years, 8 months ago
Reviewers:
rossberg
CC:
v8-dev
Visibility:
Public.

Description

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 Committed: https://code.google.com/p/v8/source/detail?r=14125

Patch Set 1 #

Total comments: 4

Patch Set 2 : Return a single number for an interval #

Unified diffs Side-by-side diffs Delta from patch set Stats (+89 lines, -141 lines) Patch
M src/array.js View 1 8 chunks +84 lines, -126 lines 0 comments Download
M src/runtime.cc View 1 3 chunks +5 lines, -15 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
adamk
This is step 2 of N. I hoped to be able to clean this up ...
7 years, 9 months ago (2013-03-25 21:51:52 UTC) #1
rossberg
LGTM with comments https://codereview.chromium.org/13071006/diff/1/src/array.js File src/array.js (right): https://codereview.chromium.org/13071006/diff/1/src/array.js#newcode44 src/array.js:44: if (length == 2 && intervals[0] ...
7 years, 9 months ago (2013-03-28 12:27:07 UTC) #2
adamk
Switched to returning a number instead of a single interval for the interval case. Also ...
7 years, 9 months ago (2013-03-28 16:39:04 UTC) #3
adamk
Does this still look good, with the varying return type?
7 years, 8 months ago (2013-04-01 20:17:24 UTC) #4
rossberg
On 2013/04/01 20:17:24, adamk wrote: > Does this still look good, with the varying return ...
7 years, 8 months ago (2013-04-03 08:37:59 UTC) #5
adamk
On 2013/04/03 08:37:59, rossberg wrote: > On 2013/04/01 20:17:24, adamk wrote: > > Does this ...
7 years, 8 months ago (2013-04-03 15:38:18 UTC) #6
adamk
7 years, 8 months ago (2013-04-03 15:52:48 UTC) #7
Message was sent while issue was closed.
Committed patchset #2 manually as r14125 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698