Commit Graph

79322 Commits

Author SHA1 Message Date
sgjesse@google.com 8a78fd878e Skip test ChunkedStreamTest on dartium
TBR=ager@google.com

BUG=
TEST=

Review URL: http://codereview.chromium.org//8839006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2165 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-07 08:45:36 +00:00
sgjesse@google.com 837702ee34 Fix running tests with --checked
TBR=ager@google.com

BUG=
TEST=

Review URL: http://codereview.chromium.org//8836005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2164 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-07 08:34:17 +00:00
sgjesse@google.com 731e8d91af Add chunked input stream
The chunked input stream can deliver data fron an input stream as
fixed sized blocks of data.

R=ager@google.com

BUG=
TEST=

Review URL: http://codereview.chromium.org//8818009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2163 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-07 08:00:19 +00:00
dgrove@google.com 6bdf9443fc Create lib/core/core_compiler.dart and lib/coreimpl/coreimpl_compiler.dart .
Review URL: http://codereview.chromium.org//8839002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2162 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-07 05:55:49 +00:00
sra@google.com c15c0a6058 Test for native class with factory constructors.
This pattern is going to be important for having a sane API for DOM
classes like FLoat32Array which conceptually have multiple
constructors.

BUG=
TEST=

Review URL: http://codereview.chromium.org//8834004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2161 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-07 05:13:41 +00:00
rnystrom@google.com 0b7c641d40 Bunch more dartdoc changes in response to feedback:
- Remove "Library" from libraries in index.
- Use different icon for exception classes in nav.
- Group classes, interfaces, and exceptions together on lib page.
- Don't show "Class" or "Interface" before types on lib pages.
- Show type bounds on generic classes.
- Don't show private constructors.
- Sort named constructors.
- Document function-typed parameters correctly. (See Collection<T>)
- Document named optional parameters and default values.
- Document type bounds in class definitions.
- Show raw types without type arguments.
- In type annotations for instantiated generic types, link the type
  argument appropriately (i.e. List<String> will link String>).

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2159 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-07 02:34:27 +00:00
sigmund@google.com 96c87abf28 frog: generalize checking that type args aren't used in static methods
Review URL: http://codereview.chromium.org//8826014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2157 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-07 01:28:56 +00:00
dgrove@google.com a7b867c302 Add frogc shell script for SDK. ≈
Review URL: http://codereview.chromium.org//8825011

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2155 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-07 00:12:26 +00:00
vsm@google.com b08be1f8e6 Enable test invoker to provide path to frog for frogium test.
Review URL: http://codereview.chromium.org//8824013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2154 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-06 23:43:45 +00:00
sigmund@google.com 015921812f frog: life is better with colors :)
Also adds 'Compilation succeded' message when running the code right after it is
compiled.

BUG = http://code.google.com/p/dart/issues/detail?id=708

Review URL: http://codereview.chromium.org//8823010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2153 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-06 23:42:27 +00:00
sra@google.com eaaadfbb49 Custom native class spec for Console.
BUG=
TEST=

Review URL: http://codereview.chromium.org//8825013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2152 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-06 23:37:56 +00:00
cshapiro@google.com f978301321 Add macros for specifying 64-bit integer literals.
Review URL: http://codereview.chromium.org//8604007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2150 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-06 23:08:29 +00:00
turnidge@google.com 36a830115b Use a preallocated StackOverflowException rather than allocating one
while our stack is hurting.  This allows us to get rid of the stack
tweaking which we do in this case.
Review URL: http://codereview.chromium.org//8823001

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2149 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-06 23:01:46 +00:00
mrrussell@google.com 14e41988e1 Pass all builders starting with dart-editor to the dart builder
Review URL: http://codereview.chromium.org//8829001

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2145 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-06 21:58:06 +00:00
vsm@google.com d6ffcb539d Enable test script to specify different DRT binary
Review URL: http://codereview.chromium.org//8817025

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2144 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-06 21:39:34 +00:00
rnystrom@google.com cbbae74150 Bunch of dartdoc changes:
- Add special fake entrypoints so you can build docs for just corelib,
  dom, or html.
- Better main index page.
- Only show classes in nav for current library.
- Link to index page.
- Fix word wrap on icons.
- Sort case-insensitively.

