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

Issue 6548008: Fix second half of issue 1151, the first change (r6765) only fixed FunctionGe... (Closed)

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

Description

Fix second half of issue 1151, the first change (r6765) only fixed FunctionGetPrototype, not FunctionSetPrototype. Committed: http://code.google.com/p/v8/source/detail?r=6893

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 1

Patch Set 3 : '' #

Total comments: 8

Patch Set 4 : '' #

Total comments: 1

Patch Set 5 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -1 line) Patch
M src/accessors.cc View 1 2 3 4 2 chunks +15 lines, -1 line 0 comments Download
M test/mjsunit/regress/regress-1151.js View 1 2 3 4 1 chunk +17 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Rico
9 years, 10 months ago (2011-02-21 13:59:43 UTC) #1
Mads Ager (chromium)
LGTM http://codereview.chromium.org/6548008/diff/6/src/accessors.cc File src/accessors.cc (right): http://codereview.chromium.org/6548008/diff/6/src/accessors.cc#newcode470 src/accessors.cc:470: if (!function->should_have_prototype()) return Heap::undefined_value(); Does the return value ...
9 years, 10 months ago (2011-02-21 14:10:51 UTC) #2
Mads Ager (chromium)
Hmm, what does should_have_prototype mean here? Does it mean that the function should not initially ...
9 years, 10 months ago (2011-02-21 14:17:07 UTC) #3
Rico
As discussed offline we did this inconsistently and did not match JSC. I uploaded a ...
9 years, 10 months ago (2011-02-22 09:47:03 UTC) #4
Mads Ager (chromium)
I think this can be simplified, but this looks like the right fix. http://codereview.chromium.org/6548008/diff/4001/src/accessors.cc File ...
9 years, 10 months ago (2011-02-22 10:17:07 UTC) #5
Rico
Comments addressed http://codereview.chromium.org/6548008/diff/4001/src/accessors.cc File src/accessors.cc (right): http://codereview.chromium.org/6548008/diff/4001/src/accessors.cc#newcode450 src/accessors.cc:450: if (!function->should_have_prototype()) { On 2011/02/22 10:17:07, Mads ...
9 years, 10 months ago (2011-02-22 12:22:44 UTC) #6
Mads Ager (chromium)
9 years, 10 months ago (2011-02-22 12:24:31 UTC) #7
LGTM

http://codereview.chromium.org/6548008/diff/6001/src/accessors.cc
File src/accessors.cc (right):

http://codereview.chromium.org/6548008/diff/6001/src/accessors.cc#newcode453
src/accessors.cc:453: ASSERT(found_it);  // There has to be one because we hit
the getter
Period at end of comment. Maybe move the comment to the line above the assert?

Powered by Google App Engine
This is Rietveld 408576698