Commit Graph

38 Commits

Author SHA1 Message Date
ajohnsen@google.com 1e980c2ab7 Also expose JS to dart:path in dart2js.
BUG=

Review URL: https://chromiumcodereview.appspot.com//10831410

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11081 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-21 18:13:43 +00:00
ajohnsen@google.com 8f80365139 Revert "Unify dart:isolate."
This reverts commit 73190457cfff717e2706dd4715841f23a35d9ce7.

BUG=

Review URL: https://chromiumcodereview.appspot.com//10827436

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11017 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-21 08:22:05 +00:00
ajohnsen@google.com 5f4a0a2696 Unify dart:isolate.
BUG=

Review URL: https://chromiumcodereview.appspot.com//10828410

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11016 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-21 07:52:51 +00:00
johnniwinther@google.com ac5a4808d8 Skeleton typedef type implementation
Review URL: https://chromiumcodereview.appspot.com//10832136

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10880 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-17 11:15:44 +00:00
kasperl@google.com e8268dd78a Add name and library to selectors.
This is the first step towards improving the Selector as an
abstraction used by the resolver, builder, and enqueur. The
intent is to have the resolver construct selectors that can
be used for method lookup, tree shaking, and for simplifying
the logic we use to build the correct SSA instructions for
sends (some of which are quite complex).

Next step is to get rid of more of the adhoc selector building
that's done outside of the resolver and clean up how we resolve
sends. After that, I'll start removing the need for passing
around both a name and a selector in a lot of places.

R=ahe@google.com,sgjesse@google.com
BUG=

Review URL: https://chromiumcodereview.appspot.com//10825337

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10637 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-14 12:21:51 +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
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
sgjesse@google.com 8995503241 Start moving the JavaScript backend related code into a separate library
R=ahe@google.com, floitsch@google.com

BUG=

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

Review URL: https://chromiumcodereview.appspot.com//10854066

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10482 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-10 08:49:27 +00:00
lrn@google.com 97b4df393f Reduce usage of .enclosingElement to get enclosing class.
Currently code assumes that a member's immediate enclosingElement is
its class element.
If we introduce compilation unit override elements into the enclosing
chain, this will no longer be true.
This CL changes the places that assumes this to use isMember() or
getEnclosingClass(). The assumption is still in place in isMember(),
which will need to be modified when things change.

Review URL: https://chromiumcodereview.appspot.com//10834243

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10438 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-09 12:47:42 +00:00
kasperl@google.com e00edf0a6d Add the JS helper function to all libraries where we allow the native syntax.
Try to use the JS helper from somewhere in the HTML library.

R=vsm@google.com
BUG=http://dartbug.com/3842
TEST=

Review URL: https://chromiumcodereview.appspot.com//10694082

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9409 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-04 14:08:30 +00:00
floitsch@google.com 90cdf86aab Distinguish statement and expression foreign code.
Review URL: https://chromiumcodereview.appspot.com//10668021

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9159 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-27 12:17:39 +00:00
antonm@google.com f8f5363fc4 New treatment of native methods.
R=ahe@google.com

