smok@google.com
bd20cb3400
[dart2dart] Rename --cut-declaration-types flag to --force-cut-declaration-types
...
Review URL: https://codereview.chromium.org//10969008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12634 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-20 13:00:22 +00:00
floitsch@google.com
1011c58bf9
Use JavaScript runtime semantics when constant folding.
...
Fixes issue 4551.
Fixes issue 2887.
Review URL: https://chromiumcodereview.appspot.com//10825386
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11883 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-05 16:13:58 +00:00
efortuna@google.com
07125e549e
Remove dart:dom_deprecated from everywhere but the editor, dart2js, lib/dom, and
...
utils/apidoc.
Review URL: https://chromiumcodereview.appspot.com//10918028
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11721 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-31 21:21:08 +00:00
efortuna@google.com
b2f2c43f34
Revert 11715.
...
Review URL: https://chromiumcodereview.appspot.com//10909035
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11718 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-31 20:01:09 +00:00
efortuna@google.com
7668c86f76
Reapply dom_deprecated removal with non-editor breaking change.
...
Review URL: https://chromiumcodereview.appspot.com//10916035
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11715 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-31 19:43:13 +00:00
antonm@google.com
34d19da1a1
Unify the name of the flag and make it settable from command line.
...
It's intentionally doesn't go into documentation as it's an experimental.
R=smok@google.com
Review URL: https://chromiumcodereview.appspot.com//10909015
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11679 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-31 11:01:19 +00:00
efortuna@google.com
5065c6e7fd
Revert 11651
...
Review URL: https://chromiumcodereview.appspot.com//10916028
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11655 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-30 20:59:42 +00:00
efortuna@google.com
99c5f9de07
Remove instances of dart:dom_deprecated from outside of lib/html and lib/dom.
...
There are several references in utils/apidoc as well, but that will be a
separate CL since it's going to require some substantial changes both in the
lib/dom/scripts end and in utils/apidoc.
Review URL: https://chromiumcodereview.appspot.com//10910013
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11651 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-30 20:29:08 +00:00
lrn@google.com
78f404baca
Remove library_map.dart.
...
Review URL: https://chromiumcodereview.appspot.com//10894005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11519 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-29 12:57:32 +00:00
kasperl@google.com
aa863299a2
Hook up the --minify option in dart2js and use it to get rid of unnecessary whitespace inside function bodies.
...
R=floitsch@google.com ,ahe@google.com ,antonm@google.com
BUG=
Review URL: https://chromiumcodereview.appspot.com//10901002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11517 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-29 12:48:44 +00:00
kasperl@google.com
a3c813ae2d
Update corelib/ and lib/ to use the new try-catch syntax.
...
R=ngeoffray@google.com
BUG=
Review URL: https://chromiumcodereview.appspot.com//10891022
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11504 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-29 09:58:07 +00:00
smok@google.com
124767c6d3
[dart2dart] Optionally cut types in variable declarations:
...
top-level fields, function types, local variable declarations, function parameters.
Review URL: https://chromiumcodereview.appspot.com//10891004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11452 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-28 15:22:31 +00:00
antonm@google.com
7b045d4e94
Support customizing API (and hence mock) compiler to minify the output.
...
R=smok@google.com
Review URL: https://chromiumcodereview.appspot.com//10875040
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11295 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-24 08:44:47 +00:00
antonm@google.com
8f0c6d6cf9
Remove now unused --unparse-validation flag.
...
R=smok@google.com
Review URL: https://chromiumcodereview.appspot.com//10875032
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11232 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-23 14:54:13 +00:00
ahe@google.com
1ada772cc1
Remove most superfluous getter arguments from dart2js.
...
Review URL: https://chromiumcodereview.appspot.com//10876008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11123 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-22 06:33:24 +00:00
lrn@google.com
ed1ed6472d
Make top-level patch injections be compilation unit under library.
...
Review URL: https://chromiumcodereview.appspot.com//10824347
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10895 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-17 13:08:00 +00:00
johnniwinther@google.com
fdbabb995e
Dartdoc and Apidoc updated to use dart2js through the mirror system.
...
BUG=3414
Review URL: https://chromiumcodereview.appspot.com//10701091
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9584 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-12 08:52:19 +00:00
lrn@google.com
642b7d8a05
Revert "Revert "First step towards having patch files for generic libraries.""
...
This reapplies r9246 without the (known) bugs.
Review URL: https://chromiumcodereview.appspot.com//10689063
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9282 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-02 09:04:42 +00:00
lrn@google.com
83ce2f9f6e
Revert "First step towards having patch files for generic libraries."
...
This reverts commit r9246.
TBR: floitsch
Review URL: https://chromiumcodereview.appspot.com//10689038
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9249 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-29 13:49:13 +00:00
lrn@google.com
1fad321449
First step towards having patch files for generic libraries.
...
As proof of concept, it patches a non-functional htmlEscape from web.dart.
Still has lots of restrictions:
- Only loads a normal library (no syntax extension to mark patches as
separate from additions). Assumes every element is a patch.
- Only handles top-level functions (probably won't handle getters/setters
or constructors), and not classes.
- Doesn't check that the patched function is marked external (no syntax for
that in the spec yet, doesn't even require it to be abstract).
- Doesn't check that the signature of the patch function matches the original
function.
- Probably won't work for 'coreimpl', as loaded from 'js_helper', since it's not
loaded using the 'dart:' scheme.
Review URL: https://chromiumcodereview.appspot.com//10689036
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9246 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-29 12:32:40 +00:00
ahe@google.com
7b31e54ab7
Implement override checks.
...
First attempt committed as: https://code.google.com/p/dart/source/detail?r=9108
Review URL: https://chromiumcodereview.appspot.com//10575033
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9151 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-27 09:07:36 +00:00
antonm@google.com
38bf8c295b
Revert "Implement override checks."
...
TBR=ahe@google.com
Review URL: https://chromiumcodereview.appspot.com//10666052
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9112 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-26 14:36:00 +00:00
ahe@google.com
7f2041bf11
Implement override checks.
...
Review URL: https://chromiumcodereview.appspot.com//10575033
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9108 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-26 12:51:55 +00:00
ahe@google.com
965676d7af
Don't crash when a file is missing.
...
Review URL: https://chromiumcodereview.appspot.com//10572014
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8844 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-19 13:49:10 +00:00
ahe@google.com
caa708cddb
Update dart2js to use diagnostic kinds.
...
Review URL: https://chromiumcodereview.appspot.com//10579015
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8843 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-19 13:48:13 +00:00
ahe@google.com
ed16318b23
Update type annotation.
...
Review URL: https://chromiumcodereview.appspot.com//10532159
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8716 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-15 12:34:17 +00:00
ahe@google.com
257f7f35ee
Don't canonicalize dart-URIs.
...
Review URL: https://chromiumcodereview.appspot.com//10535146
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8607 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-13 14:41:24 +00:00
ahe@google.com
fce345b983
Libraries should know their original URI, not their translated URI.
...
For example, a library should know that it is package:a.dart, not file:///.../a.dart.
Review URL: https://chromiumcodereview.appspot.com//10533123
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8606 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-13 14:21:04 +00:00
ngeoffray@google.com
5e9caaa372
Only generate assert in checked mode.
...
Review URL: https://chromiumcodereview.appspot.com//10540052
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8430 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-08 10:21:22 +00:00
antonm@google.com
672ba6d920
Start working on unparse validation.
...
R=ahe@google.com
Review URL: https://chromiumcodereview.appspot.com//10332196
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7858 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-22 15:42:13 +00:00
ahe@google.com
355f5303a5
Add --package-root option to the compiler.
...
Review URL: https://chromiumcodereview.appspot.com//10407092
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7849 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-22 12:49:49 +00:00
antonm@google.com
2ef5f8e05e
Add a flag to control the backend.
...
R=ahe@google.com ,floitsch@google.com ,kasperl@google.com ,ngeoffray@google.com ,smok@google.com
Review URL: https://chromiumcodereview.appspot.com//10414024
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7806 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-21 16:29:15 +00:00
ahe@google.com
e16b9136b4
Don't report an internal error if attempting to compile a file that doesn't exist.
...
Review URL: https://chromiumcodereview.appspot.com//10382195
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7682 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-16 12:35:26 +00:00
vsm@google.com
9be4ac00ed
Move dart:dom to dart:dom_deprecated
...
Brian: Can you please look at the editor / dartc changes?
Bob: Can you look at the apidoc changes?
Stephen/Pavel: Can you guys look at the rest?
Pavel: I will update, test, and land your Dartium CL along with this change.
Review URL: https://chromiumcodereview.appspot.com//10389097
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7587 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-13 04:10:43 +00:00
ngeoffray@google.com
4e3f5102f9
Start implementing checked mode and tools support for using it.
...
Review URL: https://chromiumcodereview.appspot.com//10353014
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7375 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-07 13:18:21 +00:00
kasperl@google.com
da29bdcace
Remove frog dependencies from lib/compiler.
...
Start importing the URI library using dart:uri rather than
dotting our way to the right directory in lib.
R=ahe@google.com
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com//10081004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6511 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-13 12:05:45 +00:00
nweiz@google.com
7ef24751bc
Add support for the package: directive in Frog and dart2js.
...
Review URL: https://chromiumcodereview.appspot.com//10032015
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6430 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-11 20:02:21 +00:00
ahe@google.com
d03830349f
Add library mapping.
...
Review URL: https://chromiumcodereview.appspot.com//9866006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5935 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-28 16:07:58 +00:00
ahe@google.com
dc099c4a00
Move frog/leg to lib/compiler/implementation.
...
Review URL: https://chromiumcodereview.appspot.com//9873021
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5926 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-28 08:54:01 +00:00