Commit Graph

2501 Commits

Author SHA1 Message Date
srdjan@google.com ee8543f057 Intrinsify [] for ExternalUint8 and Uint8 typed data. Gives significant speedup when compiling Hello.dart in unoptimized code.
R=zra@google.com

Review URL: https://codereview.chromium.org//308513005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36833 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-30 19:49:35 +00:00
hausner@google.com c6101ca4b5 First step towards asynchronous loading of sources. With this change, sources are read asynchronously in dart code (builtin.dart) and when the i/o future completes, a callback in the VM loads and compiles the script or library code.
In a next step, the i/o will be moved to the service isolate so that not all isolates have to import dart:io.

Fallout from this change:
1) Loading has become a tad slower. Will have to investigate why.

2) Errors that happen during loading (file not found, compilation error in an imported library)  are no longer reported at the offending import clause. This can be fixed later if necessary by passing the import clause source location to the library tag handler.

Review URL: https://codereview.chromium.org//290713004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36575 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-23 17:43:14 +00:00
ajohnsen@google.com 198b11bd9b Add IO service object handler, with initial implementation for HTTP server.
This is tempoary disabling the Socket service handler.

BUG=
R=johnmccutchan@google.com

Review URL: https://codereview.chromium.org//284313011

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36417 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-21 11:12:49 +00:00
zra@google.com 4a7e022d97 Adds intrinsics for arm64.
Also enables tests that no longer time-out.

R=regis@google.com

Review URL: https://codereview.chromium.org//285403004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36330 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-19 21:35:32 +00:00
hausner@google.com d233fdbb97 Make directory_list_sync_test faster
Let it iterate over 20000 entries instead of 200000 by starting in dart/tests instead of dart.

R=ricow@google.com

Review URL: https://codereview.chromium.org//286063006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36309 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-19 17:44:23 +00:00
ricow@google.com 87736b119b Mark language/megamorphic_no_such_method_test and standalone/io/http_shutdown_test as skip on simarm64
I did _not_ file a new bug since there is already a section with tests that times out on simarm64 without a bug, so I assume this is being worked on.

The cl that triggered this is pretty strange, should not really have an impact:
https://code.google.com/p/dart/source/detail?r=36290

R=lrn@google.com

Review URL: https://codereview.chromium.org//296483003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36294 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-19 12:59:53 +00:00
zra@google.com 2f7cf531a0 Adds javascript overflow checking to arm64.
Also skips a test for timing out on the bot.

R=regis@google.com

Review URL: https://codereview.chromium.org//288993003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36232 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-15 17:38:13 +00:00
ricow@google.com d4c3fb063b Revert revisions 36163 and 36162
Review URL: https://codereview.chromium.org//288703003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36165 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-14 13:41:58 +00:00
ricow@google.com 3e282b7370 Fix default value of stored output in skipping tests
Review URL: https://codereview.chromium.org//285693005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36163 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-14 13:16:21 +00:00
ricow@google.com 4872c41303 Cache output of dart2js compilations that went wrong on disk.
This change adds a out.js.cached_output (or equivalent) for compilations that fails.
There are two cases where this helps:
  Commits where the sdk does not change and but we would normally recompile since we don't have the dart2js output
  Runs on the buildbot where we do several runs on different runtimes in serial

Additionally, this introduces a check on multitest files so we don't copy the file if the content is already correct. The reason for this is that a bunch of tests depend on the copied import which will then trigger a recompilation.
This will help in the same two cases as above.

This change also changes dart2js to always output the deps file, otherwise we have no way of knowing if we can reuse the output.

R=floitsch@google.com, kustermann@google.com, whesse@google.com

Review URL: https://codereview.chromium.org//256743009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36162 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-14 12:54:01 +00:00
ajohnsen@google.com 6906b3ba5f Fix listening for multiple signals.
BUG=https://code.google.com/p/dart/issues/detail?id=18793
R=sgjesse@google.com

Review URL: https://codereview.chromium.org//285023002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36153 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-14 09:36:03 +00:00
zra@google.com 03f2f289b4 Adds Math Min/Max to arm64.
Also fixes bugs and enables tests.

R=regis@google.com

Review URL: https://codereview.chromium.org//284843004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36116 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-13 18:10:16 +00:00
kevmoo@google.com c054ad39c3 http_date: produce leading zero on day component
per http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.3

R=ajohnsen@google.com

