Commit Graph

181 Commits

Author SHA1 Message Date
iposva@google.com 1300ed5576 - Fix use of String operator + in language and corelib tests.
Review URL: https://chromiumcodereview.appspot.com//9664052

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6415 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-11 14:46:17 +00:00
sigmund@google.com cca364ce76 change status files to make it possible to run test.py -c frog,dart2js -r none.
Except for standalone, this mostly skips all other tests. The configurations
frog_none and dart2js_none these have been ignored for now by the bots, enabling
those tests should be done as needed.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6382 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-10 20:56:37 +00:00
efortuna@google.com 5c65834f87 Mark Stopwatch Test as flaky.
Review URL: https://chromiumcodereview.appspot.com//9956090

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6126 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-03 16:57:04 +00:00
efortuna@google.com 6496345da7 Remove "component" from status file
Review URL: https://chromiumcodereview.appspot.com//9864053

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5905 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-27 20:28:44 +00:00
efortuna@google.com c8e35dbeb1 Rename test.dart component to specify compiler + runtime.
Review URL: https://chromiumcodereview.appspot.com//9838068

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5893 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-27 18:40:41 +00:00
ahe@google.com 9125257fd3 Tweak corelib/ConstListLiteralTest while we wait for a resolution of CL 9839101.
Review URL: https://chromiumcodereview.appspot.com//9855018

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5829 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-26 13:20:05 +00:00
ahe@google.com 7e7fc128ea Prevent sort on immutable lists.
Review URL: https://chromiumcodereview.appspot.com//9835089

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5828 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-26 13:01:43 +00:00
ahe@google.com d5cff7f7da Minor tweaks to the core library.
Review URL: https://chromiumcodereview.appspot.com//9852018

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5818 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-26 08:29:12 +00:00
ahe@google.com 588e827484 Implement unlabeled continue.
Review URL: https://chromiumcodereview.appspot.com//9808109

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5808 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-25 20:21:46 +00:00
ahe@google.com 4ca586ce37 Revert "Switch frog tests to run on frogsh"
Review URL: https://chromiumcodereview.appspot.com//9732031

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5667 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-19 23:34:54 +00:00
jmesserly@google.com 653c01192c Switch frog tests to run on frogsh
This is a patch from issue 9724008, with a one line change to corelib.status

TBR=efortuna@google.com

Committed: https://code.google.com/p/dart/source/detail?r=5661

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5663 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-19 23:05:23 +00:00
jmesserly@google.com 114d8e634a revert r5661
Review URL: https://chromiumcodereview.appspot.com//9730017

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5662 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-19 22:39:17 +00:00
jmesserly@google.com de11dc720a Switch frog tests to run on frogsh
This is a patch from issue 9724008, with a one line change to corelib.status

TBR=efortuna@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5661 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-19 22:28:15 +00:00
cshapiro@google.com e70bfffaa9 Disable the StringPatternTest.
The behavior of allMatches in Leg does not yet match that of the VM.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5658 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-19 21:06:19 +00:00
cshapiro@google.com 86bd5e8827 Improve the replaceFirst, replaceAll and split methods.
An empty regular expression had caused split to loop infinitely.  Now,
the split method behaves like its namesake in ECMAScript and splits a
string along character boundaries.

The split, replaceFirst, and replaceAll methods only supported RegExp
and String patterns.  Now, these methods are implemented on top of the
allMatches method and work for all subinterfaces of Pattern.

BUG=2171

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5653 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-19 18:06:42 +00:00
ahe@google.com 5bc66beb02 Interceptor maintenance:
Add isEven$0, isOdd$0, map$1.

