Commit graph

22237 commits

Author SHA1 Message Date
floitsch@google.com
029fdb0a9a Revert "Avoid use of empty string as a property name."
This reverts commit r32884.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32887 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-21 10:37:25 +00:00
floitsch@google.com
4d1a196607 Use temporaryId instead of the Ssa node in the tracer.
R=karlklose@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32886 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-21 10:14:54 +00:00
sigurdm@google.com
f1a7409206 Fix analyzer status.
Review URL: https://codereview.chromium.org//174953003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32885 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-21 10:13:16 +00:00
floitsch@google.com
68ff906451 Avoid use of empty string as a property name.
Empty strings as property names can tickle V8 bugs.

R=floitsch@google.com, karlklose@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32884 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-21 10:03:30 +00:00
johnniwinther@google.com
1d95528364 More test as slow.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32883 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-21 09:55:15 +00:00
sigurdm@google.com
d807878bbd Add prefix constraints for deferred imports.
R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32881 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-21 09:39:50 +00:00
karlklose@google.com
c2f4610b3b Emit named parameter information in declaration order.
R=floitsch@google.com, kasperl@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32880 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-21 09:31:09 +00:00
johnniwinther@google.com
d45759bbb2 Add --hide-package-warnings option.
BUG=
R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32879 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-21 08:33:43 +00:00
sigmund@google.com
6c448e3aea Adding package:smoke. This CL includes the intial APIs, a mirror-based
implementation, a static-based implementation (meant to be used with codegen one
day), and tests.

R=jmesserly@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32878 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-21 03:10:52 +00:00
nweiz@google.com
606a28e27e Fix analyzer errors in pub.
R=rnystrom@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32877 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-21 00:42:46 +00:00
sra@google.com
e56d708a00 Replace dead instructions with a constant with no type
Previously the dead instructions were replaced with int 0, which
polluted the types.  There are only occasional improvements since most
optimizations happen before the first dead code elimination phase.

R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32876 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-20 23:51:00 +00:00
zra@google.com
cb4e549e4a Skips docgen/test/generate_json_test.
Times out on simarm and simmmips.

Issue 17003.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32875 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-20 23:46:11 +00:00
johnmccutchan@google.com
8cb3c530e8 Use the correct value offset for Float64x2 on ARM
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32874 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-20 23:05:50 +00:00
pquitslund@google.com
7b7b87ed97 Fix to ensure decls with initializers get their own lines (dartbug.com/16849).
R=brianwilkerson@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32873 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-20 22:46:24 +00:00
johnmccutchan@google.com
d62849f0e8 Rework Sample class
BUG=
R=asiva@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32870 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-20 21:10:07 +00:00
johnmccutchan@google.com
ed5894d0cf Unbox/Box Float64x2 and inline typed array loads and stores
R=fschneider@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32869 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-20 20:41:54 +00:00
nweiz@google.com
72ece24c34 Improve the "pub lish" warnings about dependency constraints.
This adds a warning for a constraint that only allows a single version
and warnings for constraints with no upper bound or no lower bound. It
also improves the upper bound on suggested pre-1.0 constraints to
follow the current Dart team practice and fixes a bug in
[VersionRange.isAny].

R=rnystrom@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32867 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-20 19:35:41 +00:00
blois@google.com
fa4ee4753a Revert "Adding package:code_transformers for unifying common transformers code"
This reverts commit 32859. It's failing to find the Dart SDK under a number of cases.

TBR
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32866 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-20 19:21:15 +00:00
sra@google.com
eb1b60c575 Fix for issue 16967
R=floitsch@google.com, ngeoffray@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32861 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-20 19:02:09 +00:00
blois@google.com
730b3c6137 Adding package:code_transformers for unifying common transformers code
There's quite a bit of code which would be great to share between Polymer and Angular, adding this as the starting point for some of that code.

This CL is primarily a transformer that resolves the AST which can be used by other transformers when modifying code.

BUG=
R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32859 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-20 18:37:00 +00:00
alanknight@google.com
ab152a3760 Update Intl version to 0.9.5
BUG=
R=kevmoo@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32858 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-20 18:27:17 +00:00
sgjesse@google.com
37913b1e00 Add missing mutex protection for timeout queue with mutex
Holding the timer_mutex_ is required to access the timeout_queue_ data
structure. This was missing for epoll events.

R=kustermann@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32856 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-20 17:21:27 +00:00
rnystrom@google.com
53c6b88abb Don't leak file names in Windows File::Stat().
BUG=https://code.google.com/p/dart/issues/detail?id=13848
R=ajohnsen@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32854 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-20 17:06:13 +00:00
polux@google.com
aa794a5d81 Move TypeMask.simplify to a test helper.
R=karlklose@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32853 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-20 16:53:23 +00:00
whesse@google.com
1a5af5f5ba Mark docgen/generate_json_test as slow on arm and mips.
BUG=
R=kustermann@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32852 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-20 16:41:06 +00:00
ajohnsen@google.com
04c6eca951 Slightly speed up http-parser and http-header-writing.
BUG=
R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32850 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-20 14:47:25 +00:00
ajohnsen@google.com
9635777fe0 Don't try to call read, if len i 0.
Also fix a Socket_Read to handle -1 from read.

