Commit Graph

79322 Commits

Author SHA1 Message Date
scheglov@google.com 7d8db52436 Support for --machine-problems, tests for PrettyErrorFormatter
R=zundel@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1261 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-07 15:06:56 +00:00
ager@google.com ec697c8481 Implementation of Platform class that exposes information about the machine and the OS.
R=sgjesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1260 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-07 15:04:42 +00:00
danrubel@google.com 1660d0e135 Ensure ClassElementImplementation removed from ThreadLocal set to prevent memory leak
Review URL: http://codereview.chromium.org//8477025

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1259 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-07 15:03:12 +00:00
scheglov@google.com d9ecbeff5b Support for --machine-problems, tests for PrettyErrorFormatter
R=zundel@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1258 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-07 14:59:56 +00:00
sgjesse@google.com 19bab0d5d9 Fix build
TBR=whesse@google.com

BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1255 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-07 14:02:22 +00:00
sgjesse@google.com 77e1072eeb Change the handling of the close event in the StringInputStream
When the underlying InputStream issues a close event keep track of
when the final string data have been read from the
StringInputStream. When all string data have been read schedule a
callback of the close event.

R=whesse@google.com

BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1253 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-07 13:51:37 +00:00
whesse@google.com 3d9daebb1b Fix standalone/TestRunnerTest timeout and file-not-found errors.
BUG=
TEST=standalone/TestRunnerTest

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1252 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-07 13:28:06 +00:00
ager@google.com 8a7ae17d76 Handling of wrong types of arguments in the File API.
R=sgjesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1251 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-07 13:23:28 +00:00
alexeif@google.com 7fd3f3d2f6 Tweaks to string escapes. Added raw string literals.
Review URL: http://codereview.chromium.org//8437100

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1248 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-07 13:03:16 +00:00
whesse@google.com f7582845ef Dart test script dart rewrite - find the correct executable file for "process_test".
BUG=
TEST=standalone/TestRunnerTest

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1247 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-07 12:37:10 +00:00
whesse@google.com a417e377dc Add test_runner.dart to Dart version of test scripts. Include TestRunnerTest unit test.
BUG=
TEST=standalone/TestRunnerTest

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1245 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-07 12:11:07 +00:00
jimhug@google.com 71513ed70f better property overriding field
+1 passing test for +10 lines in frogsh?  I think this fixes a lot of property overriding field cases - but only one of those appears to be covered in the current tests.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1238 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-06 18:56:12 +00:00
jimhug@google.com 1a5fa2832e unary operators
+4 tests passing, -5 lines in frogsh

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1237 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-06 18:31:14 +00:00
jimhug@google.com e50dda8026 more negative test fixes
TODO around fixing function types hack for concrete methods is getting bigger - but I'm going to punt that until the official workweek as it doesn't seem like much fun <smile>.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1236 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-06 16:19:20 +00:00
jimhug@google.com d5e00e9ae0 no-change, testing flakiness of dart_client tests
Review URL: http://codereview.chromium.org//8481024

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1235 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-05 19:40:45 +00:00
jimhug@google.com af117a0842 minor fixes
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1234 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-05 18:19:19 +00:00
jimhug@google.com e6f1d5c142 All skipped tests should now be "correctly skipped" which means they should not count towards the total tests when computing percentages.
Fixed bugs in validating libraries and in static checking for named parameters as the easiest way to clean up the status of these tests.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1233 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-05 16:04:19 +00:00
jmesserly@google.com a73af9f52c Better runtime type checks. The generated code is nicer+faster and they're generated in more places. Since it's reasonably fast now, I enabled it in presubmit.py.
TBR=jimhug

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1232 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-05 00:44:53 +00:00
turnidge@google.com 9a118fbb49 Add Dart_Null, Dart_True, and Dart_False.
Fix Dart_NewPersistentHandle so it won't break if passed one of these
persistent handles.

Reviewer: Should I document that these new functions return a
persistent handle?
Review URL: http://codereview.chromium.org//8446009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1230 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-05 00:09:36 +00:00
cshapiro@google.com 007e9c3cae Allow allocation of four byte strings through the Dart API.
Review URL: http://codereview.chromium.org//8474014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1229 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-04 23:41:58 +00:00
mattsh@google.com 5a674c7267 convert TestFramework to Future
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1228 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-04 22:57:01 +00:00
srdjan@google.com 1d4dffcaf2 Emit node id at every call to runtime.
Review URL: http://codereview.chromium.org//8475013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1226 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-04 22:51:19 +00:00
asiva@google.com 8743e1cc2a - Fix the snapshot generation python script to return an error code when snapshot generation fails and print the error message.
- Split isolate creation into CreateIsolate and InitializeIsolate so that we don't get SEGVs when there is a failure compiling the corelib dart sources during the bootstrap process
Review URL: http://codereview.chromium.org//8334031

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1225 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-04 22:08:13 +00:00
srdjan@google.com 084c89a189 Fix pc descriptor emission for skipped unary oepration +. Eliminates last co19 crash.
Review URL: http://codereview.chromium.org//8479006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1220 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-04 20:10:23 +00:00
sigmund@google.com b7c4e9b778 fix test
Review URL: http://codereview.chromium.org//8477011

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1218 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-04 19:59:15 +00:00
mattsh@google.com a4aeca7d39 fix co19
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1215 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-04 19:07:20 +00:00
asiva@google.com 8450dc33d0 Update co19 status to skip invalid tests.
TBR=srdjan
Review URL: http://codereview.chromium.org//8479010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1214 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-04 18:52:33 +00:00
mattsh@google.com a93088691c convert isolates to use Future
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1213 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-04 18:40:13 +00:00
asiva@google.com 54ef89ee72 Update co19 status file to skip tests which have errors.
TBR=srdjan
Review URL: http://codereview.chromium.org//8478004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1210 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-04 17:15:25 +00:00
hausner@google.com b121e837d4 Address Regis' review feedback
TBR
Review URL: http://codereview.chromium.org//8475005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1208 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-04 17:04:40 +00:00
srdjan@google.com 59b79d8171 Fix more co19 crashes. Introduce GET_NATIVE_ARGUMENT that throws an illegal argument exception if the native argument is of incorrect type.
Review URL: http://codereview.chromium.org//8476002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1205 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-04 16:30:29 +00:00
hausner@google.com 504eea10ff Experimental version without native constructor support
The semantics of native constructors are not really clear. Instead of a native constructor, write a regular Dart constructor that calls a native function in the constructor body instead.
Review URL: http://codereview.chromium.org//8450016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1201 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-04 15:58:55 +00:00
fabiomfv@google.com d3f3a9d193 https://code.google.com/p/dart/issues/detail?id=182
Dart Spec, section "Type Void" (excerpt):
"On the other hand, it is possible to return the result of a void method from within a void method. One can also return null; or a value of type Dynamic. Returning any other result will cause a type warning (or a dynamic type error in checked mode)." (only reference to the subject - non-normative) 
Review URL: http://codereview.chromium.org//8438042

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1200 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-04 15:00:44 +00:00
srdjan@google.com 6a0e00c33c Fix crashes in String natives.
Review URL: http://codereview.chromium.org//8455004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1199 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-04 15:00:04 +00:00
sgjesse@google.com 703d58acca Revert files accidentially changed
TBR=ager@google.com

BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1197 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-04 12:50:42 +00:00
sgjesse@google.com 516d71ab0b Change the handling of closing sockets
Sockets now supports being half-closed for either reading or writing. When a socket is closed it is by default closed for both read and write and the underlying file descriptor is destroyed. However the socket close can be asked to only half-close the socket to send end of stream to the other end and still have the ability to receive more data.

The close event on a socket is only emitted when the socket is closed by the other end. Both half-close and full-close by the other end is reported as a close event. If a socket is already half closed the close event will automatically destroy the socket.

The streams on the sockets also takes advantage of this. A socket input stream will report a close event when the other end closed. A socket output stream will half-close the socket when close is called making it possible to still receive data on the input stream. When both streams have been closed the socket is destroyed.

For sockets operating on pipes they are initially created as half-closed for either reading or writing depending on which type of pipe a socket object is based on. A pipe for writing will start half-closed for reading so if it is only half-closed for writing the socket will still be destroyed. Same with a pipe for reading that will start half-closed for writing and when a close event is received half-closing the other direction will destroy the socket. Socket objects based on pipes are only exposed through streams.

Extended the socket close test to test a number of different scenarios.

Also refactor the socket data C++ object to encapsulate more socket information and operations.

Now the Linux and Mac OS versions are 100% the same as it turned out that using POLLRDHUP on Linux was not required any more.

R=ager@google.com

BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1196 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-04 12:34:43 +00:00
ager@google.com 68166663f9 Renaming Array -> List in the VM API.
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1195 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-04 12:25:53 +00:00
ahe@google.com b22f088173 Update status file to unbreak dart/frog/presubmit.py.
Review URL: http://codereview.chromium.org//8457008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1193 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-04 12:18:36 +00:00
ngeoffray@google.com bd14d6fd9b Build frog and frogsh at the top-level.
Review URL: http://codereview.chromium.org//8462005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1191 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-04 11:27:49 +00:00
ngeoffray@google.com 3a51b5ae88 Change test to not use DartOptions.
Review URL: http://codereview.chromium.org//8467003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1189 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-04 11:05:47 +00:00
ngeoffray@google.com c93b5a40ea Integrate leg as a component in test.py. Also update presubmit script to run tests with leg.
Review URL: http://codereview.chromium.org//8462004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1187 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-04 10:29:48 +00:00
ngeoffray@google.com 35d8c67c72 Move us to a greener place.
Review URL: http://codereview.chromium.org//8461002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1186 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-04 08:14:03 +00:00
iposva@google.com 9feefc61ba - Disable OptionsTest in for component Dartium.
Review URL: http://codereview.chromium.org//8450022

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1182 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-04 00:54:44 +00:00
asiva@google.com d8be447f42 Mark some tests which timeout in checked mode as Skip, we have issue 331 filed to resolve this.
TBR=regis
Review URL: http://codereview.chromium.org//8450021

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1181 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-04 00:37:14 +00:00
asiva@google.com 80335caa8d Update status skipping incorrect test.
TBR=srdjan
Review URL: http://codereview.chromium.org//8452007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1179 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-04 00:18:17 +00:00
sra@google.com 25e8752353 Move PEG parser test into testing framework.
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1177 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-03 23:24:33 +00:00
srdjan@google.com 6bf6848498 Enable tests in release mode as well.
Review URL: http://codereview.chromium.org//8447015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1175 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-03 23:01:54 +00:00
srdjan@google.com 0265e3f027 Fixes to co19 crashes:
- Null is a valid exception object.
- Throw exception in array copy.
Review URL: http://codereview.chromium.org//8437106

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1173 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-03 22:31:32 +00:00
hausner@google.com 35cc976b4b Separating constructor parsing from function parsing
Make parsing functions and constructors more readable by separating
the two into disjoint functions.
Review URL: http://codereview.chromium.org//8417056

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1172 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-03 22:29:57 +00:00
iposva@google.com a690fbc1ba - Add a test for basic passing of arguments from the command line.
Review URL: http://codereview.chromium.org//8412007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1171 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-03 21:55:23 +00:00