Commit Graph

14219 Commits

Author SHA1 Message Date
kustermann@google.com 9aae1c09df Fixed version.dart to use Future.immediate
We use a checked-in binary of dart that doesn't have Future.value().

BUG=http://dartbug.com/10193

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22010 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-25 07:52:22 +00:00
antonm@google.com 5ffe8d97f5 Tests now pass after the ugly hack.
TBR=podivlov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22008 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-25 07:50:38 +00:00
ngeoffray@google.com c5413c5d75 Revert CL https://codereview.chromium.org/14217011/, one test fails in minified mode.
Review URL: https://codereview.chromium.org//14284007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22006 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-25 07:45:44 +00:00
iposva@google.com 2fb7cf7220 - Print "top-level" instead of "class '::'" in
NoSuchMethodErrors.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22005 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-25 07:29:06 +00:00
ngeoffray@google.com 9c8e1ee36a If we know a call will actually not reach an element anymore, because we have more information on the receiver type, unregister that call.
Review URL: https://codereview.chromium.org//14217011

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22003 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-25 07:16:31 +00:00
johnniwinther@google.com 5a8e457362 Make source mirror ObjectMirror.getField synchronous
Review URL: https://codereview.chromium.org//14333011

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22002 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-25 07:04:40 +00:00
johnniwinther@google.com 1b036487a6 Reinsert return.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22001 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-25 06:49:38 +00:00
sra@google.com e289575ce0 Use native types for inlined native fields.
Review URL: https://codereview.chromium.org//13979009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22000 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-25 06:38:40 +00:00
johnniwinther@google.com 5fe5359cfa Ensure current element in FunctionElementX.isAbstract
Review URL: https://codereview.chromium.org//14054007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21999 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-25 06:36:03 +00:00
keertip@google.com f4bd615aab fix for cache list to handle old cached packages with sdk dependencies
Review URL: https://codereview.chromium.org//14476013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21995 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 23:55:57 +00:00
nweiz@google.com 56636a55ab Import io.dart in pub.dart.
Review URL: https://codereview.chromium.org//14261016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21994 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 22:27:41 +00:00
nweiz@google.com 1dd302a00b Add a gitignore for pub's gyp outputs.
BUG=10191

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21992 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 22:19:21 +00:00
nweiz@google.com 469535e33e Move pub's arg parsing to bin/pub.dart.
Review URL: https://codereview.chromium.org//14092006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21991 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 22:18:39 +00:00
sra@google.com fd93acc652 Revert "Revert "Fix x.runtimeType for native classes""
Fix dummy compiler to contain Interceptor with operator==

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21985 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 21:05:50 +00:00
kustermann@google.com 6567120249 Revert "Use clang on mac if XCode >= 4.5"
We cannot build v8 after this change because clang reports a warning in
v8/src/parser.cc about an unused field (and we turn warnings into errors).

We can enable this change again after we update to a new v8 version (this seems
to be fixed in v3.17).

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21984 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 21:05:30 +00:00
devoncarew@google.com d2debc7978 Syntax fix to publish_all_pkgs.py.
Review URL: https://codereview.chromium.org//14336016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21983 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 20:57:48 +00:00
nweiz@google.com 8ce1364479 Have pub.gyp depend on the packages symlink directory.
TBR

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21981 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 20:53:20 +00:00
asiva@google.com fbc931e6a6 Report OOM errors instead of asserting on allocation failures when sending
messages to other isolates.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21980 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 20:52:22 +00:00
nweiz@google.com cc6e2f7b93 Put a snapshot of pub in the SDK.
BUG=9117

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21979 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 20:43:39 +00:00
gram@google.com c2b4a4e4a9 TBR: Removed const from CustomMatcher constructor. dartc doesn't like it.
Review URL: https://codereview.chromium.org//14336015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21978 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 20:32:30 +00:00
hausner@google.com 51e4445539 Fix debugging of top-level getters
Parser didn't set the valid token range of top-level getters, so they
were invisible to the debugger.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21976 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 20:26:14 +00:00
gram@google.com 05c26aafc3 The matcher argument to the CustomMatcher constructor no longer has to be a matcher; it will be wrapped if not.
Addresses https://code.google.com/p/dart/issues/detail?id=9924

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21975 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 20:19:12 +00:00
kevmoo@j832.com 5b3f73e2a8 pkg/unittest: more cleanup pulled from a defunct CL
Lot's of un-used private methods

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21973 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 19:32:24 +00:00
regis@google.com 52a0f3c983 Enable api tests on ARM.
Disable generation of optimized code on ARM and MIPS.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21972 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 18:55:52 +00:00
gram@google.com eccaec8f3b Updated testrunner:
- works with latest SDK
- understand and works with pub and pubspecs
- tested on Linux, Mac and Windows
- has its own tests

