Commit graph

90705 commits

Author SHA1 Message Date
sgjesse@google.com
b00030ff38 Disable SocketManyConnectionsTest test on Mac OS
The Mac OS buildbot did not like the test - failed with "Too many open files".

TBR=ager@google.com

BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@332 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-11 15:21:59 +00:00
sgjesse@google.com
74e4e46c2f Fix wrong pointer arithmetic when extending the file descripter list in the eventhandler
This caused random crashes due to memory corruption when the file descripter list in the eventhandler needed to be extended.

R=ager@google.com

BUG=none
TEST=tests/dart/src/SocketManyConnectionsTest.dart

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@331 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-11 15:05:32 +00:00
vsm@google.com
154c3ea42e Added DOM MessagePort support.
Review URL: http://codereview.chromium.org//8216018

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@329 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-11 13:32:19 +00:00
ager@google.com
536a9f0500 Fix type mismatch in directory listing.
R=sgjesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@328 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-11 13:19:19 +00:00
ager@google.com
cf136a7685 Use isolates for directory listing.
Use isolates to make directory listing asynchroneous from the point
of view of the main Dart isolate. Each listing operation will spawn
a new heavy isolate to perform the actually directory listing using
the synchroneous OS primitives.

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@327 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-11 13:12:14 +00:00
sgjesse@google.com
d5e6daf99f Fix Windows build
TBR=ager@google.com

BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@326 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-11 11:45:17 +00:00
sgjesse@google.com
b7485553a2 Fix deadlock in process exit handling
As glibc allocation routines are not re-entrant avoid calling delete in signal handler.

Instead the message send from the signal handler on process exit contains both the pid and the exit code. The internal _Process object always installs a data handler for the exit message and calls back into C++ to cleanup the resources allocated for running a process.

Changed the ActiveProcess (renamed to ProcessInfo) to form an explicitly linked list.

R=ager@google.com

BUG=dart:1
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@325 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-11 11:26:12 +00:00
asiva@google.com
fdb5d9a607 Fix compilation warnings/errors seen with newer versions of gcc compiler.
Review URL: http://codereview.chromium.org//8222017

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@321 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-11 00:37:11 +00:00
johnlenz@google.com
4b6eb1bab1 Review URL: http://codereview.chromium.org//8218022
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@320 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-10 23:21:29 +00:00
johnlenz@google.com
ffeb400831 Speed the optimzed build a little bit.
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@319 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-10 22:41:23 +00:00
sigmund@google.com
942935e195 get_drt.py: show warning, but do not fail if we can't download DumpRenderTree
Review URL: http://codereview.chromium.org//8220015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@318 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-10 22:39:22 +00:00
zundel@google.com
77a77962b0 Fix crash of language/InstantiateTypeVariableNegativeTest
The resolver catches this test with a NO_SUCH_METHOD exception,
but if you run with --warn_no_such_type that is not fatal.  This
change detects the problem with a type variable being used so
it doesn't get to code generation.

BUG=5433122

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@308 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-10 20:10:55 +00:00
zundel@google.com
0294b62be1 remove TestRunner and revector callers to DartRunner
It only had a few methods in it that all ended up delegating to DartRunner.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@306 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-10 19:11:41 +00:00
cshapiro@google.com
95ab992168 Remove unneeded predicate variables.
Review URL: https://chromereviews.googleplex.com/3570017

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@305 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-10 18:47:53 +00:00
arv@google.com
a89740adaa Dart DOM: Fix some TODOs in Element and Node.
BUG=None
TEST=None

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@304 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-10 17:39:34 +00:00
jbrosenberg@google.com
61f4d4472c Redo for: Bypass precompiled libs for up to date checks
Fixes to bundledArtifact handling

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@302 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-10 15:37:06 +00:00
ager@google.com
f56cef3d57 Skip directory tests when not running on the VM.
R=sgjesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@300 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-10 15:19:44 +00:00
ager@google.com
c123e91ddd Add simple directory listing test.
For now, just test that we list something and that no errors occur.

R=sgjesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@299 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-10 15:06:28 +00:00
zundel@google.com
0322aafe87 Migrating guts of run.py to testing/architecture.py
simply moves the bulk for run.py into testing/architecure.py
and updates references.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@298 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-10 13:52:47 +00:00
dgrove@google.com
beef9a8baa update codereview.settings for open-sourcing.
Review URL: http://codereview.chromium.org//8218001

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@293 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-10 06:43:32 +00:00
dgrove@google.com
e2b593358c pin version number of DumpRenderTree
TBR=vsm
Review URL: https://chromereviews.googleplex.com/3576016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@292 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-09 22:53:26 +00:00
mmendez@google.com
6091c0dc03 When running with with --warn_no_such_type the backend would assert on non-existent types. Previously, we would add a default ctor to a non-existent type.
In this patch, we don't add ctors to non-existent types and we generate NSME's for instantiation of non-existent types or types with non-existent ctors.

BUG=5433121

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@283 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-09 05:02:07 +00:00
zundel@google.com
3866a85d54 Avoid crashing on new invocations that are not fully resolved.
R=mmendez@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@282 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-09 04:47:04 +00:00
zundel@google.com
870da8ef9d Fixing bad merge in CommandLineOptions
Review URL: https://chromereviews.googleplex.com/3565017

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@276 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-08 15:31:25 +00:00
zundel@google.com
4ccb7c5810 Add --enable-type-checks to allow certain resolution errors to be non-fatal
This is to match the  behavior outlined in Gilad's
"Optional Types in Dart" document.  Extra type checks are turned
on when --enable-type-checks is passed on the command line *or*
optimization mode is enabled in the compiler.

