Commit Graph

1365 Commits

Author SHA1 Message Date
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
ahe@google.com 57f0a9464d Implement operator-is for interfaces' supertypes and String's supertypes. Also, improve stack traces.
Review URL: https://chromiumcodereview.appspot.com//9429047

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4544 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-23 17:45:12 +00:00
kasperl@google.com da4d85e836 Update test expectations after issue 1804 was fixed.
R=lrn@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4514 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-23 08:54:19 +00:00
ahe@google.com fef1247082 Update status file for frog/leg on debug VM
Review URL: https://chromiumcodereview.appspot.com//9428043

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4486 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-22 19:59:25 +00:00
srdjan@google.com d494c74610 Reduce run-time of two longest running tests (checked mode).
Review URL: https://chromiumcodereview.appspot.com//9416102

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4474 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-22 17:42:32 +00:00
floitsch@google.com 3b96c23926 Allow binary operators on compile-time-constants.
Review URL: https://chromiumcodereview.appspot.com//9427012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4455 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-22 14:25:27 +00:00
lrn@google.com 750ba21241 Support break and labeled statements.
Review URL: https://chromiumcodereview.appspot.com//9421035

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4453 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-22 14:14:51 +00:00
ngeoffray@google.com ea554fcbb6 Make sure the merge block after a try/catch has its dominator the block that contains HTry. This way, the codegen does not think a catch block needs to visit the merge block.
Review URL: https://chromiumcodereview.appspot.com//9432022

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4447 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-22 13:16:44 +00:00
ahe@google.com 15155475f3 Return newValue from indexSet helper and other intercepted setters. Also, throw IllegalArgumentException on negative length in getRange interceptor.
Review URL: https://chromiumcodereview.appspot.com//9355048

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4445 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-22 09:55:51 +00:00
ahe@google.com 327847c55e Improve String and RegExp implementations.
Review URL: https://chromiumcodereview.appspot.com//9426040

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4443 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-22 09:55:09 +00:00
ahe@google.com 852455cbf1 Annotate language and corelib test status.
Review URL: https://chromiumcodereview.appspot.com//9427018

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4442 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-22 09:54:36 +00:00
ahe@google.com 848f1e8d59 Copy JSSyntaxRegExp from frog.
Review URL: https://chromiumcodereview.appspot.com//9423042

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4440 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-22 09:53:53 +00:00
ahe@google.com 80904c1cd8 Source in string_buffer from runtime.
Review URL: https://chromiumcodereview.appspot.com//9426037

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4439 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-22 09:53:31 +00:00
ahe@google.com a8ae8ec6cc Don't intercept receiver-less calls.
Review URL: https://chromiumcodereview.appspot.com//9423040

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4438 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-22 09:53:10 +00:00
ahe@google.com 9337442c06 Implement most of String API.
Review URL: https://chromiumcodereview.appspot.com//9423034

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4434 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-22 09:51:43 +00:00
ahe@google.com 0248bfb2cb Implement Strings API.
Review URL: https://chromiumcodereview.appspot.com//9355032

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4433 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-22 09:51:21 +00:00
ahe@google.com ea883994b3 Implement Math API.
Review URL: https://chromiumcodereview.appspot.com//9425038

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4432 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-22 09:51:02 +00:00