Review URL: https://codereview.chromium.org//274243002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36028 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-12 13:32:23 +00:00
regis@google.com 17a4642b2f Disable new standalone tests on Dartium.
Review URL: https://codereview.chromium.org//274203005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36004 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-09 23:31:51 +00:00
regis@google.com dec11d8b7b Add support for javascript incompatibility warnings (work in progress).
For now, warnings are only issued when applicable for type tests, type casts,
and toString.
Fix newly reported lint errors.

R=srdjan@google.com

Review URL: https://codereview.chromium.org//260713008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36001 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-09 22:42:10 +00:00
johnmccutchan@google.com 9b385ee2d2 Add trace_service_pause_events flag and paused at exit tracing
R=keertip@google.com, turnidge@google.com

Review URL: https://codereview.chromium.org//271893002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@35944 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-08 22:02:38 +00:00
ajohnsen@google.com 30f6999668 Don't try to send messages, when the port is not set.
BUG=https://code.google.com/p/dart/issues/detail?id=18402
R=sgjesse@google.com

Review URL: https://codereview.chromium.org//273833003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@35898 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-08 10:28:31 +00:00
ajohnsen@google.com 8527679b31 Don't use reuseAddress when testing, as we test for a specific origin.
Also fixes a case on Linux where reuseAddress works bad with
multicastLoopback.

BUG=
R=sgjesse@google.com

Review URL: https://codereview.chromium.org//267393010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@35891 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-08 09:16:47 +00:00
johnmccutchan@google.com 9ced01eec2 Fix library snapshotting breakage with native entry symbol resolver.
- Write out a NULL for the libraries Dart_NativeEntrySymbol.
- Read in the NULL for the libraries Dart_NativeEntrySymbol.
- Set the libraries Dart_NativeEntrySymbol to NULL.
- Use reusable handles.

R=turnidge@google.com

Review URL: https://codereview.chromium.org//268853003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@35812 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-06 18:09:49 +00:00
nweiz@google.com e42cfea37f Further code review changes for WebSocket.fromUpgradedSocket.
BUG=18172
R=ajohnsen@google.com, kustermann@google.com

Review URL: https://codereview.chromium.org//266653002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@35764 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-05 20:28:02 +00:00
turnidge@google.com c5527ac2aa Various vmservice/observatory fixes:
- get rid of double lines on vm view page

- show eval errors in monospace font

- make eval highlight color consistent

- fix broken navbar on script view page

- show list of all libs for an isolate

- use two-column view to save space on isolate view page

- give the dart:nativewrappers library a name

R=johnmccutchan@google.com

Review URL: https://codereview.chromium.org//262823012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@35745 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-05 16:54:59 +00:00
ajohnsen@google.com 82d1382faa Fix crash in raw_secure_server_socket_test.
We had a scenario where read&write events were requested after the socket was closed, leading to a use-after-free.

This also fixes a scenario where we didn't delete client sockets, when accepted sockets are ignored when closing a listening socket.

BUG=https://code.google.com/p/dart/issues/detail?id=18610
R=sgjesse@google.com

Review URL: https://codereview.chromium.org//269003002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@35732 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-05 09:17:26 +00:00
ricow@google.com 289adcf99e Mark standalone/io/raw_secure_server_socket_test as flaky crashing on windows
R=ajohnsen@google.com

Review URL: https://codereview.chromium.org//266183002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@35728 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-05 06:11:55 +00:00
turnidge@google.com 14ccd5494d Don't remap class/type names in the vm service.
We add a new kind of name, PrettyName, to the vm.  This is a name
which is demangled but doesn't remap things like _OneByteString to
String or _Smi to int.

BUG=18360
R=johnmccutchan@google.com

Review URL: https://codereview.chromium.org//264743010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@35710 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-02 21:37:01 +00:00
whesse@google.com 5b04c85262 Add mips failure on io/file_read_special_device to status file.
BUG=
R=kustermann@google.com

Review URL: https://codereview.chromium.org//265843007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@35689 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-02 13:00:47 +00:00
ajohnsen@google.com e362db67d1 Clean up secure socket connect.
BUG=
R=sgjesse@google.com

Review URL: https://codereview.chromium.org//262923002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@35686 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-02 09:25:09 +00:00
ajohnsen@google.com 9adbbd263c Add writeHeaders argument to HttpResponse::detachSocket.
BUG=https://code.google.com/p/dart/issues/detail?id=18390
R=nweiz@google.com