See also https://chromereviews.googleplex.com/3563014/

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@275 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-08 15:11:10 +00:00
dgrove@google.com
cab9ea690f 1. fix broken htmlconverter.py
2. add back js as target for htmlconverter.py
Review URL: https://chromereviews.googleplex.com/3568018

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@273 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-08 07:37:52 +00:00
mmendez@google.com
8d341582c5 Fix build break introduced by r271.
I copied the TypeTest.dart to TypeVMTest.dart, but forgot to update the file name used by the test accordingly.

TBR=iposva

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@272 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-08 04:33:51 +00:00
mmendez@google.com
fc7390d97b Add support for --enable_type_checks (developer mode) for dartc.
This patch is based on https://chromereviews.googleplex.com/3520019/.  However it addresses the following issues:

1) TypeError exceptions will now have the stack trace filled in.
2) Type parameters are now accessible from closurized code, including the trampoline shims for named optinal parameters.
3) Suppress use of FunctionExpressionInliner with type checks because the inline normalization can leave return nodes in the AST.
4) Pass the generateHumanReadableOutput flag to the closure backend.
5) TypeDartcTest passes in debug and release modes with type checking enabled.  We still need to enable the additional cases in the code.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@271 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-08 04:11:34 +00:00
johnlenz@google.com
179f836439 Fix source map stack deobfuscation for test runner.
Review URL: https://chromereviews.googleplex.com/3573020

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@270 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-08 01:50:04 +00:00
eub@google.com
7fb89bc64e Add --verbose and --dartc_extra_flags flags to update.py.
Review URL: https://chromereviews.googleplex.com/3577021

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@269 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-08 00:12:06 +00:00
jacobr@google.com
9192c5ec37 Modify client.status as swarm tests now pass.
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@268 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-08 00:02:34 +00:00
regis@google.com
6b6d732d3a Inline type checks for num, int, double, bool, String, and Function interfaces.
Review URL: https://chromereviews.googleplex.com/3557013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@267 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 23:52:29 +00:00
jacobr@google.com
ddaacbe83b checkpoint
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@265 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 23:29:39 +00:00
sigmund@google.com
4505632927 build bot: fixing pattern so that version of dartium + vm shows correctly in waterfall.
Review URL: https://chromereviews.googleplex.com/3572016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@262 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 21:26:59 +00:00
sigmund@google.com
755cd7ec8b htmlconverter.py: allow .html + .htm file extensions, disallow all others.
Review URL: https://chromereviews.googleplex.com/3567016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@261 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 21:17:04 +00:00
sra@google.com
8af240c0cc Tests for passing falsy values to named arguments.
Fixes type error in previous version.

BUG=3530015
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@260 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 20:55:07 +00:00
codefu@google.com
015f74d3c1 dart:html, woohoo!
Review URL: https://chromereviews.googleplex.com/3577020

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@259 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 20:45:19 +00:00
knorton@google.com
186d2a1cc2 Removed refernce to GoogleCodeStyle.xml from README.txt
Review URL: https://chromereviews.googleplex.com/3579014/

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@258 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 20:38:14 +00:00
sra@google.com
62d265fb4e Revert "Tests for passing falsy values to named arguments."
This reverts commit 75ee354c00e07fd209c8e60c3f588e55eaac7299.

BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@257 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 20:23:28 +00:00
sigmund@google.com
e6eb1f62a1 get_drt.py: fix to remove race with dartium bot during downloads
Review URL: https://chromereviews.googleplex.com/3561021

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@256 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 20:06:22 +00:00
sra@google.com
bead816a8c Tests for passing falsy values to named arguments.
BUG=5419670
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@254 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 20:00:39 +00:00
sigmund@google.com
4c9be10f18 Remove my email
Review URL: https://chromereviews.googleplex.com/3578016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@253 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 19:54:03 +00:00
johnlenz@google.com
f2639e3a79 Add Dart RTT info to the Function prototype
Review URL: https://chromereviews.googleplex.com/3573017

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@252 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 19:32:49 +00:00
floitsch@google.com
385e90dd3b Remove my mail from some of the files.
Review URL: https://chromereviews.googleplex.com/3573018

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@251 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 19:28:26 +00:00
jbrosenberg@google.com
7f4d06ec8d Fixed args passed to metrics scripts
R=codefu

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@250 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 19:06:02 +00:00
regis@google.com
820653338a Avoid accessing the object store when checking for var class or void class.
Review URL: https://chromereviews.googleplex.com/3562016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@249 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 18:31:02 +00:00
sigmund@google.com
05b0b0ba29 get_drt + client bots: fix google-storage source location for archives
Review URL: https://chromereviews.googleplex.com/3583012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@248 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 18:27:18 +00:00
rchandia@google.com
770771127b Deactivates ANSI colors on errors for non-interactive consoles
R=zundel@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@245 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 18:06:23 +00:00
hausner@google.com
51bfa4841e Supercall skipping
Trivial change. Fixes b/5384453
Review URL: https://chromereviews.googleplex.com/3570015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@244 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 18:02:30 +00:00
sigmund@google.com
5c68f6de7c get_drt.py: remove extra printing
Review URL: https://chromereviews.googleplex.com/3558018

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@243 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 17:49:37 +00:00