sgjesse@google.com
78f8e7bd91
Only use one process when running tests on Windows
...
Running more than one process on Windows fails at the moment, and one always need to pass -j1.
R=ngeoffray@google.com , ager@google.com
BUG=
TEST=
Review URL: http://codereview.chromium.org//8272001
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@397 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-13 14:06:41 +00:00
sgjesse@google.com
b98198c894
Make sure that the named pipe created for signalling the exit code is not inheritable
...
R=ager@google.com
Review URL: http://codereview.chromium.org//8267006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@396 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-13 13:34:36 +00:00
sgjesse@google.com
786aee238a
Fix the handling of exceptions from process start
...
The privious change in r389 where the sockets used to communicate with the chile process did not work. Even though the Socket objects are not assigned any file descriptor they should still have their Dart port closed. If not the VM will not terminate.
TBR=ager@google.com
TEST=ProcessStartExceptionTest.dart
BUG=none
Review URL: http://codereview.chromium.org//8270001
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@395 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-13 13:31:51 +00:00
ngeoffray@google.com
edcae54a2c
Implement setRange on DartC and the VM.
...
Review URL: https://chromereviews.googleplex.com/3574018
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@394 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-13 12:58:49 +00:00
ngeoffray@google.com
76ef8258a4
Create a standalone test directory and move tests in runtime/tests/dart (mostly) to that directory.
...
Review URL: http://codereview.chromium.org//8261009
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@393 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-13 12:44:29 +00:00
ngeoffray@google.com
29a8add5a3
Also build process_test to enable running Process tests at the top-level directory.
...
Review URL: http://codereview.chromium.org//8263008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@392 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-13 12:13:44 +00:00
sgjesse@google.com
8e1fe6626d
Fix running of tests on Chromium and Dartium
...
The change in r388 removed the VM options from Chromium and Dartium test runs.
R=ngeoffray@google.com
BUG=
TEST=
Review URL: http://codereview.chromium.org//8258016
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@391 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-13 11:54:36 +00:00
zundel@google.com
3745d707cb
Addresses Python style issues in test_configuration.py and test_case.py
...
Review URL: http://codereview.chromium.org//8260004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@390 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-13 11:07:18 +00:00
sgjesse@google.com
d0496ec807
Implement the full process interface for Windows
...
There are still a couple of TODOs in the code.
R=ager@google.com
Review URL: http://codereview.chromium.org//8249007
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@389 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-13 10:38:37 +00:00
sgjesse@google.com
1cd5459f7b
Add the ability to run tests with several sets of VM flags
...
The test-option VMOptions that can be placed in .dart test files can now be specified several times like this:
// VMOptions=
// VMOptions=--short_socket_read
// VMOptions=--short_socket_write
// VMOptions=--short_socket_read --short_socket_write
For each time VMOptions is specified a seperate test will be bun with the specified flags.
Used this to run the tests that uses sockets with short read and writes. Fixed a number of bugs in both stream implementation and in tests revealed by this.
R=iposva@google.com , ngeoffray@google.com
Review URL: http://codereview.chromium.org//8226016
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@388 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-13 10:14:31 +00:00
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