Commit Graph

1357 Commits

Author SHA1 Message Date
turnidge@google.com bcc03b28e9 More mirrors changes to bring vm mirrors more in line with the
current proposed mirrors api.
Review URL: https://chromiumcodereview.appspot.com//10825431

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11095 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-21 20:46:25 +00:00
ajohnsen@google.com 390699418b Make _ReceivePortImpl implement ReceivePort.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11088 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-21 19:12:02 +00:00
ajohnsen@google.com 0d078037e2 Re-apply 'Unify dart:isolate.' with fixes for autogenerated dart2js and dartium html files.
Old Review URL: https://chromiumcodereview.appspot.com//10828410

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11084 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-21 18:47:43 +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 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 999ab57823 Only add JS once, and not to very single patched library.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11078 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-21 17:39:07 +00:00
efortuna@google.com fe4a885a84 Fix dartdoc change with XMLHttpRequest
Review URL: https://chromiumcodereview.appspot.com//10829458

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11072 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-21 16:49:40 +00:00
efortuna@google.com bad51b1f63 Update XMLHttpRequest documentation.
Review URL: https://chromiumcodereview.appspot.com//10860050

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11071 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-21 16:39:56 +00:00
efortuna@google.com 742e1ffcbe Rename XMLHttpRequest to HttpRequest.
Review URL: https://chromiumcodereview.appspot.com//10823352

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11070 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-21 16:39:35 +00:00
karlklose@google.com 3759a01424 Fix type annotation in the typechecker.
TBR'ed to unbreak the build.

TBR=ahe@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11068 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-21 16:14:15 +00:00
vsm@google.com 9259b263fd Support general serializing of functions between JS and Dart
Anton: This expands on your earlier CL.  Do you mind taking a look?

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11066 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-21 15:59:54 +00:00
antonm@google.com ce718e65fb Just ignore erroneous elements.
R=smok@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11065 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-21 15:46:46 +00:00
smok@google.com d182624b92 Make ClassNode visit type parameters in visitChildren
Review URL: https://chromiumcodereview.appspot.com//10831406

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11057 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-21 15:18:28 +00:00
antonm@google.com 1b4e931081 Properly rename type variables.
R=smok@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11054 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-21 14:46:53 +00:00
karlklose@google.com 5ac1789d6c Fix dart2dart and dart2js build.
TBR=antonm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11051 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-21 14:36:38 +00:00
antonm@google.com b919b0c4ae Remove semicolon.
R=podivilov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11048 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-21 14:11:56 +00:00
antonm@google.com d5525c3fa6 Better version of TypeVariableElement.position.
R=ahe@google.com,johnniwinther@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11047 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-21 14:10:33 +00:00
antonm@google.com fd1014dc11 More generic input type.
TBR=smok@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11046 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-21 14:00:32 +00:00
antonm@google.com 435969e63b Implement TypeVariableElement.position.
R=ahe@google.com,johnniwinther@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11044 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-21 13:54:05 +00:00
antonm@google.com 689c8a2fc5 Split to dart conversion and argument expression logic.
R=podivilov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11043 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-21 13:53:12 +00:00
karlklose@google.com aeafe0fdda Add erroneous elements for function types and use them to allow unresolvable constructors to be handled in the backend.
This is the first step towards runtime error handling of unresolvable constructors, library prefixes and constructor names in new-expressions.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11042 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-21 13:40:07 +00:00
ahe@google.com 2134fa0fc1 Clean up state handling in ClassElement.
Review URL: https://chromiumcodereview.appspot.com//10823311

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11040 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-21 13:23:34 +00:00
ngeoffray@google.com a13af7eb1f When replacing an instruction with another in GVN-like optimizations, try to find a better user of it, that knows more about the type.
Review URL: https://chromiumcodereview.appspot.com//10831404

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11039 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-21 13:19:10 +00:00
antonm@google.com a9b8ec430e Rename elements after sorting.
That makes renaming more stable.

