Commit Graph

4698 Commits

Author SHA1 Message Date
sigurdm@google.com 4150b44a24 Fix checked-mode return for async-functions.
BUG= dartbug.com/22332
R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43719 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-12 09:35:44 +00:00
sra@google.com 5852e9ef90 Redo "Steps towards making dart2js JS AST templates an indepentent library."
Adds fix for dart2js_incremental

TBR=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43712 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-12 01:58:01 +00:00
sra@google.com ba909cfb3e Revert "Redo "Steps towards making dart2js JS AST templates an indepentent library.""
Investigating failure of dart2js_incremental.

TBR=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43710 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-12 01:18:03 +00:00
sra@google.com b1a31838f2 Redo "Steps towards making dart2js JS AST templates an indepentent library."
TBR=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43703 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-11 22:52:24 +00:00
sra@google.com 068d8a7349 Revert "Steps towards making dart2js JS AST templates an indepentent library."
Investigating snapshot issues.

TBR=floitsch@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43696 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-11 18:43:07 +00:00
sra@google.com 4585a0df9d Steps towards making dart2js JS AST templates an indepentent library.
- Removed unused type Blob
- Remove use of CodeBuffer, Compiler, SourceInformation
- Moved existing code into library js_ast
- Added new library js that re-exports js_ast and adds dart2js specific code.

The next step is to move the code into its own package under pkg.

BUG=
R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43695 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-11 18:24:43 +00:00
asgerf@google.com ec384eb0ad dart2js cps: Handle optional parameters in builder.
For static invocations, default values are inlined.

For all invocations, named parameters are reordered alphabetically.

BUG=
R=karlklose@google.com

Committed: https://code.google.com/p/dart/source/detail?r=43643

Reverted: https://code.google.com/p/dart/source/detail?r=43679

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43684 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-11 15:13:40 +00:00
asgerf@google.com 096a40419e Revert "dart2js cps: Handle optional parameters in builder."
This reverts commit 43643.

BUG=
R=johnniwinther@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43679 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-11 10:19:25 +00:00
zarah@google.com c7a791d13c dart2js: store typeVariableReader stubs in the model.
R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43677 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-11 09:49:06 +00:00
floitsch@google.com 1baffdd2da dart2js: fix deferred loading in the new emitter.
Only works in drt/browser for now.

R=zarah@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43654 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-10 15:33:29 +00:00
floitsch@google.com 41e936ef00 Extract invoke-main stub generator.
R=zarah@google.com

Committed: https://code.google.com/p/dart/source/detail?r=43644

Reverted: https://code.google.com/p/dart/source/detail?r=43649

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43653 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-10 15:22:43 +00:00
johnniwinther@google.com 986ce5c39c Support default constructors in analyzer2dart.
BUG=
R=paulberry@google.com, sigurdm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43652 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-10 15:18:36 +00:00
sigurdm@google.com 18e885d1ea Use a VariableUse instead of VariableDeclaration for left-hand side of
assignments.

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43651 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-10 15:13:19 +00:00
floitsch@google.com 7955b2d856 Revert "Extract invoke-main stub generator."
This reverts commit r43644.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43649 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-10 15:00:31 +00:00
sigurdm@google.com 454602332b Only schedule the execution of an async* when the stream is
subscribed to.

BUG=
R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43646 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-10 14:19:54 +00:00
floitsch@google.com 7aa556dcbd Extract invoke-main stub generator.
R=zarah@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43644 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-10 13:39:15 +00:00
asgerf@google.com febb77ce10 dart2js cps: Handle optional parameters in builder.
For static invocations, default values are inlined.

For all invocations, named parameters are reordered alphabetically.

BUG=
R=karlklose@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43643 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-10 13:36:58 +00:00
floitsch@google.com ddc1701c8c dart2js: make "CREATE_JS_ISOLATE" an embedded global.
R=zarah@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43642 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-10 13:08:42 +00:00
zarah@google.com 5e0dd0affd dart2js: don't emit unneeded tear-off data in the new emitter.
R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43639 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-10 12:00:48 +00:00
johnniwinther@google.com 827e265786 Revert "Add sharedfrontend package"
This reverts commit r43635.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43637 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-10 11:32:18 +00:00
johnniwinther@google.com d7118339b5 Add sharedfrontend package
- initial element model includes Element, LibraryElement and ClassElement
- AccessSemantics moved to sharedfrontend to be utilized from both analyzer2dart and dart2js.

