Commit Graph

4689 Commits

Author SHA1 Message Date
floitsch@google.com 0672317bec Remove deprecated mappedBy.
Committed: https://code.google.com/p/dart/source/detail?r=18575
Reverted: http://code.google.com/p/dart/source/detail?r=18576

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18579 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-15 13:57:18 +00:00
floitsch@google.com ad839e6957 Revert "Remove deprecated mappedBy."
This reverts commit 18575.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18576 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-15 13:23:22 +00:00
floitsch@google.com b37100770b Remove deprecated mappedBy.
Review URL: https://codereview.chromium.org//12212213

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18575 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-15 13:18:17 +00:00
lrn@google.com ecbf4478c2 Reapply "New implementation of {,Linked}Hash{Set,Map}."
Review URL: https://codereview.chromium.org//12212211

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18573 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-15 13:07:22 +00:00
whesse@google.com a0dee7c130 Replace expired SSL certificates in dart:io secure networking tests with ones good for 5 years.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18571 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-15 12:24:25 +00:00
lrn@google.com b7f36d0d11 Make List.skip, List.take and List.reversed return Iterables, not Lists.
Removes ListView. It was premature optimization to have classes that combined any sequence of reverse, skip and take instead of just wrapping iterables.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18570 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-15 10:43:21 +00:00
lrn@google.com c3e2eace1e Revert "Reapply "New implementation of {,Linked}Hash{Set,Map}.""
Breaks pub, which apparently contains concurrent modifications of a
HashMap.

Spurious error in:
 pkg/analyzer-experimental/test/generated/ast_test/test_literal_map
Seems to be an error in the analyzer.

TBR

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18569 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-15 10:06:49 +00:00
ricow@google.com a82972d11b Mark standalone/io/socket_stream_close_test as flaky on windows.
See http://dartbug.com/8556
Review URL: https://codereview.chromium.org//12261054

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18567 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-15 09:25:09 +00:00
lrn@google.com 9d8aca9e45 Reapply "New implementation of {,Linked}Hash{Set,Map}."
Review URL: https://codereview.chromium.org//12254006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18566 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-15 09:18:36 +00:00
efortuna@google.com d7057b2d8c Reapply setTimeout change.
This CL is identical to 18555. The reason it will  work now is the corresponding
dartium change has been checked in.

TBR-blois

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18562 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-15 07:40:51 +00:00
kustermann@google.com 6e15e3eff7 Revert "Reapply remove setTimeout, take 3."
Review URL: https://codereview.chromium.org//12207198

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18559 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-15 04:25:18 +00:00
sra@google.com cbd9a090ab Fix for Issue 8460.
Review URL: https://codereview.chromium.org//12221162

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18556 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-15 03:10:33 +00:00
efortuna@google.com adf0fadd0d Reapply remove setTimeout, take 3.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18555 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-15 02:42:13 +00:00
blois@google.com fd2c1cbf89 Adding supported checks and flags to FormData
Also fixing the test to pass on IE10.

BUG=4793

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18554 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-15 02:23:52 +00:00
blois@google.com 8123bf9175 Fixing node.nodes.addAll to accept node lists.
Had two options- change the iterators or do a defensive copy. I believe this is a fairly performance-critical area, so tried to optimize for that.

BUG=6684

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18545 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-14 22:07:05 +00:00
floitsch@google.com adb99d0107 Deprecate comparison operators of DateTime.
Review URL: https://codereview.chromium.org//12221094

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18543 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-14 22:00:36 +00:00
efortuna@google.com 2b86a542a3 "Reverting 18531"
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18542 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-14 21:33:33 +00:00
blois@google.com 87867a746c Fixing DOM's EventStream.isBroadcast
BUG=8457

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18541 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-14 21:30:31 +00:00
blois@google.com 432aa0994c Renaming Element.dataAttributes to Element.dataset.
Element.dataset is the DOM version of the API, so we should have ours named the same.

Opened bug #8545 that we should optimize Element.dataset to use the native functionality if present.

BUG=5963

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18533 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-14 19:12:38 +00:00
efortuna@google.com 8da959b722 Reapply remove setInterval.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18531 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-14 19:08:45 +00:00
srdjan@google.com 5d42e63bd1 Optimize left shift of a constant: compute max value of right that does not overflow into Mint/Bigint.
Review URL: https://codereview.chromium.org//12212175

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18525 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-14 18:10:21 +00:00
fschneider@google.com 0a1d6d15f9 Fix bug in optimizing string .length loads.
We're not allowed to hoist a .length load if the corresponding
class-check is not also hoisted out of a loop.

TEST=tests/language/optimized_string_charcodeat_test.dart
Review URL: https://codereview.chromium.org//12256037

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18519 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-14 15:59:18 +00:00
kustermann@google.com 155b0b9666 Fixed tests to reliably clean up temporary files/directories
This should fix issue: http://dartbug.com/8534

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18518 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-14 15:39:14 +00:00
fschneider@google.com e2a0c8f7ca Optimize stores to ExternalUint8Array and ExternalUint8ClampedArray in the optimizer.
This CL adds support for these two array types to the StoreIndexed instruction.
Review URL: https://codereview.chromium.org//12263010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18517 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-14 12:59:51 +00:00
karlklose@google.com 20d911ddff Share addTypeVariableReference between factory calls and is-checks.
Review URL: https://codereview.chromium.org//12261006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18507 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-14 10:15:09 +00:00
lrn@google.com dd31afbeca Added implementation of String.codeUnits.
Based on ListIterable implementation that should be reusable for a lot
of our existing length/indexing-based iterables too.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18506 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-14 09:51:43 +00:00
floitsch@google.com c10172597f Make Uri.isAbsolute and Uri.hasAuthority getters.
BUG= http://dartbug.com/8504

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18505 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-14 09:48:52 +00:00
kasperl@google.com 1bc39bc413 Correctly minify named mixin applications in dart2dart.
R=erikcorry@google.com
BUG=http://dartbug.com/8537

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18504 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-14 09:17:46 +00:00
blois@google.com b4fa823142 Updating Element.scrollIntoView to be platform independent.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18498 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-14 00:40:03 +00:00
hausner@google.com 90ad1c88a5 Fix dartium status
Dartium trips over the import clause in test/language/mixin_lib_extends_method_test.dart

