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

Issue 1965213003: simplify constructors, fixes #564 (Closed)

Created:
4 years, 7 months ago by Jennifer Messerly
Modified:
4 years, 6 months ago
Reviewers:
Leaf, vsm, sra1
CC:
dev-compiler+reviews_dartlang.org
Base URL:
git@github.com:dart-lang/dev_compiler.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

simplify constructors, fixes #564 we still have an init method, for better or worse, to break out of ES6 restrictions The idea here is default Dart constructor (really an initialization method) is always called `new` instead of the class name. We already do this for unnamed factory. R=leafp@google.com Committed: https://github.com/dart-lang/dev_compiler/commit/636fcb68f780bcd38c1aab908dfd432f511df08d

Patch Set 1 #

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1189 lines, -1198 lines) Patch
M lib/runtime/dart_sdk.js View 1 645 chunks +999 lines, -1004 lines 0 comments Download
M lib/src/compiler/code_generator.dart View 1 8 chunks +57 lines, -60 lines 0 comments Download
M test/browser/language_tests.js View 1 1 chunk +3 lines, -0 lines 0 comments Download
M test/browser/runtime_tests.js View 1 chunk +1 line, -1 line 0 comments Download
M test/codegen/expect/BenchmarkBase.js View 2 chunks +2 lines, -2 lines 0 comments Download
M test/codegen/expect/DeltaBlue.js View 1 16 chunks +31 lines, -31 lines 0 comments Download
M test/codegen/expect/cascade.js View 1 3 chunks +4 lines, -4 lines 0 comments Download
M test/codegen/expect/closure.js View 1 3 chunks +5 lines, -5 lines 0 comments Download
M test/codegen/expect/constructors.js View 7 chunks +28 lines, -28 lines 0 comments Download
M test/codegen/expect/covariance.js View 1 2 chunks +3 lines, -3 lines 0 comments Download
M test/codegen/expect/expect.js View 2 chunks +8 lines, -8 lines 0 comments Download
M test/codegen/expect/expect/expect.js View 2 chunks +8 lines, -8 lines 0 comments Download
M test/codegen/expect/extensions.js View 1 chunk +2 lines, -2 lines 0 comments Download
M test/codegen/expect/fieldtest.js View 1 3 chunks +4 lines, -4 lines 0 comments Download
M test/codegen/expect/js/js.js View 1 chunk +4 lines, -4 lines 0 comments Download
M test/codegen/expect/methods.js View 1 2 chunks +2 lines, -2 lines 0 comments Download
M test/codegen/expect/misc.js View 3 chunks +4 lines, -4 lines 0 comments Download
M test/codegen/expect/notnull.js View 1 chunk +1 line, -1 line 0 comments Download
M test/codegen/expect/opassign.js View 1 chunk +1 line, -1 line 0 comments Download
M test/codegen/expect/sunflower/sunflower.js View 1 2 chunks +6 lines, -6 lines 0 comments Download
M test/codegen/expect/sunflower/sunflower.js.map View 1 1 chunk +1 line, -1 line 0 comments Download
M test/codegen/expect/temps.js View 2 chunks +4 lines, -4 lines 0 comments Download
M tool/input_sdk/private/ddc_runtime/classes.dart View 1 1 chunk +11 lines, -15 lines 0 comments Download

Messages

Total messages: 16 (4 generated)
Jennifer Messerly
Disclaimers: * no idea if this improves overall performance, but it removes some of the ...
4 years, 7 months ago (2016-05-11 22:48:02 UTC) #3
sra1
I think this is a good change. There was a slight performance improvement in DeltaBlue, ...
4 years, 7 months ago (2016-05-14 19:36:41 UTC) #5
sra1
V8 still can't optimize DDC constructors. The issue appears to be use of 'arguments' other ...
4 years, 7 months ago (2016-05-14 20:18:27 UTC) #6
sra1
On 2016/05/14 20:18:27, sra1 wrote: > V8 still can't optimize DDC constructors. > The issue ...
4 years, 7 months ago (2016-05-15 00:26:33 UTC) #7
vsm
On 2016/05/15 00:26:33, sra1 wrote: > On 2016/05/14 20:18:27, sra1 wrote: > > V8 still ...
4 years, 7 months ago (2016-05-16 15:35:40 UTC) #8
sra1
On 2016/05/16 15:35:40, vsm wrote: > On 2016/05/15 00:26:33, sra1 wrote: > > On 2016/05/14 ...
4 years, 7 months ago (2016-05-16 15:48:01 UTC) #9
vsm
On 2016/05/16 15:48:01, sra1 wrote: > On 2016/05/16 15:35:40, vsm wrote: > > On 2016/05/15 ...
4 years, 7 months ago (2016-05-16 15:52:10 UTC) #10
Jennifer Messerly
On 2016/05/16 15:52:10, vsm wrote: > On 2016/05/16 15:48:01, sra1 wrote: > > On 2016/05/16 ...
4 years, 7 months ago (2016-05-17 17:53:31 UTC) #11
Jennifer Messerly
On 2016/05/17 17:53:31, John Messerly wrote: > On 2016/05/16 15:52:10, vsm wrote: > > On ...
4 years, 7 months ago (2016-05-17 20:53:41 UTC) #12
Jennifer Messerly
On 2016/05/17 20:53:41, John Messerly wrote: > On 2016/05/17 17:53:31, John Messerly wrote: > > ...
4 years, 7 months ago (2016-05-17 20:56:13 UTC) #13
Leaf
lgtm
4 years, 7 months ago (2016-05-17 21:32:06 UTC) #14
Jennifer Messerly
4 years, 7 months ago (2016-05-17 21:37:02 UTC) #16
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
636fcb68f780bcd38c1aab908dfd432f511df08d (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698