Clean up use of checkNull in interceptors.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5645 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-19 14:36:05 +00:00
ahe@google.com dd96f32250 Rename leg -> dart2js.
Review URL: https://chromiumcodereview.appspot.com//9717033

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5636 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-19 08:36:39 +00:00
ngeoffray@google.com 25543d35ed If there were breaks in a loop, we must not restore the saved localsHandler before entering the loop body.
Review URL: https://chromiumcodereview.appspot.com//9720024

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5619 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-18 12:08:24 +00:00
ngeoffray@google.com 1d6563f365 New try for cl https://chromiumcodereview.appspot.com/9706014/.
Review URL: https://chromiumcodereview.appspot.com//9703057

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5515 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-15 10:11:51 +00:00
ahe@google.com 266c57b2e2 RegExp is const, really.
Review URL: https://chromiumcodereview.appspot.com//9702048

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5513 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-15 09:19:12 +00:00
cshapiro@google.com aae5faf7b1 Implement regular expression support for split and replace{First,All}.
BUG=429

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5491 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-14 22:09:52 +00:00
efortuna@google.com ec3f00e731 Revert revision 5463. Caused breakage on browser bots.
Review URL: https://chromiumcodereview.appspot.com//9700024

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5473 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-14 16:56:32 +00:00
ngeoffray@google.com 1190c8ab38 Update tests expectations for legium.
Review URL: https://chromiumcodereview.appspot.com//9706014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5463 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-14 13:28:38 +00:00
ngeoffray@google.com 792dc2cbd3 New test passing on leg.
Review URL: https://chromiumcodereview.appspot.com//9693018

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5367 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-12 22:14:17 +00:00
ahe@google.com e49597231b Skip less tests.
Review URL: https://chromiumcodereview.appspot.com//9695003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5344 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-12 19:08:22 +00:00
ngeoffray@google.com aee63a7c60 Fix a long-standing bug in the computation of the live environments for bailouts. When visiting a loop, put a marker in the environment that will be updated when exiting the loop.
Review URL: https://chromiumcodereview.appspot.com//9668029

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5320 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-12 11:53:52 +00:00
ahe@google.com 0f63c54fcd Resolve constructors with type arguments.
Review URL: https://chromiumcodereview.appspot.com//9600059

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5131 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-07 21:46:44 +00:00
mattsh@google.com d8af601ce4 removed unused 'prefix' line from status files
Review URL: https://chromiumcodereview.appspot.com//9621003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5101 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-07 16:10:57 +00:00
ngeoffray@google.com d77308a444 Skip non-client tests on legium.
Review URL: https://chromiumcodereview.appspot.com//9623001

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5089 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-07 13:50:11 +00:00
ahe@google.com dbee0f2c18 Implement literal maps.
Review URL: https://chromiumcodereview.appspot.com//9558005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5032 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-06 16:15:29 +00:00
jmesserly@google.com 971c2191a7 fix status file for SplayTreeTest
I'm not sure why it was disabled but it seems to pass in frog

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5031 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-06 15:48:11 +00:00
floitsch@google.com 88e8bb43f7 parseInt fixes.
Review URL: https://chromiumcodereview.appspot.com//9595013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4937 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-05 09:53:20 +00:00
floitsch@google.com effc73b1e9 Unify Date.fromString and support more Iso 8601.
Review URL: https://chromiumcodereview.appspot.com//9568011

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4923 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-04 14:12:10 +00:00
ahe@google.com b7f62dcb1a Work around buggy break in List.sort and optimize constant folding of negative values.
Review URL: https://chromiumcodereview.appspot.com//9536020

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4779 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-01 07:04:19 +00:00
sigmund@google.com 6b4bd7ac4f futures: handle exceptions immediately if the future already completed.
Review URL: https://chromiumcodereview.appspot.com//9533014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4762 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-29 20:34:03 +00:00
ahe@google.com 38b5ade1ee Special case -0.0 when constant folding.
Review URL: https://chromiumcodereview.appspot.com//9536012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4760 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-29 19:12:21 +00:00
ahe@google.com b4da51c990 Create mock versions set and sort implementations.
Review URL: https://chromiumcodereview.appspot.com//9537009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4752 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-29 13:24:50 +00:00
ahe@google.com 55ff24ec82 Implement String.hashCode.
Review URL: https://chromiumcodereview.appspot.com//9490003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4714 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-28 18:06:03 +00:00
ngeoffray@google.com 3ba3129412 Fix bot again.
Review URL: https://chromiumcodereview.appspot.com//9491012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4698 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-28 16:03:44 +00:00
ngeoffray@google.com 2713c2bdec Fix bot.
Review URL: https://chromiumcodereview.appspot.com//9494014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4696 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-28 15:55:12 +00:00
ngeoffray@google.com 2f87d89459 Fix build.
Review URL: https://chromiumcodereview.appspot.com//9489013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4695 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-28 15:51:09 +00:00
ajohnsen@google.com 531b0d33c2 Update MapTest to reflect SplayTree rename to SplayTreeMap.
Review URL: https://chromiumcodereview.appspot.com//9494011

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4690 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-28 14:46:21 +00:00
ajohnsen@google.com f598bbf103 Add getMinimum, getMaximum, getPreceding and getSucceeding to SplayTree.
Review URL: https://chromiumcodereview.appspot.com//9455051

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4689 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-28 14:29:15 +00:00
sigmund@google.com ee6a907611 isolates refactor: this change introduces 'dart:isolate' as a library. This is a
big global change, so let me explain in more detail. This refactoring CL does
the following:
- moves all the dart code for isolates in a common library (lib/isolate)

