Commit graph

11388 commits

Author SHA1 Message Date
kustermann@google.com ecf1cdeeb8 Fixed utf8 encoding/decoding issues in the testing scripts
Review URL: https://codereview.chromium.org//11883033

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17057 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-15 10:59:24 +00:00
ahe@google.com a6cf3c2cef Nice messages on uncaught exceptions.
Review URL: https://codereview.chromium.org//11858017

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17056 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-15 10:44:22 +00:00
ngeoffray@google.com be458483ad Fix selector name check, and make the interceptor participate in speculatively propagating types.
Review URL: https://codereview.chromium.org//11885039

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17055 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-15 10:33:03 +00:00
antonm@google.com 5872442f32 Use proper default values for flags.
R=blois@google.com,efortuna@google.com,podivilov@chromium.org

Review URL: https://codereview.chromium.org//11881027

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17052 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-15 10:17:27 +00:00
ngeoffray@google.com 2ba1849864 Move indexSet and unary operators to the new interceptor mechanism.
Review URL: https://codereview.chromium.org//11861007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17051 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-15 09:37:21 +00:00
lrn@google.com ef13a0822b Make StreamController's unnamed constructor create a single-sub stream.
R=floitsch@google.com

Review URL: https://codereview.chromium.org//11887016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17049 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-15 09:09:47 +00:00
lrn@google.com 14130ae589 Avoid the _onSubscriptionStateChange being called twice in some cases.
R=floitsch@google.com

Review URL: https://codereview.chromium.org//11880019

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17048 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-15 08:53:21 +00:00
sgjesse@google.com 947177049c Change the WebSocket implementation to use Socket.read instead of Socket.readList
This removes the need for Socket.available which is not implemented for SecureSocket.

R=ager@google.com

BUG=

Review URL: https://codereview.chromium.org//11886038

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17047 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-15 08:39:37 +00:00
ricow@google.com 707ab317cf Also skip vm/dart/inline_stack_frame_test on ie9.
There is no bug filed for this

Revision 17000 changes the Skip to only apply to ff instead of all dart2js bots. Original review discussing the suppression:
https://codereview.chromium.org//11784033

The ie9 failure on this was hidden by an already red bot.
Review URL: https://codereview.chromium.org//11882039

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17045 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-15 07:43:49 +00:00
lrn@google.com cba281d765 Make Stream transformation respect the single/multi subscriber nature of the source.
Add .isSingleSubscriber getter to Stream, and make use of it to create different streams for the transformations.

_ForwardingStreamTransformation is no longer itself a stream, but creates a stream depending on the source.

R=floitsch@google.com

Review URL: https://codereview.chromium.org//11886013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17044 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-15 07:20:12 +00:00
ahe@google.com 0d46b48834 Change how to opt-in to dart2js mirrors.
Review URL: https://codereview.chromium.org//11859012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17042 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-15 07:11:18 +00:00
srdjan@google.com 843e48f6f0 Add Dart class for _ExternalUint8ClampedArray and API to allocate it.
Review URL: https://codereview.chromium.org//11881031

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17040 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-15 01:14:17 +00:00
nweiz@google.com 59cbc77eaf Increase the step timeout in scheduled pub tests.
Also un-mark the uploaders test as flaky.

BUG=7879

Review URL: https://codereview.chromium.org//11881033

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17039 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-15 00:44:31 +00:00
nweiz@google.com 30d2e78687 Stop working around issue 7781 in Pub.
Review URL: https://codereview.chromium.org//11881032

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17038 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-15 00:15:23 +00:00
blois@google.com a152bc270c Adding support checks for FileSystem APIs and making APIs not webkit-specific.
This is an updated version of https://codereview.chromium.org/11856014/ which was failing because the test was causing a timeout when file APIs are not supported.

The first patch is the original, second is the updated version.

BUG=

Review URL: https://codereview.chromium.org//11888013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17037 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-14 23:53:22 +00:00
iposva@google.com 4726853cfe - Dump Smi objects into the heap profile.
Review URL: https://codereview.chromium.org//11881010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17036 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-14 23:38:00 +00:00
blois@google.com e723b69be9 Fixes for a number of dart analyzer issues in dart:html.
These are mostly just adding missing methods fixing a few typos from the experimental merge.

