johnmccutchan@google.com
97ef50a1b2
Support stacktrace and objecthistogram service commands
...
R=asiva@google.com
Review URL: https://codereview.chromium.org//19870006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25726 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-02 00:24:09 +00:00
sgjesse@google.com
f01310ef85
Add argument check to Directory and Link constructors
...
These matches the argument check in the File constructor.
Minor refactoring of final fields in File and Directory implementations.
BUG=http://dartbug.com/11976
R=whesse@google.com
Review URL: https://codereview.chromium.org//21520002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25705 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-01 11:32:19 +00:00
zra@google.com
42add423d2
Fixes javascript integer overflow check.
...
R=asiva@google.com
Review URL: https://codereview.chromium.org//21301003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25675 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-31 17:51:23 +00:00
sgjesse@google.com
869cc6d4c9
Make the parameters map of the HTTP HeaderValue unmodifiable
...
BUG=http://dartbug.com/8951
R=whesse@google.com
Review URL: https://codereview.chromium.org//21351002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25663 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-31 13:59:46 +00:00
whesse@google.com
28298880ad
Mark two standalone tests as flaky, with bugs filed for them.
...
package watcher, directory_watcher_test and standalone/vmservice/multiple_isolate_list_test are marked as flaky.
BUG=http://dartbug.com/12107 , http://dartbug.com/12124
R=ricow@google.com
Review URL: https://codereview.chromium.org//21241002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25613 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-30 13:09:32 +00:00
whesse@google.com
9e27f1b98b
Add SecureSocket.addCertificate.
...
BUG=
R=sgjesse@google.com
Review URL: https://codereview.chromium.org//18097007
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25610 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-30 10:01:07 +00:00
zra@google.com
ec9e5dfa15
Marks timing-out simmips tests as Pass, Slow.
...
R=regis@google.com
Review URL: https://codereview.chromium.org//21154003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25583 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-29 21:03:29 +00:00
ajohnsen@google.com
e5afa2b973
Fix readLineSync to work in checked mode.
...
Also update the test to run in checked mode.
BUG=https://code.google.com/p/dart/issues/detail?id=12058
R=sgjesse@google.com , whesse@google.com
Review URL: https://codereview.chromium.org//20908002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25552 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-29 09:54:08 +00:00
srdjan@google.com
9925ae2e76
dart2js should skip tests requiring more than 53-bit precision.
...
R=asiva@google.com
Review URL: https://codereview.chromium.org//20781002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25525 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-26 17:47:29 +00:00
srdjan@google.com
3d6b2fc18e
Allow equality operation on mixed double/smi arguments.
...
Fix a bug in relational operations in 64 bit mode: if ICData specifies double and Smi as possible arguments, we generate code for double and unbox or convert to double the inputs. These works only if smi can fit into the double. Current solution for 64-bit architecture is to disallow two smi-s as input to a polymorphic comparison instruction (equality, relational).
R=johnmccutchan@google.com
Review URL: https://codereview.chromium.org//20468002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25522 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-26 16:48:46 +00:00
whesse@google.com
e550079125
dart:io | Fix handling of exceptions from onBadCertificate callback.
...
BUG=
R=sgjesse@google.com
Review URL: https://codereview.chromium.org//20316002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25519 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-26 13:39:18 +00:00
asiva@google.com
7d7f56642c
Added 53bit_overflow_test also to the fail list (Issue 12044).
...
Review URL: https://codereview.chromium.org//20478002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25496 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-25 20:37:59 +00:00
asiva@google.com
f539689fcb
Mark 53bit_overflow_literal_test as failing (see issue 12044).
...
R=zra@google.com
Review URL: https://codereview.chromium.org//20455002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25493 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-25 20:06:05 +00:00
asiva@google.com
dcb6850f87
Fix for issue 11680
...
- implicitly store a full stack trace in Error objects when they are thrown.
- the shlFromInt on Mints and Bigints was trying to allocate a new OutOfMemory
exception objects instead of using the pre-allocated exception object.
Made the implementation of these methods native so that they can use the
pre-allocated object.
- Ensure that it is not possible to allocate new OutOfMemory or StackOverflow
exception objects.
R=ahe@google.com , srdjan@google.com
Review URL: https://codereview.chromium.org//19106008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25492 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-25 19:28:53 +00:00
whesse@google.com
8dfb2c71c3
Improve certificate tests that hit google.com.
...
BUG=
R=sgjesse@google.com
Review URL: https://codereview.chromium.org//19558011
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25463 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-25 09:37:38 +00:00
ajohnsen@google.com
027a6a42f9
Revert 25425 and disable web_socket_ping_test on simulators for now.
...
Revert "Implement correct back-throttleing for web-sockets."
BUG=
Review URL: https://codereview.chromium.org//19563006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25427 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-24 17:30:52 +00:00
ajohnsen@google.com
5653113f78
Implement correct back-throttleing for web-sockets.
...
This makes it possible to implement a simpler version of
web_socket_ping_test, that doesn't have to involve timers.
BUG=
Review URL: https://codereview.chromium.org//19596008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25425 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-24 17:15:49 +00:00
ajohnsen@google.com
ff2827c26f
Make web_socket_ping_test pass on simulators, where it takes > 100ms to send data between sockets(!).
...
BUG=
Review URL: https://codereview.chromium.org//20088002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25416 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-24 14:27:26 +00:00
ajohnsen@google.com
4b4f0307ba
Add echo and line modes to Stdin.
...
BUG=https://code.google.com/p/dart/issues/detail?id=8190,https://code.google.com/p/dart/issues/detail?id=9825,https://code.google.com/p/dart/issues/detail?id=11659
R=sgjesse@google.com
Review URL: https://codereview.chromium.org//19627004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25413 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-24 13:51:55 +00:00
ajohnsen@google.com
f452d0eaaf
Increase timeout in http_response_deadline_test, to avoid ARM simulator hitting it.
...
BUG=
Review URL: https://codereview.chromium.org//19558010
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25412 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-24 13:48:04 +00:00
ajohnsen@google.com
472c18dc77
Response may fail earlier than after headers are received, in http_response_deadline_test.
...
BUG=
Review URL: https://codereview.chromium.org//19804007
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25411 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-24 13:28:00 +00:00
ajohnsen@google.com
eca9e4cf64
Add ability to send a ping interval on a WebSocket.
...
By enabling it, ping messages can be used to ensure if a websocket
connection is open. However, as it depends on the remote peer to support
ping/pong, it's disabled by default.
BUG=https://code.google.com/p/dart/issues/detail?id=7366
R=sgjesse@google.com
Review URL: https://codereview.chromium.org//19970004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25410 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-24 12:51:53 +00:00
whesse@google.com
d29c9c9726
Make secure_socket_bad_certificate_test more robust.
...
BUG=
R=sgjesse@google.com
Review URL: https://codereview.chromium.org//19668012
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25409 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-24 12:46:44 +00:00
ajohnsen@google.com
9c4ad196bc
Add 'deadline' to HttpResponse, making it possible to give a max duration for the liveness of the response.
...
BUG=https://code.google.com/p/dart/issues/detail?id=8425
R=sgjesse@google.com
Review URL: https://codereview.chromium.org//19668013
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25408 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-24 12:45:05 +00:00
whesse@google.com
23db6345ab
Port dart:io Path tests to package:path.
...
BUG=
R=nweiz@google.com , rnystrom@google.com
Review URL: https://codereview.chromium.org//19231002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25403 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-24 08:45:18 +00:00
whesse@google.com
884436dcb9
Remove uses of Path class from tests/standalone.
...
BUG=
R=ajohnsen@google.com
Review URL: https://codereview.chromium.org//19967002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25399 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-24 07:45:06 +00:00
johnmccutchan@google.com
961cbd69d6
Relax vmservice isolate tests.
...
Review URL: https://codereview.chromium.org//19697016
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25346 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-23 16:37:46 +00:00
ajohnsen@google.com
9a54097f86
Don't throw exceptions when adding to a IOSink(StreamSink) after close.
...
As the IOSink can be closed from the consumer, it leads to unexpected
exceptions.
BUG=http://code.google.com/p/dart/issues/detail?id=11952
R=sgjesse@google.com
Review URL: https://codereview.chromium.org//20036002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25337 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-23 10:37:47 +00:00
johnmccutchan@google.com
b35eab86d6
Provide reasons for expect failures in service test helper.
...
Review URL: https://codereview.chromium.org//20014002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25321 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-22 23:44:34 +00:00
johnmccutchan@google.com
68027fa802
Attempt to get more data from multiple_isolate_list_test
...
Review URL: https://codereview.chromium.org//20008002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25309 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-22 22:01:55 +00:00
johnmccutchan@google.com
ea3a5cfb93
VM Service isolate listing
...
R=asiva@google.com
Review URL: https://codereview.chromium.org//19622003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25279 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-22 15:39:03 +00:00
ajohnsen@google.com
defc5de9e4
Fix typo in previous commit.
...
BUG=
Review URL: https://codereview.chromium.org//19937002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25261 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-22 10:29:08 +00:00
ajohnsen@google.com
7a7ce56b39
Fix raw_server_socket_cancel_test on macos by always call close on done.
...
BUG=
Review URL: https://codereview.chromium.org//19509004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25260 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-22 10:24:09 +00:00
ajohnsen@google.com
cead8bfcfb
Re-enable web_socket_test.
...
BUG=
R=kustermann@google.com
Review URL: https://codereview.chromium.org//19538003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25259 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-22 09:17:44 +00:00
ajohnsen@google.com
723930c88e
Close 'accepted' sockets when listening socket is closed. Fixes raw_server_socket_cancel_test.
...
BUG=https://code.google.com/p/dart/issues/detail?id=8675
R=sgjesse@google.com
Review URL: https://codereview.chromium.org//19675009
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25258 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-22 08:54:54 +00:00
ajohnsen@google.com
b3d67c1b1f
Add test for reusing the port of a server socket, after the server's close future is completed.
...
BUG=
R=kustermann@google.com
Review URL: https://codereview.chromium.org//19653004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25257 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-22 04:49:43 +00:00
ajohnsen@google.com
2bd55c23c7
Keep track of when a socket has been destroyed
...
This adds the event CLOSED to RawSocket and RawServerSocket. This
event indicate that the underlying socket is now destroyed.
This is used to make Socket.close and ServerSocket.close return a
future which is completed when the unserlying socket is
destroyed. This can be used to start listening on the same port after
closing a server socket.
R=ajohnsen@google.com , kustermann@google.com
BUG=https://code.google.com/p/dart/issues/detail?id=4155
Review URL: https://codereview.chromium.org//14864009
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25213 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-19 13:26:48 +00:00
nweiz@google.com
7e4ea2acc3
Properly mark package_isolate_test as failing on the analyzer.
...
Review URL: https://codereview.chromium.org//19765004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25170 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-18 19:43:50 +00:00
nweiz@google.com
1b541506ff
Roll forward "Use package:stack_trace in unittest."
...
This reverts r25135, and rolls forward r25131, r25132, and r25133.
R=rnystrom@google.com
Review URL: https://codereview.chromium.org//19540015
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25169 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-18 19:30:33 +00:00
nweiz@google.com
e93476aa9d
Roll back "Use package:stack_trace in unittest."
...
This reverts r25131, r25132, and r25133.
R=rnystrom@google.com
Review URL: https://codereview.chromium.org//19684006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25135 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-17 23:55:46 +00:00
nweiz@google.com
c091f4c809
Mark more analyzer tests as failing.
...
Review URL: https://codereview.chromium.org//19701003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25133 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-17 23:35:17 +00:00
nweiz@google.com
c7b527f8bc
Roll forward "Use package:stack_trace in unittest."
...
This reverts r24669 and rolls forward r24652, r24659, and r24661.
BUG=11649
R=asiva@google.com , vsm@google.com
Review URL: https://codereview.chromium.org//18892003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25131 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-17 22:39:44 +00:00
kustermann@google.com
2c35690a35
Fixed skipping_dart2js_compilations_test after changing Command() constructor
...
R=ahe@google.com
Review URL: https://codereview.chromium.org//19589002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25097 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-17 13:40:12 +00:00
fschneider@google.com
13b7b7242a
Faster invocation of fields as methods.
...
Until now there was a large discrepancy between
x.f() and
(x.f)()
This CL makes x.f() as fast as (x.f)() by automatically
generating a intermediate dispatcher function that loads
the field and invokes the result as a closure.
The approach resembles the one taken for fast noSuchMethod
invocation and reuses the same per-class cache
of dispatcher functions.
It also fixes a bug in the debugger so that VM-generated
implicit dispatcher functions (like for noSuchMethod, or
field-as-method invocation) don't show up the debuggers
stack trace.
BUG=https://code.google.com/p/dart/issues/detail?id=11041
R=srdjan@google.com
Review URL: https://codereview.chromium.org//18750004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25001 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-15 11:12:09 +00:00
ajohnsen@google.com
40c7d89d66
Move MimeMultipartTransformer and HttpBodyHandler to mime and http_server packages.
...
BUG=
R=whesse@google.com
Review URL: https://codereview.chromium.org//18438005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24991 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-15 08:40:36 +00:00
rnystrom@google.com
a9d24edd0f
Rename "pathos" package to "path".
...
R=ajohnsen@google.com
Review URL: https://codereview.chromium.org//18356011
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24964 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-12 17:54:48 +00:00
floitsch@google.com
4246243464
Fix types in test.
...
Review URL: https://codereview.chromium.org//18097006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24948 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-12 13:40:01 +00:00
floitsch@google.com
0fcc168b0d
Let completers complete in the zone they were constructed in.
...
Makes zones work with IO.
Unfortunately the zones currently don't know when they are done.
I need to investigate this.
R=ajohnsen@google.com , lrn@google.com
Review URL: https://codereview.chromium.org//18788002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24947 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-12 13:11:55 +00:00
ajohnsen@google.com
f7d1f50329
Remove _BufferList from dart:io and now use BytesBuilder.
...
BUG=
R=whesse@google.com
Review URL: https://codereview.chromium.org//18031023
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24941 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-12 10:39:02 +00:00
whesse@google.com
c256ddfe10
dart:io | Support connection renegotiation (rehandshake) on SecureSocket.
...
BUG=dartbug.com/11384
R=ajohnsen@google.com
Review URL: https://codereview.chromium.org//18984008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24916 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-11 14:02:49 +00:00