Commit Graph

10539 Commits

Author SHA1 Message Date
blois@google.com 00a552c3d4 Cleaning up shadow dom tests.
Made the standard test check for platform support and expect a failure if not supported.

Made the layout test fail if not supported rather than hang and cleaned up the status file for it.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16291 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-18 21:57:27 +00:00
blois@google.com f0a3a2338c Re-generating dart:html file.
Noticed that this went out of date with CL https://codereview.chromium.org/11419032

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16290 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-18 21:55:39 +00:00
asiva@google.com 2c6de68680 Changed the API in DartEntry for invoking dart code from C++ to make it more compatible with the requirements of the runtime.
Deleted all the code duplication that was added to circumvent the old DartEntry API requirements.
Review URL: https://codereview.chromium.org//11613009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16288 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-18 21:36:01 +00:00
floitsch@google.com 4d78b505be Switch libraries to using new tags.
Committed: https://code.google.com/p/dart/source/detail?r=15499

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16287 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-18 21:31:34 +00:00
meh@google.com b406d5cb4e Revert "Cleanup CodeObservers (and update build file)"
This reverts commit b528d673e762b0db88b902ec2e45f917e21d8a67.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16285 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-18 19:59:30 +00:00
meh@google.com cc626035f1 Cleanup CodeObservers (and update build file)
- Move CodeObserver registration to the OS abstraction
- Add DISALLOW and AllStatic to Code Observers where appropriate

The builds for Mac and Windows broke when I submitted the earlier CL (11572032). This CL removes obselete files from the .gypi build file.