BUG=

Review URL: https://codereview.chromium.org//11817059

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17035 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-14 23:36:14 +00:00
nweiz@google.com 0109fd9664 No longer work around issue 7761.
This also moves Pub's modified _OutputStreamConsumer class into pkg/http.

Review URL: https://codereview.chromium.org//11881030

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17034 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-14 23:30:00 +00:00
blois@google.com 114ab040ce Streams test is failing on FF and IE, rather than revert the streams CL, I'm patching the status while fixing the tests. My guess is that the focus event is not synchronous on FF and IE, though it is working for me locally on FF.
BUG=

Review URL: https://codereview.chromium.org//11883018

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17032 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-14 20:58:53 +00:00
whesse@google.com 747f79ce1f Upload new Dart binaries and re-enable unit tests for test scripts.
BUG=

Review URL: https://codereview.chromium.org//11884029

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17031 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-14 20:45:42 +00:00
dgrove@google.com 8ff8590cd3 Add homepage to pubspec.yaml .
Review URL: https://codereview.chromium.org//11534021

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17029 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-14 20:27:15 +00:00
blois@google.com a4977979c4 Adding streams to dart:html.
This exposes all DOM events as streams. This keeps the current DOM event syntax as well, I'd like to make sure this API is stable before deprecating the old syntax, then we'll remove it a while after that.

I made an initial stab at getting the event types correct for the streams, though it's not documented very well and frequently inconsistent between browsers. Hopefully it's close, and I imagine there will be changes to come.

BUG=

Review URL: https://codereview.chromium.org//11824072

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17028 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-14 20:19:28 +00:00
whesse@google.com 3696154a8e Default constructor for dart:io Path now handles native Windows paths. Path() now does the same as Path.fromNative(). Path.fromNative() is removed, and all uses of it replaced by Path().
BUG=https://code.google.com/p/dart/issues/detail?id=7872

Review URL: https://codereview.chromium.org//11878015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17026 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-14 19:46:13 +00:00
amouravski@google.com 9feb90f37d Moved HTML metadata into its own library.
Review URL: https://codereview.chromium.org//11886019

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17022 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-14 17:34:00 +00:00
fschneider@google.com 339ac7f288 Immediate index operand for string [] and streamline code for generating array ops.
Replace sizeof(RawArray) with Array::data_offset where it is used to compute the start
of the array data.

Refactor helpers for generating array addressing mode and use them for string []
operations as well.
Review URL: https://codereview.chromium.org//11880022

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17019 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-14 17:00:34 +00:00
vegorov@google.com 260c80a4bb When printing constants in the flow graph truncate them at the first new line character.
This makes IR more machine readable.

R=fschneider@google.com
BUG=

Review URL: https://codereview.chromium.org//11876019

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17018 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-14 16:05:31 +00:00
vegorov@google.com c2776cdbcc Canonicalize away redundant checks that appear after store-to-load forwarding.
BUG=dart:7513

Review URL: https://codereview.chromium.org//11885017

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17016 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-14 12:15:11 +00:00
fschneider@google.com e0395cf4bb Optimize stores to Uint8List.
Review URL: https://codereview.chromium.org//11855007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17014 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-14 10:27:28 +00:00
fschneider@google.com 75c4844bf5 Cleanup uses of X::CheckedHandle where X::Cast or X::Handle is sufficient.
The only places where CheckedHandle is appropiate is with arguments to
runtime functions and values from Dart API functions.

For other places in the VM either normal Handle and ^=, or Cast is sufficient.

T::Cast is used when the value is guaranteed to be of type T (and never Object::null()).
Otherwise, the operator^= is used for casting.

Also fix a style issue where a Raw* should be used as return type.
Review URL: https://codereview.chromium.org//11826024

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17013 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-14 09:51:48 +00:00
ricow@google.com a932ea6152 Mark language/arithmetic_test as failing on runtime=ie9 compiler=dart2js
I can't find any bug for this, and I don't see any dart2js people on the codereview disabling this on ff, is this a known problem?
Review URL: https://codereview.chromium.org//11889006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17012 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-14 08:58:01 +00:00
lrn@google.com 72ebc65b16 Remove the Hashable class.
BUG: http://darbug.com/5522