Review URL: https://codereview.chromium.org//262433003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@35571 260f80e4-7a28-3924-810f-c04153c831b5
2014-04-30 12:37:53 +00:00
nweiz@google.com 7e1f169154 Make WebSocket.fromUpgradedSocket public.
This allows dart:io's WebSocket protocol code to be used in contexts
where dart:io HttpRequest and HttpResponse objects aren't available.

BUG=18172
R=ajohnsen@google.com

Review URL: https://codereview.chromium.org//234323003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@35540 260f80e4-7a28-3924-810f-c04153c831b5
2014-04-29 20:14:20 +00:00
zra@google.com a4b84a722a Ensures that stubs added to each object pool on x64
are generated before they are used by reordering the
list of stubs.

R=iposva@google.com

Review URL: https://codereview.chromium.org//258133002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@35524 260f80e4-7a28-3924-810f-c04153c831b5
2014-04-29 14:48:00 +00:00
koda@google.com a5287e494f Fix GC triggering test by limiting its initial heap growth.
(Increasing the allocation size makes the test time out in debug mode.)

TBR=iposva@google.com

Review URL: https://codereview.chromium.org//259693004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@35412 260f80e4-7a28-3924-810f-c04153c831b5
2014-04-24 23:02:21 +00:00
iposva@google.com e1ec7a2c5f - Update status file to mark crashing test while investigating.
- Remove unused fields from socket code.

R=asiva@google.com

Review URL: https://codereview.chromium.org//257433002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@35346 260f80e4-7a28-3924-810f-c04153c831b5
2014-04-24 00:37:55 +00:00
iposva@google.com fd8565b071 - Add a minimal implementation of Capability.
- Make RawReceivePort and SendPort VM internal objects.
- Rationalize the creation of ports and their handling within the VM.

R=asiva@google.com

Review URL: https://codereview.chromium.org//243973002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@35325 260f80e4-7a28-3924-810f-c04153c831b5
2014-04-23 19:44:03 +00:00
kustermann@google.com ebd8317290 Extract common code, add host IP to --debug and --enable-vm-service options
R=hausner@google.com, johnmccutchan@google.com

Review URL: https://codereview.chromium.org//239303004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@35312 260f80e4-7a28-3924-810f-c04153c831b5
2014-04-23 13:09:10 +00:00
rmacnak@google.com 7ba8ca5753 Reapply "Mark private functions in dart:* that are native or constructors as not visible (omitted from stack traces and ineligible for reflective enumeration or invocation)."
With fix for uninitialized is_dart_scheme_ when read from snapshot.

BUG=http://dartbug.com/15274
R=iposva@google.com

Review URL: https://codereview.chromium.org//247683002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@35289 260f80e4-7a28-3924-810f-c04153c831b5
2014-04-23 00:05:08 +00:00
ajohnsen@google.com f9a46128a4 Add HttpClient:put/delete/head/patch.
BUG=http://code.google.com/p/dart/issues/detail?id=18168
R=lrn@google.com, sgjesse@google.com

Review URL: https://codereview.chromium.org//246923003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@35252 260f80e4-7a28-3924-810f-c04153c831b5
2014-04-22 10:58:46 +00:00
ajohnsen@google.com 94f53d4d2b Fix *ServerSocket's handling of zones.
A stream's zone is the one it has when listening to. Use that, and not
the one active when creating the socket.

BUG=https://code.google.com/p/dart/issues/detail?id=17468
R=floitsch@google.com

Review URL: https://codereview.chromium.org//239613002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@35071 260f80e4-7a28-3924-810f-c04153c831b5
2014-04-15 18:44:14 +00:00
ajohnsen@google.com 82f487f92f Fix File:copy FD leak, and add file-closes to some tests.
BUG=
R=sgjesse@google.com

Review URL: https://codereview.chromium.org//233053004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@34961 260f80e4-7a28-3924-810f-c04153c831b5
2014-04-11 07:48:49 +00:00
johnmccutchan@google.com 8f0056371d Initial UserTag and dart:profiler library
R=asiva@google.com, srdjan@google.com

Review URL: https://codereview.chromium.org//230863005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@34949 260f80e4-7a28-3924-810f-c04153c831b5
2014-04-10 22:32:45 +00:00
ajohnsen@google.com 50b3d74964 Fix File:openRead and file_input_stream_test.
BUG=
R=ricow@google.com

