Commit Graph

938 Commits

Author SHA1 Message Date
iposva@google.com d4e0eae584 - Avoid warnings when building with clang.
Review URL: https://codereview.chromium.org//13940017

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21942 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 12:28:27 +00:00
sgjesse@google.com d27309942c Fix broken Mac OS socket code
The order of the fields in the sockaddr structures on Mac OS was different and we where relying on the Linux/Windows order of fields. This should now be platform independent.

TBR=ajohnsen@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21940 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 11:51:56 +00:00
ajohnsen@google.com ca706b0387 Disable IPv6 lookup by default.
Will revert once IPv6 have stablized.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21936 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 10:25:25 +00:00
ajohnsen@google.com 55963a1a6d Add new InternetAddress class with a static lookup function (including IPv6
results).

Reapply of https://codereview.chromium.org/13880029/ with fixes.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21934 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 09:26:58 +00:00
ajohnsen@google.com 60946b53fc Revert "Add new InternetAddress class with a static lookup function (including IPv6 results)."
Revert "Attempt to fix strict align issue."
Revert "Trying another fix."

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21928 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 08:10:00 +00:00
ajohnsen@google.com 81290b98ee Trying another fix.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21927 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 08:02:13 +00:00
ajohnsen@google.com 423025b20d Attempt to fix strict align issue.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21925 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 07:32:27 +00:00
ajohnsen@google.com 20d1f5ddda Add new InternetAddress class with a static lookup function (including IPv6 results).
Reapply of https://codereview.chromium.org/14083007/ with fixes.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21923 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 07:12:05 +00:00
podivilov@google.com 5c785e45dc Add fallback to load the original version of dart:io library
if url mapping is not provided.

R=asiva@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21892 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-23 16:26:33 +00:00
ager@google.com 431954b584 Rename dart:typeddata to dart:typed_data.
R=asiva@google.com, floitsch@google.com, srdjan@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21871 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-23 11:54:54 +00:00
sgjesse@google.com afcb3ce69e Revert "Add new InternetAddress class with a static lookup function (including IPv6 results)"
TBR=ajohnsen@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21865 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-23 10:07:03 +00:00
sgjesse@google.com 042dbc4793 Anoher try to avoid GCC strict-aliasing error
TBR=ajohnsen@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21864 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-23 10:02:01 +00:00
sgjesse@google.com 6b4d9bfb80 Try to avoid GCC strict-aliasing error
TBR=ajohnsen@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21863 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-23 09:51:32 +00:00
ajohnsen@google.com b33d142414 Add new InternetAddress class with a static lookup function (including IPv6 results).
Socket.connect/ServerSocket.bind now accepts IPv6 host names. If a new ServerSocket is connected to an IPv6 interface, it will (if possible) support incoming IPv4 connections as well.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21862 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-23 09:36:18 +00:00
sgjesse@google.com efcd056ebe Support upgrading sockets to secure sockets
This build on the support for upgrading raw sockets to raw secure sockets.

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21859 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-23 06:50:59 +00:00
hausner@google.com 72a4fed8e9 Implement list isolates command
New Debugger wire protocol command to list all isolates in a vm.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21831 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-22 18:43:03 +00:00
iposva@google.com 8b624711d7 - Check for error when creating the source string.
Review URL: https://codereview.chromium.org//13842019

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21813 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-22 13:12:57 +00:00
iposva@google.com 539588333e - Reduce warnings about project settings in Xcode 4.
- Address compilation warnings found by clang.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21786 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-22 05:31:03 +00:00
zra@google.com 069456803e Implements features to run "Hello, world!" on simulated MIPS.
Review URL: https://codereview.chromium.org//14246039

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21759 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-19 18:31:47 +00:00
zra@google.com dae5068650 Enables cross-compilation of the VM for ARM.
Uses the "toolset" feature of gyp to build the dart VM
for ARM, but restricts building of snapshot generation
to the host machine.

For generated source files, it also changes to using
LIB_DIR instead of SHARED_INTERMEDIATE_DIR to avoid
generation of duplicate Makefile rules (gyp doesn't
know that generated source files from toolchains it
thinks are different will be the same.)

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21757 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-19 18:05:44 +00:00
hausner@google.com e340b4d174 Debugger wire protocol changes
- Add 'number' value type for transmitting values of type num
- Eliminate 'integer' value types (subsumed in number values)
- Eliminate url and line number fields in breakpointResolved
  events

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21745 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-19 15:20:43 +00:00
ajohnsen@google.com 5d75150718 Fix Zlib filters to correctly emit the last chunks of data.
BUG=https://code.google.com/p/dart/issues/detail?id=10026

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21735 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-19 11:40:04 +00:00
sgjesse@google.com e1aa202b58 Add the ability to secure an already established raw socket connection
The static methods secure and secureServer can be used to start
TLS handshake as eihter client or server.

This CL only implement the securing of RawSocket.

This also changes the semantics of cancelling a subscription on a
RawSocket from closing the socket to just pausing.

R=ager@google.com