BUG=7321

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16284 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-18 19:54:12 +00:00
scheglov@google.com a3dcd4e8f8 Issue 7469. Report error if type appears in for extends and implements clauses
http://code.google.com/p/dart/issues/detail?id=7469

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16282 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-18 19:49:12 +00:00
dgrove@google.com 338335ae1c Add LICENSE if none exists, and skip .svn directories.
Review URL: https://codereview.chromium.org//11617022

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16281 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-18 19:40:16 +00:00
rnystrom@google.com c302b07858 Fix interpolation in warning message. :(
Review URL: https://codereview.chromium.org//11616019

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16279 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-18 19:24:42 +00:00
scheglov@google.com 0abc92dae5 Tweak to support 'dart.core' as core library name.
Needed to commit again https://codereview.chromium.org/11419032/

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16278 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-18 19:11:20 +00:00
meh@google.com 4264ab7907 Revert "Cleanup CodeObservers"
This reverts commit 16a9677a8a8f0fb8f91c9e6348e188aa167b36c7.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16277 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-18 19:11:09 +00:00
efortuna@google.com d6cd10fb21 Removed READ_ONLY constants from IDBTransaction class
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16276 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-18 19:01:57 +00:00
nweiz@google.com 14c52ba5f1 Make listDir always emit paths within the given directory.
BUG=7346

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16275 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-18 19:00:12 +00:00
srdjan@google.com 1601d234c5 Fix build.
Review URL: https://codereview.chromium.org//11607021

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16274 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-18 18:57:05 +00:00
meh@google.com 6adb8b3e6d Cleanup CodeObservers
Move CodeObserver registration to the OS abstraction
Add DISALLOW and AllStatic to Code Observers where appropriate

BUG=7321

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16273 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-18 18:54:30 +00:00
srdjan@google.com 18b376a8ad Add DoubleToSmi optimistically, preventing boxing/unboxing of doubles and propagate smi-nessof the result.
Review URL: https://codereview.chromium.org//11568044

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16272 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-18 18:43:29 +00:00
iposva@google.com 37651c2933 - Mark gc_test the same for dart2dart as for the VM.
Review URL: https://codereview.chromium.org//11616016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16271 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-18 18:25:27 +00:00
srdjan@google.com 5a698bba3d Use call counts to prevent cold calls from being inlined.
Review URL: https://codereview.chromium.org//11541002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16269 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-18 18:15:41 +00:00
iposva@google.com 391cefa02e - Consider the growth policy even when allocating large pages.
Review URL: https://codereview.chromium.org//11434056

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16267 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-18 17:45:55 +00:00
devoncarew@google.com 9743106bba Fix for a file encoding isuse in DartAnnotation.java.
https://code.google.com/p/dart/issues/detail?id=7431
Review URL: https://codereview.chromium.org//11606018

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16264 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-18 17:30:58 +00:00
lrn@google.com e33455dd1f Revert "Switch libraries to using new tags."
Still errs in the editor.

TBR=danrubel@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16257 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-18 14:01:28 +00:00
sgjesse@google.com 310225aabf Revert "Fixes to eventhandler and HTTP"
This reverts commit 21994e29d17b686d71432dfac3bc59e5f2238aa1.

TBR=ager@google.com

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16256 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-18 13:21:12 +00:00
lrn@google.com a9b64329c0 Switch libraries to using new tags.
Committed: https://code.google.com/p/dart/source/detail?r=15499

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16255 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-18 13:09:57 +00:00
sgjesse@google.com e107943e70 Fixes to eventhandler and HTTP
1. Improve error handling in Windows event handler

Whenever an error happens on an IO operation this
generates an error event and the handle is marked as having has
an error.

The test http_shutdown_test have been fixed to check for error as well
as succesful request when the server is closing the connection due to
closing the output stream before the input have been read. The test
have also been extended to have the client send more request data to
get more errors.

2. Disable event handler events until re-enabled from Dart

When an eventhandle event is posted to Dart this event is now
disabled in the eventhandler until re-enabled from Dart.

On Linux and Mac OS this was already the case as the file
descriptor for which the event(s) was posted was removed from
epoll/kqueue when events was posted.

On Windows this is now changed so that after an event is posted
it needs to be re-enabled from Dart code like on Linux and Mac
OS.

Changed the Dart event handler code to avoid posting disabling of
the out handler as the C++ code is already doing this on all
platforms.

3. Cancel HTTP parser when a connection is closing

When a HTTP connection is closing and moved to the close queue
there should be no more envents from the HTTP parser for whatever
data is still buffered.

R=ager@google.com

BUG=7294

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16252 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-18 12:32:35 +00:00
johnniwinther@google.com 672d09149b Revert "Clean up the patch file for the isolate library by introducing a new builtin library: isolate_helper.dart."
This reverts commit r16029.

BUG=http://dartbug.com/7448

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16250 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-18 10:26:18 +00:00
kustermann@google.com e8323c2d0b Fixed bug in r16247: variable naming issues
Review URL: https://codereview.chromium.org//11573061

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16249 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-18 10:15:32 +00:00
erikcorry@google.com 231cb95157 Avoid known native field names when minifying method names.
R=ahe@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16248 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-18 09:57:55 +00:00
kustermann@google.com a18994679b Call DumpRenderTree directly from test.dart instead of using the drt-trampoline.py indirection
Currently drt-trampoline.py is used to call DRT. Unfortunately this causes
problems on Windows: If drt-trampoline.py times out, it is killed by test.dart.
But drt-trampoline.py has no way of installing a signal handler on Windows which
would kill the actual DumpRenderTree process. So sometimes we're left with one
hanging DumpRenderTree process on the Windows buildbots.

This change removes the drt-trampoline.py indirection and calls DRT directly
from test.dart.

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16247 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-18 09:52:54 +00:00
ricow@google.com c9a49a2e0e Revert revision 16240
This is causing compilation errors on dartium.

Anton/Peter: could you coordinate relanding this with the code removed from multivm bindings?
Review URL: https://codereview.chromium.org//11610006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16246 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-18 08:12:44 +00:00
ricow@google.com e86d230e80 Remove suppressions from pkg status file, these tests are no longer failing after 16238.
Review URL: https://codereview.chromium.org//11615018

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16245 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-18 06:38:12 +00:00
ager@google.com abb1941544 Fix closing of process stdin on Process.run.
R=sgjesse@google.com
BUG=dartbug/7473

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16244 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-18 06:18:54 +00:00
jmesserly@google.com da58614e53 move libraries.dart into the package if needed
Review URL: https://codereview.chromium.org//11628004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16243 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-18 05:13:54 +00:00
rnystrom@google.com 584c50fb6d Revert "Convert unittest to use "package:" imports."
This reverts commit 1ba2f12fb6f5a34f22647ec917e05abc7f6ac6b3.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16241 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-18 01:31:35 +00:00
blois@google.com b1fa7e7a70 Removing unsupported types.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16240 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-18 01:27:56 +00:00
rnystrom@google.com 4c73170a69 Convert unittest to use "package:" imports.
Review URL: https://codereview.chromium.org//11570043

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16239 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-18 01:14:57 +00:00
nweiz@google.com a8eb61fb8b Fix analyzer errors and warnings for pkg/http.
BUG=7458

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16238 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-18 00:26:15 +00:00
regis@google.com 6665f3c92c Include super type in interface list for cycle detection (issue 4318).
Report an error if a type appears in both extends clause and implements clause.
Add language test.
Close old pending issue 4905685.
Review URL: https://codereview.chromium.org//11613007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16237 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-18 00:13:33 +00:00
blois@google.com 419204dc7b Revert "Removing some deprecated and webkit-only types."
This reverts commit 16233. It broke swarm.

TBR=efortuna
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16234 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-17 23:16:58 +00:00
blois@google.com abae6a6e65 Removing some deprecated and webkit-only types.
PeerConnection00 is a deprecated API from the experimental WebRTC APIs.

Point was only used for some WebKit-only functionality which we should expose at some point, but in a platform-independent manner.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16233 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-17 22:56:46 +00:00
nweiz@google.com bc356f6840 Add the http library to pub.
TBR

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16231 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-17 22:00:05 +00:00
nweiz@google.com e2036dea9c Add a pub command for managing uploaders for packages.
BUG=7363

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16230 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-17 21:47:37 +00:00
alanknight@google.com 87601ebd4a Duplicate of https://chromiumcodereview.appspot.com/11567018/
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16229 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-17 21:14:30 +00:00
scheglov@google.com ecd5c7d0bf Issue 5064. Some more 'skip' tests triage
http://code.google.com/p/dart/issues/detail?id=5064

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16227 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-17 20:39:03 +00:00
regis@google.com aef9047742 Invoke noSuchMethod instead of immediately throwing NoSuchMethodError when
invoking a non-closure as a closure (reopened issue 3326).
Address comments of last cl.
Review URL: https://codereview.chromium.org//11612002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16220 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-17 19:35:16 +00:00
amouravski@google.com 4a8a756c80 Fixed library documentation.
Review URL: https://codereview.chromium.org//11598013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16219 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-17 18:59:25 +00:00
amouravski@google.com 849f34cdbd Fixed package: imports breaking apidoc.
Review URL: https://codereview.chromium.org//11598012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16218 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-17 18:33:27 +00:00
devoncarew@google.com e02e973635 Fix one more spaces in path problem with dart_analyzer.
Review URL: https://codereview.chromium.org//11572054

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16216 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-17 17:40:59 +00:00
kustermann@google.com 0be2cb3fa5 Revert "Call DumpRenderTree directly from test.dart instead of using the drt-trampoline.py indirection"
TBR=ricow@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16215 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-17 17:21:48 +00:00
kustermann@google.com 8071e88618 Call DumpRenderTree directly from test.dart instead of using the drt-trampoline.py indirection
Currently drt-trampoline.py is used to call DRT. Unfortunately this causes
problems on Windows: If drt-trampoline.py times out, it is killed by test.dart.
But drt-trampoline.py has no way of installing a signal handler on Windows which
would kill the actual DumpRenderTree process. So sometimes we're left with one
hanging DumpRenderTree process on the Windows buildbots.

This change removes the drt-trampoline.py indirection and calls DRT directly
from test.dart.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16214 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-17 16:27:11 +00:00
vegorov@google.com 9fc1b54794 Store optimized flow graph statistics on the function itself.
This gives a good estimate for an early bailout from the inlining attempt.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16212 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-17 15:22:16 +00:00