sra@google.com
b82378e3e4
Revert "Fresh try at "Use browsers JSON.parse for parsing JSON.""
...
Review URL: https://codereview.chromium.org//12220009
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18117 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-05 07:11:12 +00:00
sra@google.com
2a3de27007
Fresh try at "Use browsers JSON.parse for parsing JSON."
...
Review URL: https://codereview.chromium.org//12221009
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18116 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-05 07:00:47 +00:00
sra@google.com
42ccc2aa4a
Revert "Revert "Revert "Use browsers JSON.parse for parsing JSON."""
...
Review URL: https://codereview.chromium.org//12192003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18024 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-02 04:01:28 +00:00
sra@google.com
75a7b7e0f6
Revert "Revert "Use browsers JSON.parse for parsing JSON.""
...
with missing gyp file.
Review URL: https://codereview.chromium.org//12179004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18023 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-02 03:36:10 +00:00
sra@google.com
e525fdb517
Revert "Use browsers JSON.parse for parsing JSON."
...
Review URL: https://codereview.chromium.org//12190002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18022 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-02 03:25:53 +00:00
sra@google.com
cafd5ddcae
Use browsers JSON.parse for parsing JSON.
...
This shrinks swarm by 27k (3.6%)
We can't make the error messages be the same since the native error contains only a message.
Review URL: https://codereview.chromium.org//12114021
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18021 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-02 03:17:41 +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
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
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
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
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
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
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
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
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
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
dgrove@google.com
7897a78551
Changes outside pkg/ and lib/ for directory refactoring
...
Review URL: https://codereview.chromium.org//11358024
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14475 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-02 15:18:11 +00:00
ager@google.com
aac030e777
Use patching for dart:io.
...
This allows the tools such as dartdoc to operate on dart:io
in the same way as it does with other code and allows the
implemenation of parts of dart:io for dart2js if we ever
want to do that.
The current patching is very VM specific. I have only moved
stuff to patch files when they actually need to be. For
Process and Socket everything has to be moved because they
use native fields. For the rest, only the individual native
calls have been put in patch files.
R=sgjesse@google.com ,ajohnsen@google.com
BUG=
Review URL: https://codereview.chromium.org//11337019
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14259 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-30 10:32:30 +00:00
iposva@google.com
bc26800a4f
- Generate a version string based on the VERSION file.
...
- Add a Dart_VersionString to the API.
- Print version string when passing --version to the standalone binary.
Review URL: https://codereview.chromium.org//11086065
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13514 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-11 07:17:09 +00:00
lrn@google.com
978c3f6da6
Move dart:web to pkg:htmlescape.
...
Remove the dart:web library from the VM.
Remove reference to web library from libraries.dart.
Review URL: https://chromiumcodereview.appspot.com//10919147
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12023 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-07 12:30:55 +00:00
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
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
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
efortuna@google.com
f89032cd13
Add dart:web to VM.
...
Review URL: https://chromiumcodereview.appspot.com//10574037
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8993 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-21 17:11:02 +00:00
ager@google.com
b6e35655cf
Make the crypto library an official dart:crypto library.
...
The library now works on dart2js and on the VM.
Add the library to the API docs and to the sdk.
R=iposva@google.com ,dgrove@google.com ,kasperl@google.com
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com//10332109
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7604 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-14 11:20:56 +00:00
ahe@google.com
e3cad04c02
Split the URI library across multiple files.
...
Review URL: https://chromiumcodereview.appspot.com//10383103
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7543 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-11 13:40:03 +00:00
asiva@google.com
f0043a78a7
Added lib/compiler compile all VM benchmark.
...
Added frame lookup VM benchmark.
Review URL: https://chromiumcodereview.appspot.com//10178030
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7175 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-01 01:00:04 +00:00
ahe@google.com
56f34d7514
Move cygwin_dir to shared gypi file.
...
Review URL: https://chromiumcodereview.appspot.com//9877003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6626 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-17 11:53:56 +00:00
whesse@google.com
3c6d3843fc
Add native extensions for the Dart shell to the Windows platform and the Mac OS X platform.
...
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com//9465004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5235 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-09 14:34:57 +00:00
dgrove@google.com
98302c85df
Unify most of our utf8 implementations. This takes the implementation
...
from utils/string_encoding and moves it to utils/utf . utils/utf8
goes away.
Review URL: https://chromiumcodereview.appspot.com//9462001
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5169 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-08 13:28:40 +00:00
antonm@google.com
5ece65c673
Force non-Unicode build in all configurations.
...
Review URL: https://chromiumcodereview.appspot.com//9618018
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5044 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-06 19:00:08 +00:00
antonm@google.com
7c443aefcf
Force not-Unicode version of libdart_builtin.
...
Current implementation of file/process/etc. assumes it anyway.
Review URL: https://chromiumcodereview.appspot.com//9600017
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4955 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-05 15:11:51 +00:00
asiva@google.com
738f458956
Changes to get rid of dependency on openssl in the dart VM.
...
(This will enable dartium to be built on the windows platform).
Review URL: https://chromiumcodereview.appspot.com//9481019
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4717 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-28 18:36:39 +00:00
whesse@google.com
f3ab33610d
Use correct format for gyp file when adding -ldl linker flag.
...
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com//9452013
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4536 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-23 14:52:40 +00:00
whesse@google.com
47f51c1053
Add -ldl linker flag to libdart_builtin link step.
...
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com//9447018
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4532 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-23 14:25:52 +00:00
whesse@google.com
33acdc584a
Add -ldl linker flag to Dart shell extensions test shared library link.
...
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com//9442016
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4530 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-23 13:46:36 +00:00
whesse@google.com
0e40002890
Add native extensions to the Dart shell, on the linux platform.
...
BUG=
TEST=standalone/TestExtensionTest
Review URL: https://chromiumcodereview.appspot.com//9430051
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4529 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-23 13:25:11 +00:00
iposva@google.com
a68ea7e455
- Windows only: Move the BN library link dependency into the standalone binaries.
...
Review URL: https://chromiumcodereview.appspot.com//9433021
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4416 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-22 00:36:14 +00:00
iposva@google.com
9dc3d0f49d
- Add dart:json, dart:uri and dart:utf8 to the known and builtin libraries.
...
- Unify and simplify the building of the creation of the source file.
Review URL: https://chromiumcodereview.appspot.com//9417012
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4336 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-16 19:59:19 +00:00
ager@google.com
4efd1f98fa
Split dart:builtin into dart:builtin and dart:io.
...
- dart:builtin is implicitly imported.
- dart:io has to be explicitly imported.
I will update the macos and windows stable test binaries when we
are happy with the solution.
R=iposva@google.com
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com//9254026
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3537 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-24 07:36:59 +00:00
sgjesse@google.com
bf67f24098
Move assert.h/assert.cc from runtime/vm to runtime/platform
...
The purpose of this change is twofold:
1. Source in the bin directory can now use the same assertions as
source in the vm directory. The ASSERT macro used by the code
in runtime/bin was just defined to use assert from the standard
C library.
2. Moving other implementation parts from runtime/vm to
runtime/platform (e.g. classes Monitor and Mutex) for sharing
between runtime/bin and runtime/vm will be easier as these
implementations rely on these assertion macros.
Created two gypi files for the platform directory. One for the
headers and one for the source. The source one is only included
when building the VM library and will be present in libdart.a
when the dart executable is linked.
All the code for asserts is still in the dart namespace.
Also re-arranged the order of includes to be alphabetically in
the files touched.
R=ager@google.com , iposva@google.com
BUG=
TEST=
Review URL: http://codereview.chromium.org//9189003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3335 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-16 12:28:10 +00:00