Commit graph

9997 commits

Author SHA1 Message Date
keertip@google.com ee9aba4f8e yet another fix for dart: with "_"
Review URL: https://codereview.chromium.org//11415186

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15513 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-29 12:32:41 +00:00
ahe@google.com c17990a886 Call dart2js directly from sdk/bin.
Review URL: https://codereview.chromium.org//11299206

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15512 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-29 12:15:29 +00:00
erikcorry@google.com 72f1973922 Fix a use of native JS code to avoid substituting lvalues with '#'.
The old version only worked because the optimization substituted this.fieldname
for the getter.

R=floitsch@google.com
BUG=

Review URL: https://codereview.chromium.org//11412242

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15511 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-29 12:07:05 +00:00
ahe@google.com 442d1fb733 Update co19 to r473.
Review URL: https://codereview.chromium.org//11411258

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15509 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-29 10:29:17 +00:00
polux@google.com 2ebfc46df3 Handle null in augmentField
Review URL: https://codereview.chromium.org//11415115

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15508 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-29 10:23:31 +00:00
polux@google.com cbd18d2762 Fix handling of sends with wrong arity
Review URL: https://codereview.chromium.org//11412148

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15507 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-29 10:14:05 +00:00
ngeoffray@google.com 6390a1f110 Put back the unit test on optimizing removeLast to pop. Also don't forget that jsArrayRemoveLast might be null in case of unit tests.
Review URL: https://codereview.chromium.org//11316241

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15506 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-29 09:33:00 +00:00
erikcorry@google.com b6b0165e6a Rename regexp to reflect review feedback on semicolon change.
This is just https://codereview.chromium.org/11363052/ again.

BUG=

Review URL: https://codereview.chromium.org//11415199

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15505 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-29 09:22:08 +00:00
iposva@google.com a308615d5d Fix issue 7005:
- Preserve exported symbols when call strip on Mac OS X.
- Do not call GuessOS() repeatedly.
Review URL: https://codereview.chromium.org//11348295

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15504 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-29 09:18:37 +00:00
ricow@google.com a799a7e402 Add --checked or --minified to test directory name when generating output.
Currently the compiled output will simply be overwritten if you run
non-checked mode followed by checked mode.
Review URL: https://codereview.chromium.org//11280085

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15503 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-29 09:12:10 +00:00
ricow@google.com 3760272d10 Suppress crashes from issue 6931 in host_checked mode
Review URL: https://codereview.chromium.org//11428072

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15502 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-29 09:09:33 +00:00
ngeoffray@google.com 7af336d0e4 Put back manual inlining of List.add, List.removeLast, String.split and String.concat.
Review URL: https://codereview.chromium.org//11348281

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15500 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-29 09:02:52 +00:00
lrn@google.com abd2cf311a Switch libraries to using new tags.
Review URL: https://codereview.chromium.org//11419032

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15499 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-29 08:54:30 +00:00
sra@google.com fe9de5c129 Revert "Add @JSName annotation for native fields and methods."
Review URL: https://codereview.chromium.org//11416257

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15494 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-29 02:37:27 +00:00
sra@google.com 24ca65f02e Add @JSName annotation for native fields and methods.
This change allows fields to have different Dart and JavaScript names
without resorting to getters and setters using the 'JS' call.

For uniformity, methods have been changed use @JSName too.  The
previous scheme of using a string containing an identifier following
the 'native' pseudo-keyword is now an error.  A non-identifier string,
giving a native body to a Dart function, is still supported.

Members are marked as native during resolution, making the
Element.isNative() predicate more reliable.

Some uses of nativeName have been renamed to nativeTagInfo or
nativeTag to reflect that the strings are actually the class names.

Review URL: https://codereview.chromium.org//11299220

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15493 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-29 02:16:53 +00:00
blois@google.com 0c75960f5e Making dart2js' HTMLElement private.
The class is only used in Dart2JS and should probably not be public.

BUG=6752

Review URL: https://codereview.chromium.org//11412231

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15492 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-29 02:10:43 +00:00
vsm@google.com a667e4a0a5 Update test status with fixes
This test is now passing on IE9 and 10 as of my fix in r15487.

TBR=efortuna@google.com

Review URL: https://codereview.chromium.org//11418228

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15491 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-29 01:25:32 +00:00
dgrove@google.com e5bd12b67f Add a tool to publish packages in the repo to pub.
Review URL: https://codereview.chromium.org//11415191

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15490 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-29 01:24:22 +00:00
nweiz@google.com 806e8a5432 Mark pub oauth2 and curl_client tests as skip on Windows.
Review URL: https://codereview.chromium.org//11308262

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15488 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-29 00:52:00 +00:00
vsm@google.com eb7ec0e6ae Suppress check on localStorage to enable chrome apps
Review URL: https://codereview.chromium.org//11428064

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15487 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-29 00:51:12 +00:00
srdjan@google.com 888e564924 Attempt to do direct class comparison for type checks using CHA.
Next step is to convert instanceof nodes to an integer comparison node, which would then be automatically merged with branch.
Review URL: https://codereview.chromium.org//11348289

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15486 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-29 00:49:42 +00:00
nweiz@google.com 2c1d51db1c Make pkg/http use HttpClient.shutdown(force: true).
Review URL: https://codereview.chromium.org//11434018

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15485 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-29 00:47:09 +00:00
scheglov@google.com c6d61ca3d0 Add Analyzer commment line option '--type-checks-for-inferred-types'.
So, users can get same warnings was in Editor, if they want to.

R=brianwilkerson@google.com
BUG=