There is still as issue on Windows, where using Process.start to run a .bat file is not terminating until the timeout kills the cmd.exe process. My suspicion is that this is am issue with Process, not testrunner. I have contacted whesse et al about this.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21969 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 18:39:50 +00:00
kevmoo@j832.com fb6ea9481a pkg/unittest: use better async callback function
Review URL: https://codereview.chromium.org//14293015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21968 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 18:26:16 +00:00
antonm@google.com 12d5e65894 Chrome roll.
TBR=ager@google.com, podivilov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21967 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 18:02:30 +00:00
sra@google.com 7474f1f7c2 Revert "Fix x.runtimeType for native classes"
Review URL: https://codereview.chromium.org//14478002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21965 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 17:58:09 +00:00
vegorov@google.com c34810fd26 Preserve aggregate count when creating unary checks ICData.
We were reseting it to 1 which leads to worse inlining decisions for example for user defined binary operators. Inliner considered them all cold.

R=srdjan@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21964 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 17:51:10 +00:00
sra@google.com f7cbfe798d Fix x.runtimeType for native classes
1. Make sure native classes inherit from Interceptor so they pick up get runtimeTime from there.

2. Move some duplicated code into js_rti.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21963 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 17:32:15 +00:00
alanknight@google.com c9f0368d7d Allow suppressing message extraction warnings, providing a prefix for generated files, and format warnings better.
Review URL: https://codereview.chromium.org//13898014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21959 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 17:03:36 +00:00
dgrove@google.com b2c3ec3d20 Remove version, which allows the version to be updated automatically
when the package is uploaded.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21956 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 16:18:01 +00:00
sra@google.com 6a1afba169 Use NativeBehavior of methods in simple type inferrer.
Review URL: https://codereview.chromium.org//13910018

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21953 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 16:05:18 +00:00
hausner@google.com a0fa1e7633 Do not crash build if Java is not installed
Much of the build does not use Java, so don't crash if it's not
installed.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21952 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 15:54:20 +00:00
zra@google.com 632e9c7aaf Implements missing features to run Hello, World in checked mode on MIPS.
Also re-enables a stack frame test that was disabled in checked mode.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21951 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 15:36:40 +00:00
kustermann@google.com 84b27afce5 Use clang on mac if XCode >= 4.5
Review URL: https://codereview.chromium.org//14333010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21950 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 14:43:35 +00:00
iposva@google.com 7ce7e98194 - Do not include unneeded platform/json.h.
Review URL: https://codereview.chromium.org//14476002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21949 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 14:04:13 +00:00
sgjesse@google.com ddbbfea209 Update status file
TBR=ager@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21948 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 13:30:02 +00:00
sgjesse@google.com a5b331161a Fix broken test
Turned out that UnmodifiableListMixin was not public.

R=kustermann@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21947 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 13:13:23 +00:00
kasperl@google.com 892bef1b3c Improve optimization of operations on indexables by using more inferred type information and by disabling inlining of [], []= and length (still optimized but now in the folder).
R=ngeoffray@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21946 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 13:03:36 +00:00
lrn@google.com 4214819184 Mark list_test as failing on browsers.
Seems to be failing in UInt8List.operator[] with invalid argument.

BUG=http://dartbug.com/10174

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21945 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 12:58:01 +00:00
sgjesse@google.com 921653a087 Add a new test suite 'analyze_tests'
The new test suite 'analyze_tests' will run the analyzer on the
selected tests, and fail if there are static type errors. Currently
only the tests in tests/standalone are included, but that can easily
be expanded.

The reason for starting this was that for M4 we where missing two
'part' files in io.dart (for the HttpBody utility class). This caused
the use of HttpBody in the editor to be complicated. With static type
checking on the tests which tested HttpBody this mistake would have
been caught.

R=ager@google.com, ricow@google.com, kustermann@google.com, ajohnsen@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21944 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 12:47:13 +00:00
sgjesse@google.com 300ceb4c22 Fix test
The test started failing on Windows after socket code changes.

TBR=ajohnsen@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21943 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 12:33:14 +00:00
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
lrn@google.com b4b9023454 Improve List documentation.
BUG=http://dartbug.com/214

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21941 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 12:10:02 +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
kustermann@google.com 0cea864629 Only stop HTTP server if it was actually started.
Review URL: https://codereview.chromium.org//14052008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21939 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 11:32:27 +00:00
kasperl@google.com a58131df79 Allow using native JS []= on typed data lists.
R=ngeoffray@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21938 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 11:04:18 +00:00
ajohnsen@google.com 0cbbc173c2 Fix dart2js io_patch.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21937 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 10:32:08 +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