Commit graph

20589 commits

Author SHA1 Message Date
srdjan@google.com 5529bf7abe The simplest change to enable optimizing compiler in type checked mode. Every node that needs type checking code will be executed by unoptimized code.
Review URL: https://chromereviews.googleplex.com/3577012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@208 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 11:16:57 +00:00
kasperl@google.com 1a3e9c39b1 Make replyTo argument optional in SendPort.send.
R=benl@google.com
BUG=
TEST=

Review URL: https://chromereviews.googleplex.com/3561014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@207 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 10:44:50 +00:00
iposva@google.com a6f62f6009 Fix bug 5425848:
- Handle LibraryPrefix entries when growing a library dictionary.
Review URL: https://chromereviews.googleplex.com/3570013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@205 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 09:26:03 +00:00
ngeoffray@google.com d4c8bacc2d substringToEnd does not exist anymore.
Review URL: https://chromereviews.googleplex.com/3575012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@203 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 08:48:12 +00:00
iposva@google.com e4809c8a9f - Revert r80: Too large an impact on running in debug mode.
Review URL: https://chromereviews.googleplex.com/3558014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@202 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 08:44:46 +00:00
ngeoffray@google.com c2b5e488da Remove substringToEnd.
Review URL: https://chromereviews.googleplex.com/3561013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@201 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 08:41:38 +00:00
kasperl@google.com de889ee719 Get rid of the support for the old parameter syntax.
I've CC'ed Matthias too and I wouldn't be surprised if he can
find a nicer way of dealing with this, but this is pretty
simple and allows me to make progress on getting rid of the
old syntax.

R=iposva@google.com
BUG=
TEST=

Review URL: https://chromereviews.googleplex.com/3569013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@199 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 08:03:04 +00:00
ngeoffray@google.com cb3a9f6641 Add range methods to List. Throw not implemented for now.
Review URL: https://chromereviews.googleplex.com/3573012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@198 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 07:56:42 +00:00
ager@google.com 6fe04a2202 Mark EchoServerTests as Pass || Crash on Windows while we investigate.
R=sgjesse@google.com
BUG=
TEST=

Review URL: https://chromereviews.googleplex.com/3564014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@197 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 07:56:01 +00:00
cshapiro@google.com 7163d2595d Prove, instead of disprove, element width compatibility.
This improves robustness by ensuring that only one predicate variable
is true before selecting the implementation method.

Review URL: https://chromereviews.googleplex.com/3562012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@177 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 00:18:59 +00:00
cshapiro@google.com 9aca46d2a7 Implement support for reading and writing UTF-8 encoded strings.
In the past, characters in C strings were assumed to encode themselves
and when converting Dart strings to C strings characters were narrowed
to 8-bit values.

With this change, C strings are assumed to be UTF-8 encoded.
Converting a C string to a Dart string applies UTF-8 decoding and
converting a Dart string to a C string applies UTF-8 encoding.

Also part of this change are new methods to construct uninitialized
string objects and to copy string data.

BUG=5343358

Review URL: https://chromereviews.googleplex.com/3557012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@169 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 22:42:24 +00:00
regis@google.com db3a736c33 Support optional named arguments at the dart_entry level in the VM.
Fix bug 5422033: Const expressions don't work with named arguments.
Review URL: https://chromereviews.googleplex.com/3552015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@168 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 22:40:45 +00:00
regis@google.com b618447392 Inline condition type check.
Review URL: https://chromereviews.googleplex.com/3534018

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@166 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 22:35:01 +00:00
asiva@google.com 0b30a49971 5419598: Add a setjmp around the isolate spawning code so that parse errors
are caught and reported as errors.
5417103: Add a setjmp around Dart_Run_Loop so that parse errors
are caught and reported as errors.
Review URL: https://chromereviews.googleplex.com/3553012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@140 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 18:33:36 +00:00
srdjan@google.com 44392fdb03 Fix resolving of implicit closures: treat null objects same as instances of Object.
Review URL: https://chromereviews.googleplex.com/3551013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@138 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 16:31:31 +00:00
sgjesse@google.com 63782c5c50 Disable process tests on Linux
They can cause timeout once in a while.

R=ager@google.com

BUG=dart:1
TEST=

Review URL: https://chromereviews.googleplex.com/3531019

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@130 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 15:25:30 +00:00
floitsch@google.com ad89e94d67 Fix bad merge.
Unbreaks build.
TBR=ngeoffray

R=ngeoffray@google.com
BUG=
TEST=

Review URL: https://chromereviews.googleplex.com/3542013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@128 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 15:04:55 +00:00
sgjesse@google.com 6abaad8aa1 Restructured socket tests and fixed readUntil on InputStream
Most of the socket tests where written with closing both the server and client ends of the socket. However on Windows this can lead to errors once in a while (WSAECONNRESET). The tests now closes the socket in the client and and waits for a close event on the server side.

The readUntil on InputStream did not take data in the internal buffer into account. This has been fixed and the related test have been rewritten to check for two patterns which together will match all the input.

