Commit Graph

1292 Commits

Author SHA1 Message Date
johnmccutchan@google.com 727d29d6b6 Refactor VM service IDs:
- IDs are strings which can be concatenated together like paths.
- Isolate ID is now "/isolates/XXX"
- Function, field, class, library, and script IDs are now stable.
- Introduce <type-ref> tags.

R=turnidge@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31358 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-20 22:35:55 +00:00
zra@google.com 3508d336dd Simplifies standalone VM Android build.
This change also avoids the need to
do another 'gclient runhooks' when switching
between Android and Linux builds, and between
IA32 and ARM Android builds.

gyp does not allow 'libraries' sections inside of
configurations. Therefore, since some architecture
specific paths, libraries, etc. must be specified
on the Android NDK's linker command line, to avoid
re-gyping when switching between Android IA32 and ARM,
this change moves the architecture specific linker
flags to a script, android_link.py.

To avoid re-gyping when swtiching between Linux and
Android, this change creates new configurations
that specify the target OS as well as the the target
architecture, e.g. ReleaseLinuxARM or ReleaseAndroidARM
instead of ReleaseARM.

This change also adds a --toolchain flag to build.py,
and removes obsoleted logic for setting up the Android
build.

R=iposva@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31340 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-20 17:51:34 +00:00
ajohnsen@google.com 3bc42be527 Block other signals while handling a signal.
BUG=
R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31331 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-20 12:12:17 +00:00
ajohnsen@google.com 969eaf8068 Fix watch move event when path is a not a file.
BUG=https://code.google.com/p/dart/issues/detail?id=15458
R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31328 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-20 11:28:53 +00:00
asiva@google.com 447f4e66d9 Fix build break (true is not defined on windows for C).
Review URL: https://codereview.chromium.org//108493003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31291 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-19 18:42:54 +00:00
asiva@google.com a576fec3c0 Allow the native resolver to setup whether it needs the Dart API scope to
be setup automatically or not when a native function is invoked.
This would allow the embedder to treat some native functions as leaf
functions whose invocation can be very light.

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31286 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-19 17:47:56 +00:00
ajohnsen@google.com 38d0fad2c7 Signal handling, take 2.
BUG=
R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31276 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-19 15:07:48 +00:00
ajohnsen@google.com f24f568571 Revert "Signal handling."
This reverts commit r31270.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31275 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-19 14:03:15 +00:00
ajohnsen@google.com e8d9794c70 Signal handling.
BUG=
R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31270 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-19 13:08:26 +00:00
sgjesse@google.com d651bf7366 Handle failures to AcceptEx calls on Windows
R=ajohnsen@google.com
BUG=http://dartbug.com/11165

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31265 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-19 12:41:26 +00:00
ajohnsen@google.com 7a8abc62b7 Fix Stdout in checked mode.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31263 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-19 12:26:27 +00:00
sgjesse@google.com c23414f9df Add missing include
TBR=ajohnsen@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31257 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-19 11:35:26 +00:00
ajohnsen@google.com 5e564f370d Add getter for hasTerminal, terminalColumns and terminalLines on stdin.
BUG=https://code.google.com/p/dart/issues/detail?id=15557
R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31255 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-19 10:59:58 +00:00
turnidge@google.com b640712e6b Handle vmservice messages while at breakpoint.
Allow rudimentary inspection of breakpoints from vmservice.

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31233 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-18 17:45:17 +00:00
ajohnsen@google.com 5558bb0d1f Fix most UDP issues on Mac OS
We still do not test getting SO_BROADCAST, as it (at least on my laptop)
returns false even if it has just been turned on.

Setting SO_REUSEADDR for datagram sockets also behaves differently
compared to Linux and Windows.

IPv6 multicast as I could not test it on my laptop.

R=ajohnsen@google.com
BUG=http://dartbug.com/1975

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31223 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-18 12:23:40 +00:00
sgjesse@google.com 85fdbfb773 Add argument checking to InternetAddress constructor
R=ajohnsen@google.com
BUG=http://dartbug.com/15687

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31220 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-18 11:26:02 +00:00
iposva@google.com 1e8061f060 - Remove the reply_port from the VM internal message object.
- Adjust all the uses of this API.

R=johnmccutchan@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31205 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-17 21:11:18 +00:00
sgjesse@google.com 4ca4f0db07 Only store the address bytes for an internet address in Dart
We used to store the full C "struct sockaddr_storage" in the Dart
internet address. Changed this to be only the bytes for the
address. This removes opaque platform specific binary data from Dart
(e.g. on Mac OS the "struct sockaddr" has an initial length byte).

R=ajohnsen@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31191 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-17 15:35:11 +00:00
johnmccutchan@google.com 919dc2d6eb * Introduce ThreadInterrupter which calls a TLS set callback when thread is interrupted.
* Threads can only register and unregister themselves with ThreadInterrupter.
* Profiler is no longer involved in interrupting threads. It's just a callback and the buffer.
* Profiler operates lock free using an atomic operation to reserve sample in sample buffer.
* Linux, Mac, and Windows done.