Review URL: http://codereview.chromium.org//8822001

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2143 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-06 21:20:34 +00:00
sigmund@google.com 5a23450f9c frog bug 642: type variables can't be used in allocations.
Review URL: http://codereview.chromium.org//8826001

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2141 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-06 21:02:05 +00:00
sra@google.com 1e5755b3d8 Custom native class spec for Console.
BUG=
TEST=

Review URL: http://codereview.chromium.org//8758022

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2140 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-06 20:43:20 +00:00
sigmund@google.com fec44ca6f4 bot: delay cleanup of temp test files in case we need to retry.
Review URL: http://codereview.chromium.org//8827006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2139 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-06 20:33:13 +00:00
dgrove@google.com 9d53adf599 Create the SDK in a temporary directory and copy it as a final step.
Review URL: http://codereview.chromium.org//8819030

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2137 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-06 19:38:54 +00:00
sigmund@google.com 8a5ebd6af5 make test.py more reselient to flakyness in xvfb-run + DumpRenderTree
Review URL: http://codereview.chromium.org//8818021

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2136 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-06 18:43:39 +00:00
srdjan@google.com f98993384f Canonicalize TypeArguments.
Review URL: http://codereview.chromium.org//8773026

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2133 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-06 17:47:47 +00:00
danrubel@google.com 1b1a96f972 Prevent "complete" file from being cached across compilation sessions to save space
Review URL: http://codereview.chromium.org//8806032

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2127 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-06 16:16:13 +00:00
zundel@google.com b6fa88ca14 The last change to create_sdk.py failed if the 'sdk' dir already existed
BUG=
TEST=

Review URL: http://codereview.chromium.org//8820017

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2125 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-06 15:03:02 +00:00
scheglov@google.com 54c5f79d42 Check that interface constructors and default class constructors are compatible.
1. Number of required parameters.
2. Names and order of named parameters.
3. [disabled] type warning for non-identical types.
4. [wait for Eric, not implemented] type parameters check.

R=zundel@google.com
BUG=
TEST=

Review URL: http://codereview.chromium.org//8786002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2124 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-06 14:58:16 +00:00
zundel@google.com 1417eedeb7 Gets past broken build for --mode debug
Review URL: http://codereview.chromium.org//8815011

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2122 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-06 14:43:03 +00:00
ager@google.com 9c4bb86594 Support actual stub generation in the dart test scripts.
R=whesse@google.com
BUG=
TEST=

Review URL: http://codereview.chromium.org//8817017

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2120 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-06 13:39:43 +00:00
ager@google.com f7b6b6eaba Add more test configurations. Everything seems covered for frog again now.
R=sgjesse@google.com
BUG=
TEST=

Review URL: http://codereview.chromium.org//8821009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2118 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-06 10:46:13 +00:00
floitsch@google.com 4c7d6d7e25 Fix typo in duration doc.
R=karlklose@google.com
BUG=
TEST=

Review URL: http://codereview.chromium.org//8816011

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2117 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-06 10:05:44 +00:00
sra@google.com 52944bf7b6 Work-around for FireFox: patch non-leaf types statically if possible.
BUG=
TEST=

Review URL: http://codereview.chromium.org//8820004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2114 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-06 03:41:19 +00:00
dgrove@google.com 4962f8aacc set ACL of SDK public-read
Review URL: http://codereview.chromium.org//8821001

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2113 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-06 02:18:05 +00:00
dgrove@google.com 8dfd473996 Set ACL on SDK.
Review URL: http://codereview.chromium.org//8819002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2112 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-06 02:01:03 +00:00
dgrove@google.com 7fe87bbda9 Work around gyp dependency issues.
Review URL: http://codereview.chromium.org//8815002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2111 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-06 01:43:18 +00:00
sra@google.com 7bbb92e0f8 Add test for Frog native class with same native name as interface.
This pattern is needed for several DOM classes since DOMWindow,
History and Location all need to have different implementations for
in-page and cross-page.

Frog needs to know that "native '*I'" means that the name I must be
avoided by all other generated constructs.

BUG=
TEST=

Review URL: http://codereview.chromium.org//8806033

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2110 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-06 01:33:19 +00:00
sigmund@google.com 870e6b5f35 trim dependencies in sdk target.
Review URL: http://codereview.chromium.org//8803031

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2109 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-06 01:32:28 +00:00
sigmund@google.com d7c3287fdd fix set index bug in frog.
BUG= http://code.google.com/p/dart/issues/detail?id=541

