asiva@google.com
6955ed0244
Add endian parameter to the get/set functions in ByteData.
...
Review URL: https://codereview.chromium.org//14332002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21688 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-18 18:19:43 +00:00
ahe@google.com
5d8b1a1d8c
Move invokeOn to InstanceMirror.
...
Review URL: https://codereview.chromium.org//14251021
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21636 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-17 16:39:19 +00:00
ahe@google.com
ddbc806aab
Remove redundant type check.
...
Review URL: https://codereview.chromium.org//13963007
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21616 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-17 11:49:06 +00:00
iposva@google.com
5b369cc1c4
- Implement reflectClass.
...
Review URL: https://codereview.chromium.org//14118011
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21610 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-17 10:11:21 +00:00
ahe@google.com
89be2ccac8
Change memberName and namedArguments in Invocation to use Symbol.
...
Review URL: https://codereview.chromium.org//14066019
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21602 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-17 07:54:48 +00:00
iposva@google.com
023d6edaf3
- Fix build: Move parameter to where it belongs.
...
Review URL: https://codereview.chromium.org//13921005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21594 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-16 23:49:56 +00:00
iposva@google.com
54d56ca5d8
- Add synchronous mirror API. Resurrects invoke, apply, newInstance,
...
getField and setField as synchronous calls that accept isolate-local
object as arguments.
Originally reviewed as https://codereview.chromium.org/14044007/
Review URL: https://codereview.chromium.org//13942008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21591 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-16 23:19:30 +00:00
vsm@google.com
b29a528fc6
Revert "Revert "Remove typeddata transferable constructors""
...
Take #2 . The only change here is the additional test fix under runtime that I missed.
Review URL: https://codereview.chromium.org//14119004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21586 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-16 22:36:04 +00:00
vsm@google.com
5a7d2854fa
Revert "Remove typeddata transferable constructors"
...
This reverts commit r21576. Looks like I missed some tests.
TBR=siva
Review URL: https://codereview.chromium.org//14130010
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21580 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-16 21:22:07 +00:00
vsm@google.com
36d8fd9882
Remove typeddata transferable constructors
...
These constructors are not in the public/shared typeddata.dart. Tests
updated accordingly.
Review URL: https://codereview.chromium.org//14205004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21576 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-16 20:55:08 +00:00
iposva@google.com
6adbe1b84f
- Do not keep growing when creating Lists from Iterables.
...
Review URL: https://codereview.chromium.org//14210006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21531 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 23:55:48 +00:00
srdjan@google.com
2e0bba73fe
Do not set growable array length unnecessarily.
...
Review URL: https://codereview.chromium.org//14265015
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21526 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 23:00:06 +00:00
floitsch@google.com
466d6670c1
Refactor Future constructors.
...
BUG=
Review URL: https://codereview.chromium.org//14070010
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21517 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 21:24:27 +00:00
floitsch@google.com
5431a5af54
Remove AsyncError with Expando.
...
Review URL: https://codereview.chromium.org//14251006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21498 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 18:58:32 +00:00
floitsch@google.com
1049521aaa
Add setAll, insertAll, replaceRange and fillRange.
...
BUG=
Review URL: https://codereview.chromium.org//14175013
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21471 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 16:25:21 +00:00
ahe@google.com
5b6c0ba820
Rename InvocationMirror to Invocation.
...
Review URL: https://codereview.chromium.org//14049009
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21465 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 15:42:44 +00:00
floitsch@google.com
759a366cea
Remove insertRange.
...
Review URL: https://codereview.chromium.org//13956006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21464 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 15:20:16 +00:00
floitsch@google.com
9bfc844930
Refactor removeRange.
...
Review URL: https://codereview.chromium.org//13872007
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21462 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 15:10:23 +00:00
ahe@google.com
45ad548837
Update dart:mirrors to use Symbol.
...
Review URL: https://codereview.chromium.org//14173005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21460 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 15:00:45 +00:00
lrn@google.com
485c8a5999
Move Iterable implementation to collection.
...
Add IterableMixin and IterableBase to dart:collection.
For now, the implementation is duplicated, because mixins and const
constructors don't mix. We hope that mixins will be improved in the
future to allow using the mixin to define the base class.
Review URL: https://codereview.chromium.org//14022007
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21457 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 14:32:16 +00:00
floitsch@google.com
bebe3ac2cd
Refactor List.setRange function.
...
Review URL: https://codereview.chromium.org//13863012
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21452 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 13:52:29 +00:00
ahe@google.com
601686b901
Update Function.apply to use Symbol.
...
Review URL: https://codereview.chromium.org//14107006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21451 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 13:48:25 +00:00
floitsch@google.com
07b02a845c
Remove String.slice. Too much overlap with String.substring.
...
Review URL: https://codereview.chromium.org//13874008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21442 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 12:20:07 +00:00
lrn@google.com
0f607e459c
Remove methods on StackTrace class.
...
The API is not ready for finalization, so we remove it for further
development after M4.
Makes dart2js's StackTrace object implement dart:core's StackTrace.
Marks dart2js stack-trace tests as Fail instead of Skip.
Review URL: https://codereview.chromium.org//14009004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21437 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 11:44:30 +00:00
floitsch@google.com
1743496bc2
Rename DAYS_IN_WEEK to DAYS_PER_WEEK. Add MONTHS_PER_YEAR.
...
BUG= http://dartbug.com/9812
Review URL: https://codereview.chromium.org//14065003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21434 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 11:29:10 +00:00
ager@google.com
ace27bbc85
Add curly braces in typeddata implementation.
...
R=iposva@google.com
BUG=
Review URL: https://codereview.chromium.org//14196005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21414 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 06:00:03 +00:00
ajohnsen@google.com
044f0d02eb
Remove Collection, Collections and clean up List/Set/Queue implementations of retain/remove.
...
BUG=
Review URL: https://codereview.chromium.org//14173003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21338 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-12 09:34:52 +00:00
ager@google.com
aed9246124
Add fromList constructor to typeddata typed lists.
...
It seems that creating a typed array from a normal
list is something that is done fairly frequently.
It therefore seems to make sense to add the fromList
convenience constructor.
R=asiva@google.com ,iposva@google.com
BUG=
Review URL: https://codereview.chromium.org//13834008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21325 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-12 06:07:55 +00:00
hausner@google.com
8b71446903
Remove legacy debugger API stuff. The removed functions do not appear to be used in Dartium.
...
Review URL: https://codereview.chromium.org//14029016
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21305 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-11 19:26:25 +00:00
floitsch@google.com
aecbeabcac
Implement getRange (returning an Iterable).
...
Review URL: https://codereview.chromium.org//14065011
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21281 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-11 14:14:29 +00:00
ahe@google.com
bdce382768
Add Symbol class.
...
Review URL: https://codereview.chromium.org//14142003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21273 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-11 12:46:16 +00:00
lrn@google.com
f41508d33b
Added new version of reduce.
...
Removed min/max and uses of min/max.
Review URL: https://codereview.chromium.org//14071002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21258 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-11 08:32:31 +00:00
gbracha@google.com
e08647bfd3
BREAKING CHANGE: Rename InstanceMIrror.invoke, .getField, .setField to invokeAsync, getFieldAsync, setFieldAsync. Likewise ClosureMirror.apply and ClassMIrror.newInstance. This is in preparation of new synchronous versions of the originals.
...
Review URL: https://codereview.chromium.org//13967003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21242 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-10 23:58:22 +00:00
floitsch@google.com
62358bf5e2
Make default argument to Iterable.join be "".
...
Review URL: https://codereview.chromium.org//13945009
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21193 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-10 11:28:32 +00:00
floitsch@google.com
0a26d0e20b
Rename DateTime constants to full names.
...
BUG= http://dartbug.com/9441
Review URL: https://codereview.chromium.org//13841005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21189 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-10 09:23:26 +00:00
lrn@google.com
f8efe5b278
Fix typo in type parameter.
...
Review URL: https://codereview.chromium.org//14037002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21185 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-10 08:14:40 +00:00
kasperl@google.com
57a82e9d05
Implement JS version of LinkedHashSet and move the various HashTable implementations to the VM collection library patch.
...
R=erikcorry@google.com ,lrn@google.com
BUG=
Review URL: https://codereview.chromium.org//13913005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21180 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-10 07:12:50 +00:00
iposva@google.com
0d0fcbe7e1
Changelist to land https://codereview.chromium.org/13452007/ for Siva.
...
Review URL: https://codereview.chromium.org//13813018
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21160 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-09 17:51:24 +00:00
lrn@google.com
6160e59850
Moving ListBase, FixedLengthListMixin and UmodifiableListMixin to collection.
...
Users can now create lists easily by extending these classes, just
as they can create iterables by extending Iterable.
Reduce the dependency of IterableMixinWorkaround outside of core/collection
implementations. I plan to move IterableMixinWorkaround to _collection-dev
before M4.
Review URL: https://codereview.chromium.org//13774006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21147 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-09 12:11:05 +00:00
vegorov@google.com
a273179ac8
Use locale insensitive method to parse double literals.
...
Using strtod does not work because Dart grammar does not necessary match grammar used by strtod. Some locales (e.g. Russian and Danish) use comma instead of dot for radix point.
R=iposva@google.com
BUG=
Review URL: https://codereview.chromium.org//13529014
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21074 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-08 14:32:46 +00:00
kasperl@google.com
06ce0c3ec3
Add JS implementation of LinkedHashMap.
...
R=erikcorry@google.com
BUG=
Review URL: https://codereview.chromium.org//13599005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21072 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-08 13:51:07 +00:00
floitsch@google.com
bef8ebb5f6
Add Iterable.fold (and Stream.fold) which replace reduce.
...
For now this is just a copy. In a next step we will change the behavior of
`reduce`.
BUG= http://dartbug.com/9536
Review URL: https://codereview.chromium.org//13548002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20978 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-05 16:12:40 +00:00
kasperl@google.com
caa4456595
Add a dart2js specific HashSet implementation that follows the HashMap implementation fairly closely.
...
I'd like to wait a bit with refactoring this more aggressively until
the linked variants have landed.
R=erikcorry@google.com
BUG=
Review URL: https://codereview.chromium.org//13715002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20958 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-05 10:23:37 +00:00
asiva@google.com
2f21a5b390
Fix the setters in _ByteDataView to behave the same as '[]=' and '[]' operators
...
in regular TypedData classes.
Review URL: https://codereview.chromium.org//13516003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20882 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-03 18:52:03 +00:00
ager@google.com
6003fdfe6e
Fix view creation for byte-size types.
...
We had forgotten to subtract the start byte offset from the length
when not passing in an explicit length.
Additionally, fix a couple of checked mode issues.
R=asiva@google.com
BUG=
Review URL: https://codereview.chromium.org//13529005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20867 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-03 15:29:11 +00:00
lrn@google.com
3b13f62170
Remove addLast from List.
...
The List.addLast method has been deprecated for quite a while.
A recent change removed it from the interface, but left the
implementation in place (which caused some errors from the analyzer).
This removes it completely.
Review URL: https://codereview.chromium.org//13528004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20857 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-03 12:52:19 +00:00
srdjan@google.com
60e57ecfe1
Optimizes 'as' operation in similar way as 'instanceof': collect type feedback in unoptimized mode and try to convert it to a simple classcheck in optimized code.
...
Review URL: https://codereview.chromium.org//13190014
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20783 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-02 15:30:14 +00:00
kasperl@google.com
f15b6960c0
Add a new implementation of HashMap that uses JS objects for its (multiple) hash tables.
...
I'll start refactoring the implementation to make it a bit more
maintainable, but I wanted to get your first impressions.
R=erikcorry@google.com ,lrn@google.com ,srdjan@google.com
BUG=
Review URL: https://codereview.chromium.org//12827018
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20770 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-02 11:51:36 +00:00
asiva@google.com
7b72985c3e
First step for fixing Issue 9416.
...
Review URL: https://codereview.chromium.org//13351002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20760 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-02 00:01:15 +00:00
asiva@google.com
2f7ca6843f
Remove support for 'dart:scalarlist' in the Dart VM.
...
Review URL: https://codereview.chromium.org//13139002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20680 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-29 18:33:54 +00:00