Commit Graph

15405 Commits

Author SHA1 Message Date
floitsch@google.com 6eef3a6ed6 Migrate date.dart from old suffix_ to _prefix privacy.
Review URL: https://chromiumcodereview.appspot.com//10389145

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7656 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-15 14:40:43 +00:00
ager@google.com c278f6da23 Fix directory listing to actually have the semantics intended.
The directory listing will continue on error (such as broken links)
and the boolean indication when listing is complete will signal
if all operations succeeded.

R=sgjesse@google.com
BUG=dartbug.com/3031
TEST=standalone/io/file_system_links_test.dart

Review URL: https://chromiumcodereview.appspot.com//10381150

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7655 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-15 14:33:17 +00:00
floitsch@google.com 7f06db21d2 Add comparison operators to Date class.
Review URL: https://chromiumcodereview.appspot.com//10399027

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7653 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-15 13:15:03 +00:00
floitsch@google.com d89f228708 Make most arguments to Date constructor optional.
Fixes issue 2582.

Review URL: https://chromiumcodereview.appspot.com//10382171

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7652 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-15 12:50:15 +00:00
ricow@google.com d4ec481b04 Update documentation on Process.close to explain issues with closing before reading out all content of stdout and stderr
Review URL: https://chromiumcodereview.appspot.com//10386140

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7650 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-15 11:48:10 +00:00
floitsch@google.com fd81cf6ad5 Convert double to integer and update status file.
Review URL: https://chromiumcodereview.appspot.com//10382170

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7649 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-15 11:45:46 +00:00
floitsch@google.com 1805e79fcb Support up to 6 digits after the decimal point in Date.fromString.
Fixes comment 10 of issue 1728.

Review URL: https://chromiumcodereview.appspot.com//10391111

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7648 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-15 10:59:53 +00:00
floitsch@google.com 86859d3324 Fix typo in Date.toString.
We emitted an extra 0 for Dates that had ms == 10.

Fixes issue 1386.

Review URL: https://chromiumcodereview.appspot.com//10310145

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7647 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-15 10:56:31 +00:00
floitsch@google.com 3ccf471f94 Add Hashable to Date interface.
Fixes issue 2400

Review URL: https://chromiumcodereview.appspot.com//10391109

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7646 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-15 10:52:51 +00:00
ager@google.com 4a698f9fb3 Start 'fuzzing' of dart:io APIs and fix first issue found.
Deserialize unsupported Dart objects to Dart_CObject of type
kUnsupported instead of NULL pointers. That way the normal
Dart_CObject validation that tests for supported types will
work out of the box and not crash the VM.

R=sgjesse@google.com
BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com//10383179

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7645 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-15 10:40:44 +00:00
sgjesse@google.com 179db55867 Re-apply "Fix URL decoding in HTTP library"
Now URL decoding works for non-ASCII URLs and will be UTF-8 decoded.

Added an additional import to lib/compiler/implementation/lib/io.dart
for the tests to compile with dart2js.

TBR=ager@google.com

BUG=dart:2902
TEST=tests/standalone/io/url_encoding_test.dart

Review URL: https://chromiumcodereview.appspot.com//10391135

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7644 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-15 08:57:21 +00:00
kmillikin@google.com 99d702f652 Fix a pair of flow graph construction issues.
The stack height was off by one for throw/rethrow.  Change throw and
rethrow instructions so they never have successors because visiting the
graph and iterating nodes manually with StraightLineSuccessor should
agree.

R=srdjan@google.com
BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com//10332139

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7643 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-15 08:55:56 +00:00
sgjesse@google.com 4166edd30b Remove the SHA1 implementation used by web sockets and use the dart:crypto library one instead.
R=ager@google.com

BUG=none
TEST=tests/standalone/io/web_socket_test.dart

Review URL: https://chromiumcodereview.appspot.com//10398010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7640 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-15 07:55:44 +00:00
hausner@google.com de86bd5ed8 Debugger wire protocol: setting breakpoints
- Adding commands to set breakpoints and showing current stack trace.
- Adding a callback hook to signal when a breakpoint gets resolved to
  and actual line number. 
- Adding ids for breakpoints and new breakpoint API functions, deprecating
  the existing ones. 
- Adding one helper function to the JSON class

Anton may want to take a look at the JSON addition.
Review URL: https://chromiumcodereview.appspot.com//10383164

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7628 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-14 21:10:25 +00:00
fschneider@google.com 3c9755e56f Move FlowGraphPrinter to a new file.
This change is just moving code around.
Review URL: https://chromiumcodereview.appspot.com//10398015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7627 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-14 20:32:30 +00:00
srdjan@google.com 54f73f0365 Remove TuckTemp, PickTemp, use temporary locals instead.
Review URL: https://chromiumcodereview.appspot.com//10310132

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7624 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-14 20:01:35 +00:00
turnidge@google.com ff9fdf11b2 Speed up the Dart_IsBlah functions by checking the class index. This
allows us to avoid creating handles (and therefore handle scopes) in
these functions.

