regis@google.com
849585ef7c
Implement Function.apply in vm (issue 5670).
...
Fix a closure parameter count check bug (unveiled by an apply test).
Review URL: https://codereview.chromium.org//11564029
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16175 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-14 19:04:01 +00:00
kasperl@google.com
0486a35522
Revert "Wat if you closure identical?"
...
Revert "Update comment suggested by Kasper."
This reverts r16112 and r16113.
R=ngeoffray@google.com
BUG=
Review URL: https://codereview.chromium.org//11578029
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16161 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-14 13:44:45 +00:00
ngeoffray@google.com
c8ee314f0a
Wat if you closure identical?
...
Review URL: https://codereview.chromium.org//11564013
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16112 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-13 14:25:06 +00:00
ngeoffray@google.com
0235ebc4b1
Clean up the patch file for the isolate library by introducing a new builtin library: isolate_helper.dart.
...
Review URL: https://codereview.chromium.org//11549017
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16029 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-12 11:35:49 +00:00
ager@google.com
81ea12b120
Fix unresolved classes issues in dart:io.
...
R=sgjesse@google.com
BUG=dartbug.com/7299
Review URL: https://codereview.chromium.org//11553020
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16026 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-12 09:23:57 +00:00
ngeoffray@google.com
24e64c10f2
Clean up the timer source in the isolate library to be less VM specific.
...
Review URL: https://codereview.chromium.org//11538007
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16024 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-12 08:32:54 +00:00
tball@google.com
67530c6aa1
Added bool.hashCode patch.
...
BUG: 7244
Review URL: https://codereview.chromium.org//11557002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16011 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-12 00:59:05 +00:00
ngeoffray@google.com
a71ca795d8
Make identical an external function and make it throw in both runtimes, as they both recognize it.
...
Review URL: https://codereview.chromium.org//11489011
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15956 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-11 09:22:45 +00:00
regis@google.com
3b1dfe51d1
Pass the proper invocation mirror argument to noSuchMethod.
...
Review URL: https://codereview.chromium.org//11523002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15939 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-11 00:31:53 +00:00
asiva@google.com
6eec2410ec
Restructure Add and SetAt to not create a Handle.
...
Review URL: https://codereview.chromium.org//11443024
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15926 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-10 19:28:14 +00:00
regis@google.com
dd6a0ec349
Rename GET_NATIVE_ARGUMENT macro to GET_NON_NULL_NATIVE_ARGUMENT.
...
Introduce new GET_NATIVE_ARGUMENT macro accepting null.
Add test.
Review URL: https://codereview.chromium.org//11468016
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15919 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-10 17:59:40 +00:00
srdjan@google.com
a9a187ce7a
Fix failures in byte array tests, reenabled test.
...
Review URL: https://codereview.chromium.org//11471014
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15821 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-06 23:27:01 +00:00
srdjan@google.com
93dd217564
Added Uint8ClampedList. COmpielr optimziations to follow in next CL.
...
Review URL: https://codereview.chromium.org//11437028
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15806 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-06 21:53:51 +00:00
lrn@google.com
04769f543c
Change List.sort to not have a default parameter value.
...
The list implementations in the system now default to
Comparable.compare if the compare argument is null.
BUG=http://code.google.com/p/dart/issues/detail?id=7148
Review URL: https://codereview.chromium.org//11269004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15771 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-06 08:55:22 +00:00
srdjan@google.com
e3863daaba
Improve C++ code for string splittig (Dromaeo benchmark).
...
Review URL: https://codereview.chromium.org//11308337
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15710 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-04 21:52:02 +00:00
srdjan@google.com
d1f54883b8
More cleanups === => identical
...
Review URL: https://codereview.chromium.org//11308305
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15648 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-03 19:11:13 +00:00
johnmccutchan@google.com
1120befff4
s/transferrable/transferable
...
Review URL: https://codereview.chromium.org//11434077
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15636 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-03 15:25:07 +00:00
srdjan@google.com
5f4ad90c85
Added native to split OneByteString with a char code as pattern.
...
Review URL: https://codereview.chromium.org//11414273
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15615 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-01 00:22:18 +00:00
johnmccutchan@google.com
5642ee09f1
Expose transferable constructor to Int8List
...
Review URL: https://codereview.chromium.org//11414211
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15598 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-30 20:35:22 +00:00
srdjan@google.com
f7913777a4
Improve performance of String split (use unchecked substring).
...
Review URL: https://codereview.chromium.org//11415234
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15596 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-30 19:39:32 +00:00
cshapiro@google.com
39ee2fdfeb
Move various top-level Unicode definitions into classes and methods.
...
Review URL: https://codereview.chromium.org//11414249
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15568 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-30 03:33:37 +00:00
regis@google.com
91ad9a0180
Remove support for interfaces.
...
For now, disable tests using obsolete syntax.
Tests disabled in this cl and in previous ones removing default factory classes
will either be deleted or updated in a later cl.
Review URL: https://codereview.chromium.org//11411271
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15562 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-30 01:26:31 +00:00
asiva@google.com
9d41d29b1a
Fix StringBase_createFromCodePoints to correctly accept Latin-1 characters
...
as one_byte_string.
Rename Dart_NewExternalUTF8String to Dart_NewExternalLatin1String, this reflects
the functionality correctly.
Review URL: https://codereview.chromium.org//11280241
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15554 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-29 23:43:47 +00:00
srdjan@google.com
bf3bac3884
Implement faster splitting with empty string as pattern. Add special native for computing substring of OneByteString (preparation for instrinsic).
...
Review URL: https://codereview.chromium.org//11416270
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15548 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-29 22:55:09 +00:00
aprelev@gmail.com
b09632ab95
Fix floating point issues on Windows.
...
BUG=dartbug.com/5407
TEST=
Review URL: https://chromiumcodereview.appspot.com//11411188
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15546 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-29 22:40:12 +00:00
lrn@google.com
d681878a6d
Revert "Switch libraries to using new tags."
...
It breaks completion in the editor.
TBR=danrubel@google.com
Review URL: https://codereview.chromium.org//11434030
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15516 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-29 13:44:58 +00:00
lrn@google.com
abd2cf311a
Switch libraries to using new tags.
...
Review URL: https://codereview.chromium.org//11419032
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15499 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-29 08:54:30 +00:00
regis@google.com
7e9531a1d2
Remove support for default factory classes.
...
For now, disable tests using obsolete syntax. More will get disabled as support
for interfaces is completely removed. We may then permanently remove some tests,
while updating and reenabling others whose purpose is not related to interfaces.
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15480 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-28 23:39:27 +00:00
srdjan@google.com
44f4011196
Improve performance of String.split for 1 and 0 character results.
...
Other cleanups/improvements in Random.
Review URL: https://codereview.chromium.org//11419194
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15429 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-28 01:17:25 +00:00
regis@google.com
1de3a5c0f7
Enforce rule in vm that factory name must match enclosing class name.
...
This is a step towards removing support for obsolete default factory classes.
For now, disable tests using obsolete syntax. More will get disabled as support
is completely removed. We may then permanently remove some tests, while updating
and reenabling others whose purpose is not related to default factory classes.
Review URL: https://codereview.chromium.org//11419191
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15428 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-28 01:11:29 +00:00
vegorov@google.com
d9929b4046
Fix throw statement in _InvocationMirror.invokeOn on VM's library.
...
UnsupportedOperation was renamed to UnsupportedError.
R=fschneider@google.com
Review URL: https://codereview.chromium.org//11414183
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15397 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-27 15:28:11 +00:00
tball@google.com
bf5f0db5d0
Added support for isolate unhandled exceptions.
...
BUG=
Review URL: https://codereview.chromium.org//11413101
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15352 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-26 23:31:47 +00:00
srdjan@google.com
21f624d006
Cleanups and added more checks for valid Integer allocation (must be Smi, Mint or Bigint for their corresponding range).
...
Integer boxing in compielr seems to check correctly fro smi/mint. Can you think of any other places where we could create incorrect Mints or Bigints?
Review URL: https://codereview.chromium.org//11421064
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15310 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-26 16:09:50 +00:00
ajohnsen@google.com
0f367f8894
Make List an abstract class.
...
This was the last interface in dart:core.
BUG=
Review URL: https://codereview.chromium.org//11417051
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15240 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-22 07:40:52 +00:00
hausner@google.com
65bf9cbb2a
Remove abstract from class members in dart libraries
...
Add VM flag to produce compile error for explicitly
defined abstract class members.
Review URL: https://codereview.chromium.org//11299121
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15210 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-21 17:23:35 +00:00
cshapiro@google.com
979571d3ee
Use a signed 32-bit integer for representing code points.
...
Review URL: https://codereview.chromium.org//11419086
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15188 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-21 00:30:27 +00:00
erikcorry@google.com
84da84c22d
Revert "Add some support for the code-point code-unit distinction."
...
This reverts commit r15150
R=karlklose@google.com
BUG=
Review URL: https://codereview.chromium.org//11411092
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15152 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-20 15:23:41 +00:00
erikcorry@google.com
547cbf9da6
Add some support for the code-point code-unit distinction.
...
Adds String.fromCodeUnits and String.codeUnitAt, and modifies
String.fromCodePoints and String.codePointAt to actually use code points.
Fixes String.charCodes to use code points and adds String.codeUnits.
Reenables some tests, and adds new ones for non-BMP characters.
Fixes issues 6418, 6501 and 1357.
R=floitsch@google.com
BUG=
Review URL: https://codereview.chromium.org//11368138
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15150 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-20 14:51:25 +00:00
lrn@google.com
22309b260c
Remove NullPointerException.
...
Accessing non-existing members on null now throws NoSuchMethodError.
Throwing a null value fails by throwing a NullThrownError.
Methods checking for null now generally throw new ArgumentError(null).
Committed: https://code.google.com/p/dart/source/detail?r=15061
Review URL: https://codereview.chromium.org//11415028
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15136 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-20 09:21:52 +00:00
ajohnsen@google.com
9de0ffac98
Use coreSort in bytearrays..
...
BUG=
Review URL: https://codereview.chromium.org//11280049
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15133 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-20 06:42:23 +00:00
fschneider@google.com
ecda9dd804
Add one-char string table for faster String.charAt to the VM.
...
This is used for a fast lookup when executing String.charAt.
Currently it is only used in the C-runtime, but the plan is to
generate optimized code for the table lookup for speeding up
String.charAt.
Review URL: https://codereview.chromium.org//11369259
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15088 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-19 16:06:19 +00:00
lrn@google.com
3450798a1d
Make Exception a class, not an interface, and remove the const constructor.
...
We should consider removing the constructor entirely, there is never a good excuse for throwing a non-descript Exception. If you do, it should likely be an Error instead.
Review URL: https://codereview.chromium.org//11369243
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15077 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-19 13:23:23 +00:00
lrn@google.com
0c8dce77f1
Revert "Remove NullPointerException."
...
Crashes in the x64 VM.
Review URL: https://codereview.chromium.org//11417058
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15065 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-19 09:59:59 +00:00
lrn@google.com
e211c2f0ee
Remove NullPointerException.
...
Accessing non-existing members on null now throws NoSuchMethodError.
Throwing a null value fails by throwing a NullThrownError.
Methods checking for null now generally throw new ArgumentError(null).
Review URL: https://codereview.chromium.org//11415028
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15061 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-19 08:51:49 +00:00
iposva@google.com
332bfdc7d6
- Remove obsolete random number generator from the VM code.
...
Review URL: https://codereview.chromium.org//11417049
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15058 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-19 06:12:32 +00:00
floitsch@google.com
f6fa33d28b
Add List.first.
...
BUG=http://dartbug.com/1790
Committed: https://code.google.com/p/dart/source/detail?r=15036
Review URL: https://codereview.chromium.org//11316059
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15040 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-16 21:58:01 +00:00
floitsch@google.com
7382cc8756
Revert "Add List.first."
...
This reverts commit r15036.
Review URL: https://codereview.chromium.org//11299048
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15038 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-16 21:33:49 +00:00
floitsch@google.com
7f5ac55b45
Add List.first.
...
BUG=http://dartbug.com/1790
Review URL: https://codereview.chromium.org//11316059
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15036 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-16 21:15:02 +00:00
iposva@google.com
7ae807a19c
- Move MathNatives from dart:core to dart:math.
...
- Split out double and integer parsing from MathNatives.
Review URL: https://codereview.chromium.org//11316031
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15032 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-16 19:42:02 +00:00
hausner@google.com
7eb3efc2ba
Fix native argument handling
...
Native functions need to fetch arguments differently if they are
called through a closure.
fixes issue 6696.
Review URL: https://codereview.chromium.org//11293290
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14937 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-15 01:14:01 +00:00