Commit Graph

28 Commits

Author SHA1 Message Date
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