Commit graph

70367 commits

Author SHA1 Message Date
benl@google.com
7ddf68b7b3 Review URL: https://chromereviews.googleplex.com/3507025
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@112 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 11:19:01 +00:00
ngeoffray@google.com
84c81a082d Conditionnaly cleanup after running a command.
Review URL: https://chromereviews.googleplex.com/3546016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@111 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 11:04:54 +00:00
ager@google.com
7d4f364d53 Minor changes to documentation generation.
Filter out private classes so no file is generated for them.

R=ngeoffray@google.com
BUG=
TEST=

Review URL: https://chromereviews.googleplex.com/3540013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@110 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 11:02:55 +00:00
floitsch@google.com
19610c461e Unbreak the build.
Update status file, while investigating what's going wrong.

TBR=ngeoffray

R=ngeoffray@google.com

Review URL: https://chromereviews.googleplex.com/3535015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@109 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 10:48:22 +00:00
ngeoffray@google.com
61486c2267 Small clenaup in the python scripts to make sure all tests get their Cleanup method called.
Review URL: https://chromereviews.googleplex.com/3534013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@108 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 10:47:32 +00:00
floitsch@google.com
15727ed074 Rename DateTime to Date.
Review URL: https://chromereviews.googleplex.com/3529013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@107 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 10:14:49 +00:00
ngeoffray@google.com
eebda50623 Update status file to reflect what's implemented in dartc and fix bot.
Review URL: https://chromereviews.googleplex.com/3551014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@104 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 09:28:21 +00:00
floitsch@google.com
98d704a3cb Remove Date class and remove .time from DateTime.
Review URL: https://chromereviews.googleplex.com/3508024

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@103 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 09:20:30 +00:00
ngeoffray@google.com
d42cadb575 Remove directory because it clashes with the existing runtime/tests/dart.
Review URL: https://chromereviews.googleplex.com/3502035

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@102 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 08:38:43 +00:00
jgw@google.com
e2daa7e89b Remove support for variadic parameters.
Review URL: https://chromereviews.googleplex.com/3528012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@101 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 08:28:42 +00:00
ngeoffray@google.com
808542f40b Move co10 tests to tests/co19.
Review URL: https://chromereviews.googleplex.com/3538014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@100 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 08:06:12 +00:00
srdjan@google.com
5dd35f18ae Fix crash in test.py when timing out.
Review URL: https://chromereviews.googleplex.com/3543017

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@99 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 07:59:02 +00:00
sgjesse@google.com
cc0ffa0766 Minor changes to Socket and File
* align the definition of the exception class with how ProcessException ended up
* add constants for redability

R=ager@google.com

BUG=
TEST=

Review URL: https://chromereviews.googleplex.com/3551012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@98 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 07:57:34 +00:00
srdjan@google.com
b0af113468 Address Siva's suggestion.
Review URL: https://chromereviews.googleplex.com/3546013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@97 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 07:46:45 +00:00
kasperl@google.com
b0772a497d Remove more uses of the old syntax for optional arguments.
@antonm: I still have to filter out all the Dart code in:

  client/html/generated/...

and the file:

  client/generated/src/interface/WebKitCSSMatrix.dart

I hope we can fix this soon.

R=ngeoffray@google.com
BUG=
TEST=

Review URL: https://chromereviews.googleplex.com/3537015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@96 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 07:37:15 +00:00
ngeoffray@google.com
a13f376270 Update status file to get bot greens.
Review URL: https://chromereviews.googleplex.com/3544014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@95 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 07:18:59 +00:00
ngeoffray@google.com
c05cfb10c0 - Now that prefixes have been implemented, remove the trampoline hack for calling main in a browser test.
- Update some tests to define #library, as the #library is required by the dart blob we're emitting for testing in the browser
- Update language.status to reflect reality.
Review URL: https://chromereviews.googleplex.com/3522016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@94 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 07:11:49 +00:00
johnlenz@google.com
b2918972e8 Changes to allow the ClosureJsBackend to give people some options to play with:
- introduce a "fastDraft" mode that only runs the main code-removal passes and runs in about half the time and but produces code 2x the size (but still less than 10% of the original).
- allows it to run in an quasi-incremential mode by consuming the incrementially generated js (cuts ~4s off the build time but source maps are useless).
- allow source map generation to be turned off (saves a couple seconds).
- turns off not useful check passes and makes the rest switchable.

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@91 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 06:41:19 +00:00
johnlenz@google.com
30232ec2c0 Remove more class name references from optimized code. Only removes 800 bytes from swarm.
Review URL: https://chromereviews.googleplex.com/3548012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@90 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 05:51:25 +00:00
sra@google.com
ea49561596 Mark parameters with [Optional=CallWithDefaultValue] as not optional.
This extended attribute was recently added to many WebKit IDL
operations to mark arguments that were accepted as missing.
Many are stupid legacy behaviour, like NodeList.item(index).
We don't want Dart to have such a broad API.

