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

Issue 566016: Handle insertion order for simple constructors (Closed)

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

Description

Handle insertion order for simple constructors When functions only have simple assignments of the form this.x = ... the object is created in generated code without actually calling the constructor. In this case the initial map for the function already contains the properties assigned in the constructor. The field descriptors in this initial map now has an enumeration index assigned to make property enumeration order the insertion order. The insertion order here is the order of the this.x assignments in the code. BUG=http://crbug.com/3867 TEST=test/mjsunit/regress/regress-crbug-3867.js Committed: http://code.google.com/p/v8/source/detail?r=3768

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 6

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+79 lines, -0 lines) Patch
M src/heap.cc View 1 chunk +2 lines, -0 lines 0 comments Download
A test/mjsunit/regress/regress-crbug-3867.js View 1 2 3 4 1 chunk +77 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Søren Thygesen Gjesse
10 years, 10 months ago (2010-02-02 13:11:12 UTC) #1
Kasper Lund
LGTM, but: http://codereview.chromium.org/566016/diff/3001/4001 File test/mjsunit/regress/regress-crbug-3867.js (right): http://codereview.chromium.org/566016/diff/3001/4001#newcode1 test/mjsunit/regress/regress-crbug-3867.js:1: // Copyright 2010 the V8 project authors. ...
10 years, 10 months ago (2010-02-02 13:14:52 UTC) #2
Kasper Lund
Additional comment: http://codereview.chromium.org/566016/diff/3001/4001 File test/mjsunit/regress/regress-crbug-3867.js (right): http://codereview.chromium.org/566016/diff/3001/4001#newcode40 test/mjsunit/regress/regress-crbug-3867.js:40: assertArrayEquals(["s1", "s2", "s3"], props(new A())); I would ...
10 years, 10 months ago (2010-02-02 13:23:47 UTC) #3
Søren Thygesen Gjesse
http://codereview.chromium.org/566016/diff/3001/4001 File test/mjsunit/regress/regress-crbug-3867.js (right): http://codereview.chromium.org/566016/diff/3001/4001#newcode1 test/mjsunit/regress/regress-crbug-3867.js:1: // Copyright 2010 the V8 project authors. All rights ...
10 years, 10 months ago (2010-02-02 13:33:00 UTC) #4
Kasper Lund
10 years, 10 months ago (2010-02-02 13:34:19 UTC) #5
Thank you for updating the test. Looks nice.

Powered by Google App Engine
This is Rietveld 408576698