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

Issue 1553233002: Add package config support to dart:isolate (Closed)

Created:
4 years, 11 months ago by Ivan Posva
Modified:
4 years, 11 months ago
CC:
reviews_dartlang.org, turnidge, rmacnak, Cutch, vm-dev_dartlang.org
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Add package config support to dart:isolate - Add "static Future<Uri> get packageRoot;", "static Future<Uri> get packageConfig;" and "static Future<Uri> resolvePackageUri(Uri packageUri)" to Isolate class. - Added "Uri packageRoot, Uri packageConfig, bool automaticPackageResolution: false" parameters to spawnUri. BUG= R=rmacnak@google.com Committed: https://github.com/dart-lang/sdk/commit/6d066c7e53f82b70c3a5bfc4916d8a0c9a26a6f4

Patch Set 1 #

Patch Set 2 : spawnUri implemented #

Patch Set 3 : Implement Isolate.resolvePackageUri #

Patch Set 4 : Added automaticResolution tests. #

Patch Set 5 : ToT #

Patch Set 6 : resolvePackageUri for dart2js #

Total comments: 21

Patch Set 7 : Addressed review comments. #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+648 lines, -222 lines) Patch
M runtime/bin/builtin.dart View 1 2 15 chunks +106 lines, -60 lines 0 comments Download
M runtime/bin/dartutils.h View 2 chunks +0 lines, -2 lines 0 comments Download
M runtime/bin/dartutils.cc View 1 2 3 4 5 6 5 chunks +6 lines, -37 lines 0 comments Download
M runtime/bin/gen_snapshot.cc View 1 2 chunks +1 line, -2 lines 0 comments Download
M runtime/bin/io_impl_sources.gypi View 1 2 2 chunks +5 lines, -0 lines 0 comments Download
M runtime/bin/main.cc View 1 2 3 4 5 6 5 chunks +6 lines, -32 lines 0 comments Download
M runtime/bin/platform_patch.dart View 1 chunk +16 lines, -8 lines 0 comments Download
M runtime/bin/vmservice/loader.dart View 1 chunk +3 lines, -1 line 0 comments Download
M runtime/bin/vmservice_dartium.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M runtime/bin/vmservice_impl.cc View 1 chunk +1 line, -1 line 0 comments Download
M runtime/include/dart_api.h View 1 1 chunk +1 line, -1 line 0 comments Download
M runtime/lib/internal_patch.dart View 1 2 1 chunk +5 lines, -4 lines 0 comments Download
M runtime/lib/isolate.cc View 1 2 3 4 10 chunks +40 lines, -35 lines 0 comments Download
M runtime/lib/isolate_patch.dart View 1 2 5 chunks +99 lines, -15 lines 0 comments Download
M runtime/vm/bootstrap_natives.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M runtime/vm/dart_api_impl_test.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/isolate.h View 1 2 3 4 4 chunks +6 lines, -3 lines 0 comments Download
M runtime/vm/isolate.cc View 1 2 3 4 6 chunks +10 lines, -14 lines 0 comments Download
M runtime/vm/isolate_test.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/js_runtime/lib/isolate_patch.dart View 1 2 3 4 5 2 chunks +21 lines, -1 line 0 comments Download
M sdk/lib/isolate/isolate.dart View 1 2 3 4 5 6 3 chunks +39 lines, -1 line 3 comments Download
A tests/isolate/package_config_test.dart View 1 2 3 1 chunk +39 lines, -0 lines 0 comments Download
A tests/isolate/package_resolve_test.dart View 1 2 3 1 chunk +51 lines, -0 lines 0 comments Download
A tests/isolate/package_root_test.dart View 1 chunk +34 lines, -0 lines 0 comments Download
A tests/isolate/scenarios/automatic_resolution_root/package_resolve_test.dart View 1 2 3 1 chunk +55 lines, -0 lines 0 comments Download
A tests/isolate/scenarios/automatic_resolution_spec/.packages View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
A tests/isolate/scenarios/automatic_resolution_spec/package_resolve_test.dart View 1 2 3 1 chunk +54 lines, -0 lines 0 comments Download
A tests/isolate/spawn_uri_fail_test.dart View 1 2 3 4 5 6 1 chunk +41 lines, -0 lines 0 comments Download
M tests/standalone/standalone.status View 1 2 3 4 5 6 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 13 (6 generated)
Ivan Posva
4 years, 11 months ago (2016-01-12 23:59:18 UTC) #4
rmacnak
https://codereview.chromium.org/1553233002/diff/100001/runtime/bin/dartutils.cc File runtime/bin/dartutils.cc (right): https://codereview.chromium.org/1553233002/diff/100001/runtime/bin/dartutils.cc#newcode661 runtime/bin/dartutils.cc:661: const char* packages_file) { packages_file -> package_config https://codereview.chromium.org/1553233002/diff/100001/runtime/bin/dartutils.cc#newcode763 runtime/bin/dartutils.cc:763: ...
4 years, 11 months ago (2016-01-13 01:39:00 UTC) #5
kevmoo
DBC https://codereview.chromium.org/1553233002/diff/100001/sdk/lib/isolate/isolate.dart File sdk/lib/isolate/isolate.dart (right): https://codereview.chromium.org/1553233002/diff/100001/sdk/lib/isolate/isolate.dart#newcode265 sdk/lib/isolate/isolate.dart:265: external static Future<Isolate> spawnUri( Document the new arguments
4 years, 11 months ago (2016-01-13 01:40:18 UTC) #7
Ivan Posva
PTAL -ip https://codereview.chromium.org/1553233002/diff/100001/runtime/bin/dartutils.cc File runtime/bin/dartutils.cc (right): https://codereview.chromium.org/1553233002/diff/100001/runtime/bin/dartutils.cc#newcode661 runtime/bin/dartutils.cc:661: const char* packages_file) { On 2016/01/13 01:38:59, ...
4 years, 11 months ago (2016-01-13 02:13:15 UTC) #9
rmacnak
lgtm
4 years, 11 months ago (2016-01-13 02:16:07 UTC) #10
Ivan Posva
Committed patchset #7 (id:120001) manually as 6d066c7e53f82b70c3a5bfc4916d8a0c9a26a6f4 (presubmit successful).
4 years, 11 months ago (2016-01-13 02:19:09 UTC) #12
kevmoo
4 years, 11 months ago (2016-01-13 02:21:19 UTC) #13
Message was sent while issue was closed.
A few more questions on the doc commetns

https://codereview.chromium.org/1553233002/diff/120001/sdk/lib/isolate/isolat...
File sdk/lib/isolate/isolate.dart (right):

https://codereview.chromium.org/1553233002/diff/120001/sdk/lib/isolate/isolat...
sdk/lib/isolate/isolate.dart:256: *
Need notes on the behavior if both `packageRoot` and `packageConfig` are
provided

https://codereview.chromium.org/1553233002/diff/120001/sdk/lib/isolate/isolat...
sdk/lib/isolate/isolate.dart:257: * If the [automaticPackageResolution]
parameter is provided, then the
provided => `true`.

https://codereview.chromium.org/1553233002/diff/120001/sdk/lib/isolate/isolat...
sdk/lib/isolate/isolate.dart:259: * determined.
determined how?

How does this relate to packageRoot and packageConfig?

Powered by Google App Engine
This is Rietveld 408576698