kasperl@google.com
8db48e4171
Revert "Move dart:web to pkg:htmlescape."
...
This reverts r11943.
R=lrn@google.com
BUG=
Review URL: https://chromiumcodereview.appspot.com//10912123
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11945 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-06 13:17:01 +00:00
lrn@google.com
bd49eef27d
Move dart:web to pkg:htmlescape.
...
Review URL: https://chromiumcodereview.appspot.com//10905125
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11943 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-06 12:54:59 +00:00
sgjesse@google.com
e6eff314c3
Cleanup and fixes to some dart:io files
...
Fixed wrong names for constants and some warnings. This includes the changes in https://chromiumcodereview.appspot.com/10913096/ .
R=ager@google.com
BUG=dart:4711
Review URL: https://chromiumcodereview.appspot.com//10911120
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11921 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-06 07:31:46 +00:00
cshapiro@google.com
26b843c7ee
Fix build break on Win32 and MacOS related to printf format string checks.
...
Implement remaining inttypes.h format specifiers on Win32
Resolve some conversion specifier discrepancies on MacOS.
Review URL: https://chromiumcodereview.appspot.com//10928013
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11913 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-06 01:14:09 +00:00
cshapiro@google.com
da14bf70a7
Add attributions so printf like functions can have their arguments checked.
...
This change also corrects some misuses of format strings and format
arguments that discovered by the compiler checks.
Review URL: https://chromiumcodereview.appspot.com//10869063
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11912 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-06 00:58:25 +00:00
asiva@google.com
8aec37055a
Rename Builtin::LoadLibrary to Builtin::LoadAndCheckLibrary as the name
...
LoadLibrary seems to conflict with some windows predefined macros causing
build failures on windows build of dartium.
Review URL: https://chromiumcodereview.appspot.com//10905102
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11894 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-05 18:49:07 +00:00
ager@google.com
2b1e6937b6
Change backlog on http server listen from 5 to 128.
...
5 simultaneously connecting clients seems like very little. This
also fixes an http client test on Mac. If the backlog is too
small a connection can be dropped again before it is accepted
and the client will get a "broken pipe" or "connection reset"
error.
R=sgjesse@google.com
BUG=
Review URL: https://chromiumcodereview.appspot.com//10916111
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11865 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-05 10:40:09 +00:00
ajohnsen@google.com
c5890fce1f
Cleanup in http_utils.dart.
...
Followup fixes to ager's DBC.
BUG=
Review URL: https://chromiumcodereview.appspot.com//10914093
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11863 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-05 09:09:57 +00:00
asiva@google.com
2917199a81
Added option --script-snapshot in gen_snapshot to generate the snapshot of a scipt into the file.
...
Added option --use-script-snapshot to dart to be able to read a script from a snapshot.
Using this for dart2js produces the following result:
time dart --use-script-snapshot=dart2-js out/ReleaseIA32/dart-sdk/lib/dart2js/lib/compiler/implementation/dart2js.dart tests/language/string_test.dart -oout.js
real 0m1.733s
user 0m1.690s
sys 0m0.030s
without the snapshot the runtimes are:
time out/ReleaseIA32/dart out/ReleaseIA32/dart-sdk/lib/dart2js/lib/compiler/implementation/dart2js.dart tests/language/string_test.dart -oout.js.orig
real 0m2.406s
user 0m2.350s
sys 0m0.040s
Review URL: https://chromiumcodereview.appspot.com//10871092
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11840 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-04 20:46:30 +00:00
ajohnsen@google.com
8fa7d6ab51
Use onClosed instead of onError in the WebSocket classes.
...
There is a remaining onerror in 'class WebSocket', but as it's
documented (though unused in the spec), we've left it in for
completeness.
BUG=
Review URL: https://chromiumcodereview.appspot.com//10907047
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11785 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-04 07:26:19 +00:00
ajohnsen@google.com
a344ec4713
Use correct cookie date parsing for cookie 'expires' field.
...
BUG=
Review URL: https://chromiumcodereview.appspot.com//10909057
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11783 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-04 07:03:29 +00:00
ajohnsen@google.com
0223ae82c8
Don't use TEMP_FAILURE_RETRY on windows.
...
BUG=
Review URL: https://chromiumcodereview.appspot.com//10905063
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11771 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-03 14:57:50 +00:00
ajohnsen@google.com
15e0e9e9ee
Fix type for container of inet_addr result on Win.
...
BUG=
Review URL: https://chromiumcodereview.appspot.com//10919062
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11770 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-03 14:49:06 +00:00
ajohnsen@google.com
0c17bf126c
Throw an error if the ServerSocket host argument is invalid.
...
BUG=
Review URL: https://chromiumcodereview.appspot.com//10917064
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11769 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-03 14:39:47 +00:00
iposva@google.com
338e6a6806
Fix dartbug.com/3424:
...
- Remove bogus return type.
Review URL: https://chromiumcodereview.appspot.com//10920049
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11728 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-31 22:07:51 +00:00
asiva@google.com
9ed2e66130
Get rid of support for string interpolation in #import strings.
...
Review URL: https://chromiumcodereview.appspot.com//10911025
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11698 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-31 16:55:03 +00:00
whesse@google.com
14e79b758b
Use new getters syntax in dart:io. A few were missed in the first round of cleanup.
...
BUG=
Review URL: https://chromiumcodereview.appspot.com//10915007
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11614 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-30 14:12:47 +00:00
sgjesse@google.com
6a5e76ef77
Better handling of reading empty files
...
R=whesse@google.com
BUG=dart:4834
TEST=tests/standalone/io/file_test.dart
Review URL: https://chromiumcodereview.appspot.com//10913005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11605 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-30 11:36:11 +00:00
ager@google.com
178100ded4
Move print to corelib.
...
Allow embedder customization in the VM through a static field that can
be set by the embedder.
Mark failing test that is unrelated to this change. The VM does not
like when you import dart:core explicitly and tells you there both
'dart:core' and 'dart:core' define 'print'.
R=ajohnsen@google.com ,iposva@google.com
BUG=
Review URL: https://chromiumcodereview.appspot.com//10887024
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11603 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-30 11:31:30 +00:00
kasperl@google.com
72e668595d
Use new try-catch syntax in runtime/, tools/, and utils/.
...
R=ngeoffray@google.com
BUG=
Review URL: https://chromiumcodereview.appspot.com//10887023
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11514 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-29 11:58:58 +00:00
ager@google.com
2ad46b61fe
Beginning support for library prefixes in the dart API.
...
This is a request for comments. Do we want to expose library
prefixes like this? Is there a way to import with a prefix already
and lookup members?
The reason why I would like to do this is so that I can import the
user-supplied builtins library under a prefix. This will be a useful
first step to move the print function to corelib while preserving
the ability to patch in a print implementation via the builtins
library.
R=iposva@google.com ,turnidge@google.com
BUG=
Review URL: https://chromiumcodereview.appspot.com//10867032
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11494 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-29 08:35:43 +00:00
aprelev@gmail.com
b15aa52677
Fix lowercasing output filenames for dart:3320 as well as fix for co19 test
...
BUG=dart:3320
TEST=
Review URL: https://chromiumcodereview.appspot.com//10825434
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11488 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-29 02:55:34 +00:00
iposva@google.com
327ff5d70e
- Change "static final" to "static const" in the runtime/ directory.
...
- Fixed parsing of top-level static const.
Review URL: https://chromiumcodereview.appspot.com//10883071
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11425 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-27 23:51:37 +00:00
hausner@google.com
028f8c78d1
Suppress "Waiting for debugger..." message on cosole
...
Less noise in the debugger console window.
Also put the verbose debugger output under command line flag
instead of compile time flag.
Review URL: https://chromiumcodereview.appspot.com//10874065
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11328 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-24 17:57:57 +00:00
whesse@google.com
f0162642dd
Change getters syntax in dart:io library.
...
BUG=
Review URL: https://chromiumcodereview.appspot.com//10872033
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11300 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-24 10:11:05 +00:00
ager@google.com
8accd53776
Move exit from the builtin library to dart:io.
...
R=sgjesse@google.com
BUG=
Review URL: https://chromiumcodereview.appspot.com//10879033
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11217 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-23 08:50:22 +00:00
rnystrom@google.com
f65d68a677
When a directory contains read-only files, try to make them writable when recursively deleting on Windows.
...
Review URL: https://chromiumcodereview.appspot.com//10867003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11175 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-22 16:46:21 +00:00
ager@google.com
722c1a3ce6
Deprecate Math object in corelib in favor of dart:math library.
...
Review URL: https://chromiumcodereview.appspot.com//10829459
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11155 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-22 14:33:01 +00:00
whesse@google.com
bb7c2d9969
Fix dart:io Process class on the Windows plaform, which had some race conditions.
...
BUG=dart:4414
Review URL: https://chromiumcodereview.appspot.com//10825473
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11050 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-21 14:24:22 +00:00
whesse@google.com
b074764cfb
Fix for bug dart 3639: Process.run gets stuck on Mac
...
BUG=
TEST=Run fresh build no macosx10.7. Observe finishing to completion without being stuck on dartdoc step
Review URL: https://chromiumcodereview.appspot.com//10834423
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11034 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-21 11:45:48 +00:00
rnystrom@google.com
1e14772bb0
Don't traverse through junctions when recursively deleting on Windows.
...
Review URL: https://chromiumcodereview.appspot.com//10825413
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11005 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-20 23:25:13 +00:00
whesse@google.com
99e64f84c2
Fix dart:io Process callback on Windows platfrom calling convention from cdecl to stdcall.
...
BUG=dart:4414
Review URL: https://chromiumcodereview.appspot.com//10836337
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10946 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-20 12:32:19 +00:00
ajohnsen@google.com
8ca15ec105
Fix HttpHeaders.date and add HttpHeaders.ifModifiedSince.
...
BUG=
Review URL: https://chromiumcodereview.appspot.com//10855197
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10793 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-16 06:50:54 +00:00
ager@google.com
d6fde19b9d
Revert "Start adding TLS (SSL) sockets to dart:io."
...
Revert "Add stub for TlsSocket to dart2js library."
R=whesse@google.com
BUG=
Review URL: https://chromiumcodereview.appspot.com//10828320
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10700 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-15 05:50:35 +00:00
jackpal@google.com
dfc984f75f
Support generating the dart vm snapshot binary on Android
...
This change splits the generate_snapshot_file build target into two targets:
generate_snapshot_bin - executes gen_snapshot to create snapshot_bin_file
generate_snapshot_file - creates snapshot_cc_file
It's not strictly necessary to split the generation into two steps, but
it is convenient to do so, because only the first step needs to know about
Android. The second step can be shared between all builds.
For Android we copy the gen_snapshot executable and all its input files
to Android, run it there, and copy the output files back to the host.
Review URL: https://chromiumcodereview.appspot.com//10827250
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10676 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-14 20:04:54 +00:00
whesse@google.com
5c55f1dd28
Start adding TLS (SSL) sockets to dart:io.
...
Add Linux implementation for SSL client sockets.
BUG=dart:3950
TEST=standalone/io/tls_socket_test
Committed: https://code.google.com/p/dart/source/detail?r=10565
Reverted: r=10567
Review URL: https://chromiumcodereview.appspot.com//10704159
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10650 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-14 14:34:02 +00:00
jackpal@google.com
e060b66a3e
Add _android files for building DartVM on Android
...
Split directory_posix -> directory_(android|linux|macos)
This allows us to cleanly make Android-specific changes to
directory_android.cc
Copy all _linux files to _android files and edit as needed to account
for the differences between Linux and Android:
+ getcwd(0, NULL) doesn't work on Android, have to emulate
+ Android doesn't have a '/tmp' directory, have to emulate
+ Android doesn't provide mkdtemp(), have to emulate.
+ Small differences in the available system include files.
+ Use pthread_cond_timedwait_monotonic instead of
pthread_condattr_setclock
Review URL: https://chromiumcodereview.appspot.com//10826233
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10613 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-13 23:06:52 +00:00
whesse@google.com
e46ed16ce1
Revert "Start adding TLS (SSL) sockets to dart:io."
...
This reverts commit 10565.
BUG=
Review URL: https://chromiumcodereview.appspot.com//10832269
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10567 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-13 12:31:36 +00:00
whesse@google.com
7ad7023d79
Start adding TLS (SSL) sockets to dart:io.
...
Add Linux implementation for SSL client sockets.
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com//10704159
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10565 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-13 12:22:03 +00:00
nweiz@google.com
884404dca2
Add an OutputStream.closed getter.
...
BUG=3603
Review URL: https://chromiumcodereview.appspot.com//10832188
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10455 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-09 20:09:19 +00:00
whesse@google.com
ed4b91dc18
Revert "Revert "Fix dartdoc block code comments in Dart API that are broken and use [: :] delimiters.""
...
This reverts the reversion of 10368.
BUG=
Review URL: https://chromiumcodereview.appspot.com//10837163
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10373 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-08 09:09:13 +00:00
whesse@google.com
87ed218f2c
Revert "Fix dartdoc block code comments in Dart API that are broken and use [: :] delimiters."
...
This reverts commit 10368.
BUG=
Review URL: https://chromiumcodereview.appspot.com//10825242
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10370 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-08 08:48:29 +00:00
whesse@google.com
f03f271148
Fix dartdoc block code comments in Dart API that are broken and use [: :] delimiters.
...
BUG=dart:2570
Review URL: https://chromiumcodereview.appspot.com//10854025
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10368 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-08 08:16:39 +00:00
rnystrom@google.com
0bc9b19740
Rename BadNumberFormatException -> FormatException.
...
Review URL: https://chromiumcodereview.appspot.com//10850034
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10354 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-07 20:56:59 +00:00
jackpal@google.com
b90fc6b87f
Revert "Make Directory::Current() work with unenhanced POSIX getcwd"
...
(Was committed by mistake.)
This reverts commit 75e15184afcd00e293a44ccba7dc1ead5387c382.
Merge remote-tracking branch 'refs/remotes/git-svn'
Revert "Make Directory::Current() work with unenhanced POSIX getcwd"
This reverts commit cab70428509870ae6ebf8de09d42991cc0318a07.
(Which was accidentally checked in before being reviewed.)
Make Directory::Current() work with unenhanced POSIX getcwd
POSIX says getcwd needs to be passed a pre-allocated
buffer, but many platforms provide an extended version
of getcwd that will allocate a buffer when called with
arguments (NULL, 0).
Display::Current() was depending upon this extended
behavior, which happens to work on Linux and Mac
platforms, but which doesn't work on other POSIX
platforms (such as Android.)
Fixed by using the preprocessor to choose between two
implementations of Display::Current, one of which depends
upon the extended semantics of getcwd, the other of which
only depends upon the standard semantics of getcwd.
BUG=
Review URL: https://chromiumcodereview.appspot.com//10828180
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10316 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-06 22:39:36 +00:00
jackpal@google.com
ccda58baf5
Make Directory::Current() work with unenhanced POSIX getcwd
...
POSIX says getcwd needs to be passed a pre-allocated
buffer, but many platforms provide an extended version
of getcwd that will allocate a buffer when called with
arguments (NULL, 0).
Display::Current() was depending upon this extended
behavior, which happens to work on Linux and Mac
platforms, but which doesn't work on other POSIX
platforms (such as Android.)
Fixed by using the preprocessor to choose between two
implementations of Display::Current, one of which depends
upon the extended semantics of getcwd, the other of which
only depends upon the standard semantics of getcwd.
BUG=
Review URL: https://chromiumcodereview.appspot.com//10824159
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10309 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-06 21:51:20 +00:00
nweiz@google.com
6b9b429688
Add a ListOutputStream.onData callback.
...
BUG=4335
Review URL: https://chromiumcodereview.appspot.com//10832145
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10298 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-06 18:25:14 +00:00
asiva@google.com
9d123e5366
Move hashmap.h and hashmap.cc from the 'bin' directory to 'platform' directory so that it can be used from VM code too.
...
Review URL: https://chromiumcodereview.appspot.com//10853009
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10261 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-03 22:11:30 +00:00
ahe@google.com
1e0c2471a5
Changed default Uri constructor to Uri.fromComponents(), new default constructor is Uri.fromString(). This is to avoid new Uri(' http://www.google.com ') resulting in Uri with scheme=' http://www.google.com '.
...
Committing on behalf of: Alexander Aprelev <aprelev@gmail.com >
BUG=dart-3348
TEST=new Uri('http://www.google.com ') is the same as new Uri.fromString('http://www.google.com ') same as new Uri.fromComponents(scheme:'http', domain:'www.google.com')
Review URL: https://chromiumcodereview.appspot.com//10850015
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10168 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-02 13:48:30 +00:00
nweiz@google.com
637f6fe616
Fix the definition of kIllegalPort in dart_api.h.
...
Declaring a variable directly in a header will cause C to be unable to link
multiple object files that both include that header, even if that variable is
const.
Review URL: https://chromiumcodereview.appspot.com//10834017
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10135 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-01 18:47:33 +00:00