Commit Graph

1365 Commits

Author SHA1 Message Date
ahe@google.com 43b46c092e Improve double implementation.
Review URL: https://chromiumcodereview.appspot.com//9421025

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4430 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-22 09:50:18 +00:00
ngeoffray@google.com 3b43ce6c18 Fix frog presubmit.
Review URL: https://chromiumcodereview.appspot.com//9429044

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4429 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-22 09:32:00 +00:00
cshapiro@google.com e0c764f91c Added special case code for translating null element to work around a frog bug.
Review URL: https://chromiumcodereview.appspot.com//9372094

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4424 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-22 06:07:39 +00:00
cshapiro@google.com 197a409be3 Fix build breakage caused by the recent toString() commit.
Type randomElement as returning and Object, not a void.  This failed in
checked mode.

Rewrite another import of collections.dart to point to its new
location.  This broke the leg build.

Review URL: https://chromiumcodereview.appspot.com//9429032

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4422 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-22 03:30:30 +00:00
jjb@google.com a2f2769ec3 Wrote functions to convert collections and maps to strings and invoked
these functions from the toString methods of all built-in Collection
and Map implementations. Wrote smoke tests and basher tests.
Review URL: https://chromiumcodereview.appspot.com//9431015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4421 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-22 02:28:01 +00:00
ahe@google.com 50f9f9e1ba Improve List implementation.
Review URL: https://chromiumcodereview.appspot.com//9355031

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4414 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-21 23:37:57 +00:00
ahe@google.com 84b77a4b2f Two minor bug fixes: a type error in the parser, and throwing the
correct exceptions on indexed access.

Review URL: https://chromiumcodereview.appspot.com//9355014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4384 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-20 23:47:36 +00:00
ahe@google.com 98d8d8f5cd Only warn that const expressions are not implemented.
Review URL: https://chromiumcodereview.appspot.com//9395043

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4364 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-17 18:24:23 +00:00
ahe@google.com a552e40ff1 Mock up all remaining core library implementation classes.
Review URL: https://chromiumcodereview.appspot.com//9417031

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4358 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-17 16:52:11 +00:00
ahe@google.com a5e2d6e486 Use shared implementation of Stopwatch.
Alos, mock up an implementation of interface constructors.

Review URL: https://chromiumcodereview.appspot.com//9419009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4357 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-17 15:54:43 +00:00
kasperl@google.com c34ec0121c Revert "Wrote functions to convert collections and maps to strings and invoked"
This reverts r4345.

R=jjb@google.com
BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com//9416053

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4347 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-17 06:36:06 +00:00
jjb@google.com b4db1d6cc0 Wrote functions to convert collections and maps to strings and invoked
these functions from the toString methods of all built-in Collection
and Map implementations. Wrote smoke tests and basher tests.

BUG=4466785
Review URL: https://chromiumcodereview.appspot.com//9320028

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4345 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-17 01:34:00 +00:00
sigmund@google.com 427d5e5ead remove promise:
- removes promise from corelib (use future instead)
 - move tests that depend on promises and proxies into samples/proxy/
 - remove dependence on promise from the rest of the system and tests

Review URL: https://chromiumcodereview.appspot.com//9401030

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4328 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-16 18:20:41 +00:00
ahe@google.com 14c86613a7 Various mocks and tweaks to reduce cancels in Leg.
Review URL: https://chromiumcodereview.appspot.com//9420001

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4305 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-16 10:26:17 +00:00
sigmund@google.com 6cf7f9b794 futures: add more tests for future and completer.
Review URL: https://chromiumcodereview.appspot.com//9392029

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4231 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-14 16:12:13 +00:00
jmesserly@google.com 9918d69710 Update Opera status
For now tests are disabled on the bot while we get it working.

Review URL: https://chromiumcodereview.appspot.com//9371037

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4109 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-10 01:54:29 +00:00
sigmund@google.com b66a9d9360 patch from issue 9360020
Adds three methods to Future to codify common patterns:

