Commit Graph

2501 Commits

Author SHA1 Message Date
johnniwinther@google.com b96c6932c4 Use typedefs in lib.
BUG=http://dartbug.com/7733
R=karlklose@google.com, lrn@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24909 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-11 10:33:34 +00:00
iposva@google.com 2229450865 - Use TCP_NODELAY when using the coverage tool and ddbg.
- Use IPPROTO_TCP instead of SOL_TCP for increased portability.

R=asiva@google.com, hausner@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24865 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-09 21:14:31 +00:00
ajohnsen@google.com 10996fd256 Remove _HttpUtils from dart:io.
The Uri rewrite had all but one of these functions public available, so
they are used insted. The decodeHttpEntityString was only used by
HttpMultipartFormData, so moved to that class.

The function parseCookieDate was moved to HttpDate as a private
function. Renamed the file http_utils.dart to http_date.dart to match the content.

BUG=
R=lrn@google.com, whesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24783 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-05 09:51:39 +00:00
whesse@google.com d3b6076f86 Refactor standalone/io/secure_socket_bad_data_test.
BUG=
R=ajohnsen@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24775 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-04 12:42:17 +00:00
whesse@google.com 6f84b465b7 Fix error in standalone/io/secure_socket_bad_data_test.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24767 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-04 10:15:53 +00:00
whesse@google.com 56f615adca Handle client end error in standalone/io/secure_socket_bad_data_test.
BUG=
R=ajohnsen@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24766 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-04 09:45:45 +00:00
whesse@google.com 686724212d dart:io | Pass errors from multithreaded encryption back to Dart.
BUG=dartbug.com/11383
R=ajohnsen@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24765 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-04 09:21:01 +00:00
ajohnsen@google.com c57845f756 Clean up dart:io warnings/errors found by analyzer tests.
BUG=https://code.google.com/p/dart/issues/detail?id=11665
R=whesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24764 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-04 08:17:43 +00:00
scheglov@google.com 6c6b88967f Remove dartc status sections.
R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24735 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-03 17:50:34 +00:00
devoncarew@google.com 558fcef922 Added a test to cover debugging step over.
Added a separate test to cover step in and out.

R=hausner@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24706 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-02 22:16:01 +00:00
sra@google.com e5af59a0f2 standalone/typed_array_test mostly passes on dart2js + d8
Split int64+uint64 into separate test to that the test can pass on dart2js.

R=asiva@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24702 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-02 18:15:00 +00:00
scheglov@google.com 69eaca5ebd Simplify constructors translation, improve code style.
This CL stops generating and using "_impl" methods with constructor implementation.
This is actually required only locally, when there are other statements aside of redirecting constructor invocation.
So, this may be done later, during constructors optimizing in ConstructorSemanticProcessor.
For now we just transform placeholder of redirecting constructor invocation into the actual initializer.

Also, this CL adds more optimizations into ConstructorSemanticProcessor, such as:
1. removing empty constructor body;
2. enum constructor tweaks.

Plus new snapshot of analyzer_experimental with these changes in translation applied.

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24701 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-02 17:45:11 +00:00
ajohnsen@google.com 435f79a0c7 Fix stdin_sync_test on Windows.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24686 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-02 13:58:01 +00:00
ajohnsen@google.com 8aa206940c Add Stdio.readByteSync and Stdio.readLineSync.
BUG=https://code.google.com/p/dart/issues/detail?id=7136
R=whesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24684 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-02 13:18:00 +00:00
nweiz@google.com d3af1780d2 Roll back "Use package:stack_trace in unittest."
This reverts r24652, r24659, and r24661. r24652 triggered a crashing bug in all
the Dartium tests, so it's being reverted until that bug is fixed.

BUG=11649
R=asiva@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24669 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-01 23:12:23 +00:00
nweiz@google.com 5822a830cf Mark the standalone package isolate test as failing in the analyzer.
R=amouravski@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24659 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-01 21:25:33 +00:00
hausner@google.com 411e3aedc8 Mark out_of_memory test as skip on simarm, simmps
Test passes on the Mac but crashes on Linux.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24636 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-01 18:03:49 +00:00
hausner@google.com 1e955965df Better single stepping in VM debugger
Single stepping now steps into the next dart code that the
user is interested in, including from one asynchronous task
to the next.

R=asiva@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24632 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-01 17:29:18 +00:00
asiva@google.com 1e0c98714b Make writes consistent across socket and file synchronous/asynchronus writes in terms of truncation semantics (reports an argument error if the list element contains a non byte value).
Remove Common_IsBuiltinList as it is not used anymore

Change synchronous file writes to use Dart_TypedDataAcquireData and
Dart_TypedDataReleaseData since the buffer object is always a Uint8List
instead of the more expensive Dart_ListGetAsBytes.

R=ajohnsen@google.com, iposva@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24620 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-29 18:19:33 +00:00
ajohnsen@google.com b39d2c08ca Implement redirect-stdout-on-close on Winows, to the 'NUL' device.
BUG=https://code.google.com/p/dart/issues/detail?id=11593
R=kustermann@google.com, whesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24578 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-28 10:29:21 +00:00
kustermann@google.com ce2d2174a6 Updated tests for test.py after checked-in binary update
R=ricow@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24574 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-28 08:34:55 +00:00
ricow@google.com 810c5d66a0 Suppress flakyness in standalone/io/stdout_close_test
Filed issue 11593

R=kustermann@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24573 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-28 06:09:18 +00:00
zra@google.com e730b67b10 Fixes bug in mips left shift.
R=regis@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24561 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-27 23:11:13 +00:00
zra@google.com 55d97a6d56 Adds missing case in mips double comparison.
Also, adds mips and simmips to runtime benchmark script,
and fixes up a status file.