An example change is  2f24f20493

There will be some parameters marked as [Optional=CallWithDefaultValue] that
really should be optional.  We will discover those and have to whitelist them.

BUG=
TEST=

Review URL: https://chromereviews.googleplex.com/3531016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@89 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 04:30:51 +00:00
mmendez@google.com
115fc3df08 Revert "Revert "Eliminate retarded constructors.""
This reverts r66 which was a revert of r64.  The original commit failed because "optimized" mode builds won't generate NoSuchMethodErrors and that is why the release mode test won't pass.  So for that issue, I updated the language.status file.

The client failure appears to be test infrastructure flakiness because my rollback failed but the subsequent build succeeded and I'm unable to reproduce the failure at my desk.

Review URL: https://chromereviews.googleplex.com/3508025

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@88 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 02:46:31 +00:00
arv@google.com
f5de883b77 Dart DOM: Implement dataAttributes Map.
BUG=None
TEST=None

Review URL: https://chromereviews.googleplex.com/3536014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@83 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-05 23:32:35 +00:00
hausner@google.com
b8a55bf3d7 Initializer expressions must not access 'this'
Catch explicit and implicit accesses to 'this' in initializer list of constructors.
Review URL: https://chromereviews.googleplex.com/3517020

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@81 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-05 22:39:25 +00:00
cshapiro@google.com
9a664c355d Wrap method bodies in a NoGCScope when receiving raw pointer arguments.
BUG=5413582

Review URL: https://chromereviews.googleplex.com/3521023

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@80 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-05 22:38:38 +00:00
vsm@google.com
12b69ca3ba New named optional arguments syntax
BUG=5218494

Review URL: https://chromereviews.googleplex.com/3516022

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@79 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-05 22:35:00 +00:00
arv@google.com
3501cc95ce Dart DOM: Rename query to queryAll and queryOne to query.
BUG=None
TEST=None

Review URL: https://chromereviews.googleplex.com/3517023

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@77 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-05 22:19:09 +00:00
sigmund@google.com
ebd67ed258 htmlconverter: suggestions from dstockwell
Review URL: https://chromereviews.googleplex.com/3532012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@76 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-05 22:01:57 +00:00
arv@google.com
57051017bd Revert "Add Element data property"
This reverts commit r71.

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@74 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-05 21:43:54 +00:00
arv@google.com
515c527ecd Dart DOM: Fix syntax error.
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@73 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-05 21:43:42 +00:00
arv@google.com
1e650a0e64 Add Element data property
BUG=None
TEST=None

Review URL: https://chromereviews.googleplex.com/3512017

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@71 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-05 20:40:39 +00:00
fabiomfv@google.com
02fc5cc91f add debugging compiler flags:
--human-readable-output : generates readable source code in optimized output. 
--disable-type-optimizations : disables type optimizations. 
Review URL: https://chromereviews.googleplex.com/3513020

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@70 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-05 20:40:38 +00:00
sigmund@google.com
b4be3ca2fe htmlconverter: support DOMContentLoaded and more:
- adds support for running code on DOMContentLoaded, but only for chromium
- fix errors in tests after rename to List
- fix test due to bug in dartium importing dart:json
- add flag to htmlconverter_test to keep temporary files (for debugging)
- adds a test that relies on DOMCOntentLoaded (this will fail in dartium)
- make htmlconverter.py use the dartc build in the top-level directory

Review URL: https://chromereviews.googleplex.com/3512025

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@69 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-05 20:31:50 +00:00
sra@google.com
9236cc458b Remove unused dartrenderer.py and its tests.
Also fix databasebuilder test.

BUG=
TEST=

