Commit Graph

4943 Commits

Author SHA1 Message Date
vsm@google.com fcdf8f3d97 Remove openglui embedder code
This code has rotted.  We should eventually fix and land outside the Dart repo.

I've verified that

> ./tools/build.py -m release --os=android

still builds (with target_os=android in .gclient).

R=zra@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28018 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-27 17:01:15 +00:00
asiva@google.com 292d8c9c21 Fix 13594.
R=iposva@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28017 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-27 16:55:20 +00:00
hausner@google.com b7dbaaa46c Slight optimization of case clause type checks
Address review comment.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28015 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-27 16:40:33 +00:00
whesse@google.com 12cadfd1be Add .address to [Raw]ServerSocket and HttpServer.
Also use .address in Pub's barback server.

R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28010 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-27 13:36:03 +00:00
fschneider@google.com b389bddb1a Bug fix and cleanup of inlining of recognized [] methods.
1. Fix a bug with polymorphic inlining of [] on platforms that
don't support inlined SIMD ops (e.g. MIPS),
or unboxed int32/uint32. (ia32 with SSE <4.1).

2. Cleanup of duplicate code.

R=kmillikin@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28000 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-27 10:27:47 +00:00
lrn@google.com 783c348d0d Improve speed of toRadixString, and extra much for powers of two.
Approx x2 speedup in general, x6 for powers of two (with 16 being probably
the most common radix).

R=srdjan@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27988 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-27 07:02:56 +00:00
sra@google.com c068a949fe Revert "Revert "Reinstate type checks in Math.min and Math.max""
Review URL: https://codereview.chromium.org//24918003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27983 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-27 02:01:43 +00:00
mlippautz@google.com 19763aae4d Implementation for ClosureMirror.findInContext.
Fixes issue 5897.

BUG=https://code.google.com/p/dart/issues/detail?id=5897
R=asiva@google.com, gbracha@google.com, rmacnak@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27982 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-27 01:28:12 +00:00
sra@google.com 053eaeb868 Revert "Reinstate type checks in Math.min and Math.max"
Review URL: https://codereview.chromium.org//24911003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27981 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-27 01:15:58 +00:00
sra@google.com b1e55c556c Reinstate type checks in Math.min and Math.max
See Issue 11906 for discussion.

R=srdjan@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27980 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-27 00:45:08 +00:00
regis@google.com 6531272706 Support forwarding constructors for mixin typedefs (issue 11888).
R=hausner@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27979 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-27 00:26:22 +00:00
srdjan@google.com 37e66b3350 Treat final variables initialized with a literal as constants. Also sneak in a small cleanup.
R=hausner@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27973 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-26 21:06:56 +00:00
hausner@google.com b0780d316b Check types of case expressions
Implement checks to make sure all case expressions are of the same type and other restrictions.

This change assumes that it's ok to use double values in switch expressions. Will verify with those who are in the know.

R=srdjan@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27968 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-26 18:54:15 +00:00
johnmccutchan@google.com 0c3da8089d Replace - with _ when mapping from filename to C symbol name
BUG=
R=asiva@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27966 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-26 18:24:44 +00:00
johnmccutchan@google.com 84c299177d Fix --gc_at_alloc
BUG=13619
R=asiva@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27964 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-26 17:18:10 +00:00
ajohnsen@google.com fac6baef28 Clean up status file.
BUG=
R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27956 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-26 14:35:18 +00:00
fschneider@google.com d055c16e0d Fix optimized Math.pow on x64 with NaN exponents.
The libc implementation used by the optimized code differs
from the expected behaviour. It does not return double.NaN
as the Dart implementation of pow when the exponent is NaN.

The test fails when running with  a low optimization-counter-threshold=5.

BUG=https://code.google.com/p/dart/issues/detail?id=13543
TEST=math/double_pow_test
R=srdjan@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27950 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-26 13:12:59 +00:00
regis@google.com 61ddf78204 Fix VM exit code in some cases.
R=asiva@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27926 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-26 01:10:48 +00:00
asiva@google.com 3fe818e16b Minor cleanup for the Null string case.
R=rmacnak@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27919 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-25 22:54:07 +00:00
rmacnak@google.com 753af9b01b Implement closurization of regular methods in ObjectMirror.getField in the VM.
BUG=http://dartbug.com/13001
BUG=http://dartbug.com/13002
R=asiva@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27916 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-25 21:42:13 +00:00
johnmccutchan@google.com 0e87e5004e Fix runtime clamp logic to match optimized code
BUG=13106
R=zra@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27911 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-25 20:42:57 +00:00
hausner@google.com 7eaea8b300 Discard first line of multiline string if only whitespace
R=iposva@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27895 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-25 17:26:55 +00:00
ajohnsen@google.com 57394aff01 Don't compile io_service if io is not supported.
BUG=
R=whesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27890 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-25 16:31:13 +00:00
ajohnsen@google.com 3e0a59b920 Clean up IOService implementation to be shared between patched and non-patched code.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27888 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-25 15:53:54 +00:00
zra@google.com 2f1de2f332 Loads some large Smis from the object pool on x64.
R=fschneider@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27885 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-25 15:30:08 +00:00
ajohnsen@google.com a347038cd7 Merge services into a shared IOService in dart:io, and use a native port.
BUG=
R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27883 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-25 15:03:24 +00:00
fschneider@google.com 9a87eb0944 Fix x64 assembler in roundsd and pxor.
BUG=https://code.google.com/p/dart/issues/detail?id=13543
R=johnmccutchan@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27882 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-25 15:00:53 +00:00
sgjesse@google.com cd155c8ce7 Fix checked mode error and update status file
TBR=floitsch@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27878 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-25 14:33:04 +00:00
sgjesse@google.com 415d53b557 Add property base to the Uri class
Uri.base returns the natural base URI for the current platform.

