ngeoffray@google.com
2015e5f204
Fix an old TODO.
...
R=floitsch@google.com
Review URL: https://codereview.chromium.org//107333003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31253 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-19 10:40:53 +00:00
iposva@google.com
1e8061f060
- Remove the reply_port from the VM internal message object.
...
- Adjust all the uses of this API.
R=johnmccutchan@google.com
Review URL: https://codereview.chromium.org//93873015
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31205 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-17 21:11:18 +00:00
rmacnak@google.com
5e3a80268a
Partially implement LibraryMirror.topLevelMembers.
...
BUG=http://dartbug.com/14632
R=asiva@google.com , gbracha@google.com
Review URL: https://codereview.chromium.org//111643012
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31202 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-17 19:20:03 +00:00
rmacnak@google.com
7809fb4276
Remove dead isLocalPort from the VM mirrors implementation.
...
Review URL: https://codereview.chromium.org//115153007
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31199 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-17 18:02:14 +00:00
iposva@google.com
e100129f8e
- Use canonicalized type of non-parameterized classes when
...
available.
- Do not attempt to make types for objects of Context.
R=fschneider@google.com , regis@google.com
Review URL: https://codereview.chromium.org//102053010
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31194 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-17 16:59:14 +00:00
rmacnak@google.com
e5d7ada6e9
VM: Support calling through getters in InstanceMirror.delegate.
...
Implement without accessing private members of dart:core. Fix language test expecting wrong return value.
BUG=http://dartbug.com/15138
R=fschneider@google.com
Review URL: https://codereview.chromium.org//114713002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31140 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-13 18:33:45 +00:00
floitsch@google.com
0c8ac24661
Isolate.spawn{Uri} only reports errors asynchronously.
...
It is generally considered bad style to throw synchronous and asynchronous errors. This CL catches all synchronous errors and reports them in the asynchronous future that is returned.
R=iposva@google.com , lrn@google.com
Review URL: https://codereview.chromium.org//88783002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31131 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-13 13:05:28 +00:00
lrn@google.com
86edf90273
Add num.sign getter.
...
BUG= http://dartbug.com/15580
R=sgjesse@google.com
Review URL: https://codereview.chromium.org//113833002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31126 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-13 12:10:23 +00:00
rmacnak@google.com
967a6c96e9
VM: Match language error when attempting to reflectively instantiate an abstract class.
...
R=srdjan@google.com
Review URL: https://codereview.chromium.org//114593002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31115 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-12 22:34:10 +00:00
regis@google.com
fb6d24945f
Introduce class TypeRef in the VM to fully support recursive types.
...
Fix issues 15244, 15148, 14869, 14000, and 13688 (was closed, but fragile).
Note that the current solution is not final as it may not be correct in more
complex cases not yet covered by language tests.
The final solution will require a 'trail' instead of a simple mark bit to
prevent operations involving recursive types to diverge.
R=asiva@google.com
Review URL: https://codereview.chromium.org//103913005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31087 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-11 22:51:19 +00:00
rmacnak@google.com
0bc05d6c3c
VM: Make ObjectMirror.invoke support getters returning functions.
...
BUG=http://dartbug.com/15138
R=asiva@google.com
Review URL: https://codereview.chromium.org//112193002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31076 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-11 19:43:48 +00:00
rmacnak@google.com
068f6286ca
Implement topLevelMembers, staticMembers, instanceMembers in the VM.
...
BUG=http://dartbug.com/14632
R=asiva@google.com , gbracha@google.com
Review URL: https://codereview.chromium.org//67203002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31056 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-11 02:08:16 +00:00
rmacnak@google.com
3975640225
Remove implementation of deprecated mirror API from the VM.
...
(Redo of r30005)
BUG=http://dartbug.com/14931
Review URL: https://codereview.chromium.org//105163002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30864 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-04 19:01:51 +00:00
rmacnak@google.com
ff7c98d758
Revert "Remove implementation of deprecated mirror API from the VM."
...
BUG=
Review URL: https://codereview.chromium.org//99473008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30806 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-03 00:54:02 +00:00
rmacnak@google.com
fdeb88dda0
Remove implementation of deprecated mirror API from the VM.
...
(Redo of r30005)
BUG=http://dartbug.com/14931
Review URL: https://codereview.chromium.org//85753008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30805 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-03 00:34:09 +00:00
floitsch@google.com
4b316431fa
Implement scheduleImmediate for the VM.
...
BUG= http://dartbug.com/9001
R=iposva@google.com
Review URL: https://codereview.chromium.org//79243002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30797 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-02 16:27:07 +00:00
johnmccutchan@google.com
ff20eb09b0
Support Bigint parameters in Int32x4 constructor
...
https://code.google.com/p/dart/issues/detail?id=15130
R=srdjan@google.com
Review URL: https://codereview.chromium.org//88983004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30686 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-26 23:46:27 +00:00
johnmccutchan@google.com
f40c74c3de
Remove type annotation from _TypedListBase
...
BUG=https://code.google.com/p/dart/issues/detail?id=12861
R=hausner@google.com
Review URL: https://codereview.chromium.org//80993003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30685 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-26 23:35:35 +00:00
lrn@google.com
ef66be8610
Change Expect.identical(NaN, x) to not assume NaNs are identical.
...
R=floitsch@google.com
Review URL: https://codereview.chromium.org//87953002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30667 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-26 10:32:51 +00:00
lrn@google.com
e1b4afa85d
Add num.parse.
...
The implementation is still primitive: It calls int.parse, then double.parse, and then fails if it hasn't found a result yet.
BUG= http://dartbug.com/8237
R=floitsch@google.com
Committed: https://code.google.com/p/dart/source/detail?r=30624
Review URL: https://codereview.chromium.org//85633003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30663 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-26 08:44:38 +00:00
rmacnak@google.com
314da361f0
Add demangle utility to Dartium's dart:html. Demangle typedef names in UserVisibleName.
...
BUG=http://dartbug.com/14892
R=asiva@google.com , vsm@google.com
Review URL: https://codereview.chromium.org//79023010
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30636 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-25 18:31:20 +00:00
lrn@google.com
f5bf3613dc
Revert "Add num.parse."
...
Fails on IE9.
Review URL: https://codereview.chromium.org//85623004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30631 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-25 14:52:23 +00:00
lrn@google.com
e0f3bb3092
Add num.parse.
...
The implementation is still primitive: It calls int.parse, then double.parse, and then fails if it hasn't found a result yet.
BUG= http://dartbug.com/8237
R=floitsch@google.com
Review URL: https://codereview.chromium.org//85633003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30624 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-25 13:09:04 +00:00
ajohnsen@google.com
03c7cf69f3
Add optimized String.fromCharCodes path for Uint8List and Int8List.
...
BUG=
R=srdjan@google.com
Review URL: https://codereview.chromium.org//74423005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30496 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-21 06:12:01 +00:00
lrn@google.com
ed814958fc
Fix VM not accepting static methods for Isolate.spawn.
...
BUG= http://dartbug.com/3011
Committed: https://code.google.com/p/dart/source/detail?r=30300
R=iposva@google.com
Review URL: https://codereview.chromium.org//68813002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30442 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-20 09:14:30 +00:00
rmacnak@google.com
a9c7171aa2
Allow creation of public symbols using MirrorSystem.getSymbol when passing a null library.
...
R=asiva@google.com , gbracha@google.com
Review URL: https://codereview.chromium.org//61753019
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30435 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-20 01:33:24 +00:00
rmacnak@google.com
caa3e25e0a
Move non-caching fields to the top of mirror classes.
...
R=asiva@google.com
Review URL: https://codereview.chromium.org//63903006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30384 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-19 00:46:01 +00:00
rmacnak@google.com
2e89f4f4d6
Drop "Impl" suffix from local mirror class names.
...
R=asiva@google.com
Review URL: https://codereview.chromium.org//63393003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30321 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-15 22:44:44 +00:00
regis@google.com
2a355a7bb6
Lazily format LanguageError messages (fix issue 15069).
...
R=iposva@google.com
Review URL: https://codereview.chromium.org//68113028
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30308 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-15 18:54:24 +00:00
lrn@google.com
a43c644f63
Make SendPortImpl_internalSend not take a reply port as argument.
...
The reply port is still there in the internal Message structure,
where it is used by control messages.
BUG= http://dartbug.com/14731
R=fschneider@google.com
Review URL: https://codereview.chromium.org//73783002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30302 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-15 11:28:23 +00:00
lrn@google.com
ab18829ae4
Revert "Fix VM not accepting static methods for Isolate.spawn."
...
Comitted by mistake.
Review URL: https://codereview.chromium.org//73893004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30301 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-15 11:23:47 +00:00
lrn@google.com
b0e40ddc70
Fix VM not accepting static methods for Isolate.spawn.
...
BUG= http://dartbug.com/3011
Review URL: https://codereview.chromium.org//68813002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30300 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-15 10:28:32 +00:00
rmacnak@google.com
bc39a8afe8
When ClassMirrors are created by enumerating members of a LibraryMirror, have the ClassMirror use that LibraryMirror as its owner.
...
BUG=http://dartbug.com/14449
R=asiva@google.com
Review URL: https://codereview.chromium.org//68103016
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30291 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-14 20:35:59 +00:00
regis@google.com
694401d38e
Rename mixin typedef to mixin application alias in VM.
...
R=hausner@google.com , rmacnak@google.com
Review URL: https://codereview.chromium.org//71693003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30277 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-14 17:42:39 +00:00
lrn@google.com
207f0e6a3f
Update and fix isolate documentation.
...
Review URL: https://codereview.chromium.org//66303012
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30221 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-13 09:34:58 +00:00
rmacnak@google.com
1dcc9ea681
Ensure constructorName symbols include private manglings.
...
R=asiva@google.com , gbracha@google.com
Review URL: https://codereview.chromium.org//53883002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30178 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-11 23:08:38 +00:00
regis@google.com
e3da5e16e4
Check type bounds of redirecting factories (issue 14699).
...
Add tests for malbounded redirecting factories.
Clean up bound checking code and type error reporting code.
R=hausner@google.com
Review URL: https://codereview.chromium.org//66033006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30177 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-11 22:59:48 +00:00
rmacnak@google.com
cc3e05ea99
Implement VariableMirror.isConst in the VM and ParameterMirror.isConst in dart2js.
...
BUG=http://dartbug.com/14671
R=ahe@google.com , asiva@google.com , gbracha@google.com
Review URL: https://codereview.chromium.org//58183003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30161 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-11 17:54:58 +00:00
rmacnak@google.com
93d342b42e
Use the runtime for generic subsitution of variable types, return types, parameter types.
...
BUG=http://dartbug.com/14613
BUG=http://dartbug.com/14156
R=gbracha@google.com , regis@google.com
Review URL: https://codereview.chromium.org//62273003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30120 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-08 17:54:59 +00:00
srdjan@google.com
16f4e5c690
Constant fold strict comparison based on incoming types: different (exact) types means that the result is false. LoadStaticField computes type for final fields. Make a temporary buffer final.
...
R=kmillikin@google.com
Review URL: https://codereview.chromium.org//57703004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30119 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-08 17:42:45 +00:00
iposva@google.com
1cae21b556
- Reverting mirror changes.
...
Review URL: https://codereview.chromium.org//62373008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30029 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-07 02:07:37 +00:00
iposva@google.com
d27c33b5b2
- Reverting mirror changes.
...
Review URL: https://codereview.chromium.org//61873007
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30028 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-07 01:57:18 +00:00
rmacnak@google.com
8113397b88
Revert removed mirror API from VM.
...
Review URL: https://codereview.chromium.org//62373006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30023 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-07 01:15:17 +00:00
rmacnak@google.com
1caa73df59
Remove implementations of mirror methods not in the API from the VM. Update tests.
...
R=iposva@google.com
Review URL: https://codereview.chromium.org//63063002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30005 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-06 22:30:45 +00:00
iposva@google.com
070d3dedf7
- Add a per-isolate pseudo random number generator to the
...
VM internals. This PRNG is not used to generate random
numbers in Dart code.
- Use the PRNG to generate JIT cookies for large constants
if needed during assembly.
- Add the possibility to set an external entropy source
for the PRNG through the C API.
R=asiva@google.com
Review URL: https://codereview.chromium.org//59773007
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29950 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-06 00:59:46 +00:00
srdjan@google.com
2b9fad92c7
In preparation of inlining remainder and modulo binary Smi operations:
...
- Add REM token
- Fix checking of function fingerprints.
- Remove unused intrinsic for remainder (the function gets inlined and intrinsic is not generated)
R=hausner@google.com
Review URL: https://codereview.chromium.org//59933004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29929 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-05 19:27:46 +00:00
floitsch@google.com
6c7a77524d
Add missing ByteData.elementSizeInBytes.
...
BUG= http://dartbug.com/12881
R=johnmccutchan@google.com
Review URL: https://codereview.chromium.org//58943002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29918 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-05 18:04:42 +00:00
iposva@google.com
3dced243b3
Fix http://dartbug.com/14763
...
- Find main in the exported names of the root library.
- Unify how the main function is called from spawnUri
and the initial isolate.
Review URL: https://codereview.chromium.org//48713013
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29865 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-05 00:55:41 +00:00
johnmccutchan@google.com
29c01044bc
This is the final breaking change in dart:typed_data needed for Dart 1.0. We need this change because the ECMAScript SIMD specification only includes Int32x4 and Int32x4List and our types must match.
...
R=srdjan@google.com
Review URL: https://codereview.chromium.org//56023004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29849 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-04 21:56:59 +00:00
floitsch@google.com
ecb4291d96
Remove deprecated second argument to SendPort.send().
...
R=ajohnsen@google.com
Review URL: https://codereview.chromium.org//51393004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29836 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-04 19:01:11 +00:00