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

Issue 1699005: Current custom call generators cannot cope with the case when receiver is not a JSArray. (Closed)

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

Description

Current custom call generators cannot cope with the case when receiver is not a JSArray. Add a support for bailout from custom call generators (just return undefined). BUG=684 Committed: http://code.google.com/p/v8/source/detail?r=4503

Patch Set 1 #

Total comments: 6

Patch Set 2 : Next round #

Patch Set 3 : Fix typo #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -1 line) Patch
M src/ia32/stub-cache-ia32.cc View 3 chunks +15 lines, -1 line 0 comments Download
M test/mjsunit/array-pop.js View 1 2 1 chunk +11 lines, -0 lines 0 comments Download
M test/mjsunit/array-push.js View 1 2 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
antonm
Lasse, may you have a look?
10 years, 8 months ago (2010-04-23 16:54:27 UTC) #1
Lasse Reichstein
LGTM http://codereview.chromium.org/1699005/diff/1/2 File src/ia32/stub-cache-ia32.cc (right): http://codereview.chromium.org/1699005/diff/1/2#newcode1492 src/ia32/stub-cache-ia32.cc:1492: return result; Add an assert before the return ...
10 years, 8 months ago (2010-04-26 09:52:31 UTC) #2
antonm
http://codereview.chromium.org/1699005/diff/1/2 File src/ia32/stub-cache-ia32.cc (right): http://codereview.chromium.org/1699005/diff/1/2#newcode1492 src/ia32/stub-cache-ia32.cc:1492: return result; On 2010/04/26 09:52:31, Lasse Reichstein wrote: > ...
10 years, 8 months ago (2010-04-26 14:42:00 UTC) #3
antonm
10 years, 8 months ago (2010-04-26 15:03:38 UTC) #4
Lasse,

as I came to late into the office and won't see till Wednesday, I am going to
submit this CL right now w/o assert, but would add one later when we clear it. 

On 2010/04/26 14:42:00, antonm wrote:
> http://codereview.chromium.org/1699005/diff/1/2
> File src/ia32/stub-cache-ia32.cc (right):
> 
> http://codereview.chromium.org/1699005/diff/1/2#newcode1492
> src/ia32/stub-cache-ia32.cc:1492: return result;
> On 2010/04/26 09:52:31, Lasse Reichstein wrote:
> > Add an assert before the return to ensure that the result is a Code*.
> 
> Could it be a failure?
> 
> http://codereview.chromium.org/1699005/diff/1/3
> File test/mjsunit/array-pop.js (right):
> 
> http://codereview.chromium.org/1699005/diff/1/3#newcode63
> test/mjsunit/array-pop.js:63: // Play with prototype chains.
> On 2010/04/26 09:52:31, Lasse Reichstein wrote:
> > Change description to say that it's using a non-JSArray as receiver for the
> pop,
> > and that it's a test for custom generators.
> > 
> 
> Done.
> 
> http://codereview.chromium.org/1699005/diff/1/4
> File test/mjsunit/array-push.js (right):
> 
> http://codereview.chromium.org/1699005/diff/1/4#newcode107
> test/mjsunit/array-push.js:107: // Play with prototype chains.
> On 2010/04/26 09:52:31, Lasse Reichstein wrote:
> > Same comment as for pop.
> > 
> 
> Done.

Powered by Google App Engine
This is Rietveld 408576698