BUG=
R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32849 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-20 12:23:20 +00:00
aprelev@gmail.com
e70eb98773 Process docgen command-line parameter correctly.
BUGS=dartbug.com/16964
R=kasperl@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32848 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-20 11:18:26 +00:00
johnniwinther@google.com
083d2e5e7f Clean up dart2js diagnostics to prepare for filtering.
BUG=
R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32847 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-20 09:32:37 +00:00
ajohnsen@google.com
e3372e72e9 Remove SocketData and now only pass the dart port to epoll.
This avoids keeping extra data alive.

BUG=
R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32846 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-20 08:56:54 +00:00
lrn@google.com
1439a62970 Change regression test now that String does have operator*.
It still doesn't work for string arguments, but that's a type/argument error.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32845 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-20 08:20:06 +00:00
lrn@google.com
69145994de Allow multi-codeunit padding in String.padLeft/padRight.
Also allow negative repeats.

Based on suggestions from Stephen.

R=sra@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32843 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-20 07:17:11 +00:00
jmesserly@google.com
f45d9c23d3 [polymer] preserve order of scripts in deployment
We were potentially leaving some scripts in head, but moving other things into body.
FWIW, I'm not sure it's a good idea to be moving anything from head to body, but that's what we got for now.

R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32842 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-20 04:17:32 +00:00
jmesserly@google.com
7438131437 [polymer] remove workaround for MethodMirror.metadata
the bug appears to be fixed!

R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32841 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-20 03:47:22 +00:00
sra@google.com
eb6bb668dd Fix for interpolation codegen bug
Also added 'dynamic' version of interpolation test, since original interpolation test was entirely constant-folded.

R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32840 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-20 02:01:59 +00:00
nweiz@google.com
2d4e016f1e Don't close "pub serve" before we've read its output in tests.
I was unable to reproduce the bug in question, but it seems likely that this
will fix it.

R=rnystrom@google.com
BUG=16892

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32839 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-20 01:29:09 +00:00
nweiz@google.com
1e43a6d6f1 Add a little additional logging to pub's version solver.
This helped me track down issue 16910, and it seemed general enough to
keep.

R=rnystrom@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32838 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-20 00:40:20 +00:00
nweiz@google.com
6998d7cd70 Fix analyzer warnings in pub.
R=rnystrom@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32837 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-20 00:38:58 +00:00
rnystrom@google.com
d7330628a0 Use a pool to force dart2js to run sequentially.
R=nweiz@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32836 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-20 00:35:06 +00:00
kevmoo@google.com
6ef4c882c4 pkg/docgen: forgot to remove a 'print', unused import
TBR

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32835 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-20 00:27:06 +00:00
kevmoo@google.com
e4baa0ff51 pkg/docgen: support dartdoc-viewer with the viewer app at the root of the repo
R=alanknight@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32834 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-20 00:23:10 +00:00
kevmoo@google.com
6cdd5a9cd8 pkg/docgen: hardwire test files
eliminate chance that listing files on a system will change order

R=alanknight@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32833 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-20 00:21:36 +00:00
alanknight@google.com
e3063720fa Do not overwrite values on plurals/genders with the results of constant evaluation
BUG=
R=efortuna@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32832 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-19 23:50:21 +00:00
iposva@google.com
f2a6f1b4b6 Another round of cleanups for http://www.dartbug.com/15922
- Address warnings about 64-bit to 32-bit conversions.

R=ajohnsen@google.com, asiva@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32831 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-19 23:35:55 +00:00
kevmoo@google.com
4feded81b4 pkg/scheduled_test: fix example in docs to be 100% valid
R=rnystrom@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32827 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-19 21:53:39 +00:00
kevmoo@google.com
e3483e7b23 pkg/scheduled_test: formatter
R=nweiz@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32826 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-19 21:49:29 +00:00
jmesserly@google.com
4918db8d0a [polymer] fix editor hints -- query/queryAll and unused imports
R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32825 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-19 21:41:08 +00:00
kevmoo@google.com
cd2f133e77 pkg/docgen: putting test code in file system
R=alanknight@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32821 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-19 21:11:40 +00:00
alanknight@google.com
8ccb9d10f2 Fix the obscure corner case of three items in a plural
BUG=
R=efortuna@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32820 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-19 21:02:33 +00:00
iposva@google.com
6ba51a961f Fix build:
- Remove unused stack_lower_.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32819 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-19 20:50:48 +00:00