new Future<T>.immediate(T): a Future is desired, but the object is already
available
Future Future<T>.transform(Function): perform a sync computation once an async
computation is complete
Future Future<T>.chain(Function): perform an async computation once an async
computation is complete

Contributed by sammccall@google.com

BUG=dart:1516

Review URL: https://chromiumcodereview.appspot.com//9372008
Patch from Sam McCall <sammccall@google.com>.

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4056 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-09 01:09:06 +00:00
zundel@google.com 1172e2bf77 Remove implicit --optimize from testing dartc component in release mode
Review URL: https://chromiumcodereview.appspot.com//9362013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4040 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-08 16:17:05 +00:00
whesse@google.com 9f27aa3a69 Remove unused support files for old version of tools/test.py.
BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com//9360017

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4033 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-08 14:11:42 +00:00
ahe@google.com 41f0492cf0 Remove dartc optimizing backend.
Review URL: https://chromiumcodereview.appspot.com//9353015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4025 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-08 10:22:07 +00:00
zundel@google.com 8fdd07b9fd This change makes the normal way of running dartc equivalent to running it with what was the --check-only flag. Shared test status files have been updated to run 'green' for now until we can get a special static analysis testing tool in place.
The code generation backend is still there behind a flag, but due to be removed.

Review URL: https://chromiumcodereview.appspot.com//9346021

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4008 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-07 22:00:40 +00:00
floitsch@google.com e590cbf299 Fix split with regexp for frog.
Review URL: https://chromiumcodereview.appspot.com//9352016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3998 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-07 15:06:42 +00:00
ahe@google.com 48b1eff052 Debug means debug build, --checked is a seperate step
Review URL: https://chromiumcodereview.appspot.com//9310113

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3935 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-06 11:38:04 +00:00
efortuna@google.com 5a44035961 Changing to recommended way to fix console.log in IE by Kasper.
Plus some updates to the test.stats files for IE results.
Review URL: https://chromiumcodereview.appspot.com//9302012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3704 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-31 00:51:43 +00:00
jimhug@google.com 927d3a6ec5 adds array bounds checking
also adds a --unchecked flag to optionally disable this bounds checking so that we can monitor the performance impact - currently the impact seems to be from zero to about 4x slower depending on the specific benchmark

Review URL: https://chromiumcodereview.appspot.com//9129023

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3555 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-24 15:54:58 +00:00
ngeoffray@google.com 6ab71e4c6d Add the arity to calls, and support noSuchMethodException.
Review URL: https://chromiumcodereview.appspot.com//9193016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3540 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-24 12:12:08 +00:00
kasperl@google.com ac0e22f2bc Fix dartc in optimized mode (broken in r3358).
Add checks that ensure that keys used for array access are integers.

Fix bug in the optimization strategy that ended up generating the wrong
code for "native" classes.

R=floitsch@google.com,mmendez@google.com
BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com//9250005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3390 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-18 12:44:47 +00:00
efortuna@google.com 4ecc520173 Make changes for Safari to run with webdriver on the bots.
Review URL: https://chromiumcodereview.appspot.com//9252002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3382 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-18 02:22:10 +00:00
ahe@google.com 7b56550033 Generate AST nodes for field initializers.
Review URL: https://chromiumcodereview.appspot.com//9241014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3363 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-17 16:29:02 +00:00
kasperl@google.com 2b7bdf3d2e Add number checks to the numeric operations in dartc.
It makes sense to consider removing the NumberImplementation native operators -- or make them throw an error unconditionally -- because they should never be called unless the right hand side isn't a number.

