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

Issue 619006: Refactor the check for generating inline constructors... (Closed)

Created:
10 years, 10 months ago by Søren Thygesen Gjesse
Modified:
9 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

Refactor the check for generating inline constructors Moved all the logic to a function on SharedFunctionInfo (including the flag check) to make things more readable. Changed the check for setter to do a lookup for a named setter for each of the properties assigned in the constructor. Added tests using accessors and interseptors set through the API. Added fast case objects to the mjsunit test. TEST=test/mjsunit/setter-on-constructor-prototype.js TEST=test/cctest/test-api/SetterOnConstructorPrototype TEST=test/cctest/test-api/InterceptorOnConstructorPrototype Committed: http://code.google.com/p/v8/source/detail?r=3893

Patch Set 1 #

Total comments: 6

Patch Set 2 : '' #

Total comments: 8
Unified diffs Side-by-side diffs Delta from patch set Stats (+234 lines, -126 lines) Patch
M src/heap.cc View 1 chunk +1 line, -4 lines 0 comments Download
M src/objects.h View 1 2 chunks +4 lines, -2 lines 0 comments Download
M src/objects.cc View 1 3 chunks +40 lines, -56 lines 2 comments Download
M src/runtime.cc View 1 chunk +5 lines, -4 lines 0 comments Download
M test/cctest/test-api.cc View 1 chunk +103 lines, -0 lines 4 comments Download
M test/mjsunit/setter-on-constructor-prototype.js View 1 chunk +81 lines, -60 lines 2 comments Download

Messages

Total messages: 6 (0 generated)
Søren Thygesen Gjesse
10 years, 10 months ago (2010-02-17 12:51:19 UTC) #1
Mads Ager (chromium)
LGTM, I wonder if we should make a new function traversing the prototype once looking ...
10 years, 10 months ago (2010-02-17 13:36:32 UTC) #2
Mads Ager (chromium)
LGTM, I wonder if we should make a new function traversing the prototype once looking ...
10 years, 10 months ago (2010-02-17 13:36:33 UTC) #3
Søren Thygesen Gjesse
Dropped the use of LookupCallbackSetterInPrototypes and did an explicit traversal of the chain in CanGenerateInlineConstructor ...
10 years, 10 months ago (2010-02-18 09:06:10 UTC) #4
Mads Ager (chromium)
LGTM! http://codereview.chromium.org/619006/diff/6001/6005 File src/objects.cc (right): http://codereview.chromium.org/619006/diff/6001/6005#newcode4838 src/objects.cc:4838: // the same names as are set by ...
10 years, 10 months ago (2010-02-18 09:19:35 UTC) #5
Søren Thygesen Gjesse
10 years, 10 months ago (2010-02-18 09:42:51 UTC) #6
Sorry for the mess, fixed in r3894 (http://codereview.chromium.org/647007)

http://codereview.chromium.org/619006/diff/6001/6005
File src/objects.cc (right):

http://codereview.chromium.org/619006/diff/6001/6005#newcode4838
src/objects.cc:4838: // the same names as are set by the inline constructor..
On 2010/02/18 09:19:35, Mads Ager wrote:
> .. -> .

http://codereview.chromium.org/647007

http://codereview.chromium.org/619006/diff/6001/6002
File test/cctest/test-api.cc (right):

http://codereview.chromium.org/619006/diff/6001/6002#newcode9634
test/cctest/test-api.cc:9634: ""
On 2010/02/18 09:19:35, Mads Ager wrote:
> Remove trailing empty strings?

http://codereview.chromium.org/647007

http://codereview.chromium.org/619006/diff/6001/6002#newcode9686
test/cctest/test-api.cc:9686: ""
On 2010/02/18 09:19:35, Mads Ager wrote:
> Remove trailing empty strings?

http://codereview.chromium.org/647007

http://codereview.chromium.org/619006/diff/6001/6003
File test/mjsunit/setter-on-constructor-prototype.js (right):

http://codereview.chromium.org/619006/diff/6001/6003#newcode111
test/mjsunit/setter-on-constructor-prototype.js:111: //RunTest(true);
On 2010/02/18 09:19:35, Mads Ager wrote:
> Code in comment - doesn't this work?

http://codereview.chromium.org/647007 (it did work).

Powered by Google App Engine
This is Rietveld 408576698