Sigmund Cherem
91c8754a05
Preserve the original semantics in the poi tests.
...
R=het@google.com
Review URL: https://codereview.chromium.org/2016013002 .
2016-05-26 12:41:33 -07:00
Harry Terkelsen
9850a83bdb
fix poi test
...
Fixes #26538
Review URL: https://codereview.chromium.org/2012233003 .
2016-05-26 11:01:12 -07:00
Sigmund Cherem
b741e3f0df
Make CompilerTask independent of compiler.
...
Now this base class only has logic for measuring time.
R=het@google.com , johnniwinther@google.com
Review URL: https://codereview.chromium.org/2000323006 .
2016-05-25 09:11:08 -07:00
Sigmund Cherem
0b29970605
Build sdk.json without source-mirrors.
...
This basically removes the dependency on source-mirrors from the try site and will let us delete source-mirrors from the compiler.
I was a torn for a bit about how to replace the logic here. I considered these 4
options:
(a) directly use the compiler internal APIs to crawl for reachable libraries.
(b) use `analyze-all`, then iterate over the resolved libraries.
(c) avoid parsing altogether, just enumerate recursively all files under
sdk/lib/ and create the json file that way.
(d) submit a fixed version of the sdk, since we unlikely need it up-to-date
for the site/try tests
I decided decided to go with (c) in this CL. It's simple and, given that the
only purpose is to preserve the site/try tests until we replace them, it seems
like the option that will slow us down the least (it makes the .json file
bigger, but that's OK now that this is not a service in use). It seemed
unnecessary to do full resolution, so I wasn't convinced of doing (b), but I did experiment with (a) now that we are
making the frontend libraries easier to use on their own. The result was OK (see
https://codereview.chromium.org/2003233002/ ), but probably not worth submitting
because we'd have to remember to update the code every time we modify the
internal dart2js APIs. I rather have the code in that CL be a test instead.
R=het@google.com
Review URL: https://codereview.chromium.org/2006993002 .
2016-05-24 09:50:06 -07:00
William Hesse
634e5a1d02
Refs #25328 Use a portable shebang
...
BSD systems don't place bash in /bin and a lot of the dart tools
hardcode a #!/bin/bash shebang that fails the 'all' target build
(not able to execute dart2js since the interpreter is not found).
Solve the issue by using #!/usr/bin/env as the shebang. For scripts
that need to pass arguments to bash modify the script to use the set
command as the first executed line of shell.
BUG=
R=whesse@google.com
Review URL: https://codereview.chromium.org/1552313002 .
2016-01-05 16:26:28 +01:00
Ivan Posva
a8d69698b6
- Fix use of Platform.packageRoot.
...
BUG=
Review URL: https://codereview.chromium.org/1536873002 .
2015-12-17 14:20:51 -08:00
William Hesse
db90a9ff35
Revert "Remove third_party/pkg/petitparser and third_party/pkg/intl"
...
This reverts commit 58ea2fbce6
.
See comments at https://codereview.chromium.org//1332963002
BUG=
Review URL: https://codereview.chromium.org/1523343007 .
2015-12-17 11:22:35 +01:00
William Hesse
58ea2fbce6
Remove third_party/pkg/petitparser and third_party/pkg/intl
...
BUG=
R=ricow@google.com
Review URL: https://codereview.chromium.org//1332963002 .
2015-12-16 14:48:19 +01:00
William Hesse
d6fe4122ec
Remove third_party/font-awesome and its use in site/try.
...
BUG=
R=sgjesse@google.com
Review URL: https://codereview.chromium.org/1528893002 .
2015-12-16 14:43:23 +01:00
Johnni Winther
2888b210a4
Remove hints in build of try
...
Closes #24470 and #24435
This doesn't fix the underlying (but unreported!) errors.
R=whesse@google.com
Review URL: https://codereview.chromium.org//1384473002 .
2015-10-01 13:32:16 +02:00
Johnni Winther
f2b7b06bb9
Fix try
...
BUG=
Review URL: https://codereview.chromium.org//1376413002 .
2015-10-01 12:24:38 +02:00
Johnni Winther
a158723177
Fix try (again!)
...
BUG=
Review URL: https://codereview.chromium.org//1341253002 .
2015-09-15 10:28:51 +02:00
Johnni Winther
d6db26f912
Split parser/listener.dart, parser/class_element_listener.dart and tokens/token.dart into smaller libraries
...
BUG=
R=karlklose@google.com
Review URL: https://codereview.chromium.org//1311783012 .
2015-09-02 15:55:19 +02:00
Johnni Winther
ee54b9e3cd
Move parser and token related libraries into their own subfolder.
...
BUG=
R=karlklose@google.com
Review URL: https://codereview.chromium.org//1313073007 .
2015-09-02 12:07:00 +02:00
Johnni Winther
f5a7be0c17
Split scannerlib.dart into several libraries.
...
BUG=
R=karlklose@google.com
Review URL: https://codereview.chromium.org//1315483006 .
2015-09-01 15:39:31 +02:00
Johnni Winther
a7c720f61b
Remove dart2jslib.dart
...
dart2jslib.dart is deleted
compiler.dart is a library containing mainly Compiler
other parts of compiler.dart move according to the listing in https://codereview.chromium.org/1280343002/
R=sigmund@google.com
Review URL: https://codereview.chromium.org//1284593003 .
2015-08-12 08:42:46 +02:00
Johnni Winther
f9ea40f971
More fixes to try.
...
BUG=
Review URL: https://codereview.chromium.org//1268393004 .
2015-08-11 10:08:33 +02:00
Johnni Winther
dab1aaae45
Move dart2jslib parts into separate libraries.
...
BUG=
R=karlklose@google.com , sigmund@google.com
Committed: 4474acf36b
Reverted: 5af4843432
Review URL: https://codereview.chromium.org//1284673003 .
2015-08-11 09:56:49 +02:00
Johnni Winther
a7c64e6f09
Fix try/web/end_to_end_test
...
BUG=
Review URL: https://codereview.chromium.org//1235513004 .
2015-07-13 22:30:13 +02:00
kevmoo@google.com
83abae13a2
remove matcher from try site - matcher is now part of unittest
...
TBR
Review URL: https://codereview.chromium.org//1124223008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45663 260f80e4-7a28-3924-810f-c04153c831b5
2015-05-08 21:55:14 +00:00
karlklose@google.com
3164951779
Change code to remove two warnings that are reported when running build.py.
...
R=johnniwinther@google.com
Review URL: https://codereview.chromium.org//1110063012
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45458 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-30 09:48:46 +00:00
sigmund@google.com
41a675b771
Fix other tests in 'try' after elementvisitor changes
...
TBR=sra@google.com ,johnniwinther@google.com
Review URL: https://codereview.chromium.org//1056133008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45323 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-21 22:23:39 +00:00
ricow@google.com
147342c335
Fix wrong path from revision 44041 and fix path in tools/addlatexhash.dart
...
R=sgjesse@google.com , eernst@google.com
BUG=
Review URL: https://codereview.chromium.org//958003002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@44042 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-26 09:28:55 +00:00
ricow@google.com
00fda07312
Fix build after package moves, try has direct dependency on some of the packages
...
R=sgjesse@google.com
BUG=
Review URL: https://codereview.chromium.org//962543002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@44041 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-26 09:13:33 +00:00
johnniwinther@google.com
ff818f49a9
Fix try.
...
BUG=
Review URL: https://codereview.chromium.org//921173003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43760 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-13 14:45:58 +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
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
sigmund@google.com
0c4834347d
Update a couple other references to sunflower that I missed
...
R=nweiz
BUG=
Review URL: https://codereview.chromium.org//825553002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@42559 260f80e4-7a28-3924-810f-c04153c831b5
2014-12-22 23:53:32 +00:00
nweiz@google.com
4b524e8f21
Pull args, intl, logging, shelf, and source_maps out of the SDK.
...
R=sigmund@google.com
Review URL: https://codereview.chromium.org//814113004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@42537 260f80e4-7a28-3924-810f-c04153c831b5
2014-12-20 00:47:32 +00:00
nweiz@google.com
b0009de0d6
Re-apply "Remove unittest and matcher from the repo."
...
This was originally submitted as r42497 and reverted by r42498. This CL fixes
the failing isolate test, and https://codereview.chromium.org/814883003/ fixes
the Dartium and Standalone issues.
R=sigmund@google.com
Review URL: https://codereview.chromium.org//807193003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@42524 260f80e4-7a28-3924-810f-c04153c831b5
2014-12-19 21:14:56 +00:00
ricow@google.com
efad8e46a1
Revert revision 42497 "Remove unittest and matcher from the repo."
...
This broke 80% of the bots
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@42498 260f80e4-7a28-3924-810f-c04153c831b5
2014-12-19 07:01:50 +00:00
nweiz@google.com
28bced3a0c
Remove unittest and matcher from the repo.
...
This also cleans up a few lingering unused lines in pkg.status.
R=sigmund@google.com
Review URL: https://codereview.chromium.org//814953002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@42497 260f80e4-7a28-3924-810f-c04153c831b5
2014-12-19 02:18:47 +00:00
nweiz@google.com
bec098d3a5
Use third_party packages for building try dart.
...
Review URL: https://codereview.chromium.org//820433002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@42471 260f80e4-7a28-3924-810f-c04153c831b5
2014-12-18 19:26:30 +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
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
f3c3afe74d
Various clean up.
...
R=johnniwinther@google.com
Review URL: https://codereview.chromium.org//757043002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41991 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-26 12:44:17 +00:00
ahe@google.com
94056f00b2
Remove debugging code
...
Review URL: https://codereview.chromium.org//755253002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41957 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-25 15:24:03 +00:00
ahe@google.com
97f809bdc1
Use serialized scope info to test incremental compiler.
...
R=johnniwinther@google.com
Review URL: https://codereview.chromium.org//738423002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41955 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-25 14:47:27 +00:00
ahe@google.com
1441fe2d76
Include reasons for failing in StateError.
...
R=johnniwinther@google.com
Review URL: https://codereview.chromium.org//705253002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41625 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-10 10:51:56 +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
ahe@google.com
b872f5e260
Compute an incremental patch to JavaScript code.
...
R=johnniwinther@google.com
Review URL: https://codereview.chromium.org//636903002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41011 260f80e4-7a28-3924-810f-c04153c831b5
2014-10-09 12:57:08 +00:00
ahe@google.com
f718e2566c
Compile only functions that have changed.
...
R=johnniwinther@google.com
Review URL: https://codereview.chromium.org//622373002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@40935 260f80e4-7a28-3924-810f-c04153c831b5
2014-10-06 15:57:51 +00:00
ahe@google.com
6701b708a7
Count number of iterations.
...
R=johnniwinther@google.com
Review URL: https://codereview.chromium.org//621233003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@40934 260f80e4-7a28-3924-810f-c04153c831b5
2014-10-06 15:40:54 +00:00
ahe@google.com
e63e0d59fb
Add --compile option to poi.dart.
...
R=johnniwinther@google.com
Review URL: https://codereview.chromium.org//615573004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@40933 260f80e4-7a28-3924-810f-c04153c831b5
2014-10-06 15:28:23 +00:00
ahe@google.com
74d0db69f0
More timing in poi.dart.
...
R=johnniwinther@google.com
Review URL: https://codereview.chromium.org//625913002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@40921 260f80e4-7a28-3924-810f-c04153c831b5
2014-10-06 11:58:16 +00:00
ahe@google.com
0d3387e080
Add PoiTask to better measure timing.
...
R=johnniwinther@google.com
Review URL: https://codereview.chromium.org//626853002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@40920 260f80e4-7a28-3924-810f-c04153c831b5
2014-10-06 11:50:01 +00:00
ahe@google.com
8a1633f3b9
Truncate verbose source print.
...
R=johnniwinther@google.com
Review URL: https://codereview.chromium.org//625883002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@40898 260f80e4-7a28-3924-810f-c04153c831b5
2014-10-03 15:47:19 +00:00
ahe@google.com
c833f7b848
Clean up imports.
...
R=johnniwinther@google.com
Review URL: https://codereview.chromium.org//621503008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@40896 260f80e4-7a28-3924-810f-c04153c831b5
2014-10-03 12:18:39 +00:00