Review URL: https://chromereviews.googleplex.com/3514030

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@68 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-05 20:21:12 +00:00
mmendez@google.com
ad9389b6ca Revert "Eliminate retarded constructors."
This reverts commit r64.

BUG=
TEST=

Review URL: https://chromereviews.googleplex.com/3530013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@66 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-05 20:03:49 +00:00
johnlenz@google.com
661e359d74 Reduce swarm's optimized code size by 10% (480 to 433K) by replace class names with short ids.
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@65 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-05 19:49:41 +00:00
mmendez@google.com
1fae22da51 Eliminate retarded constructors.
Modified: Resolver, Normalizer and GenerateJavascriptAST to special case implicit default constructors. Would be simpler if there was a notion of synthetics, but this is not the time to add such a scheme -- if nothing else it would disrupt the IDE.

BUG=4562150

Review URL: https://chromereviews.googleplex.com/3522019

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@64 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-05 19:43:55 +00:00
zundel@google.com
705be03363 Move BatchTester into a separate file.
BUG=
TEST=

Review URL: https://chromereviews.googleplex.com/3521020

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@52 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-05 16:50:50 +00:00
srdjan@google.com
4b5b7fe381 Fix build.
Review URL: https://chromereviews.googleplex.com/3515026

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@51 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-05 16:39:25 +00:00
srdjan@google.com
2ecf52534f Terminate IC data array with a null group (preparation for new style of inline caching; easier to terminate when iterating over the array in assembly).
Review URL: https://chromereviews.googleplex.com/3507023

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@50 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-05 16:31:37 +00:00
knorton@google.com
234c818be3 Remove $Dart$MapLiteralType as it is no longer used in core.js
Review URL: https://chromereviews.googleplex.com/3519019/

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@49 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-05 16:31:10 +00:00
srdjan@google.com
665b268641 Fix Dart_InvokeDynamic api to handle the null receiver properly: call Object's methods (e.g., "toString", "noSuchMethod").
Review URL: https://chromereviews.googleplex.com/3525014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@48 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-05 16:27:07 +00:00
jgw@google.com
da2581daa9 Fix for classes that are the default factory for multiple other classes/interfaces.
BUG=5009110

Review URL: https://chromereviews.googleplex.com/3522018

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@47 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-05 16:25:25 +00:00
srdjan@google.com
288938bd88 Terminate IC data array with a null group (preparation for new style of inline caching; easier to terminate when iterating over the array in assembly).
Review URL: https://chromereviews.googleplex.com/3507023

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@46 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-05 16:25:14 +00:00
rchandia@google.com
0e08858598 Adding gitignore again
R=zundel@google.com
BUG=
TEST=

Review URL: https://chromereviews.googleplex.com/3526013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-05 15:53:57 +00:00
ager@google.com
7c191c392b Fix Windows build after directory library changes.
R=sgjesse@google.com
BUG=
TEST=

Review URL: https://chromereviews.googleplex.com/3527012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@44 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-05 15:02:27 +00:00
ager@google.com
023fa46e48 Finish non-recursive synchronous directory listing on Linux and Mac.
Next steps: Testing, Windows support and using isolates to make
listing async.

We should probably change the API to not tie a Directory object
to a given OS directory structure. When spawning an isolate to
perform a listing operation, that will open the directory,
list its contents and close the directory. That way we can
do multiple listing operations with the same Directory object
without having interference.

R=sgjesse@google.com,iposva@google.com
BUG=
TEST=

Review URL: https://chromereviews.googleplex.com/3511020

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-05 14:33:49 +00:00
ngeoffray@google.com
a717c9b7c1 Fix library prefixes on top-level elements. Update status file to reflect reality on library prefixes.
Review URL: https://chromereviews.googleplex.com/3521018

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-05 14:13:59 +00:00
zundel@google.com
78d16cca6c Create a directory for python package, move 'testing' in there
Review URL: https://chromereviews.googleplex.com/3514028

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@40 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-05 14:01:12 +00:00
floitsch@google.com
100f10211e Add tests for const classes.
Review URL: https://chromereviews.googleplex.com/3524015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-05 12:36:26 +00:00
ngeoffray@google.com
a42380d3df Define runner before it is used. This allows running individual tests again:
./tools/test.py language/MyTest
Review URL: https://chromereviews.googleplex.com/3508023

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