benl@google.com
4e62db0de3
Two, not three, projects.
...
Also, GoogleCodeStyle.xml is missng.
Review URL: https://chromereviews.googleplex.com/3539014
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@387 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-13 09:19:52 +00:00
sra@google.com
50b99ad85d
Add tests for named parameters that have names of JavaScript properties of Object.prototype.
...
BUG=5447476
TEST=
Review URL: http://codereview.chromium.org//8257001
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@386 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-13 01:12:51 +00:00
johnlenz@google.com
54a65cf7e8
Don't emit calls to "Object.$Constructor" and "Object.$Initializer". Saves 17K (optimized) off of swarm.
...
Review URL: http://codereview.chromium.org//8253003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@385 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-13 00:13:15 +00:00
codefu@google.com
e77d724568
Check library dependency changes before deciding on a zero-delta run.
...
Bundled libraries report as being up to date with respect to their compiled
resources, but changes to classes and interfaces still need to be verified
against local depenencies.
Review URL: http://codereview.chromium.org//8247010
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@384 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-12 23:49:05 +00:00
jbrosenberg@google.com
0ecdacb6d0
Don't allow a #source directive in a library unit include itself
...
Review URL: http://codereview.chromium.org//8229028
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@383 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-12 22:25:21 +00:00
zundel@google.com
db16ac11c6
Refactors some helper functions in ResolverTest back down to ResolverTestCase
...
I intend to make a new test for exercising compile time constants and
want to use the same infrastructure.
Review URL: http://codereview.chromium.org//8241008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@382 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-12 21:49:58 +00:00
sra@google.com
9f50706f03
Test for named parameter called 'count'.
...
Currently fails on dartc because the optional argument count is put in
the same object as the optional arguments.
BUG=5447476
TEST=
Review URL: http://codereview.chromium.org//8229041
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@381 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-12 21:46:26 +00:00
srdjan@google.com
4aa5564622
Handle bug 5442338: PCDescriptors generated wrongly, disallowing optimizations, causing assert failures in debug. Fixed also assembly code generation in optimized code (a jumbo could be far). The test code from bug 5442338 can run now successfully.
...
Review URL: http://codereview.chromium.org//8240005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@376 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-12 20:04:19 +00:00
floitsch@google.com
60add15c21
Add test that checks that the default constructor is called.
...
Review URL: http://codereview.chromium.org//8208011
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@373 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-12 19:03:34 +00:00
johnlenz@google.com
7bc0683761
Add support for exception rethrowing using "throw;"
...
Review URL: http://codereview.chromium.org//8208016
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@372 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-12 18:56:01 +00:00
johnlenz@google.com
f88f5bd311
Pull "$instanceOf" methods off of the native object. No change in behavior.
...
Review URL: http://codereview.chromium.org//8241013
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@371 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-12 18:54:48 +00:00
vsm@google.com
50ae8ae116
Repackage html lib.
...
This is just regen:
- cd .../client/html
- rm -rf release
- ../tools/copy_dart.py release html.dart
Review URL: http://codereview.chromium.org//8234030
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@370 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-12 18:10:51 +00:00
rnystrom@google.com
4b23751ad8
Readme!
...
Review URL: https://chromereviews.googleplex.com/3546012
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@369 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-12 17:13:18 +00:00
zundel@google.com
6bef774e19
Cleans up style problems in architecture.py and test_runner.py
...
Cleaning these up so I can merge in changes related to
including chromium tests into the mainline test.py.
Review URL: http://codereview.chromium.org//8234029
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@365 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-12 14:12:10 +00:00
ager@google.com
10f298a6d4
Directory: implement recursive listing on Windows.
...
R=sgjesse@google.com
BUG=
TEST=
Review URL: http://codereview.chromium.org//8244004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@364 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-12 13:03:06 +00:00
ager@google.com
c53c7097d0
Directory: implement recursive directory listing on Linux and Mac.
...
R=sgjesse@google.com
BUG=
TEST=
Review URL: http://codereview.chromium.org//8243005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@363 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-12 12:53:39 +00:00
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