Commit Graph

106 Commits

Author SHA1 Message Date
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
floitsch@google.com b06ece7160 dart2js: Rename metadataEmitter to metadataCollector and make it independent of old emitter.
R=herhut@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43293 260f80e4-7a28-3924-810f-c04153c831b5
2015-01-29 16:05:58 +00:00
herhut@google.com d7d9541c39 Suffix temporary API for incremental compilation in program_builder with HackForIncrementalCompilation.
BUG=
R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43286 260f80e4-7a28-3924-810f-c04153c831b5
2015-01-29 14:50:21 +00:00
herhut@google.com 4183152a6a Fix wrong type annotation in incremental compiler.
BUG=
TBR=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43284 260f80e4-7a28-3924-810f-c04153c831b5
2015-01-29 14:25:09 +00:00
herhut@google.com 52473bd7ba Move computation of method flags into model.
BUG=
R=floitsch@google.com, zarah@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43279 260f80e4-7a28-3924-810f-c04153c831b5
2015-01-29 12:56:04 +00:00
floitsch@google.com 993755261e Address comments frorm https://codereview.chromium.org/871073002/
Review URL: https://codereview.chromium.org//885673002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43245 260f80e4-7a28-3924-810f-c04153c831b5
2015-01-28 16:25:16 +00:00
floitsch@google.com 9f1e8b9c66 Fix incremental compiler.
Review URL: https://codereview.chromium.org//883503007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43179 260f80e4-7a28-3924-810f-c04153c831b5
2015-01-27 12:49:43 +00:00
floitsch@google.com d5377710ba dart2js: native classes go through the normal code path.
R=herhut@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43178 260f80e4-7a28-3924-810f-c04153c831b5
2015-01-27 12:14:55 +00:00
floitsch@google.com 7a3a84f249 dart2js: add work-around hack for try.
Review URL: https://codereview.chromium.org//871073002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43109 260f80e4-7a28-3924-810f-c04153c831b5
2015-01-23 15:40:00 +00:00
ahe@google.com 3b1cb964ff Push updates to browser.
R=kasperl@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43063 260f80e4-7a28-3924-810f-c04153c831b5
2015-01-22 10:02:20 +00:00
ahe@google.com 34512168d9 Rename $dart_unsafe_eval to $dart_unsafe_incremental_support.
R=kasperl@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43061 260f80e4-7a28-3924-810f-c04153c831b5
2015-01-22 09:50:07 +00:00
ahe@google.com b7a74889cf Server responds to compilation requests.
Changes are compiled incrementally and served from memory.

R=kasperl@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43010 260f80e4-7a28-3924-810f-c04153c831b5
2015-01-20 14:31:55 +00:00
ahe@google.com 29003ae816 Refactor to use streams for reusability.
R=kasperl@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43009 260f80e4-7a28-3924-810f-c04153c831b5
2015-01-20 14:29:16 +00:00
ahe@google.com 77879dcf47 File watching compiler.
R=kasperl@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43004 260f80e4-7a28-3924-810f-c04153c831b5
2015-01-20 10:47:05 +00:00
ahe@google.com e44336ee95 Use async/await.
R=kasperl@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@42993 260f80e4-7a28-3924-810f-c04153c831b5
2015-01-19 14:53:17 +00:00
ahe@google.com 23649df389 Make server more resilient.
R=kasperl@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@42987 260f80e4-7a28-3924-810f-c04153c831b5
2015-01-19 12:50:06 +00:00
ahe@google.com baa655e051 Add hook for compiling to JavaScript.
R=kasperl@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@42984 260f80e4-7a28-3924-810f-c04153c831b5
2015-01-19 11:37:27 +00:00
ahe@google.com 31fa1c0df9 Add server options.
R=kasperl@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@42983 260f80e4-7a28-3924-810f-c04153c831b5
2015-01-19 10:24:45 +00:00
ahe@google.com e976523a6f Remove unneeded stuff from server
R=kasperl@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@42982 260f80e4-7a28-3924-810f-c04153c831b5
2015-01-19 10:23:47 +00:00
ahe@google.com 5f635ba148 Copy site/try/project_server.dart to pkg/dart2js_incremental/lib/
R=kasperl@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@42976 260f80e4-7a28-3924-810f-c04153c831b5
2015-01-19 08:10:54 +00:00
floitsch@google.com 2daf605ba3 dart2js: use bool to track if an app has native classes.
No need to keep a list of native classes, if we only want to know if there are some.