BUG=https://code.google.com/p/dart/issues/detail?id=8789

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21719 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-19 07:37:37 +00:00
srdjan@google.com 9b53a42536 Add flag --check-function-fingerprints, it checks all function fingerprints of the intrinsifier and method recognizer. Added flag to a test so that the fingerprints will be tested during a regular test.
Review URL: https://codereview.chromium.org//14247005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21711 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-18 23:18:13 +00:00
tball@google.com 392afbd807 Added generated JavaScript vmstats app to build.
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21634 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-17 16:35:33 +00:00
tball@google.com 969cfa4e03 Added dart2js-generated vmstats.dart, to support non-Dartium browsers.
Review URL: https://codereview.chromium.org//14191002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21631 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-17 16:30:26 +00:00
sgjesse@google.com 732556a48d Fix patch file return types
TBR=ajohnsen@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21615 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-17 11:10:21 +00:00
sgjesse@google.com cf64f0ad79 Add access to process id for both current process and processes started
BUG=https://code.google.com/p/dart/issues/detail?id=9129

R=ajohnsen@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21611 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-17 10:15:29 +00:00
tball@google.com 182a815a85 Fixed Windows syntax error.
Review URL: https://codereview.chromium.org//13977010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21600 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-17 05:30:24 +00:00
tball@google.com da16078500 Added ctrl-\ support in dart binary to dump isolate stacks.
Review URL: https://codereview.chromium.org//14313002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21599 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-17 05:24:07 +00:00
hausner@google.com df5c543b6f Add library id, location info to breakpointResolved event
Review URL: https://codereview.chromium.org//13940008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21592 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-16 23:24:21 +00:00
tball@google.com 40337a5ae6 Rolled back due to missing Windows signal definition.
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21590 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-16 23:15:19 +00:00
tball@google.com e47bfb54b2 Added ctrl-\ command that dumps isolate stacks to dart binary.
Review URL: https://codereview.chromium.org//13603002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21589 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-16 23:11:36 +00:00
regis@google.com a75f98dbe3 Implement missing features to run Hello world! on simulated ARM.
Review URL: https://codereview.chromium.org//14153004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21582 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-16 21:53:09 +00:00
tball@google.com ee8ce4a2d3 Resubmission of 21573, with corrected strndup call.
Review URL: https://codereview.chromium.org//14308006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21579 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-16 21:05:37 +00:00
tball@google.com bffac5979d Rolled back due to missing Windows strndup.
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21575 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-16 20:47:32 +00:00
tball@google.com 56b980f2aa Fixed stack trace for isolates without any Dart frames. Updated
stats display to display empty stack dumps, and reduced screen
update time.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21573 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-16 20:40:56 +00:00
hausner@google.com 89949d455b Deprecate old debugger breakpoint handler
- Add new breakpoint handler callback that does not take a
  stack trace
- Remove deprecated handler from debugger core
- Adjust tests
- Old breakpoint handler support remain in code until Dartium
  switches to new handler.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21569 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-16 19:42:39 +00:00
asiva@google.com b2ee18c4f3 Fix the help message printed by standalone dart
- remove use-script-snapshot (not supported anymore)
- changed --print-source to --print-script

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21559 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-16 17:19:34 +00:00
floitsch@google.com 466d6670c1 Refactor Future constructors.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21517 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 21:24:27 +00:00
floitsch@google.com 5431a5af54 Remove AsyncError with Expando.
Review URL: https://codereview.chromium.org//14251006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21498 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 18:58:32 +00:00
floitsch@google.com f553392322 Change StreamController constructor.
Review URL: https://codereview.chromium.org//14196003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21472 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 16:34:26 +00:00
floitsch@google.com e2ee353940 Rename unsubscribeOnError to cancelOnError.
Review URL: https://codereview.chromium.org//14251013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21469 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 16:07:36 +00:00
ajohnsen@google.com b4eacbf8aa Rename RandomAccessFile.readList and RandomAccessFile.writeList to RandomAccessFile.readInto and RandomAccessFile.writeFrom.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21466 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 15:44:41 +00:00
sgjesse@google.com 83bd0f1aa9 Add support for even more typed data on native ports
The only types missing now are: Float32x4, Float32x4List and
Uint32x4 (currently no Uint32x4List).

R=ager@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21455 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 14:19:46 +00:00
floitsch@google.com bebe3ac2cd Refactor List.setRange function.
Review URL: https://codereview.chromium.org//13863012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21452 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 13:52:29 +00:00
sgjesse@google.com 640e6a9e63 Fix wrong ASSERT
TBR=ager@google.com

Fix building of extension sample

TBR=ager@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21427 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 09:56:41 +00:00
sgjesse@google.com 6507357ca0 Add support for more typed data types on native ports
Renamed the kUint8Array type for a Dart_CObject structure to
kByteArray to support all typed data types. The specific type is
stored in a separate type field. No matter what the specific type is,
the length of the byte array is always in bytes.

R=ager@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21423 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 09:01:56 +00:00
ajohnsen@google.com 67650cb16e Remove .writeStream, .consume and rewrite IOSink to correctly implement a (sane) well-defined behaviour of the .done future.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21416 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 07:35:45 +00:00
hausner@google.com 84c1529de4 Fix wire json breakage
Review URL: https://codereview.chromium.org//14217006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21395 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-12 22:04:26 +00:00