Before:
UseDartApi : 66395

After:
UseDartApi : 42730

Main improvement comes from speeding up Dart_IsError.
Review URL: https://chromiumcodereview.appspot.com//10386060

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7619 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-14 17:58:59 +00:00
sgjesse@google.com f861f1c2a0 Add a hash code to client and server web socket connections
The client web socket connection uses part of the nonce generated for
the challenge. The server web socket connection uses the hash code
from the socket.

R=ager@google.com

BUG=dart:3017
TEST=tests/standalone/io/web_socket_test.dart

Review URL: https://chromiumcodereview.appspot.com//10377124

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7613 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-14 15:53:28 +00:00
ager@google.com b6e35655cf Make the crypto library an official dart:crypto library.
The library now works on dart2js and on the VM.

Add the library to the API docs and to the sdk.

R=iposva@google.com,dgrove@google.com,kasperl@google.com
BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com//10332109

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7604 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-14 11:20:56 +00:00
sgjesse@google.com 839f6e0587 Revert "Fix URL decoding in HTTP library"
Issues with dart2js tests.

TBR=ager@google.com

BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com//10382148

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7600 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-14 10:26:12 +00:00
sgjesse@google.com 0086312006 Fix URL decoding in HTTP library
Now URL decoding works for non-ASCII URLs and will be UTF-8 decoded.

R=ager@google.com

BUG=dart:2902
TEST=tests/standalone/io/url_encoding_test.dart

Review URL: https://chromiumcodereview.appspot.com//10387082

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7599 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-14 09:58:27 +00:00
cshapiro@google.com 3c1eaa5277 Implement a getter for pattern to complete the Match interface.
BUG=3003

Review URL: https://chromiumcodereview.appspot.com//10386104

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7570 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-11 22:06:14 +00:00
srdjan@google.com 0ed5a12568 Fix IC data insertion: do it before the graph is built.
Review URL: https://chromiumcodereview.appspot.com//10378099

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7554 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-11 16:38:26 +00:00
ahe@google.com e3cad04c02 Split the URI library across multiple files.
Review URL: https://chromiumcodereview.appspot.com//10383103

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7543 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-11 13:40:03 +00:00
ager@google.com 333b817631 Increase thread stack size on Mac in debug mode.
After changing dart:io to use Futures the debug Mac build hit the stack
limit during snapshot reading. Landing this to unbreak the build.

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

Review URL: https://chromiumcodereview.appspot.com//10389090

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7532 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-11 07:01:24 +00:00
ager@google.com 5fb75d3952 Change dart:io to use Future for one-shot operations.
This appears to be what a lot of our users are doing and it is the
style used in our other libraries.

Noteworthy changes:

- File and Directory objects are now immutable.

- Directory.list returns an active lister object.

- Write operations on files return futures and the
  onNoPendingWrites handler is gone. The same
  functionality is there by using 'then' on the
  future returned from the last write operation.

- Process starting is now done with static methods:
  -- Process.start yields an InteractiveProcess.
  -- Process.run yields a Future<ProcessResult>

BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com//10392023

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7529 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-11 06:09:42 +00:00
hausner@google.com dbd9fa4048 Eliminate need for va_copy in json.cc
The hacked version of va_copy did not work on Linux.
Review URL: https://chromiumcodereview.appspot.com//10383122

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7525 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-10 23:28:14 +00:00
regis@google.com 5d9dab620c Implement latest rules prohibiting some self referencing typedefs.
Update tests.
Review URL: https://chromiumcodereview.appspot.com//10377095

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7524 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-10 23:03:36 +00:00
hausner@google.com dec5e465f9 Attempt 2 to fix build
Review URL: https://chromiumcodereview.appspot.com//10310109

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7522 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-10 22:32:39 +00:00
hausner@google.com c8aee10ea3 Attempt 1 to fix build
Review URL: https://chromiumcodereview.appspot.com//10384110

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7521 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-10 22:11:42 +00:00
hausner@google.com e5d8d80479 Support more debugger commands in the wire protocol
Also add a very simple debugger shell which at this point
is meant to be a debugging help for the debugger code rather
than a user-friendly tool.
Review URL: https://chromiumcodereview.appspot.com//10392017

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7518 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-10 22:04:50 +00:00
srdjan@google.com bdb733b800 With removal of increment operations, each node has a unique id.
Review URL: https://chromiumcodereview.appspot.com//10356108

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7517 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-10 20:23:15 +00:00
iposva@google.com 3d4d4d71a7 - Typed arrays should implement all methods from Collection and List interfaces.
Review URL: https://chromiumcodereview.appspot.com//10391056

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7512 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-10 19:17:54 +00:00
asiva@google.com 4f105f9d0b Resubmit change 7506.
Review URL: https://chromiumcodereview.appspot.com//10387061

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7511 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-10 19:17:37 +00:00
srdjan@google.com 92b9e64375 Adding collected type feedback to the IL nodes (only in optimized mode).
Review URL: https://chromiumcodereview.appspot.com//10378093

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7509 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-10 19:04:09 +00:00
asiva@google.com 6911f88b25 Revert change 7506 to check on build failure.
Review URL: https://chromiumcodereview.appspot.com//10386073

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7508 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-10 18:36:06 +00:00
asiva@google.com 3e5d8216c3 Fix issue 2888.
Allow for the library tag handler to be setup for the isolate, instead of
while loading a script. This ensures that we can use #import on the boot strap libraries like builtin, uri etc.