TBR=efortuna
Review URL: https://codereview.chromium.org//12257023

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18497 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-14 00:10:08 +00:00
srdjan@google.com 39713f0efc The code size does not scale with architecture word size, set code size cutoff limit to 200,000 bytes for all architectures
Review URL: https://codereview.chromium.org//12256028

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18492 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-13 23:00:09 +00:00
srdjan@google.com b975d54c8e Test uses a lot of memory (optimizing compiler, issue 8529) and may cause timeouts on buildbots.
Review URL: https://codereview.chromium.org//12253014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18491 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-13 22:39:41 +00:00
hausner@google.com b2116af7ce Fix minified test status
Minifier chokes on some mixing tests. Non-minified dart2dart works.
Review URL: https://codereview.chromium.org//12252021

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18487 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-13 22:14:11 +00:00
srdjan@google.com 4f285ac0a8 Add flag to block optimizations of large implicit getters. Implicit getters have a 0 size in tokens, therefore also check the size of unoptimized code to decide if a function is optimizable. Print more data with --trace-compiler.
Review URL: https://codereview.chromium.org//12263017

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18485 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-13 21:52:02 +00:00
hausner@google.com b4527a7465 First stab at mixins in VM compiler
Things not yet supported:
- Type parameters for super class and mixin class
- super call limitation check
Review URL: https://codereview.chromium.org//12210127

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18479 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-13 21:08:15 +00:00
efortuna@google.com 3b0c52f47f Reverting setTimeout removal.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18478 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-13 21:06:31 +00:00
efortuna@google.com 5051029f26 Fix benchmark smoke test as well with change.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18477 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-13 20:50:48 +00:00
blois@google.com 8eb3de4f72 Fixing Indexed DB's CursorWithValue.value
CursorWithValue.value was not getting converted from a JS type to a Dart type.

BUG=8254

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18476 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-13 20:50:12 +00:00
efortuna@google.com 71a32af213 Combine window.setTimeout/setInterval with Timer and Timer.repeating. Also
Stream-and-future-ified some of the Window methods that used to take callbacks.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18475 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-13 20:32:30 +00:00
floitsch@google.com 02a5b031fe Change Future.delayed to take a Duration.
Review URL: https://codereview.chromium.org//12224081

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18471 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-13 19:31:22 +00:00
ngeoffray@google.com d6e257abd7 Update status file for test that triggers a bug in jsc.
Review URL: https://codereview.chromium.org//12263008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18453 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-13 16:01:56 +00:00
vegorov@google.com 4313776ac4 Update language_dart2js.status to expect failure on branch_canonicalization_test due to differences in integer semantics.
Fix style issues in the test itself.

R=ahe@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18450 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-13 15:09:58 +00:00
ngeoffray@google.com 5a2d74ca50 Start work on a non-complete type inferrer. Currently only analyzes return types.
Review URL: https://codereview.chromium.org//12211112

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18447 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-13 14:43:45 +00:00
vegorov@google.com b1a343033e When canonicalizing branch on StrictCompare don't fuse comparisons that can deoptimize or serve as pending deoptimization target for representation changes.
R=fschneider@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18443 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-13 14:14:05 +00:00
lrn@google.com 6e0d6462ce Revert "New implementation of {,Linked}Hash{Set,Map}."
Triggers assertion in VM debug mode.
Seems to have some bug or difference that affects dart2dart.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18442 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-13 12:40:12 +00:00
lrn@google.com 6ad0b78818 New implementation of {,Linked}Hash{Set,Map}.
Accepts null keys/entries.
Much faster LinkedHashMap, faster HashSet, slight penalty on HashMap,
possibly due to accepting null keys.
Performance difference depends on table size.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18437 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-13 09:51:50 +00:00
erikcorry@google.com c666438c6c dart2js: In minified mode shorter getter and setter names.
Now a field called x has a getter called gx and a setter called sx in minified
mode.  Previously the getter was get$x and the setter was set$x (as in
unminified code).

This CL also fixed an assert caused by using a getter to access a
variable that is a closure object.

R=karlklose@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18436 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-13 08:48:38 +00:00
blois@google.com da161d6ab1 Sample test for custom elements.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18421 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-13 00:30:20 +00:00
hausner@google.com f71dfc4034 Mixin tests with libraries
Add tests where the mixin class is from an imported library.
Review URL: https://codereview.chromium.org//12250018

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18407 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-12 22:45:56 +00:00
lrn@google.com 3520e88c04 Bi-directional iterator for runes of a string.
Review URL: https://codereview.chromium.org//12094056

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18382 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-12 15:22:31 +00:00