Review URL: https://chromiumcodereview.appspot.com//10558023

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8980 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-21 14:37:42 +00:00
floitsch@google.com b5acd09f81 Fix most warnings and other minor cleanups.
Review URL: https://chromiumcodereview.appspot.com//10557003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8719 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-15 13:26:35 +00:00
kasperl@google.com 3eec57a270 Move frog/tests/{leg,leg_only,frog_native} to tests/compiler/.
This may not be the final resting place for these tests, but I want 
to get them out of the frog directory because they really are very
valuable as tests for dart2js.
Review URL: https://chromiumcodereview.appspot.com//10536169

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8646 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-14 11:28:50 +00:00
ngeoffray@google.com 274ca27fde Add a new magic element kind for annotating types that have Javascript array behavior.
Review URL: https://chromiumcodereview.appspot.com//10447088

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8611 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-13 15:20:41 +00:00
ngeoffray@google.com 2cb4416340 Use the typedef arity to know how to invoke a closure given by the dom.
Review URL: https://chromiumcodereview.appspot.com//10441071

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8067 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-29 15:53:54 +00:00
ahe@google.com d26b4d886b Parameterize the native_handler with the world/enqueuer.
Review URL: https://chromiumcodereview.appspot.com//10408087

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7907 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-23 14:45:35 +00:00
ahe@google.com ef3b8d8cba Fix type error.
Review URL: https://chromiumcodereview.appspot.com//10413073

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7904 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-23 12:58:59 +00:00
ahe@google.com ab38ce3561 Move registering to the enqueuer.
Review URL: https://chromiumcodereview.appspot.com//10408059

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7903 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-23 12:25:36 +00:00
ngeoffray@google.com 6e3e64eb3f Also use the redirecting name in stubs for native methods.
Review URL: https://chromiumcodereview.appspot.com//10413028

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7789 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-21 10:51:29 +00:00
antonm@google.com b8599eda47 Start compiler refactoring to support more than a single backend.
R=ahe@google.com,floitsch@google.com,kasperl@google.com,ngeoffray@google.com

Review URL: https://chromiumcodereview.appspot.com//10386161

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7677 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-16 06:10:07 +00:00
efortuna@google.com 575142c211 Reverting 7667
Review URL: https://chromiumcodereview.appspot.com//10398044

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7673 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-15 22:34:17 +00:00
antonm@google.com e65933e514 RFC: Start refactoring to provide more than a single backend.
Review URL: https://chromiumcodereview.appspot.com//10386086

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7667 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-15 20:26:23 +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
karlklose@google.com e205b4fdb0 Compute function types together with the parameters.
This avoids resolving the types of arguments twice.

Review URL: https://chromiumcodereview.appspot.com//10363003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7374 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-07 12:33:09 +00:00
sigmund@google.com ef47ac2f90 test rename overhaul: step 5 frog and leg
Review URL: https://chromiumcodereview.appspot.com//10250002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7094 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-27 17:43:47 +00:00
ngeoffray@google.com bdc0d78575 Fix bug http://code.google.com/p/dart/issues/detail?id=2718: methods that are implemented by the html/dom library should be called with dart2js calling conventions.
Review URL: https://chromiumcodereview.appspot.com//10202018

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7020 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-26 15:07:16 +00:00
lrn@google.com 54cab43f3a Reapply "Refactoring if block-information."
Fix error in conditional expression handling.

Review URL: https://chromiumcodereview.appspot.com//10041026

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6684 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-18 13:16:27 +00:00
kasperl@google.com 02ba487148 Fix remaining warnings.
R=floitsch@google.com
BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com//10091048

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6648 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-17 16:25:11 +00:00
floitsch@google.com ddd7475724 Revert "Refactoring if block-information."
This reverts commit 6630.

Review URL: https://chromiumcodereview.appspot.com//9956172

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6635 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-17 13:29:29 +00:00
lrn@google.com 567f1e4beb Refactoring if block-information.
Generalizes block information handling and adds (yet unused) info blocks
for if and logical-and/or.

Review URL: https://chromiumcodereview.appspot.com//10100001

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6630 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-17 13:02:07 +00:00
ngeoffray@google.com cd0a23b68b Truley compute direct subtypes of native classes.
Review URL: https://chromiumcodereview.appspot.com//10106019

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6625 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-17 11:37:56 +00:00
ngeoffray@google.com 6843835778 Fix issue 2358: dart methods on native classes must also check if the current prototype has the method. If not, we need to re-do the dynamic dispatch to actually hit the subclass implementation of the method.
Review URL: https://chromiumcodereview.appspot.com//10092012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6617 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-17 08:04:42 +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
ngeoffray@google.com 8a0eb0e392 Building the Ssa graph has some sanity checks.
Review URL: https://chromiumcodereview.appspot.com//9958011

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6028 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-30 10:00:59 +00:00
ngeoffray@google.com 2e7d234667 Implement redirecting natives.
Review URL: https://chromiumcodereview.appspot.com//9909011

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6027 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-30 09:36:13 +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