Review URL: http://codereview.chromium.org//8802028

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2108 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-06 01:23:05 +00:00
dgrove@google.com 490e11a2c2 Upload SDK builds to gs://dartium-archive . This step will only
happen on buildbots.
Review URL: http://codereview.chromium.org//8803027

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2106 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-06 00:41:37 +00:00
asiva@google.com 7ddd0f0b89 First step towards generation of application script snapshots
- Introduce 3 kinds of snapshots (full, application script and messages)
- Added a dart API function to be used for generating an application snapshot
  and for loading the script from an application snapshot.

Next step is to introduce special handling in the WriteTo and ReadFrom
snapshot functions for 'kind == Snapshot::kScript'
Review URL: http://codereview.chromium.org//8772061

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2105 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-06 00:34:49 +00:00
jmesserly@google.com b076b0c35a Simple fix to get noSuchMethod working on private members
This came up in an old code review (comment here: http://codereview.chromium.org/8540030/diff/1/frog/member.dart#newcode1341)
Also fixes a test :)

Review URL: http://codereview.chromium.org//8802025

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2103 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-05 23:46:44 +00:00
rnystrom@google.com d2130d11e8 Navigation in generated docs.
Review URL: http://codereview.chromium.org//8772067

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2102 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-05 23:14:43 +00:00
sra@google.com 9dff8d60ca Revert "Revert "Add test where X is defined differentlty in co-importing libraries""
This reverts commit 5065d3cf293e647c8ab0533c84d3a07bcfc3fd81.

Added missing semicolon that caused last attempt to fail

BUG=
TEST=

Review URL: http://codereview.chromium.org//8802023

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2101 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-05 23:11:51 +00:00
jmesserly@google.com 60d7ab1f64 Fixed lambdas that have the same name as one of their parameters/locals
It even fixed a corelib test :)
http://code.google.com/p/dart/issues/detail?id=388

Review URL: http://codereview.chromium.org//8799018

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2100 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-05 23:06:27 +00:00
sra@google.com 01eb0c88ad Revert "Add test where X is defined differentlty in co-importing libraries"
This reverts commit e562f59be076e6aaa23fbc7ea6736aeaf4409e62.

BUG=
TEST=

Review URL: http://codereview.chromium.org//8799017

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2097 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-05 22:10:12 +00:00
efortuna@google.com d9e4e72576 Small adjustment to run smoketests on buildbots.
Review URL: http://codereview.chromium.org//8805015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2096 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-05 22:09:50 +00:00
sra@google.com 19fdf76710 Add test where X is defined differentlty in co-importing libraries
AFAIK this should work because the imports use prefixes.

Frog: passes
Dartc: passes

VM:
'/usr/local/google/home/sra/dart-all/dart/tests/language/src/LibrarySameNameUsedLib2.dart': Error: Class 'X' is used where an interface is expected

Revert "Revert "Add test where X is defined differentlty in co-importing libraries""

This reverts commit d7f6a6c72e23d380f7af2af9958f77faa11787a7.

BUG=
TEST=

Review URL: http://codereview.chromium.org//8802018

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2095 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-05 22:02:33 +00:00
hausner@google.com 164ee66e38 More fixing linux.
Review URL: http://codereview.chromium.org//8806022

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2093 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-05 21:44:11 +00:00
hausner@google.com f296131d32 Fix linux build
Mac doesn't care when you compare signed and unsigned values it seems...
Review URL: http://codereview.chromium.org//8803025

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2091 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-05 21:40:44 +00:00
devoncarew@google.com 21e0fc247c Added code to associate a dart doc comment with a dart declaration node.
Review URL: http://codereview.chromium.org//8769044

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2090 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-05 21:15:28 +00:00
hausner@google.com b122f27eac Debugger step 2
Add ActivationFrame and StackTrace classes.
Add Breakpoint info: url and line number.
Fix breakpoint stub so breakpoints don't get patched over by PatchStaticCall
Review URL: http://codereview.chromium.org//8775060

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2089 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-05 21:11:39 +00:00
asiva@google.com 4505063244 Restore the rule to build a no snapshot binary of dart as Srdjan feels it is still needed for debugging some corelib issues.
Review URL: http://codereview.chromium.org//8805014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2088 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-05 21:11:00 +00:00