R=regis@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24541 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-27 19:03:04 +00:00
zra@google.com 43826a3279 Fixes timing-out test for simarm, simmips
R=regis@google.com, srdjan@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24536 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-27 17:32:16 +00:00
ricow@google.com 31d1d5b487 Also remove suppression for test_runner test for the normal analyzer, not just the new dart based one.
Review URL: https://codereview.chromium.org//18083005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24535 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-27 17:28:27 +00:00
ricow@google.com 9573607dd9 Don't suppress test_runner_test on dart2js any more, we pass after we updated the checked in binary.
R=kustermann@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24534 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-27 17:19:06 +00:00
regis@google.com 7370d2a2f6 Minor status file update for ARM.
R=zra@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24533 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-27 17:12:49 +00:00
ajohnsen@google.com d506a6e490 Stop printing when stdout is closed.
This makes sure we don't print(...) data to a file opened after stdout
was closed.

BUG=https://code.google.com/p/dart/issues/detail?id=9615
R=kustermann@google.com, whesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24525 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-27 16:44:39 +00:00
zra@google.com 60392c70fd Implements external array access for mips.
R=regis@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24524 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-27 16:42:39 +00:00
ajohnsen@google.com f6b8d89968 Add FileException.path and clean up file exceptions.
Now correctly throw ArgumentError and not delayed FileExceptions in case
of invalid arguments.

BUG=https://code.google.com/p/dart/issues/detail?id=3075

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24523 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-27 16:42:32 +00:00
sgjesse@google.com 78e9b8ef87 dart:io | Add rename to Link
R=whesse@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24468 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-26 14:09:29 +00:00
scheglov@google.com 92dd5f0e42 Triage pkg and standalone tests.
R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24446 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-26 03:02:18 +00:00
kustermann@google.com 48527d06cd Revert "Do not compile tests for different browsers separately"
We have to use subdirectories instead of special names in the javascript files.

R=ahe@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24408 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-25 14:37:53 +00:00
whesse@google.com 7db2572902 dart:io | Change names for SecureSocket exceptions.
BUG=
R=ajohnsen@google.com, sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24405 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-25 13:54:42 +00:00
sgjesse@google.com 825e533af1 Fix typo in previous commit
TBR=whesse@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24403 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-25 13:34:05 +00:00
kustermann@google.com f6e9601c01 Do not compile tests for different browsers separately
Currently we recompile tests with dart2js for all browsers. There is no
need to do these compilations for all browsers, since the output should be
exactly the same.

R=ricow@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24402 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-25 13:25:11 +00:00
sgjesse@google.com 887c8e7596 Move getters from Options to Platform
The getters for executable, script and version are now statics on
Platform. I kept them on Options for now, but updated most tests to
use Platform.

R=ajohnsen@google.com, floitsch@google.com, iposva@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24401 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-25 12:56:23 +00:00
ajohnsen@google.com 015f2ee53c Fix InternetAddress.resolve impl and test for Windows.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24396 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-25 11:40:10 +00:00
ajohnsen@google.com 3ad9779be6 Add reverse dns lookup as a method on InternetAddress.
BUG=
R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24393 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-25 11:27:48 +00:00
whesse@google.com 3e899b1c75 Add tests that drop read events to the dart:io RawSocket and RawSecureSocket tests.
BUG=
R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24385 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-25 08:14:10 +00:00
ricow@google.com 5df9778e72 Mark standalone/io/web_socket_test as flaky crashing
Filed issue 11502

R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24381 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-25 06:44:05 +00:00
ajohnsen@google.com e7226ca62b Create LinkExceptions using the right arguments, in dart:io.
BUG=https://code.google.com/p/dart/issues/detail?id=11310
R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24380 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-25 06:27:59 +00:00
sgjesse@google.com 153a9b7936 Add a static method decode to StringDecoder
R=ajohnsen@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24335 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-24 13:56:19 +00:00
johnniwinther@google.com 2432ac4647 Support runtime check of function types.
New scheme for checking function subtyping:

1) Generate an $isX predicate on objects that are statically known subtypes of a given function type
2) Generate a signature encoding the whole function type on objects when a runtime check is needed.

A check succeeds if either 1) or 2) is true.

If too many predicates are needed a signature is generated instead, and if a signature is needed, no predicates are generated. Maximum number of predicates is currently determined by the magic constant MAX_FUNCTION_TYPE_PREDICATES in emitter.dart.

R=karlklose@google.com

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24309 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-24 06:58:55 +00:00
zra@google.com 06abf98b1f In FiftyThreeBitOverflow, stores overflowing value as a string.
R=srdjan@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24295 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-21 16:43:43 +00:00
johnniwinther@google.com 90bf6203ee Revert "Support runtime check of function types."
This reverts commit r24286.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24288 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-21 14:02:47 +00:00
johnniwinther@google.com 2ce76ed94a Support runtime check of function types.
New scheme for checking function subtyping:

1) Generate an $isX predicate on objects that are statically known subtypes of a given function type
2) Generate a signature encoding the whole function type on objects when a runtime check is needed.

A check succeeds if either 1) or 2) is true.

If too many predicates are needed a signature is generated instead, and if a signature is needed, no predicates are generated. Maximum number of predicates is currently determined by the magic constant MAX_FUNCTION_TYPE_PREDICATES in emitter.dart.

R=karlklose@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24286 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-21 13:35:56 +00:00
lrn@google.com bece5ce2bb Remove hack for drt running x64 when asking for ia32.
R=kustermann@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24280 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-21 11:06:24 +00:00
lrn@google.com 105be85dbd Fix expectations for 53-bit overflow when run in dartium.
Review URL: https://codereview.chromium.org//16900005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24279 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-21 10:54:53 +00:00