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
14bf365c05
Update SplayTreeMap implementation.
...
Make keys and values getters lazy.
Update iteration to not serialize the keys first.
Iteration attempts to traverse the tree without modifying it, but
recovers if someone modifies the tree structure while iterating,
which a simple lookup will do.
It throws, as other maps, if keys are added or removed during iteration.
Add concurrent modification catching for iteration and putIfAbsent.
Make _splay actually private.
BUG=http://dartbug.com/4421
Review URL: https://codereview.chromium.org//12260058
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18574 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-15 13:15:32 +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
lrn@google.com
349cd9eae0
Add unmodifiable list view.
...
Avoid using list.take(list.length), which no longer gives a list.
Review URL: https://codereview.chromium.org//12259045
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18572 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-15 12:42:27 +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
ahe@google.com
b0f7dbfd88
Build "init" from JS AST nodes.
...
Review URL: https://codereview.chromium.org//12208067
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18565 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-15 09:08:16 +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
rnystrom@google.com
db82ff139f
Fix pub on windows.
...
Review URL: https://codereview.chromium.org//12261050
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18553 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-15 01:33:23 +00:00
dgrove@google.com
278d7b0c74
Update documentation links to point to the correct URLs.
...
Review URL: https://codereview.chromium.org//12252055
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18552 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-15 01:27:10 +00:00
rnystrom@google.com
b12e27a4d2
Get rid of join() and encapsulate File and Directory in io.dart.
...
Review URL: https://codereview.chromium.org//12253054
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18551 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-15 01:13:07 +00:00
rnystrom@google.com
10f7ad94ae
Clean up some warnings and deprecated calls.
...
Review URL: https://codereview.chromium.org//12262056
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18550 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-15 01:10:07 +00:00
vsm@google.com
e2ef36a751
Fix dart.js to handle query strings
...
Still needs an automated test, but this passes my local ones.
BUG=http://code.google.com/p/dart/issues/detail?id=8408
Review URL: https://codereview.chromium.org//12212203
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18549 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-14 23:38:20 +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
efortuna@google.com
7120208746
Fix test status for analyzer test.
...
BUG=
Review URL: https://codereview.chromium.org//12252045
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18544 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-14 22:03:28 +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
pquitslund@google.com
c5fba36a7a
Test status fix to properly exclude analyzer tests from dart2js builds.
...
Review URL: https://codereview.chromium.org//12263045
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18538 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-14 19:51:22 +00:00
pquitslund@google.com
fc2c75acda
Fresh drop of analyzer-experimental.
...
Among other things,
* adds resolver and tests (in progress)
* more tests in general (e.g., ast_test.dart and element_test.dart)
* fixes getter/setter name generation
Review URL: https://codereview.chromium.org//12253009
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18535 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-14 19:28:02 +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
amouravski@google.com
904cde1cca
Added a readme to the browser package, so people know what's up.
...
Review URL: https://codereview.chromium.org//12212138
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18532 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-14 19:11:48 +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
alanknight@google.com
84b4fc6a80
Fix modification of map while iterating in SimpleJsonFormat
...
Review URL: https://codereview.chromium.org//12210151
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18527 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-14 18:30:21 +00:00
alanknight@google.com
a3061ab600
Stop using deprecated charCodeAt in Intl
...
Review URL: https://codereview.chromium.org//12262030
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18526 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-14 18:23:43 +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
kustermann@google.com
f35937f29b
Added "dartc_bot" target in dart.gyp
...
Currently the dartc bots only use 'tools/build.py create_sdk'. But since dartc
analzes tests that use package imports this causes issues. Although we pass in
the package root (i.e. 'dart_analzer --package-root=out/Mode/packages/ ... '),
we don't create the package links on the bot (in the create_sdk step).
This CL creates a new 'dartc_bot' target which depends on the 'packages' target in
addition to 'create_sdk'. Another CL will change the buildbot to use the new
target.
Review URL: https://codereview.chromium.org//12259026
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18523 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-14 17:49:29 +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
fschneider@google.com
352cb5bd78
Use writable register policy to avoid explicit restoring input register after untagging.
...
This CL produces more compact code if the writable input
register is the last use by avoiding unnecessary re-tagging.
In that case no extra temp generated by the register allocator.
Review URL: https://codereview.chromium.org//12114008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18515 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-14 11:41:08 +00:00
ngeoffray@google.com
cd7a061b6e
Fix warning spotted by dartc, and make the HType understand the dynamic class.
...
Review URL: https://codereview.chromium.org//12256036
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18513 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-14 11:16:46 +00:00
kasperl@google.com
94503f6e0a
Simplify the selector map and get rid of the partial type tree.
...
This new approach is a lot faster than the old approach, but we
do not use selector maps enough for this to really matter for
the overall compilation speed (yet).
There are definitely cases where having the cache has a small
positive impact and I expect that the significance of it will
increase as we start using selector maps in more places.
R=ngeoffray@google.com
BUG=
Review URL: https://codereview.chromium.org//12262035
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18512 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-14 11:16:31 +00:00
ngeoffray@google.com
52a1ebd2fb
- Trust type annotations on fields of HTML classes.
...
- Use the native name of a call on an HTML method when possible.
- Clean up lookupMember in HType to lookupSingleSelector.
Review URL: https://codereview.chromium.org//12263009
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18511 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-14 10:41:36 +00:00
polux@google.com
63502f2fc1
Ensure all UnknowConcreteTypes are const so that their equality test is sound.
...
Review URL: https://codereview.chromium.org//12091092
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18509 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-14 10:32:35 +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
rnystrom@google.com
ba326cd770
Get rid of old redundant methods in io.dart.
...
Now that we have pkg/path, we can ditch the old methods in io.dart
that do the same thing.
Review URL: https://codereview.chromium.org//12255016
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18500 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-14 01:14:31 +00:00
blois@google.com
1c3fc640c9
Adding monitoring to a number of DOM generation scripts.
...
Also fixing a bunch of issues uncovered.
BUG=
Review URL: https://codereview.chromium.org//12252019
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18499 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-14 00:43:30 +00:00