R=zarah@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@42956 260f80e4-7a28-3924-810f-c04153c831b5
2015-01-16 14:16:21 +00:00
floitsch@google.com 98bf79104d Don't clear the global metadata during incremental compilation.
Review URL: https://codereview.chromium.org//850343004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@42930 260f80e4-7a28-3924-810f-c04153c831b5
2015-01-15 20:08:42 +00:00
floitsch@google.com 4ea72f94af Fix typo in caching compiler.
Review URL: https://codereview.chromium.org//812033013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@42925 260f80e4-7a28-3924-810f-c04153c831b5
2015-01-15 19:01:36 +00:00
floitsch@google.com e6aa0d67a5 dart2js: Clear tables during incremental compilation.
R=ahe@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@42865 260f80e4-7a28-3924-810f-c04153c831b5
2015-01-14 13:01:42 +00:00
ahe@google.com 5ec13e7ab7 Remove CompilerCancelledException.
Review URL: https://codereview.chromium.org//848003002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@42862 260f80e4-7a28-3924-810f-c04153c831b5
2015-01-14 12:51:41 +00:00
johnniwinther@google.com 0192ea71fc Emit to StreamCodeOutput instead of CodeBuffer.
BUG=
R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@42801 260f80e4-7a28-3924-810f-c04153c831b5
2015-01-13 09:14:25 +00:00
zarah@google.com 009cd7ff71 dart2js: Change name and comment of the flag needsArrayInitializerSupport.
R=ahe@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@42685 260f80e4-7a28-3924-810f-c04153c831b5
2015-01-08 10:28:32 +00:00
floitsch@google.com 270bbb32ab dart2js: Remove unused variable.
R=ahe@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@42655 260f80e4-7a28-3924-810f-c04153c831b5
2015-01-07 13:08:37 +00:00
zarah@google.com 292cd0cfbe Avoid emitting addStubs and tearOffCode when not needed.
R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@42654 260f80e4-7a28-3924-810f-c04153c831b5
2015-01-07 13:07:38 +00:00
johnniwinther@google.com a2dddc825a Remove Compiler.assembledCode.
BUG=
R=floitsch@google.com

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@42623 260f80e4-7a28-3924-810f-c04153c831b5
2015-01-06 11:06:23 +00:00
johnniwinther@google.com f4b878129c Revert "Remove Compiler.assembledCode."
This reverts commit r42592.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@42594 260f80e4-7a28-3924-810f-c04153c831b5
2015-01-05 14:38:00 +00:00
floitsch@google.com dfa4263d5d dart2js: fix typo in incremental compilation fix.
Review URL: https://codereview.chromium.org//836573003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@42593 260f80e4-7a28-3924-810f-c04153c831b5
2015-01-05 14:13:56 +00:00
johnniwinther@google.com fbc1274183 Remove Compiler.assembledCode.
BUG=
R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@42592 260f80e4-7a28-3924-810f-c04153c831b5
2015-01-05 14:06:51 +00:00
floitsch@google.com d910a9f4ec dart2js: Fix incremental compilation.
Review URL: https://codereview.chromium.org//835123002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@42590 260f80e4-7a28-3924-810f-c04153c831b5
2015-01-05 12:54:10 +00:00
zarah@google.com d6e525de1d dart2js OldEmitter: inline FinishClasses.
R=floitsch@google.com

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@42585 260f80e4-7a28-3924-810f-c04153c831b5
2015-01-05 09:15:45 +00:00
ahe@google.com a7b3af240e Incremental compilation of libraries with multiple parts.
R=johnniwinther@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@42506 260f80e4-7a28-3924-810f-c04153c831b5
2014-12-19 13:43:54 +00:00
ahe@google.com efb718eb6b Incremental compiler detects when library graph changes.
Also, don't suppress all exceptions as it hid errors in the test.

R=johnniwinther@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@42505 260f80e4-7a28-3924-810f-c04153c831b5
2014-12-19 13:13:23 +00:00
ahe@google.com 31e791cee5 Refactor LibraryUpdater to prepare for parts.
R=johnniwinther@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@42384 260f80e4-7a28-3924-810f-c04153c831b5
2014-12-16 12:13:09 +00:00
ahe@google.com 21898d5c49 Incremental compilation: correctly track emitted constants.
R=johnniwinther@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@42314 260f80e4-7a28-3924-810f-c04153c831b5
2014-12-12 11:46:51 +00:00
ahe@google.com c3bfe34ce7 Follow up to CL 764533002.
R=johnniwinther@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@42284 260f80e4-7a28-3924-810f-c04153c831b5
2014-12-11 13:23:51 +00:00
ahe@google.com 45b6278167 Incremental compilation of constants.
R=floitsch@google.com, johnniwinther@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@42283 260f80e4-7a28-3924-810f-c04153c831b5
2014-12-11 13:21:48 +00:00
ahe@google.com aaa9d916ef Track emitted classes in incremental compiler.
R=johnniwinther@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@42282 260f80e4-7a28-3924-810f-c04153c831b5
2014-12-11 13:12:49 +00:00
floitsch@google.com 5efaab77f4 Update incremental compiler.
Review URL: https://codereview.chromium.org//789253005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@42263 260f80e4-7a28-3924-810f-c04153c831b5
2014-12-10 20:42:40 +00:00
ahe@google.com 29356bf94a Incremental compilation of new lazy statics.
R=johnniwinther@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@42243 260f80e4-7a28-3924-810f-c04153c831b5
2014-12-10 14:15:56 +00:00
ahe@google.com 5a35c6fd0e Incremental compiler: support optional arguments.
R=johnniwinther@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@42235 260f80e4-7a28-3924-810f-c04153c831b5
2014-12-10 08:08:12 +00:00
ahe@google.com 57285d2105 Incremental compilation handles indirectly instantiated classes.
R=johnniwinther@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@42205 260f80e4-7a28-3924-810f-c04153c831b5
2014-12-09 13:06:58 +00:00
zarah@google.com c4044560cf Move elementAccess from namer to emitter.
R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@42130 260f80e4-7a28-3924-810f-c04153c831b5
2014-12-05 08:30:16 +00:00
ahe@google.com 590e8b06a2 Incremental compiler: Use addStubs for adding methods.
R=johnniwinther@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@42042 260f80e4-7a28-3924-810f-c04153c831b5
2014-12-01 14:11:34 +00:00
ahe@google.com 37a31f6bc4 Always enable RTI for incremental compilation.
R=johnniwinther@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@42036 260f80e4-7a28-3924-810f-c04153c831b5
2014-12-01 10:31:26 +00:00
ahe@google.com dd9e8ee3a4 Disable super-aliases during incremental compilation.
R=herhut@google.com, johnniwinther@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@42035 260f80e4-7a28-3924-810f-c04153c831b5
2014-12-01 10:06:10 +00:00