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

Issue 1604: Fix issue http://code.google.com/p/v8/issues/detail?id=32... (Closed)

Created:
12 years, 3 months ago by Feng Qian
Modified:
9 years, 7 months ago
Reviewers:
Kasper Lund
CC:
v8-dev
Visibility:
Public.

Description

Fix issue http://code.google.com/p/v8/issues/detail?id=32 Allows numberical strings as array index and make a call. e.g., callbacks['0'](); Added more test case for regexp (disabled by default, requires --call_regexp) and call_as_function object created by API. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=214

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -19 lines) Patch
M src/ic.h View 2 1 chunk +5 lines, -0 lines 1 comment Download
M src/ic.cc View 1 3 chunks +37 lines, -19 lines 4 comments Download
M test/cctest/test-api.cc View 1 chunk +5 lines, -0 lines 0 comments Download
A test/mjsunit/number-string-index-call.js View 1 1 chunk +7 lines, -0 lines 2 comments Download

Messages

Total messages: 3 (0 generated)
Feng Qian
12 years, 3 months ago (2008-09-07 04:47:33 UTC) #1
Kasper Lund
LGTM. Only minor comments left: http://codereview.chromium.org/1604/diff/203/17 File src/ic.cc (right): http://codereview.chromium.org/1604/diff/203/17#newcode293 Line 293: if (result->IsJSFunction()) return ...
12 years, 3 months ago (2008-09-08 05:27:20 UTC) #2
Feng Qian
12 years, 3 months ago (2008-09-08 18:58:48 UTC) #3
http://codereview.chromium.org/1604/diff/203/17
File src/ic.cc (right):

http://codereview.chromium.org/1604/diff/203/17#newcode293
Line 293: if (result->IsJSFunction()) return result;
It will fail in lookup step, a comment is sufficient, I think, instead of
duplicating code here.

On 2008/09/08 05:27:21, Kasper Lund wrote:
> Do you really want to continue with a doing a normal lookup here? Isn't that
> going to fail all the time? If that's the case at least it should be
documented
> in a comment here.

http://codereview.chromium.org/1604/diff/203/17#newcode365
Line 365: result : TypeError("property_not_function", object, name);
On 2008/09/08 05:27:21, Kasper Lund wrote:
> Isn't this usually indented with 4 spaces? I can't remember.

Done.

http://codereview.chromium.org/1604/diff/203/16
File test/mjsunit/number-string-index-call.js (right):

http://codereview.chromium.org/1604/diff/203/16#newcode5
Line 5: // The following test only works when --call_regexp is enabled in V8.
On 2008/09/08 05:27:21, Kasper Lund wrote:
> You can enable flags for specific test by adding a comment like this:
> // Flags: --call-regexp
> to this test file. We shouldn't have comments with code in them in our tests.

Done.

Powered by Google App Engine
This is Rietveld 408576698