Review URL: https://codereview.chromium.org//11308256

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15484 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-29 00:39:52 +00:00
nweiz@google.com ff3ab9a439 Mark the pub oauth2_test as failing on Windows.
Review URL: https://codereview.chromium.org//11418227

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15483 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-29 00:39:07 +00:00
rnystrom@google.com e7382431ba Get archive creation working on Windows.
Review URL: https://codereview.chromium.org//11348288

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15482 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-29 00:20:28 +00:00
regis@google.com 7e9531a1d2 Remove support for default factory classes.
For now, disable tests using obsolete syntax. More will get disabled as support
for interfaces is completely removed. We may then permanently remove some tests,
while updating and reenabling others whose purpose is not related to interfaces.

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15480 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-28 23:39:27 +00:00
nweiz@google.com 2df3fd15b2 The macos pub tests are working again.
BUG=

Review URL: https://codereview.chromium.org//11421136

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15479 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-28 23:34:34 +00:00
srdjan@google.com bfd459b09c Add flag 'implements' to class, it is set anytime someone implements this class. This is a way to recognize implicit interfaces in order to improve class checks.
Review URL: https://codereview.chromium.org//11348283

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15477 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-28 22:57:26 +00:00
nweiz@google.com 558ffd19bf Work around issue 6984.
This ensures that before an HTTP response is closed, its corresponding
request is drained of input.

Review URL: https://codereview.chromium.org//11348285

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15476 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-28 22:43:10 +00:00
nweiz@google.com 295a066707 Use Futures.forEach in http.
BUG=

Review URL: https://codereview.chromium.org//11411241

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15475 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-28 22:39:33 +00:00
nweiz@google.com 9688c983de Fix the Futures tests for dart2js.
TBR

Review URL: https://codereview.chromium.org//11411242

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15474 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-28 22:00:55 +00:00
nweiz@google.com 7263b0f65e Add a Futures.forEach function for asynchronously iterating over a collection.
Review URL: https://codereview.chromium.org//11293132

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15473 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-28 21:33:11 +00:00
regis@google.com f19052e037 Remove ClosureArgumentMismatch runtime entry in vm and
replace with call to noSuchMethod.
Review URL: https://codereview.chromium.org//11421134

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15472 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-28 21:14:43 +00:00
scheglov@google.com 05fbfbbbb6 Don't warn if inferred type is too generic - such as Object or Collection.
R=brianwilkerson@google.com
BUG=

Review URL: https://codereview.chromium.org//11411236

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15471 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-28 20:51:57 +00:00
scheglov@google.com fb341a13c0 Issue 6964. Optionally don't warn in Editor when class with noSuchMethod() has unimplemented members.
http://code.google.com/p/dart/issues/detail?id=6964

R=brianwilkerson@google.com
BUG=

Review URL: https://codereview.chromium.org//11428055

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15470 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-28 20:41:07 +00:00
blois@google.com 911a7ec284 Changes to make it easier to add elements.
BUG=3584

Review URL: https://codereview.chromium.org//11316121

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15469 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-28 20:28:03 +00:00
nweiz@google.com a964e37605 Don't require users to copy-paste authorization codes when authorizing pub.
BUG=6951

Review URL: https://codereview.chromium.org//11348268

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15468 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-28 19:45:06 +00:00
scheglov@google.com 23d612de8a Native method is not abstract.
R=brianwilkerson@google.com
BUG=

Review URL: https://codereview.chromium.org//11412225

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15467 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-28 19:41:55 +00:00
nweiz@google.com 748bbee8e7 Add http and oauth2 as SDK packages.
Review URL: https://codereview.chromium.org//11419207

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15466 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-28 19:35:59 +00:00
keertip@google.com 52d2be32af fix for resolving dart core library names with "_"
Review URL: https://codereview.chromium.org//11416246

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15465 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-28 19:35:40 +00:00
blois@google.com f066ff463f Adding @domName annotations to impl files what were missing them.
BUG=

Review URL: https://codereview.chromium.org//11415184

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15462 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-28 19:19:35 +00:00
blois@google.com 357d6d8f8c Fixing Exception name conflicts.
BUG=6993

Review URL: https://codereview.chromium.org//11316221

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15457 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-28 18:14:23 +00:00
ngeoffray@google.com 4a47fb8424 Fix a bad merge that lead to unused optimization: implement the dataEquals in HInterceptor in order to GVN it.
Review URL: https://codereview.chromium.org//11418183

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15453 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-28 15:50:31 +00:00
whesse@google.com 359759884b Add HttpsServer class and test.
BUG=dart:3593

Review URL: https://codereview.chromium.org//11299228

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15452 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-28 15:36:10 +00:00
whesse@google.com aa6d244d9c Fix bug in HttpClient, introduced in r15450.
BUG=

Review URL: https://codereview.chromium.org//11415176

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15451 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-28 14:14:32 +00:00
whesse@google.com d77dfe6ca0 Add support for https scheme in dart:io HttpClient.
BUG=

Review URL: https://codereview.chromium.org//11299210

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15450 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-28 13:47:17 +00:00
floitsch@google.com dc6b25b1e2 Replace === with identical.
Review URL: https://codereview.chromium.org//11411219

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15449 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-28 12:52:36 +00:00
johnniwinther@google.com c80626368d Canonicalize raw type
Review URL: https://codereview.chromium.org//11413219

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15448 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-28 12:36:54 +00:00
fschneider@google.com 9508ecd5d3 Improve constant propagation to handle InstantiateTypeArguments.
If the input to an InstantiateTypeArguments instruction is a constant
it can be eliminated and replaced with the constant.
Review URL: https://codereview.chromium.org//11299204

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15447 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-28 11:22:23 +00:00
ahe@google.com 1b6ecfa255 Update dart2dart status after r15443.
Review URL: https://codereview.chromium.org//11415172

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15446 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-28 10:01:47 +00:00