ahe@google.com
970a4ee600
A library element should know its compilation units.
...
Review URL: https://codereview.chromium.org//10960033
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12755 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-24 06:53:12 +00:00
johnniwinther@google.com
608c199175
Stub implementation of patch invariants for the patch refactoring.
...
This is the first part of the patch refactoring which implements
a stub version of the invariants needed for the new patch implementation.
See the library comment in lib/compiler/patch_parser.dart for a detailed
description of the new patch system, the terminology and the invariants.
Review URL: https://codereview.chromium.org//10917285
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12687 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-21 09:31:08 +00:00
ahe@google.com
fcc9f5f0ff
Parse new library syntax.
...
Committed: https://code.google.com/p/dart/source/detail?r=12386
But reverted in: https://code.google.com/p/dart/source/detail?r=12387
Review URL: https://codereview.chromium.org//10911298
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12686 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-21 09:08:12 +00:00
ahe@google.com
8b7b049559
Revert "Parse new library syntax."
...
This reverts r12386.
Review URL: https://codereview.chromium.org//10933093
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12387 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-14 14:35:47 +00:00
ahe@google.com
4f66bc9539
Parse new library syntax.
...
Review URL: https://chromiumcodereview.appspot.com//10911298
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12386 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-14 14:13:10 +00:00
lrn@google.com
47a6ab63b1
Change interfaces to abstract classes in dart2js compiler.
...
There are still a few interfaces left. They use the 'default implementation'
feature that can't be replaced until we implement const constructor forwarding.
Also removed mockimpl.dart. We don't pretend to support ReceiverPortFactory
(whatever it is) if it is not in the core library.
Review URL: https://chromiumcodereview.appspot.com//10917208
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12252 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-12 10:18:07 +00:00
kasperl@google.com
3886bb7ee4
Remove more warnings.
...
R=ahe@google.com
BUG=
Review URL: https://chromiumcodereview.appspot.com//10890007
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11489 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-29 05:54:40 +00:00
ahe@google.com
7e3e0950ca
Extend testing of metadata.
...
Review URL: https://chromiumcodereview.appspot.com//10876036
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11221 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-23 11:23:09 +00:00
ahe@google.com
88467d4dfe
Evaluate compile-time constants of metadata.
...
Review URL: https://chromiumcodereview.appspot.com//10870010
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11212 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-23 06:28:25 +00:00
ager@google.com
0a55fa5f3b
Deal with the JS helper separately from the 'native' keyword.
...
Another change to prepare for the removal of the corelib Math
object in favor of the dart:math library.
R=ahe@google.com ,johnniwinther@google.com
BUG=
Review URL: https://chromiumcodereview.appspot.com//10867011
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11151 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-22 13:57:56 +00:00
ahe@google.com
234caf4849
Create an outline of metadata API in dart2js.
...
Review URL: https://chromiumcodereview.appspot.com//10879006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11147 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-22 13:37:13 +00:00
ajohnsen@google.com
3c00b2ceae
Revert "Support sourceing files in patches."
...
This reverts commit f574332325d74c1fe4370496fc5ea212c6f9ac7f.
BUG=
Review URL: https://chromiumcodereview.appspot.com//10869012
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11145 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-22 13:10:00 +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
ajohnsen@google.com
e462fccf79
Support sourceing files in patches.
...
The path given is relative to the patch, not the library.
BUG=
Review URL: https://chromiumcodereview.appspot.com//10827448
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11082 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-21 18:37:34 +00:00
ajohnsen@google.com
3b9d579965
Fix type in patch_parser.dart.
...
BUG=
Review URL: https://chromiumcodereview.appspot.com//10829419
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10952 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-20 13:20:53 +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
ajohnsen@google.com
404f888f83
Refactor Library/CompilationUnit and how we define local Scope.
...
This also collapses members and constructors of a class into the same
map.
BUG=
Original URL: https://chromiumcodereview.appspot.com//10832203
Review URL: https://chromiumcodereview.appspot.com//10830303
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10632 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-14 11:35:17 +00:00
lrn@google.com
d134e7d052
Allow patch files to add declarations to the patched library.
...
Review URL: https://chromiumcodereview.appspot.com//10831262
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10562 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-13 11:58:48 +00:00
ajohnsen@google.com
dd8585d5a2
Revert "Refactor Library/CompilationUnit and how we define local Scope."
...
This reverts commit 05718e680ca45ac26fcc0d0256fc98419fac1b2e.
BUG=
Review URL: https://chromiumcodereview.appspot.com//10824275
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10550 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-13 06:45:24 +00:00
ajohnsen@google.com
ccc0ce3101
Refactor Library/CompilationUnit and how we define local Scope.
...
This also collapses members and constructors of a class into the same
map.
BUG=
Review URL: https://chromiumcodereview.appspot.com//10832203
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10549 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-13 06:22:24 +00:00
lrn@google.com
2d58755073
Revert "Allow patch files to add top-level declarations to the patched library."
...
This reverts r9629.
TBR: floitsch
Review URL: https://chromiumcodereview.appspot.com//10702204
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9630 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-13 13:59:54 +00:00
lrn@google.com
7621533549
Allow patch files to add top-level declarations to the patched library.
...
The patch library is loaded normally, and then non-patch methods and classes
are cloned and added to the patched library. To support methods from other
compilation units, all elements now has a scriptOverride field that lets
them report a different script than the one of their enclosing element.
(For top-level elements that's already possible, as that's what #source does,
but for fields inside a class, we can't easily wrap a compilation unit element
around them.)
TBR: floitsch
(to get in before vacation, with reversion rights).
Review URL: https://chromiumcodereview.appspot.com//10703188
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9629 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-13 13:46:21 +00:00
lrn@google.com
42f353fad1
Patch methods in classes.
...
Add math library in corelib/unified. Location subject to change.
Made _Random's implementation external and patched it to use JS random.
Made "external" marking acually work.
Review URL: https://chromiumcodereview.appspot.com//10696147
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9544 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-11 08:47:24 +00:00
lrn@google.com
87bce39efe
Fix type errors.
...
Will now run my tests with --host-checked too.
TBR=floitsch
Review URL: https://chromiumcodereview.appspot.com//10689126
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9458 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-09 06:59:53 +00:00
lrn@google.com
aa8f2cf676
Recognize "patch" identifier in .dartp files.
...
Added more infrastructure to detect errors in the patch.
Still no ability to add an element from the patch to the original library.
Review URL: https://chromiumcodereview.appspot.com//10697084
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9457 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-09 06:39:57 +00:00