Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Issue 2931193002: Remove dart:_vmservice and dart:vmservice_io from platform.dill. (Closed)

Created:
3 years, 6 months ago by sivachandra
Modified:
3 years, 6 months ago
CC:
reviews_dartlang.org, Siggi Cherem (dart-lang), ahe, rmacnak
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Remove dart:_vmservice and dart:vmservice_io from platform.dill. A mirrors test which now passes has been removed from the blacklist. R=asiva@google.com Committed: https://github.com/dart-lang/sdk/commit/a879f91420b4b1838950fe9482a02ed9b32f429d

Patch Set 1 #

Total comments: 3

Patch Set 2 : Remove a test from blacklists as it passing now #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -17 lines) Patch
M pkg/kernel/lib/target/vm.dart View 1 chunk +0 lines, -2 lines 0 comments Download
M tests/lib/lib.status View 1 1 chunk +0 lines, -1 line 0 comments Download
M tests/lib_strong/lib_strong_kernel.status View 1 1 chunk +0 lines, -1 line 0 comments Download
M tools/patch_sdk.dart View 2 chunks +1 line, -13 lines 0 comments Download

Messages

Total messages: 12 (4 generated)
sivachandra
As discussed offline, this is the first step of the goal towards loading the service ...
3 years, 6 months ago (2017-06-09 21:48:43 UTC) #2
siva
https://codereview.chromium.org/2931193002/diff/1/tools/patch_sdk.dart File tools/patch_sdk.dart (right): https://codereview.chromium.org/2931193002/diff/1/tools/patch_sdk.dart#newcode204 tools/patch_sdk.dart:204: locations["_vmservice"] = "vmservice/vmservice.dart"; Do we still need to copy ...
3 years, 6 months ago (2017-06-09 22:54:50 UTC) #3
sivachandra
https://codereview.chromium.org/2931193002/diff/1/tools/patch_sdk.dart File tools/patch_sdk.dart (right): https://codereview.chromium.org/2931193002/diff/1/tools/patch_sdk.dart#newcode204 tools/patch_sdk.dart:204: locations["_vmservice"] = "vmservice/vmservice.dart"; On 2017/06/09 22:54:50, siva wrote: > ...
3 years, 6 months ago (2017-06-12 20:39:43 UTC) #4
siva
LGTM but can we file an issue to track this issue of having to trick ...
3 years, 6 months ago (2017-06-13 02:15:43 UTC) #5
sivachandra
On 2017/06/13 02:15:43, siva wrote: > LGTM but can we file an issue to track ...
3 years, 6 months ago (2017-06-13 16:14:04 UTC) #6
sivachandra
Committed patchset #2 (id:20001) manually as a879f91420b4b1838950fe9482a02ed9b32f429d (presubmit successful).
3 years, 6 months ago (2017-06-13 20:49:44 UTC) #9
Siggi Cherem (dart-lang)
lgtm
3 years, 6 months ago (2017-06-13 23:58:05 UTC) #11
Siggi Cherem (dart-lang)
3 years, 6 months ago (2017-06-14 00:12:39 UTC) #12
Message was sent while issue was closed.
https://codereview.chromium.org/2931193002/diff/1/tools/patch_sdk.dart
File tools/patch_sdk.dart (right):

https://codereview.chromium.org/2931193002/diff/1/tools/patch_sdk.dart#newcod...
tools/patch_sdk.dart:204: locations["_vmservice"] = "vmservice/vmservice.dart";
On 2017/06/12 20:39:43, sivachandra wrote:
> On 2017/06/09 22:54:50, siva wrote:
> > Do we still need to copy the vmservice_io.dart, loader.dart and server.dart
> etc.
> > to the patched_sdk folder and add their locations to the map?
> 
> I think what you are saying is that, if the vmservice related scripts are not
> going to be part of platform.dill anymore, then we do not need to copy them
over
> to the patched_sdk; One could potentially compile them directly from the
source
> tree. Is this correct?
> 
> My understanding is that, since we are compiling a "dart:*" library, the only
> way currently is to trick the fasta compiler into thinking that
> dart:vmservice_io is part of "platform". So, to do this trick, we copy the
> vmservice_io related files over to patched_sdk. That way, the compiler can
> resolve dart:vmservice_io when it sees it in patched_sdk.

It is actually possible to avoid the copying if we set here the location of
vmservice.dart in the source tree instead. This wasn't possible a couple weeks
ago, but now the input to the compiler is a .json file describining where to
find the sources. That .json file is created using this `locations` map here.
Note that to make it work this needs to be a relative path from the the json
file, which is emitted in the patched_sdk folder (e.g.
out/ReleaseX64/patched_sdk/libraries.json) and there may be small differences
depending on the architecture (win/mac/linux).

Just to be clear. We still need to copy the SDK libraries that contain
patch-files until we add patching support in fasta.

Question: do you need to continue using `dart:*` URIs for these libraries? Or
can they be a regular script or a script with a native extension? If you must
use dart:*, then we can skip the copying, if however it is possible to make them
a script, I'd rather move in that direction.

Powered by Google App Engine
This is Rietveld 408576698