R=ager@google.com

BUG=
TEST=

Review URL: https://chromereviews.googleplex.com/3536016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@126 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 14:47:49 +00:00
floitsch@google.com 1229e5b8db Implement Date.weekday.
Review URL: https://chromereviews.googleplex.com/3541012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@125 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 14:47:41 +00:00
floitsch@google.com 410583d73d Get rid of duration in TimeZone class.
Review URL: https://chromereviews.googleplex.com/3538012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@124 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 14:35:56 +00:00
ager@google.com 30ede18056 Implement first version of directory listing library on Windows.
R=sgjesse@google.com
BUG=
TEST=

Review URL: https://chromereviews.googleplex.com/3543018

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@123 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 14:28:05 +00:00
floitsch@google.com 382580f9a7 Rename Time to Duration and adapt methods.
Review URL: https://chromereviews.googleplex.com/3536013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@121 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 14:21:57 +00:00
floitsch@google.com 15727ed074 Rename DateTime to Date.
Review URL: https://chromereviews.googleplex.com/3529013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@107 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 10:14:49 +00:00
floitsch@google.com 98d704a3cb Remove Date class and remove .time from DateTime.
Review URL: https://chromereviews.googleplex.com/3508024

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@103 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 09:20:30 +00:00
sgjesse@google.com cc0ffa0766 Minor changes to Socket and File
* align the definition of the exception class with how ProcessException ended up
* add constants for redability

R=ager@google.com

BUG=
TEST=

Review URL: https://chromereviews.googleplex.com/3551012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@98 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 07:57:34 +00:00
srdjan@google.com b0af113468 Address Siva's suggestion.
Review URL: https://chromereviews.googleplex.com/3546013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@97 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 07:46:45 +00:00
hausner@google.com b8a55bf3d7 Initializer expressions must not access 'this'
Catch explicit and implicit accesses to 'this' in initializer list of constructors.
Review URL: https://chromereviews.googleplex.com/3517020

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@81 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-05 22:39:25 +00:00
cshapiro@google.com 9a664c355d Wrap method bodies in a NoGCScope when receiving raw pointer arguments.
BUG=5413582

Review URL: https://chromereviews.googleplex.com/3521023

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@80 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-05 22:38:38 +00:00
srdjan@google.com 4b5b7fe381 Fix build.
Review URL: https://chromereviews.googleplex.com/3515026

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@51 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-05 16:39:25 +00:00
srdjan@google.com 2ecf52534f Terminate IC data array with a null group (preparation for new style of inline caching; easier to terminate when iterating over the array in assembly).
Review URL: https://chromereviews.googleplex.com/3507023

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@50 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-05 16:31:37 +00:00
srdjan@google.com 665b268641 Fix Dart_InvokeDynamic api to handle the null receiver properly: call Object's methods (e.g., "toString", "noSuchMethod").
Review URL: https://chromereviews.googleplex.com/3525014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@48 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-05 16:27:07 +00:00
srdjan@google.com 288938bd88 Terminate IC data array with a null group (preparation for new style of inline caching; easier to terminate when iterating over the array in assembly).
Review URL: https://chromereviews.googleplex.com/3507023

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@46 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-05 16:25:14 +00:00
ager@google.com 7c191c392b Fix Windows build after directory library changes.
R=sgjesse@google.com
BUG=
TEST=

Review URL: https://chromereviews.googleplex.com/3527012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@44 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-05 15:02:27 +00:00
ager@google.com 023fa46e48 Finish non-recursive synchronous directory listing on Linux and Mac.
Next steps: Testing, Windows support and using isolates to make
listing async.

We should probably change the API to not tie a Directory object
to a given OS directory structure. When spawning an isolate to
perform a listing operation, that will open the directory,
list its contents and close the directory. That way we can
do multiple listing operations with the same Directory object
without having interference.

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

Review URL: https://chromereviews.googleplex.com/3511020

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-05 14:33:49 +00:00
zundel@google.com 78d16cca6c Create a directory for python package, move 'testing' in there
Review URL: https://chromereviews.googleplex.com/3514028

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@40 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-05 14:01:12 +00:00
sgjesse@google.com f4b71c573b First step in enabling the process tests
This will enable the process tests for debug mode on Linux and Mac OS.

When access to command line options becomes available I will pass the full path to the process_test executable on the command line instead of hard-coding a relative path.

R=ager@google.com

BUG=
TEST=

Review URL: https://chromereviews.googleplex.com/3524014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-05 10:31:37 +00:00
iposva@google.com f5dab1d2ff Remove the redundant codereview.settings.
Review URL: https://chromereviews.googleplex.com/3525013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-05 09:33:50 +00:00
iposva@google.com 5c037233e4 Update review settings.
Review URL: https://chromereviews.googleplex.com/3521017

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-05 09:24:19 +00:00
dgrove@google.com 4c0f559d23 Initial checkin.
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-05 05:20:07 +00:00