Review URL: https://codereview.chromium.org//11860006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17011 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-14 08:42:23 +00:00
ricow@google.com e5b51f0196 Mark pub/pub_uploader_test as flaky.
Filed http://dartbug.com/7879
Review URL: https://codereview.chromium.org//11881016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17010 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-14 07:07:29 +00:00
efortuna@google.com 5b91f0dd7d Update IE 10 status file.
Review URL: https://codereview.chromium.org//11884013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17009 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-13 01:55:23 +00:00
efortuna@google.com 7bc4cb245e Delete debugging change that slipped in.
Review URL: https://codereview.chromium.org//11889002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17008 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-13 01:42:58 +00:00
efortuna@google.com 4622dc3e76 Make browser tests all run from a server instead of the local filesystem.
BUG=

Review URL: https://codereview.chromium.org//11810004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17007 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-13 01:11:07 +00:00
efortuna@google.com de347e5b4d Fix minor path handling issue in path package.
BUG=

Review URL: https://codereview.chromium.org//11876012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17006 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-12 23:43:44 +00:00
cshapiro@google.com 9b890bce4e Emit fake classes to please the third party HPROF tool infrastructure.
Review URL: https://codereview.chromium.org//11879008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17005 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-12 02:43:57 +00:00
sigmund@google.com fb052dd67c Improve compact and default configuration
BUG=

Review URL: https://codereview.chromium.org//11887005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17004 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-12 00:47:40 +00:00
cshapiro@google.com 268e059da3 Use a named constant for the object id size when writing out the header.
Review URL: https://codereview.chromium.org//11823002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17003 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-12 00:44:46 +00:00
srdjan@google.com faeb58ba40 Fix printing of deoptimized function.
Review URL: https://codereview.chromium.org//11886008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17002 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-12 00:44:16 +00:00
asiva@google.com a02f310d91 Added code to trace zone and handles creation/deletion under flags
--trace-zone and trace-handles
Review URL: https://codereview.chromium.org//11879005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17001 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-12 00:33:16 +00:00
asiva@google.com 62115b51fe Fix for issue 7757
- Iterate and collect all the inlined functions in an optimized dart frame
  into the stack frame when throwing an exception.
- Added a OptimizedDartFrameIterator class which iterates over all the inlined
  functions of a single optimized dart frame.
Review URL: https://codereview.chromium.org//11833025

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17000 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-12 00:24:28 +00:00
srdjan@google.com 2ad98117fd Fix performance of array literals (e.g. "[1, 2]"). Improves speed of DeltaBlue.
Simplify code to allocate groable object array from an object array.
Review URL: https://codereview.chromium.org//11882005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16999 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-11 23:39:00 +00:00
srdjan@google.com ec59e1e5e0 Fix printing of the function that cannot be optimized.
Review URL: https://codereview.chromium.org//11878006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16997 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-11 23:15:51 +00:00
iposva@google.com 51447e92ba - Start adding meta data for fields of VM internal classes.
- Correctly report instance size in bytes.
- At least report field sizes for variable sized objects.
Review URL: https://codereview.chromium.org//11880004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16996 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-11 23:05:57 +00:00
blois@google.com fa191811a7 Revert "Adding support checks for FileSystem APIs and making APIs not webkit-specific."
This reverts commit 16987.

TBR=efortuna
BUG=

Review URL: https://codereview.chromium.org//11881007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16995 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-11 22:56:13 +00:00
floitsch@google.com 523aaba135 Improve documentation for futures.
Review URL: https://codereview.chromium.org//11852027

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16992 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-11 22:40:09 +00:00
sigmund@google.com 603f5b678e Add again useVmConfiguration for deprecation purposes. This requires adding a
reference to the meta package fixing publish_pkg to rewrite imports correctly.

Review URL: https://codereview.chromium.org//11819051

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16991 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-11 22:35:34 +00:00
alanknight@google.com b3b4c02a96 Make output formats pluggable, adapt to new libraries
Review URL: https://codereview.chromium.org//11820032

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16989 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-11 22:17:14 +00:00
rnystrom@google.com 2394891f64 Add command support to args.
Review URL: https://codereview.chromium.org//11819068

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16988 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-11 22:03:21 +00:00