ajohnsen@google.com
abdc2ade9d
Rewrite file-system-watcher to better handle the different system APIs.
...
BUG=http://code.google.com/p/dart/issues/detail?id=14941
R=sgjesse@google.com
Review URL: https://codereview.chromium.org//98773002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30848 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-04 10:35:00 +00:00
floitsch@google.com
4b316431fa
Implement scheduleImmediate for the VM.
...
BUG= http://dartbug.com/9001
R=iposva@google.com
Review URL: https://codereview.chromium.org//79243002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30797 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-02 16:27:07 +00:00
ajohnsen@google.com
5621dbd99d
Don't report multiple read-closed events.
...
BUG=
R=sgjesse@google.com
Review URL: https://codereview.chromium.org//96763004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30784 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-29 13:25:05 +00:00
sgjesse@google.com
bed6412143
Fix checked mode failure
...
TBR=ajohnsen@google.com
BUG=
Review URL: https://codereview.chromium.org//96413003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30781 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-29 12:01:26 +00:00
ajohnsen@google.com
458ccec72f
Fix socket to report write errors async.
...
BUG=
R=sgjesse@google.com
Review URL: https://codereview.chromium.org//96203006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30777 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-29 11:19:57 +00:00
sgjesse@google.com
5ec3f666c0
Add the index information to network interface
...
R=ajohnsen@google.com
BUG=
Review URL: https://codereview.chromium.org//95183002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30776 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-29 11:18:30 +00:00
ajohnsen@google.com
5591751c3c
Add test of Zones for HttpServer and RawSocketServer.
...
BUG=https://code.google.com/p/dart/issues/detail?id=15367
R=floitsch@google.com , sgjesse@google.com
Review URL: https://codereview.chromium.org//93973002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30775 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-29 10:26:00 +00:00
johnmccutchan@google.com
589ea683c3
List scripts in library and display script source
...
BUG=
R=iposva@google.com
Review URL: https://codereview.chromium.org//59283007
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30732 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-27 19:54:52 +00:00
sgjesse@google.com
b99d27ec86
Simplify some argument checking for socket calls
...
Ensure valid range in the C++ code. Leave any argument checking with
"user-friendly" error messaged to the Dart code.
R=ajohnsen@google.com
BUG=
Review URL: https://codereview.chromium.org//91043003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30713 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-27 12:12:08 +00:00
ajohnsen@google.com
e60f22cb9e
Add support for Websocket protocols.
...
This also fixes an issue where idle sockets could keep the program
alive.
BUG=https://code.google.com/p/dart/issues/detail?id=14503
R=sgjesse@google.com
Review URL: https://codereview.chromium.org//91223002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30712 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-27 12:10:23 +00:00
ajohnsen@google.com
79cf8dc61f
Don't report file-system move events on Mac OS, and use no-defer to avoid past events.
...
Mac OS does not have a proper way to report 'from' and 'to', thus making it impossible to reason the move direction, as other events may shuffle the order, events are received in.
BUG=https://code.google.com/p/dart/issues/detail?id=14806,https://code.google.com/p/dart/issues/detail?id=14793,https://code.google.com/p/dart/issues/detail?id=14849
R=sgjesse@google.com
Review URL: https://codereview.chromium.org//88063002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30710 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-27 11:48:14 +00:00
sgjesse@google.com
c97dc6f9fb
Propagate errors from DartUtils helper functions
...
Instead of asserting in debug mode just propagate any errors.
R=ajohnsen@google.com
BUG=
Review URL: https://codereview.chromium.org//91293002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30709 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-27 11:46:20 +00:00
johnmccutchan@google.com
f40c74c3de
Remove type annotation from _TypedListBase
...
BUG=https://code.google.com/p/dart/issues/detail?id=12861
R=hausner@google.com
Review URL: https://codereview.chromium.org//80993003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30685 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-26 23:35:35 +00:00
johnmccutchan@google.com
a80d328371
Call exit instead of returning from main
...
BUG=
R=iposva@google.com
Review URL: https://codereview.chromium.org//88853002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30672 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-26 18:13:51 +00:00
ajohnsen@google.com
6949b04215
Use ino64_t on linux, to match the output of stat64.
...
BUG=
R=sgjesse@google.com
Review URL: https://codereview.chromium.org//87623002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30658 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-26 07:41:44 +00:00
ajohnsen@google.com
88e227fce7
Use EV_ONESHOT in eventhandler on Mac OS.
...
BUG=
R=sgjesse@google.com
Review URL: https://codereview.chromium.org//85373002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30611 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-25 08:58:32 +00:00
zra@google.com
5984398417
Removes EPOLLONESHOT from Android eventhandler.
...
It doesn't exist in the NDK.
R=iposva@google.com
Review URL: https://codereview.chromium.org//83963003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30598 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-22 23:40:25 +00:00
turnidge@google.com
b354d77a3b
Add field and function view for libraries. Rough cut.
...
R=iposva@google.com
Review URL: https://codereview.chromium.org//82793004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30596 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-22 23:02:11 +00:00
ajohnsen@google.com
2b83a250a5
Fix re-adding to epoll, when event is unhandled.
...
BUG=
Review URL: https://codereview.chromium.org//83483003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30576 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-22 13:56:40 +00:00
ajohnsen@google.com
a3d54702b0
Correctly revert eventhandler_macos.
...
BUG=
R=sgjesse@google.com
Review URL: https://codereview.chromium.org//82903003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30575 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-22 13:21:12 +00:00
ajohnsen@google.com
c98d0bde22
Read up to 8 InterruptMessages at a time, in unix eventhandlers.
...
BUG=
R=sgjesse@google.com
Review URL: https://codereview.chromium.org//83173003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30574 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-22 12:50:29 +00:00
ajohnsen@google.com
5b45b4ade5
Revert using one-shot on mac, as it doesn't work as expected.
...
BUG=
R=sgjesse@google.com
Review URL: https://codereview.chromium.org//82943004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30573 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-22 12:10:59 +00:00
ajohnsen@google.com
e177d16fa2
Remove unneded debug printing from FDUtils.
...
BUG=https://code.google.com/p/dart/issues/detail?id=15005
R=sgjesse@google.com
Review URL: https://codereview.chromium.org//83053002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30572 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-22 11:30:15 +00:00
ajohnsen@google.com
d2e3c3d573
Limit the number of syscalls made by the Eventhandler.
...
We now let epoll use EPOLLONESHOT instead of manual unsubscribing, and
only to handle timeouts when no IO events was received.
BUG=
R=sgjesse@google.com
Review URL: https://codereview.chromium.org//82873002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30566 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-22 08:24:40 +00:00
sgjesse@google.com
7254b45183
More cleanup in the socket C++ code
...
R=ajohnsen@google.com
BUG=
Review URL: https://codereview.chromium.org//78393005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30564 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-22 08:02:20 +00:00
iposva@google.com
8d926653e1
- Ensure that classes are finalized before their description is
...
being generated for the observatory.
- Reset the state that a class is being currently parsed.
- Move the deployed polymer app to a location where it is not
being overwritten by the tools.
- Do not rely on Dart SDK binaries being in your path.
- Check for errors when invoking dart2js as part of build.dart.
Review URL: https://codereview.chromium.org//77043010
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30533 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-21 17:26:22 +00:00
sgjesse@google.com
72d2ca28c9
Cleanup the getting and setting of the socket file descriptor
...
R=ajohnsen@google.com
Review URL: https://codereview.chromium.org//81013002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30524 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-21 15:22:35 +00:00
ajohnsen@google.com
a7db0f12c0
Simplify 0-timers to not go through the eventhandler.
...
BUG=
R=sgjesse@google.com
Review URL: https://codereview.chromium.org//78103002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30461 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-20 12:33:05 +00:00
sgjesse@google.com
26f89dbd7f
Fix dart2js after InternetAddress change
...
R=ajohnsen@google.com , ngeoffray@google.com
BUG=
Review URL: https://codereview.chromium.org//78223002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30459 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-20 12:03:14 +00:00
ajohnsen@google.com
ff5f4fbdc9
Only read from interrupt_fd when data is available.
...
BUG=
R=sgjesse@google.com
Review URL: https://codereview.chromium.org//77983002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30453 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-20 10:26:59 +00:00
sgjesse@google.com
32e6279482
Update InternetAddress
...
Add InternetAddress constructor for numeric addresses. An
InternetAddress can now be constructed without using DNS resolving.
Add hash code calculated from the bytes of the address.
Add equality operator comparing the bytes of the address.
Added check for multicast addresses.
R=ajohnsen@google.com
Review URL: https://codereview.chromium.org//76383002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30449 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-20 10:01:22 +00:00
johnmccutchan@google.com
97ac18aee9
Sampling profiler
...
BUG=4350
R=asiva@google.com
Review URL: https://codereview.chromium.org//25909002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30419 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-19 18:26:10 +00:00
ajohnsen@google.com
545455cccb
Undo some of the large-file changes on Android, as only some of them are implemented.
...
BUG=
R=zra@google.com
Review URL: https://codereview.chromium.org//76413003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30415 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-19 16:24:10 +00:00
ajohnsen@google.com
b76897eb00
Fix File truncate on Windows.
...
BUG=
R=sgjesse@google.com
Review URL: https://codereview.chromium.org//76283002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30406 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-19 12:32:29 +00:00
ajohnsen@google.com
8f99537455
Fix large-file support for mac os x.
...
BUG=
R=sgjesse@google.com
Review URL: https://codereview.chromium.org//61633003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30404 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-19 12:17:57 +00:00
sgjesse@google.com
09ef9104e0
Don't supply host names for the fixed internet addresses
...
The hard-coded host names "localhost" and "localhost-ip6" where taken
from the default Ubuntu hosts file. But other machines (e.g the
default on Mac OS) might be configured different. To avoid actual
lookup of "localhost" and "localhost-ip6" returning a different
address than the provided fixed loopback addresses don't add an actual
host name.
R=ajohnsen@google.com
BUG=
Review URL: https://codereview.chromium.org//76243002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30403 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-19 12:17:41 +00:00
ajohnsen@google.com
7fef1ff77a
Add support for working with large files on unix systems, in dart:io.
...
BUG=
R=sgjesse@google.com
Review URL: https://codereview.chromium.org//63363010
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30399 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-19 11:38:20 +00:00
hausner@google.com
e5cd233fd9
Fix json message in debugger wire protocol
...
Removed faulty comma in message. This hopefully solves issue 13792.
R=devoncarew@google.com
Review URL: https://codereview.chromium.org//59883019
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30311 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-15 19:14:47 +00:00
hausner@google.com
0673063f57
Add closure object type to debugger wire protocol
...
R=devoncarew@google.com
Review URL: https://codereview.chromium.org//61153006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30289 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-14 19:42:14 +00:00
sgjesse@google.com
7dca3fa966
Provide better error message when the VM tries to load a script using HTTP
...
R=whesse@google.com
BUG=http://dartbug.com/14924
Review URL: https://codereview.chromium.org//66623002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30150 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-11 11:22:10 +00:00
whesse@google.com
ec534ea516
Restore missing debug flag supression from NSS update.
...
BUG=dartbug.com/14896
R=ajohnsen@google.com
Review URL: https://codereview.chromium.org//59773011
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30045 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-07 12:25:38 +00:00
whesse@google.com
25785c7316
Update NSS to Chromium revision 232552
...
BUG=
R=ajohnsen@google.com
Review URL: https://codereview.chromium.org//64113002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30044 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-07 12:01:23 +00:00
iposva@google.com
14696031b3
- Do not use size_t.
...
Review URL: https://codereview.chromium.org//59083012
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29952 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-06 01:08:22 +00:00
iposva@google.com
070d3dedf7
- Add a per-isolate pseudo random number generator to the
...
VM internals. This PRNG is not used to generate random
numbers in Dart code.
- Use the PRNG to generate JIT cookies for large constants
if needed during assembly.
- Add the possibility to set an external entropy source
for the PRNG through the C API.
R=asiva@google.com
Review URL: https://codereview.chromium.org//59773007
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29950 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-06 00:59:46 +00:00
srdjan@google.com
2b9fad92c7
In preparation of inlining remainder and modulo binary Smi operations:
...
- Add REM token
- Fix checking of function fingerprints.
- Remove unused intrinsic for remainder (the function gets inlined and intrinsic is not generated)
R=hausner@google.com
Review URL: https://codereview.chromium.org//59933004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29929 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-05 19:27:46 +00:00
ajohnsen@google.com
e25f1d2c33
Fix Socket::remoteAddress on Windows to not include port number.
...
BUG=
Review URL: https://codereview.chromium.org//59073004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29907 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-05 13:56:18 +00:00
ajohnsen@google.com
57d8b90fe1
Rename remoteHost to remoteAddress on *Socket.
...
BUG=
R=sgjesse@google.com
Review URL: https://codereview.chromium.org//59213003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29904 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-05 13:24:49 +00:00
ajohnsen@google.com
b71e57617e
Always mark stdout and stderr as blocking on exit.
...
This is required by some shell systems, such as Emacs.
BUG=https://code.google.com/p/dart/issues/detail?id=14301
R=sgjesse@google.com
Review URL: https://codereview.chromium.org//59393003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29895 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-05 11:57:52 +00:00
whesse@google.com
631f9f86bc
Allow Windows network share paths for the script path and the package root.
...
BUG=dartbug.com/14577
R=sgjesse@google.com
Review URL: https://codereview.chromium.org//57923004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29878 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-05 08:10:55 +00:00
sigmund@google.com
260edd95ea
Switch to new main semantics (fixes issue 14797)
...
R=jmesserly@google.com
Review URL: https://codereview.chromium.org//57423005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29870 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-05 01:51:58 +00:00