Commit Graph

4835 Commits

Author SHA1 Message Date
floitsch@google.com 021b7412fc Revert "dart2js: simplify ssa-generate constant."
This reverts commit r41715.

Review URL: https://codereview.chromium.org//724093002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41720 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-13 16:38:39 +00:00
sigurdm@google.com c8c308bbf7 Set up a stub pipline for using the new cps-based ir to generate js.
The code is only activated when enabling
environment variable USE_CPS_IR.

R=floitsch@google.com

Review URL: https://codereview.chromium.org//716823002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41716 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-13 14:57:33 +00:00
floitsch@google.com 206603431b dart2js: simplify ssa-generate constant.
The registry was already doing the work that was in generateConstant.

R=sigurdm@google.com

Review URL: https://codereview.chromium.org//721093003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41715 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-13 14:40:12 +00:00
floitsch@google.com c1d34a1234 dart2js: Don't emit additional precompiled file.
R=johnniwinther@google.com, rnystrom@google.com

Committed: https://code.google.com/p/dart/source/detail?r=41657
Reverted: https://code.google.com/p/dart/source/detail?r=41659

Review URL: https://codereview.chromium.org//700123002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41711 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-13 12:15:53 +00:00
johnniwinther@google.com 43bc55bcfd Replace ResolvedNode by ConstantExpression.
BUG=http://dartbug.com/21493
R=sigurdm@google.com

Review URL: https://codereview.chromium.org//716913005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41709 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-13 10:22:30 +00:00
floitsch@google.com fa10f0b77d Revert "Emit warning on import of dart:mirrors."
This reverts commit r41688.

Review URL: https://codereview.chromium.org//717103004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41692 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-12 15:28:40 +00:00
herhut@google.com 0970d6a2f9 Avoid emmitting is test for Function if superclass already has it.
R=johnniwinther@google.com
BUG=

Review URL: https://codereview.chromium.org//723523003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41690 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-12 14:38:57 +00:00
johnniwinther@google.com 88c7dfa8f7 Emit warning on import of dart:mirrors.
BUG=
R=floitsch@google.com

Review URL: https://codereview.chromium.org//588183002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41688 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-12 13:19:59 +00:00
johnniwinther@google.com 8fe2fc93aa Update enum encoding to latest spec.
BUG=
R=floitsch@google.com

Review URL: https://codereview.chromium.org//718703002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41685 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-12 08:06:52 +00:00
sra@google.com 21faca5061 --trust-primitives: Remove bounds checks and receiver and argument type checks
The model is that if your program is tested and never
  - has a bounds error on a primitive array
  - tries to do arithmetic on null
then when compiled with --trust-primitive it will produce the same
answer, but with smaller and faster code.

R=floitsch@google.com

Review URL: https://codereview.chromium.org//703083002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41682 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-12 02:31:36 +00:00
johnniwinther@google.com dd75144822 Add compile-time errors for enums.
BUG=
R=floitsch@google.com

Review URL: https://codereview.chromium.org//709603003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41663 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-11 12:58:42 +00:00
floitsch@google.com 5f944a56da Revert "dart2js: Don't emit additional precompiled file."
This reverts commit r41657.

Review URL: https://codereview.chromium.org//689633007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41659 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-11 10:20:28 +00:00
floitsch@google.com 8edab4fba5 dart2js: Don't emit additional precompiled file.
R=johnniwinther@google.com

Review URL: https://codereview.chromium.org//700123002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41657 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-11 09:47:08 +00:00
johnniwinther@google.com 0b394b0f2e Support enums in dart2js.
- still missing warnings/errors.

BUG=https://code.google.com/p/dart/issues/detail?id=21417
R=floitsch@google.com

Review URL: https://codereview.chromium.org//707463003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41654 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-11 08:28:32 +00:00
floitsch@google.com b07b2ce66a dart2js: Trust type annotations more often with --trust-type-annotation.
R=sra@google.com

Committed: https://code.google.com/p/dart/source/detail?r=41636
Reverted: https://code.google.com/p/dart/source/detail?r=41637

Review URL: https://codereview.chromium.org//707493003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41639 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-10 16:53:44 +00:00
floitsch@google.com c265e061e2 Revert "dart2js: Trust type annotations more often with --trust-type-annotation."
This reverts commit r41636.

Review URL: https://codereview.chromium.org//712093002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41637 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-10 16:20:34 +00:00
floitsch@google.com 85973b4ae6 dart2js: Trust type annotations more often with --trust-type-annotation.
R=sra@google.com

Review URL: https://codereview.chromium.org//707493003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41636 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-10 15:50:14 +00:00
sigurdm@google.com f2e2784cea Deferred hunks had a . too much in their file names.
R=floitsch@google.com

