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

Issue 631433002: Classes runtime (Closed)

Created:
6 years, 2 months ago by arv (Not doing code reviews)
Modified:
6 years, 2 months ago
CC:
v8-dev
Project:
v8
Visibility:
Public.

Description

This uses a runtime function to set up the the constructor and its prototype. This does not add the methods/accessors to the prototype or the constructor. BUG=v8:3330 LOG=Y R=dslomov@chromium.org Committed: https://code.google.com/p/v8/source/detail?r=24442

Patch Set 1 #

Total comments: 3

Patch Set 2 : Fix issue with function state #

Total comments: 10

Patch Set 3 : Create prototype object with initial prototype parent #

Total comments: 8

Patch Set 4 : Remove has_constructor_parent #

Patch Set 5 : REbase and revert mjsunit.status #

Patch Set 6 : Remove kConstructorFunction #

Unified diffs Side-by-side diffs Delta from patch set Stats (+344 lines, -49 lines) Patch
M src/compiler/ast-graph-builder.cc View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M src/compiler/pipeline.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M src/full-codegen.cc View 1 chunk +21 lines, -3 lines 0 comments Download
M src/messages.js View 1 chunk +3 lines, -1 line 0 comments Download
M src/parser.h View 1 2 3 4 2 chunks +14 lines, -5 lines 0 comments Download
M src/parser.cc View 1 2 3 4 2 chunks +7 lines, -10 lines 0 comments Download
M src/preparser.h View 1 2 3 4 5 7 chunks +49 lines, -26 lines 0 comments Download
M src/runtime/runtime.h View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M src/runtime/runtime-classes.cc View 1 2 3 4 1 chunk +79 lines, -0 lines 0 comments Download
A test/mjsunit/harmony/classes.js View 1 1 chunk +167 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (1 generated)
arv (Not doing code reviews)
Ready for review. https://codereview.chromium.org/631433002/diff/1/src/parser.cc File src/parser.cc (left): https://codereview.chromium.org/631433002/diff/1/src/parser.cc#oldcode1977 src/parser.cc:1977: Block* block = factory()->NewBlock(NULL, 1, true, ...
6 years, 2 months ago (2014-10-03 21:11:57 UTC) #2
arv (Not doing code reviews)
https://codereview.chromium.org/631433002/diff/1/src/compiler/pipeline.cc File src/compiler/pipeline.cc (right): https://codereview.chromium.org/631433002/diff/1/src/compiler/pipeline.cc#newcode176 src/compiler/pipeline.cc:176: info()->function()->dont_optimize_reason() == kClassLiteral || Why isn't this sufficient? https://codereview.chromium.org/631433002/diff/1/test/mjsunit/mjsunit.status ...
6 years, 2 months ago (2014-10-03 21:20:00 UTC) #3
Dmitry Lomov (no reviews)
On 2014/10/03 21:20:00, arv wrote: > https://codereview.chromium.org/631433002/diff/1/src/compiler/pipeline.cc > File src/compiler/pipeline.cc (right): > > https://codereview.chromium.org/631433002/diff/1/src/compiler/pipeline.cc#newcode176 > ...
6 years, 2 months ago (2014-10-06 11:04:12 UTC) #4
Dmitry Lomov (no reviews)
Ok I figured out the BailoutId clash. The minimal test case is minimal: function foobar() ...
6 years, 2 months ago (2014-10-06 14:20:59 UTC) #5
arv (Not doing code reviews)
On 2014/10/06 14:20:59, Dmitry Lomov (chromium) wrote: > Ok I figured out the BailoutId clash. ...
6 years, 2 months ago (2014-10-06 14:50:41 UTC) #6
arv (Not doing code reviews)
Fix issue with function state
6 years, 2 months ago (2014-10-06 19:20:53 UTC) #7
arv (Not doing code reviews)
I fixed the issue with the FunctionState and bailout id. This does not fix the ...
6 years, 2 months ago (2014-10-06 19:24:08 UTC) #8
Dmitry Lomov (no reviews)
On 2014/10/06 19:24:08, arv wrote: > I fixed the issue with the FunctionState and bailout ...
6 years, 2 months ago (2014-10-07 09:26:08 UTC) #9
Dmitry Lomov (no reviews)
On 2014/10/06 19:24:08, arv wrote: > I fixed the issue with the FunctionState and bailout ...
6 years, 2 months ago (2014-10-07 09:26:09 UTC) #10
Dmitry Lomov (no reviews)
Looking good, some comments https://codereview.chromium.org/631433002/diff/20001/src/preparser.h File src/preparser.h (right): https://codereview.chromium.org/631433002/diff/20001/src/preparser.h#newcode153 src/preparser.h:153: *scope_stack_ = scope_; Why do ...
6 years, 2 months ago (2014-10-07 10:28:33 UTC) #11
Dmitry Lomov (no reviews)
On 2014/10/07 09:26:09, Dmitry Lomov (chromium) wrote: > On 2014/10/06 19:24:08, arv wrote: > > ...
6 years, 2 months ago (2014-10-07 11:26:47 UTC) #12
arv (Not doing code reviews)
Create prototype object with initial prototype parent
6 years, 2 months ago (2014-10-07 14:46:04 UTC) #13
arv (Not doing code reviews)
PTAL https://codereview.chromium.org/631433002/diff/20001/src/preparser.h File src/preparser.h (right): https://codereview.chromium.org/631433002/diff/20001/src/preparser.h#newcode153 src/preparser.h:153: *scope_stack_ = scope_; On 2014/10/07 10:28:32, Dmitry Lomov ...
6 years, 2 months ago (2014-10-07 14:47:10 UTC) #14
Dmitry Lomov (no reviews)
lgtm with nits. https://codereview.chromium.org/631433002/diff/20001/src/preparser.h File src/preparser.h (right): https://codereview.chromium.org/631433002/diff/20001/src/preparser.h#newcode153 src/preparser.h:153: *scope_stack_ = scope_; On 2014/10/07 14:47:09, ...
6 years, 2 months ago (2014-10-07 15:09:37 UTC) #15
arv (Not doing code reviews)
Remove has_constructor_parent
6 years, 2 months ago (2014-10-07 15:16:39 UTC) #16
arv (Not doing code reviews)
https://codereview.chromium.org/631433002/diff/20001/src/preparser.h File src/preparser.h (right): https://codereview.chromium.org/631433002/diff/20001/src/preparser.h#newcode153 src/preparser.h:153: *scope_stack_ = scope_; On 2014/10/07 15:09:37, Dmitry Lomov (chromium) ...
6 years, 2 months ago (2014-10-07 15:16:52 UTC) #17
Dmitry Lomov (no reviews)
https://codereview.chromium.org/631433002/diff/40001/src/globals.h File src/globals.h (right): https://codereview.chromium.org/631433002/diff/40001/src/globals.h#newcode769 src/globals.h:769: kConstructorMethod = kNormalFunction On 2014/10/07 15:16:52, arv wrote: > ...
6 years, 2 months ago (2014-10-07 15:21:05 UTC) #18
arv (Not doing code reviews)
REbase and revert mjsunit.status
6 years, 2 months ago (2014-10-07 15:38:49 UTC) #19
arv (Not doing code reviews)
Remove kConstructorFunction
6 years, 2 months ago (2014-10-07 15:43:03 UTC) #20
arv (Not doing code reviews)
https://codereview.chromium.org/631433002/diff/40001/src/globals.h File src/globals.h (right): https://codereview.chromium.org/631433002/diff/40001/src/globals.h#newcode769 src/globals.h:769: kConstructorMethod = kNormalFunction On 2014/10/07 15:21:05, Dmitry Lomov (chromium) ...
6 years, 2 months ago (2014-10-07 16:13:19 UTC) #21
Dmitry Lomov (no reviews)
On 2014/10/07 16:13:19, arv wrote: > https://codereview.chromium.org/631433002/diff/40001/src/globals.h > File src/globals.h (right): > > https://codereview.chromium.org/631433002/diff/40001/src/globals.h#newcode769 > ...
6 years, 2 months ago (2014-10-07 16:15:39 UTC) #22
arv (Not doing code reviews)
6 years, 2 months ago (2014-10-07 16:25:07 UTC) #23
Message was sent while issue was closed.
Committed patchset #6 (id:100001) manually as 24442 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698