R=smok@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11038 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-21 13:18:06 +00:00
lrn@google.com d0145b687f Make patching of classes lazy.
Review URL: https://chromiumcodereview.appspot.com//10855262

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11036 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-21 12:53:53 +00:00
smok@google.com d49ad937bb dart2dart Fix factory for interfaces renames
Review URL: https://chromiumcodereview.appspot.com//10828390

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11033 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-21 11:33:39 +00:00
ager@google.com 000b295a00 Make sure that libraries loaded from dart:core gets dart:core implicitly loaded.
This is in preparation for deprecating the corelib Math object
in favor of the dart:math library.

R=ahe@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11032 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-21 11:24:23 +00:00
kasperl@google.com 34ec097692 Get rid of the name in HInvokeDynamic (just use the selector instead).
This fixes issue 2620.

R=ngeoffray@google.com,karlklose@google.com
BUG=http://dartbug.com/2620

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11030 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-21 10:56:02 +00:00
ahe@google.com a6b6565123 Parse metadata, but ignore it.
Review URL: https://chromiumcodereview.appspot.com//10836351

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11029 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-21 10:55:54 +00:00
karlklose@google.com 16a2cbd760 Fix some type warnings.
Review URL: https://chromiumcodereview.appspot.com//10824350

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11028 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-21 10:38:00 +00:00
antonm@google.com 7c21f2cdb8 Unify private names treatment.
This change actually revealed a couple of problems we had. I am planning to
switch to even more unified treatment of privates and force renames at
visitIdentifier level.

R=smok@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11027 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-21 10:26:12 +00:00
antonm@google.com 21702e9066 Do not create placeholders for elements that won't be later renamed.
R=smok@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11023 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-21 09:18:55 +00:00
antonm@google.com 68e7e23cba Introduce renameNodes helper to factor out common pattern.
R=smok@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11022 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-21 09:12:53 +00:00
antonm@google.com ac488155ad Introduce unreachable helper.
R=smok@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11021 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-21 09:09:21 +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
ngeoffray@google.com 5e0a986566 If an instruction is known to already by a number, the integer check will try to make it an integer.
Review URL: https://chromiumcodereview.appspot.com//10831392

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11014 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-21 07:39:00 +00:00
antonm@google.com 9942bac042 Remove unused method.
TBR=smok@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10995 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-20 19:16:22 +00:00
antonm@google.com a269efc993 Split collecting and traversing.
R=smok@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10985 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-20 16:20:49 +00:00
ngeoffray@google.com 7ed266a293 Few tweaks to the generated code to avoid eg parenthesis.
Review URL: https://chromiumcodereview.appspot.com//10860036

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10982 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-20 15:38:09 +00:00
antonm@google.com ff6957c372 Remove now unused file.
TBR=sra@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10981 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-20 15:28:13 +00:00
smok@google.com 8a001293f1 dart2dart Collect type placeholder for default class.
Review URL: https://chromiumcodereview.appspot.com//10854218

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10967 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-20 14:12:21 +00:00
antonm@google.com 5f8ff75236 Rebuild dart:html.
TBR=sra@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10961 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-20 13:43:23 +00:00
antonm@google.com c68e205c29 Remove now unused implementation.
TBR=sra@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10959 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-20 13:38:10 +00:00
ngeoffray@google.com 2e1e48a4ed Add an optional parameter to the dominatedUsers function in case we want to analyze the whole block, and not only from an instruction. Fixes bug 4069.
Review URL: https://chromiumcodereview.appspot.com//10824371

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10957 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-20 13:32:50 +00:00
ahe@google.com 19851497ff Support new getter syntax.
Review URL: https://chromiumcodereview.appspot.com//10831332

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10956 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-20 13:26:38 +00:00
antonm@google.com e8e62cca87 Roll IDL to mutlivm@775.
TBR=vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10954 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-20 13:23:31 +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
antonm@google.com acb2ba84bf IDBOpenDBRequest is now in WebKit IDLs.
TBR=podivilov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10951 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-20 13:05:20 +00:00
sgjesse@google.com 97d17d8276 Fix warning
R=ahe@google.com

BUG=dart:4601
TEST=none

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10949 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-20 12:45:32 +00:00