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

Issue 3101001: First phase of migration to new indexed property query callbacks. (Closed)

Created:
10 years, 4 months ago by antonm
Modified:
9 years, 4 months ago
CC:
v8-dev
Visibility:
Public.

Description

First phase of migration to new indexed property query callbacks. Eventually indexed property query callbacks will return attributes (as an integer) or an empty handle if property is not intercepted. To gradually migrate to this new API, USE_NEW_QUERY_CALLBACK macro would control if old or new style API is used. So the migration plan is: 1) introduce new API which should be explictily enabled; 2) switch to new API defining USE_NEW_QUERY_CALLBACK before include of <v8.h> (that would require changes to client code as well) 3) remove old API from v8 4) remove #define USE_NEW_QUERY_CALLBACK from clients. BUG=http://code.google.com/p/v8/issues/detail?id=816 Committed: http://code.google.com/p/v8/source/detail?r=5228

Patch Set 1 #

Total comments: 6

Patch Set 2 : Addressing Mads' comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+72 lines, -19 lines) Patch
M include/v8.h View 1 3 chunks +46 lines, -3 lines 0 comments Download
M src/api.cc View 1 3 chunks +10 lines, -10 lines 0 comments Download
M src/objects.cc View 1 1 chunk +12 lines, -4 lines 0 comments Download
M test/cctest/test-api.cc View 2 chunks +4 lines, -2 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
antonm
Mads, may you have a look? It's just a variation of http://codereview.chromium.org/2576003/show with the same ...
10 years, 4 months ago (2010-08-09 15:52:00 UTC) #1
Mads Ager (chromium)
LGTM http://codereview.chromium.org/3101001/diff/1/2 File include/v8.h (right): http://codereview.chromium.org/3101001/diff/1/2#newcode1822 include/v8.h:1822: * The result is true if either boolean ...
10 years, 4 months ago (2010-08-10 08:47:48 UTC) #2
antonm
10 years, 4 months ago (2010-08-10 10:05:07 UTC) #3
Thanks a lot for review, Mads.  Submitting.

http://codereview.chromium.org/3101001/diff/1/2
File include/v8.h (right):

http://codereview.chromium.org/3101001/diff/1/2#newcode1822
include/v8.h:1822: * The result is true if either boolean (true if property
exists and false
On 2010/08/10 08:47:49, Mads Ager wrote:
> The result is true if either boolean ...
> ->
> The result is either a boolean ...

Done.

http://codereview.chromium.org/3101001/diff/1/2#newcode2066
include/v8.h:2066: IndexedPropertyEnumerator enumerator,
On 2010/08/10 08:47:49, Mads Ager wrote:
> Long line.

Thanks.  The strange this is ./tools/presubmit.py didn't catch that.  I'll check
what happened.

http://codereview.chromium.org/3101001/diff/1/4
File src/objects.cc (right):

http://codereview.chromium.org/3101001/diff/1/4#newcode5836
src/objects.cc:5836: // Temporary complicated logic, would be removed soon.
On 2010/08/10 08:47:49, Mads Ager wrote:
> Instead of writing that it will be removed soon, can you write that it will be
> removed when then transition to the new signature for indexed query callbacks
is
> complete.

Done.

Powered by Google App Engine
This is Rietveld 408576698