R=floitsch@google.com,mmendez@google.com
BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com//9240005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3358 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-17 15:09:46 +00:00
efortuna@google.com 9fa0180cc1 Get Firefox and IE working again with Object.defineProperty!
Review URL: http://codereview.chromium.org//9214005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3312 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-13 22:28:50 +00:00
regis@google.com 2d1f63af47 Port a couple more stubs to x64.
Fix integer implementation issues.
Enable all tests on x64.
Review URL: http://codereview.chromium.org//9114054

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3307 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-13 20:07:54 +00:00
iposva@google.com 1edc2e8edb - Remove support for ">>>" operator.
Committed: https://code.google.com/p/dart/source/detail?r=3279
Review URL: http://codereview.chromium.org//9203004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3280 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-13 09:11:05 +00:00
gbracha@google.com d3bcc88674 Added method map to Collection interface and all its implementations (except classes generated from IDL for the DOM).
Review URL: http://codereview.chromium.org//9114021

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3223 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-12 01:25:01 +00:00
sigmund@google.com 8139db7ae4 bots: include webdriver tests in bots.
Review URL: http://codereview.chromium.org//9188012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3206 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-11 20:48:33 +00:00
lrn@google.com 41771582a2 Implement for-in.
Direct implementation with no optimizations.

Review URL: http://codereview.chromium.org//9148021

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3180 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-11 10:37:47 +00:00
jimhug@google.com 1dd7a8484c continued cleanup of initialization and Value
Less code, more tests passing...  EvaluatedValue and MethodGenerator.evalBody are both in the right direction but will be evolving fairly rapidly to get to a fully cleaned up state.

Review URL: http://codereview.chromium.org//9146001

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3077 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-09 03:42:49 +00:00
dominich@google.com 08b8a9cd71 Implementation of List.setRange for frog. Re-enable test.
BUG=934
Review URL: http://codereview.chromium.org//8983019

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3043 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-06 15:55:33 +00:00
sgjesse@google.com 5078ebb745 Add FuturesTest.dart as failing for leg
TBR=ajohnsen@google.com

BUG=
TEST=

Review URL: http://codereview.chromium.org//9120005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3037 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-06 13:32:53 +00:00
ajohnsen@google.com 5dcd61b851 Futures.wait should call then, even if some(or all) of the futures are done
Review URL: http://codereview.chromium.org//9108010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3033 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-06 12:41:29 +00:00
ager@google.com 98777d80cb Revert error introduced on purpose.
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3029 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-06 11:00:05 +00:00
ager@google.com af84bcf943 Make the buildbot fail on purpose.
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3028 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-06 10:58:38 +00:00
karlklose@google.com 5a58fe2319 Implement code generation for === and !==.
TEST=tests/leg/src/IdentityTest.dart

Review URL: http://codereview.chromium.org//9112012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3004 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-05 17:15:11 +00:00
ahe@google.com af4de59113 Detect crashes in frog/leg (when running on VM).
Review URL: http://codereview.chromium.org//9111012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2992 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-05 12:26:20 +00:00
kasperl@google.com 79d8a6854e Add support for Expect.equals in the Leg core library.
R=ngeoffray@google.com
BUG=
TEST=

Review URL: http://codereview.chromium.org//9027003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2745 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-22 12:39:15 +00:00
sigmund@google.com 9a5d4c2522 .status: fix test status for frogium
Review URL: http://codereview.chromium.org//8974017

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2588 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-19 18:29:54 +00:00
ager@google.com fb053d8126 Update test.dart to use the leg_only option for the leg component.
Take the new *-leg.status status files into account.

R=whesse@google.com
BUG=
TEST=

Review URL: http://codereview.chromium.org//8992015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2583 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-19 15:07:29 +00:00
ahe@google.com 258010fddb Always use --leg_only option.
Review URL: http://codereview.chromium.org//8957008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2567 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-19 10:07:32 +00:00
sigmund@google.com bfe2649732 frog: better binding of methods.
Review URL: http://codereview.chromium.org//8914024

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2457 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-15 03:59:22 +00:00
sigmund@google.com cd10dad521 frogium: fix all status file to reflect frogium current status.
Review URL: http://codereview.chromium.org//8930024

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2407 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-14 00:57:56 +00:00