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

Issue 949763003: WIP: new.target (Closed)

Created:
5 years, 10 months ago by arv (Not doing code reviews)
Modified:
5 years, 6 months ago
CC:
v8-dev
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

WIP: new.target BUG=v8:3887

Patch Set 1 #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+194 lines, -16 lines) Patch
M src/bootstrapper.cc View 3 chunks +3 lines, -0 lines 0 comments Download
M src/flag-definitions.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/full-codegen.cc View 1 chunk +1 line, -1 line 2 comments Download
M src/messages.js View 1 chunk +1 line, -0 lines 0 comments Download
M src/parser.h View 3 chunks +4 lines, -0 lines 0 comments Download
M src/parser.cc View 4 chunks +12 lines, -1 line 0 comments Download
M src/preparse-data.h View 6 chunks +13 lines, -3 lines 0 comments Download
M src/preparse-data-format.h View 1 chunk +1 line, -1 line 0 comments Download
M src/preparser.h View 9 chunks +41 lines, -0 lines 0 comments Download
M src/preparser.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M src/scopes.h View 4 chunks +11 lines, -0 lines 0 comments Download
M src/scopes.cc View 7 chunks +22 lines, -8 lines 4 comments Download
M test/cctest/test-parsing.cc View 3 chunks +55 lines, -0 lines 0 comments Download
A test/mjsunit/harmony/new-target.js View 1 chunk +26 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (1 generated)
arv (Not doing code reviews)
Very basic support. It only works for derived constructors at the moment. However, the parsing ...
5 years, 10 months ago (2015-02-24 22:22:55 UTC) #2
Dmitry Lomov (no reviews)
This factoring looks ok to me. Implement for derived constructors first and then proceed from ...
5 years, 10 months ago (2015-02-25 11:28:41 UTC) #3
arv (Not doing code reviews)
https://codereview.chromium.org/949763003/diff/1/src/full-codegen.cc File src/full-codegen.cc (right): https://codereview.chromium.org/949763003/diff/1/src/full-codegen.cc#newcode846 src/full-codegen.cc:846: // to execute the constructor and only fail when ...
5 years, 9 months ago (2015-02-25 14:47:25 UTC) #4
Dmitry Lomov (no reviews)
5 years, 9 months ago (2015-02-26 14:15:05 UTC) #5
https://codereview.chromium.org/949763003/diff/1/src/scopes.cc
File src/scopes.cc (right):

https://codereview.chromium.org/949763003/diff/1/src/scopes.cc#newcode318
src/scopes.cc:318: new_target_->AllocateTo(Variable::PARAMETER, -2);
On 2015/02/25 14:47:24, arv wrote:
> Do you think this is OK for cases like?
> 
> function f() {
>   print(new.target);
> }
> new f()

Depends on the codegen we will have for such functions.

Powered by Google App Engine
This is Rietveld 408576698