R=asiva@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31170 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-16 18:52:15 +00:00
ajohnsen@google.com 69d20ad7d3 Don't make timerfd non-blocking and add errno to error-mesage.
BUG=
R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31162 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-16 14:48:33 +00:00
ajohnsen@google.com d5bfdcf52f Nit fix: 1024 -> KB.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31156 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-16 10:38:12 +00:00
ajohnsen@google.com 33560b188f Add comment to File copy on linux/android.
BUG=
R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31155 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-16 09:12:48 +00:00
zra@google.com b7dcef91bb Fixes build of file_android.cc.
Android sendfile takes an off_t offset rather than off64_t.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31147 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-13 20:40:33 +00:00
ajohnsen@google.com 0b2c1db64a Add fallback-implementation for sendfile on linux and android.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31134 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-13 14:18:11 +00:00
ajohnsen@google.com 9095324cf6 Fix 64-bit linux build after file-copy change.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31129 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-13 12:42:14 +00:00
ajohnsen@google.com fe6b63d5e4 Add File.copy(Sync) to dart:io.
BUG=
R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31125 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-13 12:04:24 +00:00
johnmccutchan@google.com 1b2f609191 WebSocket client for VM service
* Renames ServiceRequest to Message
* Renames ServiceRequestRouter to MessageRouter
* Service now tracks connected clients.
* Service responds to "clients" message with list of currently connected clients.
* Add WebSocketClient to dart:io service.
* WebSocketClient supports sequence 'seq' values.
* web socket client test.
* Update dartium service for ServiceRequest -> Message rename.

R=turnidge@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31116 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-12 22:51:51 +00:00
zra@google.com ae1d431b10 Fixes build of socket_android.cc
Review URL: https://codereview.chromium.org//114303002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31107 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-12 19:32:40 +00:00
ajohnsen@google.com c88afd2ca4 Add getter for lineMode and echoMode for Stdin.
BUG=https://code.google.com/p/dart/issues/detail?id=15424
R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31103 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-12 16:42:26 +00:00
sgjesse@google.com 26a31f84fe Fix malformed type in socket_patch.dart
TBR=ajohnsen@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31102 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-12 16:24:56 +00:00
sgjesse@google.com 8b5d54123e Fix building on Mac OS
Use VOID_TEMP_FAILURE_RETRY macro on Linux and Android as well when
the return value is not used..

TBR=ajohnsen@google.com

Fix analyzer errors in UDP test and update comment in status file

TBR=ajohnsen@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31101 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-12 16:20:13 +00:00
sgjesse@google.com 7b70c2c267 Add UDP support to dart:io
Initial implementation of UDP support in dart:io

Added a RawDatagramSocket which gets the same events as a RawSocket
except that READ_CLOSED is never received.

The receive from a RawDatagramSocket returns a Datagram object where
the senders address and port is presten together with the data.

The send on a RawDatagramSocket takes data and the address and port of
the destination.

Extended the number of socket options to support UDP.

Added getting the socket options.

R=ajohnsen@google.com
BUG=http://dartbug.com/1975

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31098 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-12 15:45:25 +00:00
turnidge@google.com 21b867f851 Add an instance view page to the vmservice.
We can use this view to browse the field values of objects and explore
the heap a bit.

----------

Add field lists to the class and instance view pages.

Add field-ref and instance-ref elements.

R=johnmccutchan@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31074 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-11 18:03:42 +00:00
hausner@google.com 55c283a672 Transmit breakpoint id on paused event
Breakpoint callback get an additional parameter to receive the id of the breakpoint that was hit, or 0 if the debugger pauses due to stepping.

R=turnidge@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31029 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-10 17:41:05 +00:00
whesse@google.com a5ea504079 Update NSS version to NSPR 4.10.2. - dart repository.
BUG=
R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30937 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-06 08:44:31 +00:00
johnmccutchan@google.com 6076a24676 Cleanup VM service
R=jacobr@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30926 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-06 02:20:21 +00:00
johnmccutchan@google.com 8f9763443c Observatory frontend changes for Dartium DevTools.
R=jacobr@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30925 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-06 01:09:50 +00:00
johnmccutchan@google.com 061248df9c Add vmservice_dartium.dart script
BUG=
R=jacobr@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30922 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-05 23:29:54 +00:00
whesse@google.com dd65cd9c50 Enable more ciphers, and TLS 1.2, in SecureSocket.
BUG=dartbug.com/14646
R=ajohnsen@google.com, wtc@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30897 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-05 16:26:48 +00:00
ajohnsen@google.com 9a8edb6924 Use timerfd to handle timeouts on Linux.
BUG=
R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30884 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-05 09:22:07 +00:00
ajohnsen@google.com 30834031f1 Fix type-error from previous commit.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30850 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-04 11:00:08 +00:00
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