asiva@google.com
a12382dc22
Fix for issue 11112 align flags to formats used by other tools.
...
R=hausner@google.com
Review URL: https://codereview.chromium.org//16673006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23831 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-10 21:57:49 +00:00
johnmccutchan@google.com
3c69367fb7
HTTP loading tests and package root support
...
R=asiva@google.com , iposva@google.com , sgjesse@google.com
Review URL: https://codereview.chromium.org//16092007
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23593 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-04 13:52:47 +00:00
whesse@google.com
7244fff5b4
dart:io | Improve NSS and SSL error messages for secure networking.
...
BUG=dartbug.com/9688
R=sgjesse@google.com
Review URL: https://codereview.chromium.org//16305005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23586 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-04 11:06:00 +00:00
lrn@google.com
662c2a8262
Rename RuntimeError to CyclicIntializationError, as per spec.
...
The RuntimeError has been used to report cyclic initialization errors in
dart2js.
It has also been used for other, unrelated, uses, where it makes
little to no sense.
The RuntimeError type has been removed, but added in js_helper.dart,
where dart2js uses it.
Uses of new RuntimeError("some message") have been converted to
other errors (Argument/State/Unsupported). In some cases, just
throwing a String might have been just as good.
BUG=http://dartbug.com/11040
R=johnniwinther@google.com
Review URL: https://codereview.chromium.org//16154017
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23584 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-04 10:33:11 +00:00
johnmccutchan@google.com
738b05471d
Fix HTTP response handling
...
R=sgjesse@google.com
Review URL: https://codereview.chromium.org//16305011
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23565 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-03 20:32:12 +00:00
whesse@google.com
9c6d3b86e4
dart:io | Make FileStat.stat throw an exception when the file does not exist, or cannot be accessed.
...
BUG=
R=sgjesse@google.com
Review URL: https://codereview.chromium.org//16140008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23543 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-03 15:01:02 +00:00
kustermann@google.com
ba62bae621
Fix for leaking file descriptor issue
...
When calling a non-existent executable, a pair of file descriptors will be
created with pipe(). One end goes to the exitcode handler thread, the other end
goes to the epoll() thread.
If an error occurs during process creation, the pipe is still created and the
exit handler thread writes the exitcode to the pipe, but the other file
descriptor is not added to the epoll() set and is therefore leaked. (i.e.
Process_Start ignores the other end of the pipe if exec() failed in
Proces::Start()).
R=sgjesse@google.com
Review URL: https://codereview.chromium.org//15980006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23534 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-03 09:41:36 +00:00
whesse@google.com
91c8cd03a3
Clean up the gyp build of standalone dart executable on Android.
...
BUG=
R=iposva@google.com , sgjesse@google.com
Review URL: https://codereview.chromium.org//16254005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23531 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-03 09:19:31 +00:00
asiva@google.com
dcfbe9ce9b
Fix windows build.
...
Review URL: https://codereview.chromium.org//15881009
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23504 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-31 23:01:35 +00:00
iposva@google.com
b49896cf86
- Another speculative fix for Windows.
...
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23500 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-31 22:43:17 +00:00
iposva@google.com
cb9bd8666e
- Fix Windows.
...
Review URL: https://codereview.chromium.org//16105019
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23499 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-31 22:33:34 +00:00
johnmccutchan@google.com
43425cc7c7
Remove hack http client and use the one in dart:io
...
R=asiva@google.com
Review URL: https://codereview.chromium.org//15736023
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23496 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-31 22:04:59 +00:00
iposva@google.com
95692ea5d6
- Attempt not to pass C++ flags to C builds.
...
Review URL: https://codereview.chromium.org//15736026
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23480 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-31 17:32:12 +00:00
iposva@google.com
1836035266
- Modify dart_api.h to be a proper C API.
...
- Verify that dart_api.h can be used from C
by changing the test_extension to be a pure C file.
R=asiva@google.com
Review URL: https://codereview.chromium.org//15689013
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23476 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-31 16:36:27 +00:00
lrn@google.com
faa7227cec
Make new StreamController be async by default.
...
Change all instances, except some tests, to be sync still.
Rename Multiplex to Broadcast everywhere.
R=floitsch@google.com
Review URL: https://codereview.chromium.org//16125005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23453 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-31 06:07:39 +00:00
iposva@google.com
b60d09b1fb
- Add different types for persistent and weak persistent handles
...
in the Dart C API.
- Adapt code in the runtime.
R=asiva@google.com
Review URL: https://codereview.chromium.org//15772005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23421 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-30 15:55:59 +00:00
johnmccutchan@google.com
07ff86eb19
Fix windows build
...
Review URL: https://codereview.chromium.org//15904013
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23352 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-29 14:45:27 +00:00
johnmccutchan@google.com
9d264aaee5
Add support for loading scripts from http
...
R=iposva@google.com
Review URL: https://codereview.chromium.org//15966002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23351 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-29 14:34:15 +00:00
sgjesse@google.com
7841206de5
Change File.directory to not do any IO
...
Removed the File.directory and File.directorySync methods and added a
File.directory getter. The File.directory getter does not do any IO,
but just calculates the directory of the file from the path.
R=whesse@google.com
BUG=http://dartbug.com/9926
Review URL: https://codereview.chromium.org//15832003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23349 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-29 12:38:27 +00:00
whesse@google.com
ebbfa6b14b
dart:io | Add missing files.
...
BUG=
Review URL: https://codereview.chromium.org//16122004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23336 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-29 09:55:18 +00:00
whesse@google.com
5623cf6b86
A working version of dart_no_snapshot on Android.
...
BUG=
R=gram@google.com , sgjesse@google.com
Review URL: https://codereview.chromium.org//15706008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23335 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-29 09:43:10 +00:00
lrn@google.com
39c8f31441
Make new StreamController().isPaused be true until the first listener arrives.
...
This is compatible with what we had before, and makes good sense if you read
"isPaused" as "must buffer incoming events".
R=floitsch@google.com , sgjesse@google.com
Review URL: https://codereview.chromium.org//15981003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23318 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-29 05:39:23 +00:00
zra@google.com
3ae3d6b5b3
When cross-compiling, also build and link run_vm_tests for the host architecture.
...
E.g. for ARM, run_vm_tests for the host architecture will end up in
out/DebugARM/run_vm_tests.host.
R=iposva@google.com
Review URL: https://codereview.chromium.org//16060004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23299 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-28 17:56:07 +00:00
sgjesse@google.com
9d6a64e81b
Merge the dart:uri library into dart:core and update the Uri class
...
This merges the dart:uri library into dart:core removing the dart:uri library. Besides moving the library the Url class has been changed.
* Removed existing Uri constructor as it was equivalent with Uri.parse
* Remamed constructor Uri.fromComponents to Uri
* Moved toplevel function encodeUriComponent to static method Uri.encodeComponent
* Moved toplevel function decodeUriComponent to static method Uri.decodeComponent
* Moved toplevel function encodeUri to static method Uri.encodeFull
* Moved toplevel function decodeUri to static method Uri.decodeFull
* Rename domain to host
* Added static methods Uri.encodeQueryComponent and Uri.decodeQueryComponent
* Added support for path generation and splitting
* Added support for query generation and splitting
* Added some level of normalization
R=floitsch@google.com , lrn@google.com , nweiz@google.com , scheglov@google.com
BUG=
Review URL: https://codereview.chromium.org//16019002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23266 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-28 13:35:01 +00:00
whesse@google.com
a76b78a26e
dart:io | Fix a few bugs in the Android port of dart:io.
...
BUG=
R=sgjesse@google.com
Review URL: https://codereview.chromium.org//15894004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23260 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-28 12:58:30 +00:00
lrn@google.com
781e84284f
Reapply "Active stream subscriptions".
...
Makes subscriptions the active part of a stream, with the stream
itself being just an inert creator of subscriptions.
This changes the behavior of a "single subscription" stream to match
the documentation: After the subscription is canceled, you can't
resubscribe to the stream. Previously, you could do that, but it was
never documented or intended.
This also makes the stream of a StreamController not be paused while
before it's subscribed - it is always the subscription that is paused
or not, and while there is no subscription, the stream cannot be
paused. Previously the stream was set to paused until the first
subscription in order to prevent events from being lost. That is
handled independently of pauses now.
Adds StreamController.multiplex constructor. This name is tentative,
and likely to change. Its behavior may change as well. It currently
provides a new single-subscription stream each time its "stream"
getter is read, and you can subscribe to these.
Adds StreamIterator class that allows iterating over a stream's data
events using (async) "moveNext()" and "current", like a direct style
Iterator (sorry, it won't work in a for-in loop).
Review URL: https://codereview.chromium.org//16131003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23237 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-28 07:28:36 +00:00
lrn@google.com
cc0d9d57af
Revert until Windows crash is debugged.
...
Reverts r23218, r23217, r23208, r23207, r23206, r23205, r23204.
r23218 | Path observer is listened more than once, so make it multiplex.
r23217 | Add StreamController.multiplex constructor.
r23208 | Fix bug in streamimpl
r23207 | Fix bug in stream iterator.
r23206 | Change expectations for http_parser_test.
r23205 | Fix bug in stream-impl.
r23204 | Make StreamSubscription be the active part of a string.
Review URL: https://codereview.chromium.org//15989006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23221 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-27 13:03:03 +00:00
lrn@google.com
ee1c11a2a6
Make StreamSubscription be the active part of a string.
...
It is the one keeping the buffer of events, not the stream.
R=ajohnsen@google.com , floitsch@google.com , jmesserly@google.com
Review URL: https://codereview.chromium.org//14753009
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23204 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-27 08:34:20 +00:00
hausner@google.com
c88a53579a
Don't use statically declared Mutex in debugger
...
Hopefully eliminates the "resource busy" errors we occasionally
see on MacOS (issue 10488).
I ran the debugger test 10000 times in a loop on my machine and
never ran into the assert. Let's hope the build bot is happy too.
R=asiva@google.com
Review URL: https://codereview.chromium.org//15861016
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23178 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-24 20:35:03 +00:00
ajohnsen@google.com
e2350a610b
Temporary, only escape quotes if run in shell.
...
This gets pub to pass. This patch should be reverted at some point.
BUG=
Review URL: https://codereview.chromium.org//15861004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23150 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-24 14:14:45 +00:00
ajohnsen@google.com
686cebef6e
Use correct path escape on Windows, for Process.
...
BUG=
Review URL: https://codereview.chromium.org//15782003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23148 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-24 13:34:27 +00:00
whesse@google.com
169df28d14
Fix some errors in the Android compilation of standalone Dart.
...
BUG=
R=sgjesse@google.com
Review URL: https://codereview.chromium.org//16000003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23138 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-24 12:34:01 +00:00
ajohnsen@google.com
87ea640826
Remove ProcessOptions and make the options named arguments.
...
This also removed Process.runShell and adds a new flag: runInShell.
BUG=
R=kustermann@google.com , nweiz@google.com , sgjesse@google.com
Review URL: https://codereview.chromium.org//15883003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23131 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-24 11:03:40 +00:00
asiva@google.com
1792aa6bf3
Change SecureSocket to use a single patch class instead of multiple patch classes the way it is being done now.
...
R=ager@google.com
Review URL: https://codereview.chromium.org//15899003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23087 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-23 17:54:32 +00:00
hausner@google.com
6a206d3af8
Let debug target pick the debugger port
...
Invoking the dart executable with --debug:0 lets the debuggee pick a free port number. It prints the port number to stdout if --verbose_debug is specified on the command line.
Adapt debugger tests to use this scheme for selecting an available port number.
R=iposva@google.com
Review URL: https://codereview.chromium.org//15507004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23086 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-23 17:41:50 +00:00
podivilov@google.com
38be0d45cf
Provide a POSIX-compliant implementation of Directory::Current.
...
R=sgjesse@google.com , whesse@google.com
Review URL: https://codereview.chromium.org//15719002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23024 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-22 16:09:07 +00:00
asiva@google.com
c7967bd145
Fix runnning of vm benchmarks on golem.
...
Use snapshots for creating isolates used in the benchmarks, that way
they are not dependent on corelib source paths.
R=ajohnsen@google.com , srdjan@google.com
Review URL: https://codereview.chromium.org//15640002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23023 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-22 16:07:25 +00:00
whesse@google.com
1179994497
dart:io | Roll third_party/nss from Chromium to revision 199075.
...
R=sgjesse@google.com
Review URL: https://codereview.chromium.org//15371008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23019 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-22 14:41:05 +00:00
podivilov@google.com
6004103f00
Adapt gen_snapshot to the recent changes in bootstrap sources loading scheme.
...
R=asiva@google.com
Review URL: https://codereview.chromium.org//15250009
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22996 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-22 08:55:31 +00:00
ajohnsen@google.com
f06faf4a48
Remove explicit delayed futures in dart:io.
...
After the change of Completers always being delayed to the next tick,
this is no longer needed.
BUG=
R=sgjesse@google.com
Review URL: https://codereview.chromium.org//15680002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22984 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-22 07:23:18 +00:00
ajohnsen@google.com
1e7a090f26
Actually end a ZLib stream with a Z_FINISH marker.
...
BUG=
R=sgjesse@google.com
Review URL: https://codereview.chromium.org//14962006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22830 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-17 06:28:30 +00:00
whesse@google.com
fb8471244f
dart:io | Add FileSystemEntity.stat() and FileStat class.
...
BUG=
R=sgjesse@google.com
Review URL: https://codereview.chromium.org//15018011
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22685 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-14 16:26:13 +00:00
asiva@google.com
30b5101fd1
Fix for issue 10488 standalone/basic_debugger_test flaky
...
R=hausner@google.com
Review URL: https://codereview.chromium.org//15051002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22531 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-08 21:27:54 +00:00
asiva@google.com
5cecc4b95c
Fix windows build break.
...
Review URL: https://codereview.chromium.org//15010004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22516 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-08 17:06:09 +00:00
asiva@google.com
dee399907b
Fix windows build.
...
Review URL: https://codereview.chromium.org//14680010
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22515 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-08 16:58:32 +00:00
asiva@google.com
89ef11e004
Final step towards loading core library scripts directly from the sources
...
- Modify bin.gypi to ensure that the io library and patch files are read
directly from the sources. Remove the source buffer generation step in
the gypi files for all the io library and patch files.
- Restructure the code a bit to eliminate some code duplication.
- Delete runtime/tools/concat_library.py
R=ager@google.com , sgjesse@google.com
Review URL: https://codereview.chromium.org//14752008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22514 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-08 16:42:46 +00:00
podivilov@google.com
d83e6dddf4
Fix Clank+Dart compilation.
...
R=iposva@google.com
Review URL: https://codereview.chromium.org//15023007
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22505 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-08 13:00:09 +00:00
sgjesse@google.com
1b3aff5e11
Change async read buffer sizes on Windows
...
When reading from the console using ReadFile on Windows the buffer size must
be a bit smaller than 32k. Use a 16k buffer in that case and raise the buffer
size to 64k otherwise.
R=ajohnsen@google.com
BUG=https://code.google.com/p/dart/issues/detail?id=9429
Review URL: https://codereview.chromium.org//14589014
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22411 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-06 12:28:45 +00:00
asiva@google.com
ea5a3919c5
Resubmit 22380 after fixing the windows build.
...
R=hausner@google.com
Review URL: https://codereview.chromium.org//14645025
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22396 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-03 22:50:26 +00:00
asiva@google.com
dab8758e7a
Revert 22380 to investigate windows build break.
...
Review URL: https://codereview.chromium.org//14927003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22382 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-03 18:26:34 +00:00