ager@google.com
59135cc57b
Clean up directory listing interface.
...
Remove open and close. A directory instance just holds a string
representing the path to the directory.
R=sgjesse@google.com
BUG=
TEST=
Review URL: http://codereview.chromium.org//8244001
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@362 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-12 10:39:30 +00:00
hausner@google.com
08a5cffb3b
Implement index operator super call
...
Last portion of super operator calls.
Review URL: http://codereview.chromium.org//8234022
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@359 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-11 23:50:19 +00:00
johnlenz@google.com
6701769d35
Fix named parameters handling of values that are falsy in JS, also fixes issues with named parameters that whose "default" value should default to "null".
...
Review URL: http://codereview.chromium.org//8232014
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@358 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-11 23:43:20 +00:00
regis@google.com
19208574f0
Inline allocation of implicit closures.
...
Consolidate generation of closure allocation stubs into one function.
Fix type name printing when printing ast.
Review URL: http://codereview.chromium.org//8234016
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@357 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-11 23:42:20 +00:00
codefu@google.com
580b3e5f30
Missing file TBR
...
BUG=
TEST=
Review URL: http://codereview.chromium.org//8228021
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@356 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-11 23:39:46 +00:00
zundel@google.com
42b28f0329
fix build break for running vm tests.
...
BUG=
TEST=
Review URL: http://codereview.chromium.org//8227031
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@355 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-11 23:09:07 +00:00
codefu@google.com
6c9a5a1989
Hashcodes were being improperly calculated for public API of libraries.
...
This triggers reparsing of files dependent on the API. The error occured
because we were checking hashcodes in the frontend while calculating them
after normalization/backend. This patch:
-Moves calculation of hashcodes to the same functions that generate the
API files.
-Writes the cached hashcode to depenency files
-Includes an end to end test to guard against regression
Review URL: http://codereview.chromium.org//8222016
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@354 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-11 23:01:55 +00:00
zundel@google.com
98c678891c
Style cleanups for test.py
...
This reformats test.py to have consistent Python style.
Review URL: http://codereview.chromium.org//8223016
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@353 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-11 22:44:53 +00:00
hausner@google.com
a487770657
Implement super operator calls
...
Review URL: http://codereview.chromium.org//8222015
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@335 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-11 16:49:35 +00:00
sigmund@google.com
3c48e145c4
get_drt: pin version number again until we fix bucket ACL
...
Review URL: http://codereview.chromium.org//8230019
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@333 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-11 16:25:26 +00:00
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