BUG=
R=brianwilkerson@google.com, paulberry@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43635 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-10 10:44:56 +00:00
asgerf@google.com fbf1f00690 cps2js: Bugfix in named parameters in call to superconstructor.
BUG=
R=karlklose@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43633 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-10 10:31:22 +00:00
johnniwinther@google.com 4f5b823f9b Fix yield for dart2dart minified.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43629 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-10 09:25:50 +00:00
johnniwinther@google.com 6fcf4caa95 Refactor handling of source map information.
BUG=
R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43595 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-09 15:04:00 +00:00
johnniwinther@google.com aa5e543b8b Allow sync *, async * and yield * in dart2js
BUG=http://dartbug.com/22234
R=sigurdm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43593 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-09 14:26:03 +00:00
asgerf@google.com 990e824303 dart2dart: Fix bad type annotation in backend_ast_emitter.
Issue: https://code.google.com/p/dart/issues/detail?id=22326

R=kmillikin@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43592 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-09 12:38:20 +00:00
sigurdm@google.com 7b0bc3d220 Implementation of async-await transformation on js ast.
BUG=
R=floitsch@google.com, johnniwinther@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43591 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-09 12:02:52 +00:00
asgerf@google.com f72a18378b Revert "dart2js: Refactoring, documentation, and a few bugfixes in Namer class."
This reverts commit r43588.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43590 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-09 11:58:07 +00:00
asgerf@google.com c767597da3 dart2js: Refactoring, documentation, and a few bugfixes in Namer class.
See long doc comment in namer.dart.

BUG=
R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43588 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-09 11:31:10 +00:00
zarah@google.com c839cece99 dart2js: add constructor for directly instatiated mixin classes in the new emitter.
R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43553 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-06 14:27:48 +00:00
karlklose@google.com 8175ce696b Fix merge error: Call visitExpression instead of visit.
R=asgerf@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43551 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-06 11:57:30 +00:00
herhut@google.com 44541ff62b Support [AssumeDynamic] and [TrustTypeAnnotations] in the inferrer.
BUG=
R=floitsch@google.com, johnniwinther@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43550 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-06 11:38:46 +00:00
karlklose@google.com 2b8950be87 cps-ir: Implement string concatenation.
R=kmillikin@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43549 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-06 11:36:27 +00:00
karlklose@google.com 055f09c02b cps-ir: Correctly bailout on unresolved static calls.
This adds a better error message and the ability to fallback to the old backend when compiling code like this:
  main() { new foo(); }
and
  class C {}
  main() { C.foo(); }

R=asgerf@google.com, kmillikin@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43548 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-06 10:36:04 +00:00
zarah@google.com c544068f6f dart2js: add common names to mangledGlobalNames in new emitter.
R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43545 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-06 08:52:15 +00:00
karlklose@google.com e45aaa58e4 Move matching of arguments/selector against signature out of buildStaticInvoke.
R=sigurdm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43544 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-06 08:32:05 +00:00
johnniwinther@google.com 9d9b462cc5 Add test annotations to package:expect
BUG=
R=floitsch@google.com, herhut@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43510 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-05 16:29:26 +00:00
karlklose@google.com ceb96ac0b7 Use type argument for abstract values.
R=asgerf@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43507 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-05 15:09:38 +00:00
karlklose@google.com 230f4bf5c8 Remove visit and override visitExpression instead to make sure we check that the code produced for subexpressions is not null.
R=asgerf@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43506 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-05 15:07:58 +00:00
karlklose@google.com 10ba25da95 Rename CspFunctionCompiler to CpsFunctionCompiler.
R=sigurdm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43502 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-05 11:47:40 +00:00
johnniwinther@google.com ddc57facd6 Update yield warnings.
BUG=http://dartbug.com/22260
R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43500 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-05 11:38:40 +00:00
zarah@google.com b052fa847d dart2js: fix method setup on mixin classes in the new emitter.
R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43499 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-05 10:59:31 +00:00
zarah@google.com 0eff3bbea5 dart2js: fix setter name in new emitter.
R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43498 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-05 10:51:25 +00:00
karlklose@google.com 2ad9020c1d Support intercepted getters, setters and index operations.
R=asgerf@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43471 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-04 15:31:24 +00:00
zarah@google.com b495977f21 dart2js: fix getter name in new emitter.
R=herhut@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43470 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-04 15:20:30 +00:00
johnniwinther@google.com 7ef82b92ad Fix async_test problems.
+ disallow async modifier on setters.

BUG=
R=sigurdm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43465 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-04 12:41:49 +00:00
herhut@google.com cb7a8ae94e Fix merging issue in new emitter.
BUG=
R=zarah@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43461 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-04 11:29:21 +00:00
floitsch@google.com 662217e93c dart2js: support native classes in the new emitter.
R=zarah@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43457 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-04 09:42:19 +00:00
floitsch@google.com 05c54a2ab3 dart2js: Remove heap-growth-flag that was passed to the VM.
R=iposva@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43441 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-03 22:24:47 +00:00
herhut@google.com a8fb2699a5 Add support for super aliases to new emitter.
BUG=
R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43439 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-03 22:08:28 +00:00