- changes frog to understand 'dart:isolate' imoprts by loading the code from the
  location above.

- changes the vm to undernstand 'dart:isolate' imports by creating a separate
  library that is part of the bootstrap. This follows the same code-structure
  that Todd suggested in his CL introducing the mirror library

- changes dartc to use the shared isolate library as the source of truth for
  type checking. I left around some of the internal js code in dartc so that the
  backend continues to work for apps that don't use isolates.

- changes all tests that use isolates to import the library explicitly (this is a large bulk of the files in this CL)

- changes test status for tests we can't fix in this repo (e.g. co19)

- splits the isolate library code to make it possible to preserve some tests
  without exposing internal types (e.g. tests about
  serialization/deserialization)

- changes the create_sdk script to copy the isolate library to the sdk

- includes the isolate library in dartdoc

I'll wait for at least one lgtm from each area (dartc, vm, frog, sdk)

There is one important pending thing this CL doesn't do:
- update test_runner.dart: This should be updated next time we upload the new
  binaries to tool/testing/bin
- dartium specific changes: Vijay, is there anything I need to do for dartium?

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4647 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-27 22:50:44 +00:00
efortuna@google.com a5081b4474 Fix status file for safari.
TBR=jmesserly@google.com
Review URL: https://chromiumcodereview.appspot.com//9481007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4634 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-27 18:52:22 +00:00
srdjan@google.com 70c2a65acd Fix issue 1857: code lookup was wrong when searching for exception handler.
(TODO: reevaluate who is using the function's code reference).
Review URL: https://chromiumcodereview.appspot.com//9480006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4633 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-27 18:41:57 +00:00
floitsch@google.com f60f5e61fb Implement (subset of) ISO 8601 for date-reading. Fix other bugs.
Date.fromString now tries to read in an ISO 8601 first. If that fails
it falls back to the JS implementation.

Fix some typos in frog's date implementation.

Fixes issue 1763.
Fixes issue 1472.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4630 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-27 18:05:44 +00:00
ahe@google.com d807846be3 Start supporting fixed length and immutable lists.
Review URL: https://chromiumcodereview.appspot.com//9453021

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4608 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-27 12:42:31 +00:00
srdjan@google.com 4291325ac0 Disable DateTimeTest (leg) until issue is fixed (make bot green).
Review URL: https://chromiumcodereview.appspot.com//9447093

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4589 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-25 19:55:23 +00:00
srdjan@google.com a343a49338 Do not count invocations but usage of a function, i.e., increment a function's counter at IC calls and at return operations in unoptimized code. (TODO: increment count at static calls as well). There is no checking at method entry any more. The function counter reporting is not measuring the invocation count but much more how much time we spend in a method. Removed counter at backward branches.
Renamed flags to:
--optimization_counter_threshold (default 2000)
--report_usage_count
Review URL: https://chromiumcodereview.appspot.com//9460015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4583 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-25 00:33:25 +00:00