regis@google.com
adb534674c
Change core lib, dart2js, and more for new optional parameters syntax and semantics (new semantics is not enforced yet).
...
Review URL: https://codereview.chromium.org//11090016
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13684 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-16 16:03:47 +00:00
srdjan@google.com
fc6afec8de
Inline indexed load and store of typed array float64.
...
NavierStokes time improves from 34,775us to 12,000us (v8 runs NavierStokes in 16000 us).
Review URL: https://codereview.chromium.org//11092090
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13682 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-16 15:40:54 +00:00
srdjan@google.com
f2f42283fa
Fix crashes in intrinsified float32/float64 array setters when attempting to store a Smi. Added tests.
...
Review URL: https://codereview.chromium.org//11144021
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13664 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-15 20:04:13 +00:00
sgjesse@google.com
ce3583e427
Add support for multiple HTTP proxies
...
If the configuration returned from the findProxy in HttpClient
contails a list of proxies the the entries in the list will be tried
one by one until a working one is found. Before only the first was
ever tried.
R=ajohnsen@google.com
BUG=dart:5468
TEST=tests/standalone/io/http_proxy_test.dart
Review URL: https://codereview.chromium.org//11092044
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13599 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-12 08:18:19 +00:00
srdjan@google.com
4d16e710a5
Apply John's change (Issue 11077007: Intrinsify Float64 array access on ia32 and x64.).
...
Review URL: https://codereview.chromium.org//11087087
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13576 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-11 19:44:47 +00:00
lrn@google.com
77107e4fe2
Fix byte_array_test to work in checked mode.
...
Bad arguments throw TypeError in checked mode, before
they are checked in the method.
TBR=karlklose@google.com
Review URL: https://codereview.chromium.org//11017072
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13524 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-11 08:55:47 +00:00
lrn@google.com
fbc14bdfdb
Fix bug in ByteArray.subByteArray implementation for omitted length.
...
If length is omitted, it defaulted to the length of the byte array,
even if the start was greater than zero. It now subtracts the start
from the length to get "the length of the rest of the byte array".
Review URL: https://codereview.chromium.org//11098065
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13522 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-11 08:26:01 +00:00
blois@google.com
c9f164aed4
Improving path.relativeTo to add support for a broader set of absolute paths.
...
I had made a last minute change in my previous CL (changing from a string operation to using hasTrailingSeparator), but forgot to test it.
First change is the original, second has the fix.
BUG=
Review URL: https://codereview.chromium.org//11087034
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13435 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-09 19:58:10 +00:00
blois@google.com
5ec7bcc034
Revert "Improving relative path support."
...
This reverts commit 13422 which broke VM win & mac.
BUG=
Review URL: https://codereview.chromium.org//11096026
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13423 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-09 17:02:51 +00:00
blois@google.com
95aabfc319
Improving relative path support.
...
I'm looking to modify our HTML tests to use relative paths and it was mentioned that I should be using Path.relativeTo- this change fixes relativeTo to handle the cases that I need.
BUG=
Review URL: https://codereview.chromium.org//10986078
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13422 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-09 16:48:48 +00:00
sgjesse@google.com
66b7a2c9c9
Addressed drive by comments
...
DBC from ager@ on http://codereview.chromium.org/11066041/ .
R=ager@google.com
BUG=
Review URL: https://codereview.chromium.org//11098018
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13415 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-09 14:07:42 +00:00
ager@google.com
cedcd7d35d
Fix shadowing in tests. Constructor and method are not allowed to have
...
the same name.
R=sgjesse@google.com
BUG=
Review URL: https://codereview.chromium.org//11094022
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13414 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-09 13:59:11 +00:00
ahe@google.com
c3a01d705f
Mark test as flaky
...
Review URL: https://codereview.chromium.org//11092004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13357 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-08 14:34:07 +00:00
sgjesse@google.com
aa7652cccf
Add support for HTTP proxy in the HTTP client
...
An HttpClient instance now has the property findProxy. This
property can be set to a function which can return the proxy
configuration encoded in a string in the same format as is used
by browser PAC (proxy auto-config) scripts.
Currently only the first proxy in the list will be used. I will
address trying multiple proxies in a separate CL.
Also fixed a HTTP input stream bug revealed by the tests. If an
input stream from either a HttpRequest or HttpClientResponse
object is retreived after all data in the body has been received
the HTTP input stream would call the onClosed callback.
R=ajohnsen@google.com
BUG=dart:5468
TEST=tests/standalone/io/http_proxy_test.dart
Review URL: https://codereview.chromium.org//11066041
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13348 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-08 12:19:14 +00:00
ager@google.com
da965dc9fc
Add test that test.dart returns non-zero exit code for failing runs.
...
Additionally test that the buildbot output contains the
@@@STEP_FAILURE@@@ marker.
Rico and Emily, any other signals than exit code and @@@STEP_FAILURE@@@
that the buildbot uses to make builds red? I want to attempt to get
this tested so it will be much harder to accidentally make failing
builds turn up green.
R=ahe@google.com ,ricow@google.com ,efortuna@google.com
BUG=
Review URL: https://codereview.chromium.org//11078007
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13343 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-08 07:27:39 +00:00
fschneider@google.com
6632f191c4
Support for unboxed 64-bit integer bitwise operations and equality on ia32.
...
This CL adds AND, OR, XOR and == operations on unboxed 64-bit integers
(aka. mints).
Unboxed mints are stored in xmm registers. Each xmm register location
has an additional bit to keep track of its value representation.
Unboxed mints are materialized on the heap on deoptmization in the same way as
unboxed doubles.
The SSE instructions used are available on all CPUs that support SSE 4.1.
Review URL: https://codereview.chromium.org//10968059
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13112 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-02 11:25:53 +00:00
johnmccutchan@google.com
d8df86d5b9
Intrinsify Float32Array_setIndexed on IA32 and X64
...
Review URL: https://codereview.chromium.org//11032011
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13093 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-02 00:44:25 +00:00
srdjan@google.com
26d35b846a
dart2js should skip the VM specific test
...
Review URL: https://codereview.chromium.org//11019002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13049 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-29 00:39:04 +00:00
johnmccutchan@google.com
3c93a72008
Intrinsify Float32Array_getIndexed on IA32 and X64.
...
BUG=
Review URL: https://chromiumcodereview.appspot.com//10911153
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13044 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-28 23:02:20 +00:00
ahe@google.com
3f167a7a34
Fix standalone/io/file_invalid_arguments_test.
...
Review URL: https://codereview.chromium.org//10984086
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13010 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-28 12:15:32 +00:00
ahe@google.com
4d670dbe8d
Mark test as failing to unbreak build.
...
I'll update the test in the next CL.
Review URL: https://codereview.chromium.org//11000048
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13007 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-28 11:57:20 +00:00
ahe@google.com
273a50248f
Minor improvement to File diagnostics
...
Review URL: https://codereview.chromium.org//10983066
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13005 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-28 11:41:08 +00:00
ager@google.com
7977b42215
Update all occurrences of raw strings.
...
R=hausner@google.com ,kasperl@google.com
BUG=
Review URL: https://codereview.chromium.org//10977027
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12893 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-26 06:01:23 +00:00
hausner@google.com
428258ff2d
Convert raw strings to new syntax
...
Review URL: https://codereview.chromium.org//10981026
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12878 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-25 20:09:34 +00:00
lrn@google.com
a1faa6f135
Change IllegalArgumentException to ArgumentError.
...
Review URL: https://codereview.chromium.org//10989013
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12841 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-25 12:27:52 +00:00
ager@google.com
6236cd51a5
Use native fields for process pid and fix bug that allowed killing
...
a process before it was started.
We should make the change to make Process.start return a future that
does not complete unless the process is actually started. That would
have avoided this issue as well.
R=sgjesse@google.com
BUG=dartbug.com/5301
Review URL: https://codereview.chromium.org//10963024
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12691 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-21 11:07:36 +00:00
ager@google.com
6f43aa828f
Workaround VM issue with library tags in builtin libraries.
...
Get rid of lib/compiler/implementation/lib/scalarlist.dart which
should not be necessary.
R=lrn@google.com
BUG=
Review URL: https://codereview.chromium.org//10958012
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12626 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-20 09:25:05 +00:00
ager@google.com
45da470ddf
Fixes to tests and updating status file to make buildbot green.
...
R=lrn@google.com
BUG=
Review URL: https://codereview.chromium.org//10969006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12619 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-20 07:54:18 +00:00
ager@google.com
e676e88f81
Introduce a VM-only dart:scalarlist library for byte arrays.
...
Include it in the SDK so users can use it. Create a dummy
implementation and patch file for the library for dart2js so it can be
documented. Johnni, can you think of a nicer way of making
documentation generation work for a VM only library? Also, it seems that
patching kills the documentation comments and they do not show up in
the generated docs.
R=iposva@google.com ,johnniwinther@google.com
BUG=
Review URL: https://codereview.chromium.org//10919267
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12616 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-20 07:08:10 +00:00
ager@google.com
1159462fc6
Switch from interfaces to abstract classes in dart:io.
...
Add a bunch of default argument values to the abstract classes
so they are picked up by dartdoc.
R=sgjesse@google.com
BUG=
Review URL: https://codereview.chromium.org//10938010
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12484 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-18 10:54:37 +00:00
sgjesse@google.com
b0790fa96d
Never send reserved status codes in a close frame
...
When receiving a close frame with no status code the reported status
code is 1005. If the close is echoed as part of the close handshake
the echoed close frame must also have no status code and NOT status
code 1005.
The description of status code 1005 from the spec:
1005 is a reserved value and MUST NOT be set as a status code in a
Close control frame by an endpoint. It is designated for use in
applications expecting a status code to indicate that no status
code was actually present.
R=ajohnsen@google.com
BUG=dart:5209
Review URL: https://codereview.chromium.org//10946007
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12482 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-18 10:27:47 +00:00
sgjesse@google.com
ff654354be
Make it possible to read a specific number of characters from a string input stream
...
R=ager@google.com
BUG=dart:4954
TEST=tests/standalone/io/string_stream_test.dart
Review URL: https://codereview.chromium.org//10945004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12474 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-18 08:25:26 +00:00
karlklose@google.com
b8e93b6c5a
Convert static error to warning for calls to nonexisting toplevel methods, getters and setters.
...
This also fixes an issue with calling nonexisting static getters/setters when an abstract field was defined.
R=ngeoffray@google.com
Review URL: https://chromiumcodereview.appspot.com//10908236
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12361 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-14 05:29:22 +00:00
iposva@google.com
fd7cb10f82
Missing test fixes from previous commit:
...
- Smi, Mint, Bigint and Double are not available any longer.
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12331 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-13 14:22:32 +00:00
srdjan@google.com
dd86d4dbf3
Fix issues 5137: instance of test on constant value should return true or false, not the value itself.
...
Review URL: https://codereview.chromium.org//10909200
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12319 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-13 12:09:44 +00:00
ager@google.com
052f2857f6
Update status file to expect http_client test to pass on Windows.
...
The test started failing after a commit that had a bug which has
since been fixed. I have not been able to reproduce locally today.
Let's see what happens on the bots.
R=sgjesse@google.com
BUG=
Review URL: https://chromiumcodereview.appspot.com//10917207
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12251 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-12 09:37:38 +00:00
lrn@google.com
76d734500a
Update dartc test expectations.
...
Fix bug in test that assumes NoSuchMethodError is an Exception.
TBR=johnniwinter@google.com
Review URL: https://chromiumcodereview.appspot.com//10910192
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12176 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-11 10:27:42 +00:00
ager@google.com
d2d65ee3b5
Fix for Directory.exists on Windows using GetFileAttributes
...
based on patch from Alexander Aprelev.
Discriminate different reasons for not being able to get
the file attributes. Currently this makes no difference since
both DOES_NOT_EXIST and UNKNOWN turn into a false return value
from Directory.existsSync().
R=sgjesse@google.com
BUG=3914
Review URL: https://chromiumcodereview.appspot.com//10916206
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12106 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-10 10:38:46 +00:00
lrn@google.com
be2453bae1
Removed/moved "assert" function to core_patch.dart as "_assert".
...
Changed resolution of assert to only accepting assert in a statement position.
Added more assert tests.
Review URL: https://chromiumcodereview.appspot.com//10915083
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12026 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-07 12:45:02 +00:00
ngeoffray@google.com
94f1c2ed10
Change our 'is int' check to use Math.floor instead of a smi check.
...
Review URL: https://chromiumcodereview.appspot.com//10912147
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12018 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-07 12:05:34 +00:00
kasperl@google.com
9beb871852
Get rid of a lot of () for getters.
...
R=bak@google.com
BUG=
Review URL: https://chromiumcodereview.appspot.com//10919146
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12017 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-07 11:50:07 +00:00
lrn@google.com
4e8426a5b4
Remove some exceptions from mock.dart.
...
This is the first step towards removing mock.dart and all non-patch files
from dart2js.
Review URL: https://chromiumcodereview.appspot.com//10911143
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12012 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-07 10:52:39 +00:00
ager@google.com
dbf0c1c6b5
Mark http_client_test as flaky on Windows. It is failing on the
...
buildbot occasionally. Added an M1 bugreport to get this fixed.
R=sgjesse@google.com
BUG=dartbug.com/4981
Review URL: https://chromiumcodereview.appspot.com//10905145
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12010 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-07 10:25:56 +00:00
ngeoffray@google.com
b5fe256172
Improvements for checked mode: check when intializing fields, and when assigning to fields.
...
Review URL: https://chromiumcodereview.appspot.com//10910092
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11962 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-06 16:03:25 +00:00
ager@google.com
d5d5c75bf7
Do not close sockets for http connection fully before we are
...
done writing data to them.
This fixes the remaining skipped/failing http tests on Windows.
R=sgjesse@google.com
BUG=dartbug.com/2959
Review URL: https://chromiumcodereview.appspot.com//10908121
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11951 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-06 14:08:43 +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
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
ager@google.com
2bb45d7cf5
Remove test that uses an excessive amount of isolates and forces out-of-memory.
...
R=sgjesse@google.com
BUG=
Review URL: https://chromiumcodereview.appspot.com//10911061
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11803 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-04 11:15:43 +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