This change results in a dart API change and corresponding modifications are
necessary in dartium and App Engine.
Review URL: https://chromiumcodereview.appspot.com//10302020

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7506 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-10 18:25:47 +00:00
iposva@google.com 1829b6328a - Fix the no_snapshot build.
Review URL: https://chromiumcodereview.appspot.com//10389072

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7505 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-10 18:16:46 +00:00
antonm@google.com 0ccc21fc5a Fix Mac build.
TBR=iposva@google.com

Review URL: https://chromiumcodereview.appspot.com//10388075

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7503 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-10 18:06:00 +00:00
srdjan@google.com 92eb96c913 Fix issue 2939, revert previous change that accepted null as excpetion objects:
throw null throws NullPointerException as per latest spec.
Review URL: https://chromiumcodereview.appspot.com//10392016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7475 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-09 22:27:12 +00:00
srdjan@google.com 48f28eebdb Fix bugs in expression temp allocation, Kevin's CL 10302007 (Remove temporaries using explicit names) and merge with other temp.
Review URL: https://chromiumcodereview.appspot.com//10389041

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7472 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-09 21:39:58 +00:00
whesse@google.com 54cf1d6dcf Remove dependence on samples from runtime checkout, mistakenly added by r7412
BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com//10384081

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7464 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-09 15:21:29 +00:00
ajohnsen@google.com 33dc2dd6e4 Correctly entirely close client connections, when closing http server.
Also remove duplicate call to _connectionEstablished.

BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com//10356069

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7448 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-09 10:55:42 +00:00
sgjesse@google.com 56945855e9 Add Exception to the class name for recently added exception classes
R=ager@google.com

BUG=none
TEST=none

Review URL: https://chromiumcodereview.appspot.com//10389017

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7444 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-09 10:18:24 +00:00
sgjesse@google.com fca01e72b7 Avoid using chunked transfer encoding when the HTTP verision is 1.0.
R=ager@google.com

BUG=dart:2938
TEST=tests/standalone/io/http_content_length_test.dart

Review URL: https://chromiumcodereview.appspot.com//10386040

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7442 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-09 09:06:28 +00:00
sgjesse@google.com 45c6481a74 Make the HTTP server close non-persistent connections
When closing the connection due to non-presistent connection make sure
that all data are sent to the receiver. For socket close due to errors
or idle timeout destroy the socket.

R=ager@google.com

BUG=dart:2918
TEST=tests/standalone/io/http_connection_close_test.dart

Review URL: https://chromiumcodereview.appspot.com//10356055

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7441 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-09 08:53:41 +00:00
sgjesse@google.com a579f1f449 Implemented W3C complient web socket client interface
Fixed a bug where onMessage events could happen before the onOpen event.

R=ager@google.com, ajohnsen@google.com, vsm@google.com, jacobr@google.com

BUG=dart:2001
TEST=tests/standalone/io/web_socket_test.dart

Review URL: https://chromiumcodereview.appspot.com//10383039

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7440 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-09 08:47:07 +00:00
ajohnsen@google.com c815a502a7 Add indexOf to Int/Float-List's.
BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com//10386039

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7439 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-09 07:13:00 +00:00
srdjan@google.com eaab5d38aa Fixed compilation time measurement, restructure some code. Do not use slow ToFullyQualifiedCString in production backend (saves 10% in backend time with compile-all).
Review URL: https://chromiumcodereview.appspot.com//10389023

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7435 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-09 00:03:25 +00:00
regis@google.com a1fcd03ca6 Allow self referencing typedefs (issue 2490).
Fix Type::Name for malformed function types (issue 2340).
Added tests.
Removed bad negative test.
Review URL: https://chromiumcodereview.appspot.com//10388019

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7422 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-08 16:27:43 +00:00