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

Issue 2031103002: Fix canonicalization of --url_mapping URIs in gen_snapshot (Closed)

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

Description

Fix canonicalization of --url_mapping URIs in gen_snapshot When gen_snapshot encounters a url that has been remapped with the --url_mapping command line argument it rewrites the library's url to be the mapped url before canonicalization. The new C++ API only does canonicalization with respect to the library's url (as returned by Dart_LibraryUrl) which is insufficient for gen_snapshot. The correct long-term fix is to alter the new C++ API to allow for the base url to be passed in directly rather than indirectly via Dart_LibraryUrl. This CL just restores some deleted code and has gen_snapshot work like it did before. The standalone embedder still uses the C++ API during loading. Dartium build failures: https://build.chromium.org/p/client.dart/builders/dartium-mac-inc-be/builds/12488/steps/compile/logs/stdio Committed: https://github.com/dart-lang/sdk/commit/d47866964cc6e3a6c00f50ab539f383408c78bf2

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -1 line) Patch
M runtime/bin/builtin.dart View 1 chunk +23 lines, -0 lines 0 comments Download
M runtime/bin/dartutils.h View 1 chunk +1 line, -0 lines 0 comments Download
M runtime/bin/dartutils.cc View 1 chunk +12 lines, -0 lines 0 comments Download
M runtime/bin/gen_snapshot.cc View 2 chunks +27 lines, -1 line 0 comments Download

Messages

Total messages: 7 (5 generated)
Cutch
TBR
4 years, 6 months ago (2016-06-02 21:51:49 UTC) #4
Cutch
4 years, 6 months ago (2016-06-02 21:52:47 UTC) #6
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
d47866964cc6e3a6c00f50ab539f383408c78bf2 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698