R=ahe@google.com, floitsch@google.com, iposva@google.com, rnystrom@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27877 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-25 13:52:15 +00:00
kustermann@google.com dfbf264f40 Automatically converted general Fail status file markers to one of the more specific markers
R=johnniwinther@google.com, ricow@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27876 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-25 12:47:03 +00:00
whesse@google.com 9981feb28b dart:io | Enable connection cache for secure networking clients.
BUG=dartbug.com/7230

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27875 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-25 11:20:05 +00:00
fschneider@google.com 46f3bea12f VM: Fix CHA for Object.
Class hierarchy analysis does not track subclasses of Object.
Therefore, it needs to safely assume that any functions has an override.

This fixes test failures when running with --optimization-counter-threshold=5.

R=kmillikin@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27874 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-25 11:04:55 +00:00
lrn@google.com cad438b73b Make VM Expando use identityHashCode instead of object's hashCode.
R=fschneider@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27873 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-25 10:47:35 +00:00
lrn@google.com 12c9510193 Update implementations to use Object.identityHashCode for identity map/set
Update map/set constructors to have an .identity() constructor as well.

R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27869 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-25 09:43:43 +00:00
ajohnsen@google.com 0cc1e648e2 Re-enable VM isolate tests.
BUG=https://code.google.com/p/dart/issues/detail?id=6890
R=ricow@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27868 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-25 09:20:40 +00:00
lrn@google.com c03e58cd99 Add Object.hashCodeOf to get the default hashCode of an object.
BUG= http://dartbug.com/13404
R=floitsch@google.com, iposva@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27865 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-25 08:15:41 +00:00
bak@google.com 5fd304ec46 Fixed an overflow bug in the compare function used by the heap histogram sorting.
R=iposva@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27863 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-25 06:18:52 +00:00
hausner@google.com 1c5c3d55c4 Eliminate legacy support for throw without expression.
Issue 13533.

R=mlippautz@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27856 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-24 22:16:19 +00:00
regis@google.com 20c36666b8 Address comments of committed change https://codereview.chromium.org/24397002/
Fix typo in Matthias last commit.

R=hausner@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27850 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-24 20:26:12 +00:00
ajohnsen@google.com 3ea7013d0e Throw exception if path can't be watched.
BUG=http://code.google.com/p/dart/issues/detail?id=13552
R=zra@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27847 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-24 20:12:49 +00:00
iposva@google.com 8a9adf5656 - Use simplified token location call where appropriate.
R=asiva@google.com, hausner@google.com, mlippautz@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27833 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-24 17:32:40 +00:00
johnmccutchan@google.com dcda2adb90 Cleanup bit casting methods between SIMD types
R=zra@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27827 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-24 16:23:46 +00:00
hausner@google.com 3c360399ee Improve NoSuchMethodError error messages
- Don't say there is no constructor with name X if there is one
  that has incompatible parameter list.
- Better error message when mismatched optional parameters are passed.
  (Prviously only the number of parameters was considered, but not
  names of named parameters for example.)

Fixes issue 6189.

R=regis@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27826 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-24 16:14:28 +00:00
ajohnsen@google.com d162c06b60 Make stdin blocking when using Stdin::readByte and readLine.
BUG=
R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27819 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-24 13:21:33 +00:00
ajohnsen@google.com d11df78618 Make stdout and stderr async.
This required some minor changes to the Windows eventhandler, as we now spawn a new thread for writes (just like we do for reads).

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27811 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-24 11:47:53 +00:00
lrn@google.com 610c3e3e61 Make smi.toString() do its work faster using native string helpers.
BUG= http://dartbug.com/13450
R=fschneider@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27808 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-24 11:20:56 +00:00
floitsch@google.com f10f791439 Adapt private variables with trailing underscores.
R=lrn@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27807 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-24 11:19:53 +00:00
whesse@google.com 8b24dd1bcf Fix socket_android.cc to agree with socket_linux.cc and compile.
BUG=
R=iposva@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27803 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-24 09:34:10 +00:00
fschneider@google.com ab3e735f11 Fix range checks for typed data in native code and the optimizer.
TEST=tests/standalone/typed_data_test.dart
R=asiva@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27801 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-24 08:21:48 +00:00
regis@google.com 3b5628fd1b Support mixin application typedef as mixin in the VM (issues 9383, 12773).
Disallow Object as mixin (issue 10952).
Detect illegal cycles in mixins.

R=hausner@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27791 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-24 00:25:01 +00:00