Review URL: https://codereview.chromium.org//639333002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41634 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-10 13:45:35 +00:00
sigurdm@google.com bab7073aff Support for labels in non-loop code in new dart backend
Still no support for `switch`

R=kmillikin@google.com

Review URL: https://codereview.chromium.org//688663002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41631 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-10 13:26:08 +00:00
ahe@google.com be1780291d Update darttags to package:compiler.
R=johnniwinther@google.com

Review URL: https://codereview.chromium.org//689553004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41626 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-10 11:41:12 +00:00
floitsch@google.com ddd95b1c5a dart2js: Use type-checks in later operations.
We correctly GVNed type-checks (in checked mode), but we didn't always use the checks in later operations.

R=herhut@google.com

Review URL: https://codereview.chromium.org//699593004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41605 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-07 13:58:23 +00:00
kmillikin@google.com 1373b7a53d Revert "Revert "dart2js: Add a type parameter to class Reference....""
This reapplies svn commit r41564, with fixes to the dart2js intermediate
representation (IR) tests.  The tests explicitly construct IR expressions
and so need to be updated.  Some of the tests are currently invalid
expressions, which have been removed.

BUG=
R=sigurdm@google.com

Review URL: https://codereview.chromium.org//708993003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41603 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-07 13:21:53 +00:00
floitsch@google.com 16c99200c3 dart2js: Accept named holes in js-templates.
R=sigurdm@google.com, sra@google.com

Review URL: https://codereview.chromium.org//671513013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41601 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-07 12:45:33 +00:00
johnniwinther@google.com 6e6362efd4 Support local functions in analyzer2dart.
BUG=
R=paulberry@google.com, sigurdm@google.com

Review URL: https://codereview.chromium.org//701123002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41600 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-07 12:33:35 +00:00
johnniwinther@google.com c8cc5451d3 Support parsing of enums in dart2js.
Revived from https://codereview.chromium.org/282453004

BUG=
R=floitsch@google.com

Review URL: https://codereview.chromium.org//698563005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41595 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-07 09:34:56 +00:00
floitsch@google.com 8ee3e22c44 Revert "dart2js: Add a type parameter to class Reference in the CPS IR."
This reverts commit r41564.

Review URL: https://codereview.chromium.org//708793002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41565 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-06 16:24:34 +00:00
kmillikin@google.com 7c983e8477 dart2js: Add a type parameter to class Reference in the CPS IR.
It's useful to know when references are to continuations or primitives,
and to avoid mixing them --- currently, continuations are not
first-class and cannot appear where a primitive is expected and vice
versa.

BUG=
R=johnniwinther@google.com, karlklose@google.com, sigurdm@google.com

Review URL: https://codereview.chromium.org//705023002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41564 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-06 15:49:52 +00:00
herhut@google.com a1d4736699 Revert "Drop trailing null arguments in generated JS."
This reverts revision 41555.

BUG=
TBR=sigurdm@google.com

Review URL: https://codereview.chromium.org//702423002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41560 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-06 14:18:07 +00:00
sigurdm@google.com 13d5728d47 Avoid resetting collectors when calling finnishClasses from deferred.
I would love to add a test to this cl, but have not been
able to reduce the example given in the bug report.

BUG= dartbug.com/21382
R=floitsch@google.com

Review URL: https://codereview.chromium.org//705023003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41556 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-06 13:29:03 +00:00
herhut@google.com ff1a6b9bc5 Drop trailing null arguments in generated JS.
BUG=
R=floitsch@google.com

Review URL: https://codereview.chromium.org//575013002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41555 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-06 13:18:56 +00:00
johnniwinther@google.com 713e95822c Fix import in compile_loop.dart.
BUG=
R=ahe@google.com

Review URL: https://codereview.chromium.org//700163002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41554 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-06 13:17:31 +00:00
herhut@google.com c072714d55 Encode super calls via extra properties on prototypes.
BUG=
R=floitsch@google.com, sra@google.com

Review URL: https://codereview.chromium.org//693883003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41550 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-06 12:19:47 +00:00
johnniwinther@google.com 09fbe78e71 Move dart2js from sdk/lib/_internal/compiler to pkg/compiler
BUG=

Review URL: https://codereview.chromium.org//694353007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41514 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-05 08:51:01 +00:00
johnniwinther@google.com 8637cfd322 Revert "Move dart2js from sdk/lib/_internal/compiler to pkg/compiler"
This reverts commit r41512.

BUG=

Review URL: https://codereview.chromium.org//693183006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41513 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-05 08:15:26 +00:00
johnniwinther@google.com 2b336e17f0 Move dart2js from sdk/lib/_internal/compiler to pkg/compiler
BUG=

Review URL: https://codereview.chromium.org//690103004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41512 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-05 07:09:04 +00:00