Devon Carew
45a5bc063a
Mark the Script.source field as nullable.
...
Change-Id: I1f176c7aa75eb9a15d3e237d894395632830291e
Reviewed-on: https://dart-review.googlesource.com/c/77981
Reviewed-by: Siva Annamalai <asiva@google.com >
Commit-Queue: Devon Carew <devoncarew@google.com >
2018-10-03 22:59:17 +00:00
Ryan Macnak
7f9a9feae1
[vm, service] Rename 'invoke' parameter 'receiverId' to 'targetId'.
...
For consistency with the documentation and other service methods.
Change-Id: Ife4a4cf2445b7dad72e0a911fe1b94cec6ab5db5
Reviewed-on: https://dart-review.googlesource.com/77007
Reviewed-by: Devon Carew <devoncarew@google.com >
Commit-Queue: Ryan Macnak <rmacnak@google.com >
2018-09-27 22:02:42 +00:00
Danny Tuppeny
805c92cf32
Add @TypeArguments as a valid type for BoundVariable.value
...
Change-Id: I47075c5ed5228f112b45ce4a7966e809aadc8682
Reviewed-on: https://dart-review.googlesource.com/73540
Reviewed-by: Régis Crelier <regis@google.com >
Reviewed-by: Ryan Macnak <rmacnak@google.com >
Commit-Queue: Danny Tuppeny <dantup@google.com >
2018-09-11 02:26:39 +00:00
Ryan Macnak
7b9fb893d2
[vm] Add a service method for 'invoke' as the dual to 'eval'.
...
Refactor the implementation of 'invoke' for sharing between the embedding API, mirrors, and the VM service. The fixes various issues in the embedding API:
- Dart_Invoke, Dart_GetField and Dart_SetField now generate the same NoSuchMethodErrors as dart:mirrors and ordinary Dart code.
- Dart_GetField and Dart_SetField now accept a null receiver.
- Dart_GetField now handles closurization.
- Dart_Invoke now handles calls through function-typed getters.
In mirrors, it also changes:
- LibraryMirror.invoke/getField/setField now see members in the export namespace, not just local declarations. I.e., invocation with a LibraryMirror behaves the same ways as invocation against a library prefix in ordinary Dart code.
Bug: https://github.com/dart-lang/sdk/issues/11870
Bug: https://github.com/dart-lang/sdk/issues/13643
Bug: https://github.com/dart-lang/sdk/issues/29893
Bug: https://github.com/dart-lang/sdk/issues/33417
Bug: https://github.com/dart-lang/sdk/issues/34006
Change-Id: I913e8eef16943a3e86eda55c8d122819e41ad7cc
Reviewed-on: https://dart-review.googlesource.com/67302
Reviewed-by: Siva Annamalai <asiva@google.com >
2018-08-09 18:16:03 +00:00
Alexander Aprelev
a5e41681e5
Add support for expression compilation via service.
...
If there is registered expression compiler, VM debugger uses it to compile expressions. Otherwise, it will fallback to use kernel service compiler.
This is needed to support Flutter use case where compiler is running on developer's host machine, not on the device where VM is running.
Bug: dartbug.com/31981
Change-Id: I8bdfc8ab45a57c306169abe189f1e24e1b0bcf40
Reviewed-on: https://dart-review.googlesource.com/57520
Commit-Queue: Alexander Aprelev <aam@google.com >
Reviewed-by: Siva Annamalai <asiva@google.com >
Reviewed-by: Ryan Macnak <rmacnak@google.com >
2018-06-05 04:16:39 +00:00
Alexander Aprelev
fc206a7589
Add Kill isolate service request.
...
This is useful when embedder needs to kill an isolate that might be paused on a breakpoint.
Change-Id: If54decda5d16c694b81a25ae43d37f8eb41e8105
Reviewed-on: https://dart-review.googlesource.com/55276
Commit-Queue: Alexander Aprelev <aam@google.com >
Reviewed-by: Ryan Macnak <rmacnak@google.com >
2018-05-21 20:00:58 +00:00
Paul Berry
98d7796662
Fix some minor typos in the service protocol documentation.
...
Change-Id: I05481d6bf167fee57f27d769906ec1f8f5b3b6c4
Reviewed-on: https://dart-review.googlesource.com/54711
Reviewed-by: Ryan Macnak <rmacnak@google.com >
Commit-Queue: Paul Berry <paulberry@google.com >
2018-05-14 17:58:59 +00:00
Ryan Macnak
4c0a09b79f
[vm-service] Add setFlag.
...
Bug: https://github.com/dart-lang/sdk/issues/32709
Change-Id: I7777b005c477574c93430d56ede6cde2cd421203
Reviewed-on: https://dart-review.googlesource.com/48803
Commit-Queue: Ryan Macnak <rmacnak@google.com >
Reviewed-by: Todd Volkert <tvolkert@google.com >
Reviewed-by: Siva Annamalai <asiva@google.com >
2018-03-30 18:17:55 +00:00
Devon Carew
e3c8338fad
Specify sentinels in the return type for evaluateInFrame.
...
BUG=
R=rmacnak@google.com
Review-Url: https://codereview.chromium.org/2999103002 .
2017-08-16 15:14:27 -07:00
Devon Carew
ae80af3abb
Add a missing comma.
...
BUG=
R=rmacnak@google.com
Review-Url: https://codereview.chromium.org/2949243002 .
2017-06-22 09:58:52 -07:00
Ryan Macnak
03a2c24edf
vm-service: Add optional 'scope' parameter to 'evaluate' and 'evaluateInFrame'.
...
Closes #29535
R=asiva@google.com
Review-Url: https://codereview.chromium.org/2872503004 .
2017-05-18 18:02:49 -07:00
John McCutchan
4c4c9f2ce6
Fix test failure and add new awaiterFrames to service_dev.md
...
BUG=
Review-Url: https://codereview.chromium.org/2788993002 .
2017-03-31 13:18:07 -07:00
John McCutchan
d8555fb5a8
Include the awaiter stack trace in the service protocol
...
- [x] Include the (non-empty) awaiter stack trace in every `getStack` RPC.
- [x] Append the causal stack trace to the final frame of the awaiter stack trace.
- [x] Unit test for awaiter stack trace.
BUG=
R=rmacnak@google.com
Review-Url: https://codereview.chromium.org/2782703002 .
2017-03-29 06:56:50 -07:00
Devon Carew
957961d7d3
Update the service protocol dev spec - some fields are now optional.
...
BUG=
R=johnmccutchan@google.com
Review-Url: https://codereview.chromium.org/2692923004 .
2017-02-15 06:48:16 -08:00
Devon Carew
a90c2e9ed1
Service protocol updates for the recent async work.
...
BUG=
R=johnmccutchan@google.com
Review-Url: https://codereview.chromium.org/2683323004 .
2017-02-10 16:25:26 -08:00