Review URL: https://codereview.chromium.org//233193004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@34929 260f80e4-7a28-3924-810f-c04153c831b5
2014-04-10 15:49:18 +00:00
ricow@google.com a7f392db9c Make sure to always remove temp directory.
I don't think we get the onDone call when we get the error

R=sgjesse@google.com

Review URL: https://codereview.chromium.org//232773003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@34928 260f80e4-7a28-3924-810f-c04153c831b5
2014-04-10 14:33:03 +00:00
ajohnsen@google.com 8d44da35c4 Add bufferOutput to HttpServer, HttpResponse and HttpClientRequest.
Setting bufferOutput to false will disable our internal buffering, and
write the buffers directly to the socket.

BUG=https://code.google.com/p/dart/issues/detail?id=14953
R=sgjesse@google.com

Review URL: https://codereview.chromium.org//228453002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@34821 260f80e4-7a28-3924-810f-c04153c831b5
2014-04-08 13:07:18 +00:00
ajohnsen@google.com 402774f9a0 Make File:openRead always have one outstanding read, when invoking callbacks.
This sligly improves latency for reading. Note that pause/resume is less
precise now, but it was never a guarantee exactly _when_ pausing would
take place.

BUG=
R=sgjesse@google.com

Review URL: https://codereview.chromium.org//228093003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@34814 260f80e4-7a28-3924-810f-c04153c831b5
2014-04-08 08:58:13 +00:00
iposva@google.com dd7d6dd375 - Handle doubles transferred in message snapshots specially.
- Do not encode doubles using integer compression.

R=asiva@google.com

Review URL: https://codereview.chromium.org//221973004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@34681 260f80e4-7a28-3924-810f-c04153c831b5
2014-04-03 00:58:14 +00:00
zra@google.com 2fe51715e5 Begins work on ARM64, first assembler test.
Most new code is in constants_arm64.h and
{assembler,disassembler,simulator}_arm64.{h,cc}

The rest of the CL just #def's out tests, modifies status files,
and adds UNIMPLEMENTED functions, etc.

R=regis@google.com

Review URL: https://codereview.chromium.org//221133002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@34654 260f80e4-7a28-3924-810f-c04153c831b5
2014-04-02 17:39:32 +00:00
floitsch@google.com ace6af2dc6 Fix bad HttpDate.format.
BUG= http://dartbug.com/17916
R=sgjesse@google.com

Review URL: https://codereview.chromium.org//219503002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@34557 260f80e4-7a28-3924-810f-c04153c831b5
2014-03-31 15:22:16 +00:00
hausner@google.com be5b9021dc Fix test standalone/issue14236
Needed to regenerate the snapshot.

Review URL: https://codereview.chromium.org//215003004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@34486 260f80e4-7a28-3924-810f-c04153c831b5
2014-03-27 22:46:07 +00:00
kevmoo@google.com 441bd85c9f Fix JSON tests, re-enable in all cases - 2nd try
R=lrn@google.com

Review URL: https://codereview.chromium.org//212813006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@34457 260f80e4-7a28-3924-810f-c04153c831b5
2014-03-26 23:11:40 +00:00
turnidge@google.com 9c5c7040dc Add a VM page to the observatory.
Make the VM a ServiceObject.  Some refactoring in the ServiceObject
implementation.

IsolateList is no longer a ServiceObject.  It should eventually become more like our caches.

Support the /vm request in the vm.  Remove isolate list request.

Improvements to Isolate::PrintToJSONStream: always provide a
reasonable name.  Use the same code to produce isolate refs and
non-refs.

Improve isolate status message when the isolate is paused at
start/exit.  Add a resume link to the isolate view.

Add a navbar to the error page so that dartium users are less likely
to get stuck.

R=johnmccutchan@google.com

Review URL: https://codereview.chromium.org//206213004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@34204 260f80e4-7a28-3924-810f-c04153c831b5
2014-03-20 21:00:10 +00:00
ajohnsen@google.com 5046164a3f Test file write of sub-list.
BUG=
R=sgjesse@google.com

Review URL: https://codereview.chromium.org//206393003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@34167 260f80e4-7a28-3924-810f-c04153c831b5
2014-03-20 13:48:32 +00:00
ajohnsen@google.com 4cf3726fe6 Close(destroy) Socket on user-generated write error.
BUG=
R=sgjesse@google.com

Review URL: https://codereview.chromium.org//204343003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@34109 260f80e4-7a28-3924-810f-c04153c831b5
2014-03-19 09:23:17 +00:00