ager@google.com
66f08dcabf
By default use current code page on Windows for decoding string
...
data from processes.
R=sgjesse@google.com
BUG=dartbug.com/7180
Review URL: https://codereview.chromium.org//11475026
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15844 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-07 12:51:49 +00:00
cshapiro@google.com
f5c4d7a381
Unify specification of file open, close, and write callbacks.
...
Review URL: https://codereview.chromium.org//11442024
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15807 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-06 21:56:31 +00:00
sgjesse@google.com
3130a75c97
Make all allocation of external arrays used for IO use the IOBuffer class
...
This will not make a difference right now, but when we start to do
something with io buffers they should originate from the same place.
R=ager@google.com
BUG=
Review URL: https://codereview.chromium.org//11438045
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15785 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-06 13:44:24 +00:00
whesse@google.com
5bc3e0566f
Stop leaking NSS library objects in SecureSocket.
...
This reduces memory leakage per secure connection from 600 kb to less than 3 kb, perhaps even to zero.
Review URL: https://codereview.chromium.org//11450033
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15784 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-06 13:34:16 +00:00
asiva@google.com
1390105fbb
Fix for issue 6768
...
Original CL done by Max Heinritz(meh@chromium.org )
Correct PrintUsage in gen_snapshot.
Update PrintUsage in gen_snapshot to accurately describe proper usage of the command.
BUG=6768
Review URL: https://codereview.chromium.org//11446018
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15757 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-05 22:34:07 +00:00
whesse@google.com
4eeedf0cab
Add a callback to SecureSocket for certificates that fail to be authenticated.
...
BUG=
Review URL: https://codereview.chromium.org//11415290
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15734 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-05 14:31:51 +00:00
iposva@google.com
cb148cc938
- Add an extension test which throws from native code.
...
Review URL: https://codereview.chromium.org//11447010
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15728 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-05 13:02:44 +00:00
podivilov@google.com
d94dd29bb8
Support symbolic links and package imports in gen_snapshot.
...
R=asiva@google.com ,iposva@google.com
Review URL: https://codereview.chromium.org//11421215
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15702 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-04 20:27:00 +00:00
ager@google.com
59ea7c3f6c
Fix a number of int type issues in dart:io File implementation to avoid implicit conversions that can change the value.
...
R=sgjesse@google.com
BUG=dartbug.com/5301
Review URL: https://codereview.chromium.org//11414293
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15635 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-03 14:39:05 +00:00
whesse@google.com
7bc0bbd284
Add built-in root certificates to dart:io SecureSocket.
...
Add flag that allows them to disabled at runtime.
BUG=
Review URL: https://codereview.chromium.org//11308271
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15634 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-03 13:15:51 +00:00
iposva@google.com
abfa6f634c
- Consolidate libdart and libdart_export by always exporting
...
the Dart C API symbols.
Review URL: https://codereview.chromium.org//11415254
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15627 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-03 10:38:24 +00:00
ager@google.com
67f052fa04
Add RandomAccessFile.read method and use it for file input stream.
...
I will deprecate the readList method completely as my next change.
R=sgjesse@google.com
BUG=
Review URL: https://codereview.chromium.org//11308226
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15571 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-30 09:29:40 +00:00
whesse@google.com
34771fb64c
Clean up svn:ignore property and .gitignore in dart, dart/pkg, dart/runtime, and dart/samples.
...
Review URL: https://codereview.chromium.org//11421093
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15392 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-27 14:07:53 +00:00
whesse@google.com
49d23f1c0a
Add onError to dart:io SecureSocket. Allow onConnect and outputStream to coexist on Socket and SecureSocket.
...
BUG=
Review URL: https://codereview.chromium.org//11280162
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15378 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-27 10:09:35 +00:00
iposva@google.com
e90e9086e2
- Remove unneeded library tags when concatenating libraries.
...
Review URL: https://codereview.chromium.org//11411176
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15368 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-27 05:41:14 +00:00
tball@google.com
bf5f0db5d0
Added support for isolate unhandled exceptions.
...
BUG=
Review URL: https://codereview.chromium.org//11413101
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15352 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-26 23:31:47 +00:00
sgjesse@google.com
3231b9fdd7
Roll NSS to 169195.
...
This updates NSS to version 3.14.
It also contains a fix for compiling with -O3 on GCC 4.6.3.
R=whesse@google.com
Review URL: https://codereview.chromium.org//11413141
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15278 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-23 10:12:07 +00:00
whesse@google.com
15d5c6b582
Rename TlsSocket to SecureSocket, and all other Tls... items to Secure....
...
BUG=
Review URL: https://codereview.chromium.org//11419138
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15274 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-23 09:21:48 +00:00
ager@google.com
3c8d8827c0
Deal with extension loading from packages.
...
The issue is bad interplay with package and dart-ext URIs.
dart-ext URIs overwrite the package URI which makes us lose
the package URI path components. This change resolves
all the way to a file path for dart-ext URIs if the base
URI is a package URI.
R=whesse@google.com
BUG=dartbug.com/6264
Review URL: https://codereview.chromium.org//11308170
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15272 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-23 07:03:15 +00:00
whesse@google.com
0807c2662b
Implement input and output streams for secure network sockets.
...
BUG=dart:6701
Review URL: https://codereview.chromium.org//11416108
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15267 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-22 16:37:10 +00:00
ager@google.com
2ab635e6c7
Remove output directory from library path on Linux.
...
Move the setting of -rdynamic to the two executables that need
it (dart, dart_no_snapshot). It is needed to allow dynamically
loaded libraries to lookup the API symbols in the binary. We
use that for native extensions.
R=whesse@google.com ,iposva@google.com
BUG=
Review URL: https://codereview.chromium.org//11316144
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15258 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-22 14:41:34 +00:00
iposva@google.com
3d61f5d16a
Fix bug 6467:
...
- Do not attempt to Dart_ExitScope if no scope exists.
- Print more informative message if Dart_Initialization fails.
Review URL: https://codereview.chromium.org//11308166
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15242 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-22 07:54:21 +00:00
hausner@google.com
65bf9cbb2a
Remove abstract from class members in dart libraries
...
Add VM flag to produce compile error for explicitly
defined abstract class members.
Review URL: https://codereview.chromium.org//11299121
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15210 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-21 17:23:35 +00:00
whesse@google.com
961699f924
Working tls server sockets.
...
Add is_server parameter to _TlsSocket, pass it through to _TlsFilterImpl.connect.
Add TlsServerSocket class.
BUG=
Review URL: https://codereview.chromium.org//11414009
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15163 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-20 17:45:18 +00:00
gram@google.com
3601944836
Revised CL for customisable logging (replacing printfs).
...
Review URL: https://codereview.chromium.org//11312242
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15096 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-19 17:38:15 +00:00
ager@google.com
927aa5670c
Include command in ProcessException.
...
R=sgjesse@google.com
BUG=dartbug.com/4060
Review URL: https://codereview.chromium.org//11417028
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15010 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-16 13:03:29 +00:00
kustermann@google.com
d0fe9360a9
Fixed missing O_CLOEXEC in Mac OS
...
TBR=ager@google.com
Review URL: https://codereview.chromium.org//11416009
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14964 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-15 14:13:28 +00:00
kustermann@google.com
fb093fd342
Added O_CLOEXEC to the flags parameter of open() calls
...
To prevent sub-processes from inheriting open file descriptors of
the current process, the O_CLOEXEC flag is necessary.
Review URL: https://codereview.chromium.org//11419008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14963 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-15 13:46:15 +00:00
ager@google.com
0b89690118
Remove overhead of socket testing flags by storing the value in a static.
...
R=sgjesse@google.com
BUG=
Review URL: https://codereview.chromium.org//11348062
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14955 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-15 12:05:18 +00:00
kustermann@google.com
6d1cda397c
Added FD_CLOEXEC flag to client/server socket file descriptors
...
Without the FD_CLOEXEC, all subprocesses will inherit the open socket
file descriptors of the current process due to the default behavior
of fork()+exec().
Review URL: https://codereview.chromium.org//11416006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14952 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-15 11:27:33 +00:00
srdjan@google.com
868f994889
Remove unused files.
...
Review URL: https://codereview.chromium.org//11365262
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14920 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-14 21:21:27 +00:00
whesse@google.com
105c7f112b
Add some makefiles generated by gyp for newly added targets to .gitignore.
...
BUG=
Review URL: https://codereview.chromium.org//11361262
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14900 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-14 16:42:29 +00:00
whesse@google.com
9dfdb4850c
Add a TlsSocket class to dart:io, that implements secure client sockets using TLS (SSL).
...
This uses the NSS (Network Security Services) libraries from Mozilla, which is a cross-platform library for SSL and TLS sockets. We use the patched version from the Chromium repository, which is checked into third_party by the DEPS file.
Review URL: https://codereview.chromium.org//10916081
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14893 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-14 13:38:32 +00:00
ager@google.com
28b43144e5
Update dart:io to convert strings between UTF8 and current code page
...
when interacting with the system.
What we get from and need to hand to the VM is utf8. What we
get from and need to hand to the system is in the current
code page.
R=sgjesse@google.com
BUG=
Review URL: https://codereview.chromium.org//11275281
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14851 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-13 15:03:23 +00:00
whesse@google.com
92045c8c64
Change gyp flag from in_dartium to dart_io_support.
...
BUG=
Review URL: https://codereview.chromium.org//11377098
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14842 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-13 11:47:31 +00:00
ajohnsen@google.com
970cc5ba68
Move JSSyntaxRegExp to core as a private member. This removes the last refrences to dart:coreimpl.
...
After this cleanup, RegExp no longer have a const constructor. Use 'new
RegExp(...)' from now on.
BUG=
Review URL: https://codereview.chromium.org//11365196
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14838 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-13 10:41:37 +00:00
floitsch@google.com
8e6f238f86
a === b -> identical(a, b)
...
Replace === null with == null.
BUG=http://dartbug.com/6380
Review URL: https://codereview.chromium.org//11361190
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14794 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-12 17:19:58 +00:00
whesse@google.com
d131fa7e72
Disable NSS build targets in a Dartium build.
...
BUG=
Review URL: https://codereview.chromium.org//11369152
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14740 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-09 13:56:08 +00:00
whesse@google.com
35e84d80c4
Change names of all NSS gyp targets, so they don't conflict with the Chromium target names.
...
BUG=
Review URL: https://codereview.chromium.org//11365165
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14731 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-09 10:57:42 +00:00
whesse@google.com
4cf65abfa2
Add gyp files to build NSS in Dart
...
The change builds static versions of the cross-platform secure networking libraries NSS and NSPR from Mozilla, on Linux, MacOS, and Windows. These libraries are linked with the standalone Dart executable in a future changelist to support HTTPS and SSL networking in dart:io.
The built libraries will be tested by that future changelist.
Patchlist 19 was committed: https://code.google.com/p/dart/source/detail?r=14524
Reverted in r=14529
Pachlist 21 was committed: https://code.google.com/p/dart/source/detail?r=14684
Reverted in r=14688
Review URL: https://codereview.chromium.org//10909189
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14730 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-09 10:37:45 +00:00
gram@google.com
96016f9034
Fix library syntax
...
Review URL: https://codereview.chromium.org//11368124
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14701 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-08 18:41:58 +00:00
whesse@google.com
677bbd7d29
"Reverting 14684" - Building NSS libraries. It is causing local compilation failures.
...
BUG=
Review URL: https://codereview.chromium.org//11364150
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14688 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-08 16:00:02 +00:00
whesse@google.com
68456442b7
Add gyp files to build NSS in Dart
...
The change builds static versions of the cross-platform secure networking libraries NSS and NSPR from Mozilla, on Linux, MacOS, and Windows. These libraries are linked with the standalone Dart executable in a future changelist to support HTTPS and SSL networking in dart:io.
The built libraries will be tested by that future changelist.
Patchlist 19 was committed: https://code.google.com/p/dart/source/detail?r=14524
Reverted in r=14529
Review URL: https://codereview.chromium.org//10909189
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14684 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-08 15:07:27 +00:00
whesse@google.com
28cfcec742
Move Platform class to dartlib_io target.
...
BUG=
Review URL: https://codereview.chromium.org//11365149
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14680 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-08 13:57:44 +00:00
whesse@google.com
ad4681a661
When building standalone Dart executable, put implementation of dart:io natives in a separate library.
...
BUG=
Review URL: https://codereview.chromium.org//11360121
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14679 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-08 13:19:26 +00:00
whesse@google.com
61caff8270
Change dart_no_snapshot to run native extensions.
...
BUG=standalone/test_extension_test
Review URL: https://codereview.chromium.org//11362132
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14619 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-07 12:03:10 +00:00
iposva@google.com
9cb8c71871
Fix bug 4534:
...
- Only drop the leading "/" on Windows if a leading slash is in the path.
Review URL: https://codereview.chromium.org//11368114
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14609 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-07 01:05:09 +00:00
asiva@google.com
ab2cf23a19
Fix length computation in Dart_StringToUTF8.
...
Review URL: https://codereview.chromium.org//11275107
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14588 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-06 19:07:43 +00:00
whesse@google.com
c8841879eb
Revert commit 14524, which builds NSS and NSPR libraries, for secure networking.
...
There are builders which build Windows 64-bit versions of the SDK, and the Dartium build builds the Dart runtime executable, both of which were not supported by the CL.
BUG=
Review URL: https://codereview.chromium.org//11275150
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14527 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-05 13:53:42 +00:00
whesse@google.com
fcd4c3da98
This change depends on changelist 11341038, which checks out third_party/nss and related libraries from the Chromium repository into third_party in the Dart repository, and on changelist 11343039, which adds platform-specific files for linux to the Chromium repository.
...
The change builds static versions of the cross-platform secure networking libraries NSS and NSPR from Mozilla, on Linux, MacOS, and Windows. These libraries are linked with the standalone Dart executable in a future changelist to support HTTPS and SSL networking in dart:io.
The built libraries will be tested by that future changelist.
Review URL: https://codereview.chromium.org//10909189
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14524 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-05 13:22:31 +00:00