Ivan Posva
1fa2ef874d
- Rollback packageConfig/File/Spec updates for 1.13.
...
BUG=24691
R=sethladd@google.com
Review URL: https://codereview.chromium.org/1409343007 .
2015-10-22 16:22:17 -07:00
Siva Annamalai
99abe7d883
- Some cleanup of dynamic_type usage.
...
- Avoid egregious creation of handles in Class::CreateInvocationDispatcher
R=regis@google.com
Review URL: https://codereview.chromium.org/1409113006 .
2015-10-21 17:24:10 -07:00
John McCutchan
f55de246ec
More timeline cleanups
...
- Blocks are associated with threads and not isolates.
- Fix isolate filters when iterating over blocks and events.
- Always add the isolateNumber argument when serializing events.
- Add new (kSerializedJSON) EventType for events already serialized to JSON.
- Have events coming from Dart code use the standard event structure w/ type = kSerializedJSON.
- Remove now unused DartTimelineEvent and machinary.
- Dart and C++ events now use the same structures and system.
R=rmacnak@google.com
Review URL: https://codereview.chromium.org/1411783004 .
2015-10-20 09:14:23 -07:00
Srdjan Mitrovic
465cf10a7c
Remove some Isolate::current_zone() calls, as it gets the zone from mutator thread not the current thread
...
BUG=
R=zra@google.com
Review URL: https://codereview.chromium.org/1414493003 .
2015-10-19 10:27:36 -07:00
Regis Crelier
09954546fb
Add a 'secure' constructor to Random in dart:math returning a cryptographically
...
secure random generator which reads from the entropy source provided by the
embedder for every generated random value.
Add a test.
Fixes #1746 .
R=lrn@google.com
Review URL: https://codereview.chromium.org/1398453004 .
2015-10-15 10:16:03 -07:00
Srdjan Mitrovic
e520dd567f
Remove isolate argument from handle allocation: Part I
...
BUG=
R=hausner@google.com
Review URL: https://codereview.chromium.org/1393373003 .
2015-10-12 11:32:08 -07:00
Ivan Posva
60eab65aa0
- Implement package map parameter when spawning isolate.
...
BUG=
R=lrn@google.com
Review URL: https://codereview.chromium.org/1403693002 .
2015-10-12 09:05:37 -07:00
Lasse R.H. Nielsen
57f4827c76
Rename [packages] to [packageMap] as Isolate.spawnUri parameter.
...
This matches the static [packageMap] getter on Isolate.
Fixes issue #24545 .
BUG= http://dartbug.com/24545
R=floitsch@google.com
Review URL: https://codereview.chromium.org/1401713002 .
2015-10-12 16:31:48 +02:00
John McCutchan
1a0066816d
Add support for emitting asynchronous timeline events from Dart code
...
BUG=
R=rmacnak@google.com
Review URL: https://codereview.chromium.org/1397823002 .
2015-10-09 10:21:02 -07:00
Zachary Anderson
bb7f3a7501
Fixes RawReceivePort.hashCode
...
BUG=
R=asiva@google.com
Review URL: https://codereview.chromium.org/1386253003 .
2015-10-08 13:06:49 -07:00
John McCutchan
4831a1a315
Properly split dart:_vmservice across sdk and runtime
...
- This is needed to satisfy the GN build system (mojo, flutter).
- It also makes dart:_vmservice even more regular with othe rlibraries.
R=rmacnak@google.com
Review URL: https://codereview.chromium.org/1396603002 .
2015-10-07 13:19:55 -07:00
John McCutchan
535a9715ac
Remove deprecated dart:profiler library
...
Fixes #24510
R=turnidge@google.com
Review URL: https://codereview.chromium.org/1398433002 .
2015-10-07 10:01:33 -07:00
Srdjan Mitrovic
8c7a94e9f4
Preparation for moving reusable handles to thread and more cleanups: isolate -> thread based handle allocation.
...
BUG=
R=koda@google.com
Review URL: https://codereview.chromium.org/1384403002 .
2015-10-06 10:17:12 -07:00
John McCutchan
150e8d2757
Move dart:_vmservice native entries into bootstrap natives
...
With this CL the dart:_vmservice library is made regular with respect to other dart: builtin libraries.
R=rmacnak@google.com
Review URL: https://codereview.chromium.org/1390803002 .
2015-10-06 09:16:39 -07:00
John McCutchan
af0ab36f7c
Make dart:_vmservice a proper builtin library
...
- Drops custom resource table for sources.
- Stops loading dart:vmservice library by sources.
R=rmacnak@google.com
Review URL: https://codereview.chromium.org/1387043002 .
2015-10-06 07:58:14 -07:00
Lasse R.H. Nielsen
da8baacae4
Make root-zone handleUncaughtError rethrow with the correct stack.
...
Adds _rethrow function which reifies the stack trace of an async
error on the VM. There is no corresponding JS functionality, it still
just throws an AsyncError wrapper.
Fixes issue #24163
BUG= http://dartbug.com/24163
R=iposva@google.com , turnidge@google.com
Review URL: https://codereview.chromium.org//1383983002 .
2015-10-05 08:16:52 +02:00
Ivan Posva
ba6c0ace3e
- Add getters for the current packageRoot or packageMap to the Isolate class.
...
- Simplify loading in builtin.dart.
BUG=
R=asiva@google.com , lrn@google.com
Review URL: https://codereview.chromium.org//1334353002 .
2015-10-03 06:53:13 -07:00
John McCutchan
7b01e5fa11
Fix Mac dartium build
...
BUG=
Review URL: https://codereview.chromium.org/1380103006 .
2015-10-01 11:26:41 -07:00
John McCutchan
03b41129a2
Add Timeline to dart:developer
...
- This CL only adds support for synchronous blocks of time. A follow up CL will add asynchronous blocks of time.
- Reports true thread id to tracing system. This is an improvement over Mojo's tracing helper.
- Dart events are included in individual isolate traces and global traces obtained via the embedders API.
- Dart events are included in the write to disk path (--timeline_dir).
R=rmacnak@google.com
Review URL: https://codereview.chromium.org//1377663002 .
2015-10-01 09:30:47 -07:00
Lasse R.H. Nielsen
232a9d687e
Add "environment" parameter to spawnUri for String.fromEnvironment support.
...
This completes the parameters corresponding to official command line parameters
for the VM/dart2js.
R=floitsch@google.com , iposva@google.com , sigmund@google.com
Review URL: https://codereview.chromium.org//1350053002 .
2015-09-22 12:29:40 +02:00
Ryan Macnak
5ee2da4475
Spec says empty namedArguments is const {}, not const <Symbol, dynamic>{}.
...
BUG=http://dartbug.com/24331
R=gbracha@google.com
Review URL: https://codereview.chromium.org//1359503002 .
2015-09-18 17:05:35 -07:00
regis
e8139d4d92
Fix right shifting of a Mint value by an amount larger than 63.
...
Add regression test.
Enhance existing bit shift test.
Fixes #24283
R=ager@google.com
Review URL: https://codereview.chromium.org//1338233002 .
2015-09-14 18:20:48 +08:00
regis
9ca5ca6316
Fix a typo in Bigint dart implementation of modInverse.
...
Fixes #24324
Review URL: https://codereview.chromium.org//1344483003 .
2015-09-14 12:03:50 +08:00
Todd Turnidge
b0ca0789be
Fix a variety of service protocol bugs.
...
Add documentation for breakpoint.
Fix Instance.pattern documentation.
Fix Instance.bytes documentation.
Add class field for null instances.
Fix documentation of Context and closureContext.
Make getObject return Collected for deleted breakpoints.
Closes #24247
Closes #24249
Closes #24309
Closes #24325
Closes #24326
Closes #24327
BUG=
R=johnmccutchan@google.com
Review URL: https://codereview.chromium.org//1341473002 .
2015-09-11 12:29:21 -07:00
Lasse R.H. Nielsen
ff65079c47
Add packages parameter to Isolate.spawnUri.
...
No implementation supplied, marked as "not implemented everywhere".
BUG= http://dartbug.com/23951
R=iposva@google.com , sigmund@google.com
Review URL: https://codereview.chromium.org//1323373002 .
2015-09-11 13:07:54 +02:00
Lasse R.H. Nielsen
7464947ca0
Make Map constructor external to allow dart2js to specialize it.
...
Review URL: https://codereview.chromium.org//1330303002 .
2015-09-11 13:06:09 +02:00
Lasse R.H. Nielsen
d755dd65b9
Update range errors to agree on the numbers.
...
Also ensure that typed-data errors are consistent with other lists.
Fixes issue #24295
BUG= http://dartbug.com/24295
R=floitsch@google.com , iposva@google.com , sra@google.com
Review URL: https://codereview.chromium.org//1318943005 .
2015-09-11 13:05:36 +02:00
Siva Annamalai
79ef28317f
Changes to prepare for allowing script snapshots to be taken after running the main application:
...
- Rename accessors of class Field to make it more apparent as to what is being accessed (static field values or instance field offsets
- Use precompiled initializer state (Used only during precompilation) to also store saved initial value of static fields (Used only during application snapshot generation)
BUG=
R=hausner@google.com , rmacnak@google.com
Review URL: https://codereview.chromium.org//1289643005 .
2015-09-04 11:03:46 -07:00
Florian Schneider
7e40108ff5
VM: Simplify irregexp entry stub.
...
Pass on the incoming arguments descriptor when invoking an irregexp function.
Avoiding loading an arguments descriptor in the intrinsic code also allows
generated regexp code in precompiled code.
Loading a new descriptor is not necessary since the arguments are already on
the stack in the right order.
Use named constants for parameter indices in the regexp assembler.
BUG=
R=srdjan@google.com
Review URL: https://codereview.chromium.org//1305993005 .
2015-09-04 10:06:02 +02:00
Srdjan Mitrovic
d4365bc6f4
Lookup getter/setter symbols before alllocating them, thus eliminating extra String allocations in new space.
...
Various old space allocations, cleanups.
Add a test for Symbols concatenation.
BUG=
R=hausner@google.com
Review URL: https://codereview.chromium.org//1320673012 .
2015-09-03 14:09:34 -07:00
Ivan Posva
4bd7cdc75c
- Ensure that HandleScope is initialized with a thread. (Remove
...
deprecated isolate based API.)
- Update all code impacted by this change. E.g. DARTSCOPE
- TEST_CASE now passes the current thread as a parameter to the unit test.
BUG=
R=asiva@google.com
Review URL: https://codereview.chromium.org//1310463005 .
2015-09-01 17:18:55 -07:00
John McCutchan
7052bd6bed
Rework service extensions to be safe
...
- When scheduling a service extension to be invoked, store the closure in an array held in the isolate.
- At the tail of IsolateMessageHandler::HandleMessage, invoke all pending service extension closures.
R=iposva@google.com , turnidge@google.com
Review URL: https://codereview.chromium.org//1299493007 .
2015-08-27 11:23:39 -07:00
Seth Ladd
26eaf632cf
removes a return from a void function
...
BUG=
Review URL: https://codereview.chromium.org//1305583003 .
2015-08-20 13:40:29 -07:00
Ryan Macnak
360b40a599
Update return type of dart2js patch of dart:developer.log.
...
Review URL: https://codereview.chromium.org//1302823002 .
2015-08-19 13:42:53 -07:00
Florian Loitsch
debf1d6f7c
Don't zone-register async callbacks for every await call in the VM.
...
This has the nice side-effect that the stack_trace package provides nicer chains.
Fixes issue 23394.
R=hausner@google.com
Committed: https://github.com/dart-lang/sdk/commit/4dae43d63727268f2e0cc45d6020246eb49177b8
Reverted: https://github.com/dart-lang/sdk/commit/cb4f9fc925c5a92c6cf756751e38296383f66507
Review URL: https://codereview.chromium.org//1274133002 .
2015-08-17 19:26:50 +02:00
Florian Loitsch
cb4f9fc925
Revert "Don't zone-register async callbacks for every await call in the VM."
...
This reverts commit 4dae43d637 .
Review URL: https://codereview.chromium.org//1296973002 .
2015-08-17 16:43:35 +02:00
Florian Loitsch
4dae43d637
Don't zone-register async callbacks for every await call in the VM.
...
This has the nice side-effect that the stack_trace package provides nicer chains.
Fixes issue 23394.
R=hausner@google.com
Review URL: https://codereview.chromium.org//1274133002 .
2015-08-17 15:58:19 +02:00
Lasse R.H. Nielsen
edff0face7
Make String.allMatches lazy.
...
R=floitsch@google.com , iposva@google.com
Review URL: https://codereview.chromium.org//1273713003 .
2015-08-12 11:01:21 +02:00
Florian Schneider
b19d518ede
VM: Use const instead of final for constants in runtime libraries.
...
It does not make a difference for optimized code (final does not help in
optimized code either btw), but allows using those constants directly in
unoptimized code.
BUG=
R=srdjan@google.com
Review URL: https://codereview.chromium.org//1284873002 .
2015-08-12 09:40:22 +02:00
Srdjan Mitrovic
56c91201c3
Fix issue 24043: do not trust the pattern. Enable a 'hidden' test.
...
If there is a performance issues, I can add specialized code for String patterns.
BUG=24043
R=rmacnak@google.com
Review URL: https://codereview.chromium.org//1286823003 .
2015-08-11 14:46:17 -07:00
Ryan Macnak
b34267d0d7
Replace is_synthetic bit on Fields with is_reflectable. Mark private fields of dart:* as non-reflectable.
...
This fixes an inconsistency in mirrors where some classes in dart:* would claim to have a field but throw NSM if one attempts to access it, and prevents accessing private static fields of dart:* that don't have implicit getters or setters.
R=asiva@google.com
Review URL: https://codereview.chromium.org//1280713002 .
2015-08-06 16:48:01 -07:00
Ryan Macnak
b6c979f20b
Hoist InstanceMirror.delegate to ObjectMirror.
...
BUG=http://dartbug.com/14827
R=gbracha@google.com
Review URL: https://codereview.chromium.org//1273983002 .
2015-08-05 17:09:59 -07:00
Ivan Posva
e974b952a7
- Prevent getting an unmodifiable list being returned from List.from.
...
R=srdjan@google.com
Review URL: https://codereview.chromium.org//1275703002 .
2015-08-05 13:25:32 -07:00
Srdjan Mitrovic
caa3cce77e
Fix some TODOs
...
BUG=
R=regis@google.com
Review URL: https://codereview.chromium.org//1263963003 .
2015-08-04 17:13:22 -07:00
Ivan Posva
f63db4960c
- Implement resource loading via the Resource class.
...
R=asiva@google.com
Review URL: https://codereview.chromium.org//1264413002 .
2015-08-04 15:39:14 -07:00
John McCutchan
4505a79e58
Increment next sequence number
...
BUG=
Review URL: https://codereview.chromium.org//1260343004 .
2015-08-04 07:59:13 -07:00
John McCutchan
a2757141b0
Make dart:developer log more user friendly
...
- Make required arguments required.
- Validate required arguments in Dart before calling native.
- timestamp is now a DateTime.
- level has a default (ALL).
- sequence number is last + 1 if not provided.
R=lrn@google.com
Review URL: https://codereview.chromium.org//1266053003 .
2015-08-04 07:12:39 -07:00
John McCutchan
7640cf4b85
Fix test failure
...
patch from issue 1271693003 at patchset 20001 (http://crrev.com/1271693003#ps20001 )
Review URL: https://codereview.chromium.org//1270953003 .
2015-08-04 07:05:34 -07:00
William Hesse
bdda0eff52
Revert "Change msg to message in debugger function."
...
This reverts commit 2ae214316c .
BUG=
Review URL: https://codereview.chromium.org//1261203005 .
2015-08-04 15:22:47 +02:00
Lasse R.H. Nielsen
2ae214316c
Change msg to message in debugger function.
...
BUG=23949
R=johnmccutchan@google.com
Review URL: https://codereview.chromium.org//1271693003 .
2015-08-04 14:58:13 +02:00