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

Issue 939063002: [strong] Deprecate for-in (Closed)

Created:
5 years, 10 months ago by rossberg
Modified:
5 years, 10 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

[strong] Deprecate for-in R=marja@chromium.org BUG= Committed: https://crrev.com/7d089a59293cf8dd6b8ef579bba3a63350da90b2 Cr-Commit-Position: refs/heads/master@{#26751}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+69 lines, -34 lines) Patch
M src/messages.js View 1 chunk +1 line, -0 lines 0 comments Download
M src/parser.h View 1 1 chunk +0 lines, -2 lines 0 comments Download
M src/parser.cc View 1 4 chunks +7 lines, -16 lines 0 comments Download
M src/preparser.h View 1 2 chunks +17 lines, -2 lines 0 comments Download
M src/preparser.cc View 1 4 chunks +5 lines, -13 lines 0 comments Download
M test/cctest/test-parsing.cc View 1 chunk +22 lines, -0 lines 0 comments Download
M test/mjsunit/strong/empty-statement.js View 1 chunk +0 lines, -1 line 0 comments Download
A test/mjsunit/strong/for-in.js View 1 1 chunk +17 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (2 generated)
rossberg
5 years, 10 months ago (2015-02-19 12:24:50 UTC) #1
marja
https://codereview.chromium.org/939063002/diff/1/src/parser.cc File src/parser.cc (right): https://codereview.chromium.org/939063002/diff/1/src/parser.cc#newcode2884 src/parser.cc:2884: bool Parser::CheckInOrOf(bool accept_OF, ... could you move CheckInOrOf to ...
5 years, 10 months ago (2015-02-19 12:34:23 UTC) #2
rossberg
https://codereview.chromium.org/939063002/diff/1/src/parser.cc File src/parser.cc (right): https://codereview.chromium.org/939063002/diff/1/src/parser.cc#newcode2884 src/parser.cc:2884: bool Parser::CheckInOrOf(bool accept_OF, On 2015/02/19 12:34:22, marja wrote: > ...
5 years, 10 months ago (2015-02-19 13:23:05 UTC) #3
marja
lgtm
5 years, 10 months ago (2015-02-19 13:28:58 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/939063002/20001
5 years, 10 months ago (2015-02-19 13:30:17 UTC) #6
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 10 months ago (2015-02-19 13:50:37 UTC) #7
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/7d089a59293cf8dd6b8ef579bba3a63350da90b2 Cr-Commit-Position: refs/heads/master@{#26751}
5 years, 10 months ago (2015-02-19 13:50:55 UTC) #8
arv (Not doing code reviews)
LGTM
5 years, 10 months ago (2015-02-19 14:21:15 UTC) #10
marja
On 2015/02/19 13:23:05, rossberg wrote: > Good question. Most existing tests will probably not work, ...
5 years, 10 months ago (2015-02-19 16:15:42 UTC) #11
rossberg
On 2015/02/19 16:15:42, marja wrote: > On 2015/02/19 13:23:05, rossberg wrote: > > Good question. ...
5 years, 10 months ago (2015-02-19 16:19:41 UTC) #12
arv (Not doing code reviews)
On 2015/02/19 16:19:41, rossberg wrote: > On 2015/02/19 16:15:42, marja wrote: > > On 2015/02/19 ...
5 years, 10 months ago (2015-02-19 16:26:17 UTC) #13
rossberg
On 2015/02/19 16:26:17, arv wrote: > On 2015/02/19 16:19:41, rossberg wrote: > > On 2015/02/19 ...
5 years, 10 months ago (2015-02-19 16:32:59 UTC) #14
arv (Not doing code reviews)
5 years, 10 months ago (2015-02-19 17:01:03 UTC) #15
Message was sent while issue was closed.
On 2015/02/19 16:32:59, rossberg wrote:
> On 2015/02/19 16:26:17, arv wrote:
> > On 2015/02/19 16:19:41, rossberg wrote:
> > > On 2015/02/19 16:15:42, marja wrote:
> > > > On 2015/02/19 13:23:05, rossberg wrote:
> > > > > Good question. Most existing tests will probably not work, for 'var'
> > alone.
> > > > > Maybe it's good enough to have a number of dedicated strong mode test
> > > > programs.
> > > > > If something really gets ruled out accidentally then I suppose we
gonna
> > find
> > > > out
> > > > > relatively quickly...
> > > > 
> > > > ... how would we find it out though if we only run our small and few
> > dedicated
> > > > test progs w/ strong mode, and no other code?
> > > 
> > > Yeah, I think once we have a critical mass of features, we should port
some
> > > interesting programs to strong mode as tests. We could also try to run
(the
> > > strongified version of) Traceur as a test. Arv, is Traceur pure ES6?
> > 
> > Yes. Right now we compile it to ES5 but there is an option to compile it to
> ES6.
> > We have granular flags for everything and I was planning to start using
io.js
> > and keep things io.js supports (let, generators, for-of etc).
> 
> Okay, what does "compile to ES6" mean in this case? If the Traceur sources are
> pure ES6, could an ES6-ready VM perhaps even run Traceur itself without
> bootstrapping through self compilation first?

Yes. If an engine supports all of ES6 no compilation is needed. (I know we have
cases where derived classes do not call super() for performance reasons.)

Powered by Google App Engine
This is Rietveld 408576698