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

Issue 2278002: Add support for getOwnPropertyDescriptor on array indices (fixes issue 599).... (Closed)

Created:
10 years, 7 months ago by Rico
Modified:
9 years, 6 months ago
CC:
v8-dev
Visibility:
Public.

Description

Add support for getOwnPropertyDescriptor on array indices (fixes issue 599). This fix adds support for retriving a property descriptor on elements. The new version supports both fast and slow case elements. In the fast case we always default configurable, writable, enumerable to true (we don't have PropertyDetails for fast elements). A few new tests are added to get-own-property-descriptor.js, I will add a lot more to object-define-property when I add support for indices in Object.defineProperty. Committed: http://code.google.com/p/v8/source/detail?r=4738

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 10

Patch Set 4 : '' #

Total comments: 4

Patch Set 5 : '' #

Total comments: 2

Patch Set 6 : '' #

Total comments: 2

Patch Set 7 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+150 lines, -37 lines) Patch
M src/macros.py View 1 chunk +10 lines, -0 lines 0 comments Download
M src/runtime.cc View 1 2 3 4 5 6 3 chunks +71 lines, -14 lines 0 comments Download
M src/v8natives.js View 6 1 chunk +10 lines, -10 lines 0 comments Download
M test/es5conform/es5conform.status View 2 chunks +0 lines, -8 lines 0 comments Download
M test/mjsunit/get-own-property-descriptor.js View 1 2 3 4 5 2 chunks +59 lines, -5 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Rico
Small review. I will add a bunch of additional tests using getOwnPropertyDescriptor when I submit ...
10 years, 7 months ago (2010-05-26 11:08:52 UTC) #1
Mads Ager (chromium)
http://codereview.chromium.org/2278002/diff/7001/8001 File src/runtime.cc (right): http://codereview.chromium.org/2278002/diff/7001/8001#newcode589 src/runtime.cc:589: GetOwnPropertyImplementation(obj, name, &result); Maybe do the split before? Start ...
10 years, 7 months ago (2010-05-26 11:23:17 UTC) #2
Rico
In addition to addressing the comments I have added support for strings (which have a ...
10 years, 7 months ago (2010-05-26 13:43:57 UTC) #3
Mads Ager (chromium)
LGTM http://codereview.chromium.org/2278002/diff/7001/8001 File src/runtime.cc (right): http://codereview.chromium.org/2278002/diff/7001/8001#newcode606 src/runtime.cc:606: elms->set(0, Heap::false_value()); On 2010/05/26 13:43:57, Rico wrote: > ...
10 years, 7 months ago (2010-05-26 13:55:12 UTC) #4
Rico
Mads, Could you have a final look. I added index names to both runtime.cc and ...
10 years, 7 months ago (2010-05-27 07:26:50 UTC) #5
Mads Ager (chromium)
10 years, 7 months ago (2010-05-27 07:36:14 UTC) #6
LGTM, much more readable!

http://codereview.chromium.org/2278002/diff/17001/3004
File src/runtime.cc (right):

http://codereview.chromium.org/2278002/diff/17001/3004#newcode594
src/runtime.cc:594: Handle<FixedArray> elms = 
Factory::NewFixedArray(DESCRIPTOR_SIZE);
Remove extra space before Factory::...

http://codereview.chromium.org/2278002/diff/17001/3005
File src/v8natives.js (right):

http://codereview.chromium.org/2278002/diff/17001/3005#newcode495
src/v8natives.js:495: // GetOwnProperty returns and array indexed by the
constants
and -> an

Powered by Google App Engine
This is Rietveld 408576698