Lasse R.H. Nielsen
5009e57524
If computation of Stream.periodic throws, forward the error to the stream.
...
Fixes issue #24766
BUG= http://dartbug.com/24766
R=floitsch@google.com
Review URL: https://codereview.chromium.org/1415533015 .
2015-11-04 10:27:49 +01:00
Florian Schneider
eb3186b7bd
Fix flaky async test.
...
Replacing > with >= since finishing in 10 to 11 ms is to be expected.
BUG=dartbug.com/24788
R=floitsch@google.com
Review URL: https://codereview.chromium.org/1415413012 .
2015-11-03 23:30:00 +01:00
Asger Feldthaus
f4429324eb
dart2js cps: Fix codegen for yield.
...
BUG=
R=kmillikin@google.com
Review URL: https://codereview.chromium.org/1415843006 .
2015-11-03 14:21:52 +01:00
Florian Schneider
e75056ccb4
VM: Fix bug with CHA-based inlining in --noopt mode.
...
Use propagated cids (not abstract types) only to specialize instance calls.
BUG=dartbug.com/24789
R=rmacnak@google.com
Review URL: https://codereview.chromium.org/1419013006 .
2015-11-02 19:48:26 +01:00
Florian Schneider
dde638f7db
Mark tests failing with --noopt in the status files.
...
BUG=
R=rmacnak@google.com
Review URL: https://codereview.chromium.org/1415823004 .
2015-10-31 01:45:50 +01:00
Asger Feldthaus
3634c3998a
dart2js: Bugfix for when 'await' occurs in an initializer list.
...
If the JS ast contains an initializer list:
var x = foo(), y = await x;
It would be retained as a single statement and generate invalid output
that awaits 'x' before it has been defined.
CLOSES=23997
BUG=
R=sigurdm@google.com
Review URL: https://codereview.chromium.org/1427593003 .
2015-10-27 11:36:57 +01:00
Lasse R.H. Nielsen
289a22182e
Add support for decoding URL-safe encoded base64.
...
Also support "%3D" instead of "=" as padding, but no other percent escapes.
This is only for decoding, encoding is still as strict as possible.
R=nweiz@google.com
Review URL: https://codereview.chromium.org/1419983003 .
2015-10-26 09:41:30 +01:00
Lasse R.H. Nielsen
b70109683b
Implement cryptographically secure random numbers by using crypto.getRandomValues.
...
Closes https://github.com/dart-lang/sdk/issues/24687
R=floitsch@google.com , sigmund@google.com
Review URL: https://codereview.chromium.org/1413923004 .
2015-10-23 11:14:37 +02:00
Ryan Macnak
371a5dc932
Get tools/test.py --noopt green.
...
More specifically ./tools/test.py --noopt -mall -ax64,simarm,simarm64,simmips --exclude-suite=pkg
- Add missing dart:io entry point.
- Add checks that Dart_FinalizeLoading, Dart_Precompile, Dart_CreatePrecompiledSnapshot are called in order.
- Add checks for --precompilation flag.
- Add checks for dropped class in Dart_New/Allocate/AllocateWithNativeFields.
R=fschneider@google.com
Review URL: https://codereview.chromium.org/1407393005 .
2015-10-21 10:35:01 -07:00
Regis Crelier
09954546fb
Add a 'secure' constructor to Random in dart:math returning a cryptographically
...
secure random generator which reads from the entropy source provided by the
embedder for every generated random value.
Add a test.
Fixes #1746 .
R=lrn@google.com
Review URL: https://codereview.chromium.org/1398453004 .
2015-10-15 10:16:03 -07:00
Ryan Macnak
5532a354c3
Add a test configuration for noopt so we can add status file entries for it.
...
R=srdjan@google.com
Review URL: https://codereview.chromium.org/1409543004 .
2015-10-14 12:36:39 -07:00
Asger Feldthaus
c4b418a2c3
dart2js cps: Updated status file for host-checked mode.
...
BUG=
Review URL: https://codereview.chromium.org/1402943003 .
2015-10-13 15:31:40 +02:00
Asger Feldthaus
f1a40e23c1
dart2js cps: Status updates and minor fixes for host checked mode.
...
CPS should now run the test suite cleanly in host-checked mode. Let's keep it that way.
BUG=
R=floitsch@google.com
Review URL: https://codereview.chromium.org/1377323003 .
2015-10-02 15:36:21 +02:00
Lasse R.H. Nielsen
bd4c7a8a07
Add Base64 codec to dart:convert.
...
This is a simple converter that only accepts and produces plain base-64 strings
with the default alphabet and no whitespace.
R=floitsch@google.com , sgjesse@google.com
Review URL: https://codereview.chromium.org//1370073002 .
2015-09-29 13:49:53 +02:00
Alan Knight
f3261b5608
Suppress the slow_consumer test, fails on drt/checked with heap exhaustion
...
BUG=
Review URL: https://codereview.chromium.org//1374093002 .
2015-09-28 16:34:38 -07:00
Karl Klose
e28e578731
dart2js cps: Support sync* and yield.
...
R=asgerf@google.com , kmillikin@google.com
Review URL: https://codereview.chromium.org//1353843002 .
2015-09-23 11:01:34 +02:00
Terry L. Lucas
c5a690fa26
Revert "Mark tests problems because of Dartium JSInterop"
...
This reverts commit d1a7ee9ad7 .
TBR=alanknight@google.com
Review URL: https://codereview.chromium.org//1355683005 .
2015-09-18 11:00:54 -07:00
Terry L. Lucas
d1a7ee9ad7
Mark tests problems because of Dartium JSInterop
...
TBR=alanknight@google.com
Review URL: https://codereview.chromium.org//1358503002 .
2015-09-18 09:37:37 -07:00
Terry L. Lucas
7b322c246c
Dartium JS Enabled take 2
...
TBR=alanknight@google.com
Review URL: https://codereview.chromium.org//1348173002 .
2015-09-16 07:13:53 -07:00
Terry L. Lucas
09c804aa78
Revert "Dartium JS Interop enabled."
...
This reverts commit 403bd1698d .
TBR=alanknight@google.com
Review URL: https://codereview.chromium.org//1345083002 .
2015-09-15 19:44:26 -07:00
Terry L. Lucas
403bd1698d
Dartium JS Interop enabled.
...
TBR=alanknight@google.com
Review URL: https://codereview.chromium.org//1349493003 .
2015-09-15 17:36:47 -07:00
Asger Feldthaus
19cb08fa05
dart2js cps: Remove code after calls that cannot return.
...
This should resolve an outstanding issue with unreachable code being
transformed. A subterm in the unreachable code would get specialized
and then reanalyzed while some of the definitions in scope have no type.
This changes a lot of test case results. Some test results
have changed in very surprising ways, but I would argue
these are separate bugs that we should hunt down.
BUG=
R=kmillikin@google.com
Review URL: https://codereview.chromium.org//1335273003 .
2015-09-15 17:46:48 +02:00
Asger Feldthaus
0216e21efc
dart2js cps: Use 'this' instead of receiver-arg when possible.
...
This fixes a bug in how intercepted super calls were handled,
and enables the redundant receiver optimization.
BUG=
R=kmillikin@google.com
Review URL: https://codereview.chromium.org//1312393002 .
2015-08-26 16:06:41 +02:00
William Hesse
13bf8ff9f8
Breaking Change: merge BoringSSL branch into master
...
This replaces the NSS secure networking library from Mozilla
with the BoringSSL library from Google. This library, based
on OpenSSL, reads certificates from files in PEM format, rather
than storing certificates and keys in a SQLite database, the
way NSS does. There will be a blog post, changelog entries,
and other documentation of the breaking changes.
Review URL: https://codereview.chromium.org//1319703002 .
2015-08-26 14:42:12 +02:00
Karl Klose
6820b95c1c
dart2js cps: update test expectations.
...
TBR=kmillikin@google.com
Review URL: https://codereview.chromium.org//1303333003 .
2015-08-24 10:59:15 +02:00
Lasse R.H. Nielsen
1a7ff8578d
Make line_splitter_test not use multi-line strings.
...
Apparently dart2js and the VM disagrees on which characters are in
a multi-line string if the source uses Windows line endings.
Fixes issue 23856
BUG= http://dartbug.com/23856
R=sgjesse@google.com
Committed: https://github.com/dart-lang/sdk/commit/194c729a2a80714ab56a61c11802479da9cae95d
Review URL: https://codereview.chromium.org//1294353003 .
2015-08-19 12:35:28 +02:00
Lasse R.H. Nielsen
194c729a2a
Make line_splitter_test not use multi-line strings.
...
Apparently dart2js and the VM disagrees on which characters are in
a multi-line string if the source uses Windows line endings.
Fixes issue 23856
BUG= http://dartbug.com/23856
R=sgjesse@google.com
Review URL: https://codereview.chromium.org//1294353003 .
2015-08-19 11:27:14 +02:00
Asger Feldthaus
496a1e0085
dart2js cps: More status files updates.
...
BUG=
R=kmillikin@google.com
Review URL: https://codereview.chromium.org//1302473002 .
2015-08-18 11:01:05 +02:00
Florian Loitsch
debf1d6f7c
Don't zone-register async callbacks for every await call in the VM.
...
This has the nice side-effect that the stack_trace package provides nicer chains.
Fixes issue 23394.
R=hausner@google.com
Committed: https://github.com/dart-lang/sdk/commit/4dae43d63727268f2e0cc45d6020246eb49177b8
Reverted: https://github.com/dart-lang/sdk/commit/cb4f9fc925c5a92c6cf756751e38296383f66507
Review URL: https://codereview.chromium.org//1274133002 .
2015-08-17 19:26:50 +02:00
Florian Loitsch
cb4f9fc925
Revert "Don't zone-register async callbacks for every await call in the VM."
...
This reverts commit 4dae43d637 .
Review URL: https://codereview.chromium.org//1296973002 .
2015-08-17 16:43:35 +02:00
Florian Loitsch
4dae43d637
Don't zone-register async callbacks for every await call in the VM.
...
This has the nice side-effect that the stack_trace package provides nicer chains.
Fixes issue 23394.
R=hausner@google.com
Review URL: https://codereview.chromium.org//1274133002 .
2015-08-17 15:58:19 +02:00
Florian Loitsch
410b181e13
The return-value of 'asFuture' isn't necessarily related to the Stream's type.
...
R=lrn@google.com
Review URL: https://codereview.chromium.org//1295843002 .
2015-08-17 14:44:31 +02:00
Florian Loitsch
6592391adf
Update status file. Timers are not supported on jsshell.
...
Review URL: https://codereview.chromium.org//1301573002 .
2015-08-17 14:12:08 +02:00
Florian Loitsch
00aaf1708d
Accept a computation that returns a Future for Future.delayed.
...
R=lrn@google.com
Review URL: https://codereview.chromium.org//1296623004 .
2015-08-17 11:34:43 +02:00
Florian Loitsch
f2d08149fd
Don't delay values and errors from async/await functions.
...
Fixes issue 23497.
R=hausner@google.com
Review URL: https://codereview.chromium.org//1287673002 .
2015-08-13 13:00:11 +02:00
Florian Loitsch
ad38b75bb2
Forward cancel subscription in stream pipes.
...
R=lrn@google.com
Review URL: https://codereview.chromium.org//1284223005 .
2015-08-13 12:57:35 +02:00
Lasse R.H. Nielsen
e9f48a37e8
Add getters for callbacks on StreamController.
...
R=floitsch@google.com , sgjesse@google.com
Review URL: https://codereview.chromium.org//1278873008 .
2015-08-11 10:55:48 +02:00
Karl Klose
bafb8fb191
dart2js cps: Support async/await by rewriting the JavaScript AST.
...
BUG=
R=kmillikin@google.com
Review URL: https://codereview.chromium.org//1253333002 .
2015-08-07 11:27:40 +02:00
Florian Loitsch
e42d46a593
Add test that uses function.apply and mirrors in the same file.
...
The import of mirrors is delayed, so that Function.apply is patched in before it is visible that mirrors are used.
R=sigmund@google.com
Review URL: https://codereview.chromium.org//1274633002 .
2015-08-07 11:20:33 +02:00
Karl Klose
7eb3bb82b7
dart2js cps: update test expectations for new tests.
...
TBR=kmillikin@google.com
Review URL: https://codereview.chromium.org//1280603003 .
2015-08-07 08:36:47 +02:00
Ryan Macnak
b6c979f20b
Hoist InstanceMirror.delegate to ObjectMirror.
...
BUG=http://dartbug.com/14827
R=gbracha@google.com
Review URL: https://codereview.chromium.org//1273983002 .
2015-08-05 17:09:59 -07:00
Lasse R.H. Nielsen
0a35f7be3b
Update Changelog.
...
Fix various typos and style nits.
BUG=23961
R=sgjesse@google.com
Review URL: https://codereview.chromium.org//1272593002 .
2015-08-05 12:58:30 +02:00
Ryan Macnak
db8ed04981
Hack around dart:io being loaded into non-service isolates in Dartium.
...
BUG=http://dartbug.com/23940
R=asiva@google.com
Review URL: https://codereview.chromium.org//1259893006 .
2015-08-03 16:59:32 -07:00
Lasse R.H. Nielsen
ac33dfe194
Fix missing generic type parameters on streams.
...
Add test.
BUG= 23859
R=sgjesse@google.com
Review URL: https://codereview.chromium.org//1250373007 .
2015-08-03 14:21:17 +02:00
Ryan Macnak
bc90a5e1f0
Fix getField optimization when the selector is an operator.
...
BUG=http://dartbug.com/23880
R=asiva@google.com
Review URL: https://codereview.chromium.org//1247733005 .
2015-07-22 13:39:07 -07:00
Karl Klose
0bf80c919b
Fix merge error in commit 0869c5ca4a.
...
TBR=lrn@google.com
Review URL: https://codereview.chromium.org//1244743003 .
2015-07-21 10:00:24 +02:00
Karl Klose
0869c5ca4a
dart2js cps: Update test expectations.
...
TBR=asgerf@google.com
Review URL: https://codereview.chromium.org//1240253002 .
2015-07-20 14:40:37 +02:00
Alan Knight
e2e50d30a5
Suppress line splitter test on Chrome/FF on Windows
...
BUG=
R=sigmund@google.com
Review URL: https://codereview.chromium.org//1236793011 .
2015-07-17 10:16:39 -07:00
Lasse R.H. Nielsen
4a8a844c34
Add setters for callbacks on StreamController.
...
This allows you to create a stream controller at one point and
add or change the callbacks later. This can be useful if you
want to store a stream controller in a final instance field and
also want the controller to call instance methods as callbacks.
R=floitsch@google.com
Review URL: https://codereview.chromium.org//1242023007 .
2015-07-17 12:03:00 +02:00
William Hesse
92fa3d7e51
Update status of flaky windows vm tests
...
BUG=https://github.com/dart-lang/sdk/issues/23848
R=koda@google.com
Review URL: https://codereview.chromium.org//1230113008 .
2015-07-15 17:34:37 +02:00