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

Issue 2011543002: Canonicalize uris in C++ instead of Dart for the standalone embedder. (Closed)

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

Description

Canonicalize uris in C++ instead of Dart for the standalone embedder. Adds Dart_DefaultCanonicalizeUrl() to the dart embedding api. Motivation: As we try to get source reloading working for the standalone embedder, things get simpler if an isolate doesn't run Dart code while it is loading Dart code. We intend to solve this by moving the embedder tag handler calls to the service isolate. But making a blocking rpc into the service isolate whenever a url needs to be canonicalized during parsing seems like it would slow things down and make things complicated. By moving canonicalization into C++, we avoid this. R=ahe@google.com, fschneider@google.com, johnmccutchan@google.com Committed: https://github.com/dart-lang/sdk/commit/a7d46eb5a687f5b12571966c1df17660877a2ff9

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Total comments: 33

Patch Set 6 : Code review 1/2 #

Patch Set 7 : more code review fixes #

Total comments: 1

Patch Set 8 : more code review #

Patch Set 9 : fixz release build #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1386 lines, -122 lines) Patch
M runtime/bin/builtin.dart View 1 chunk +0 lines, -19 lines 0 comments Download
M runtime/bin/dartutils.h View 1 chunk +0 lines, -1 line 0 comments Download
M runtime/bin/dartutils.cc View 4 chunks +4 lines, -21 lines 0 comments Download
M runtime/bin/gen_snapshot.cc View 2 chunks +1 line, -26 lines 0 comments Download
M runtime/include/dart_api.h View 1 2 3 4 5 6 7 1 chunk +22 lines, -2 lines 0 comments Download
M runtime/vm/dart_api_impl.cc View 1 2 3 4 5 6 7 2 chunks +26 lines, -0 lines 0 comments Download
M runtime/vm/isolate_reload_test.cc View 21 chunks +34 lines, -34 lines 0 comments Download
M runtime/vm/unit_test.cc View 1 2 3 4 5 6 7 4 chunks +5 lines, -19 lines 0 comments Download
A runtime/vm/uri.h View 1 2 3 4 5 1 chunk +33 lines, -0 lines 0 comments Download
A runtime/vm/uri.cc View 1 2 3 4 5 6 7 1 chunk +554 lines, -0 lines 0 comments Download
A runtime/vm/uri_test.cc View 1 2 3 4 5 6 7 8 1 chunk +681 lines, -0 lines 0 comments Download
M runtime/vm/vm_sources.gypi View 1 chunk +3 lines, -0 lines 0 comments Download
M runtime/vm/zone.h View 1 chunk +4 lines, -0 lines 0 comments Download
M runtime/vm/zone.cc View 1 chunk +15 lines, -0 lines 0 comments Download
M tests/corelib/uri_test.dart View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (5 generated)
turnidge
4 years, 7 months ago (2016-05-24 19:55:09 UTC) #2
Cutch
LGTM (with a some nits). I just have some questions around the API shape as ...
4 years, 7 months ago (2016-05-24 23:53:46 UTC) #3
ahe
I'm confused about NormalizeEscapes. https://codereview.chromium.org/2011543002/diff/80001/runtime/include/dart_api.h File runtime/include/dart_api.h (right): https://codereview.chromium.org/2011543002/diff/80001/runtime/include/dart_api.h#newcode2696 runtime/include/dart_api.h:2696: * resolved. Consider documenting what ...
4 years, 7 months ago (2016-05-25 12:44:52 UTC) #5
Florian Schneider
dbc: Please add a 1-2 sentence motivation to the CL description. https://codereview.chromium.org/2011543002/diff/80001/runtime/vm/dart_api_impl.cc File runtime/vm/dart_api_impl.cc (right): ...
4 years, 7 months ago (2016-05-26 14:09:45 UTC) #7
turnidge
This is not a response to all comments yet, but should allow us to make ...
4 years, 6 months ago (2016-05-27 21:40:06 UTC) #8
turnidge
PTAL. I believe I have responded to all comments. Any more comments Peter or Florian? ...
4 years, 6 months ago (2016-05-31 18:25:27 UTC) #10
ahe
lgtm https://codereview.chromium.org/2011543002/diff/80001/runtime/vm/uri.cc File runtime/vm/uri.cc (right): https://codereview.chromium.org/2011543002/diff/80001/runtime/vm/uri.cc#newcode82 runtime/vm/uri.cc:82: // Invalid escape sequence. Ignore it. What does ...
4 years, 6 months ago (2016-05-31 21:44:42 UTC) #11
Florian Schneider
Thanks for adding a short description! Here are two more comments. Lgtm otherwise! https://codereview.chromium.org/2011543002/diff/80001/runtime/vm/uri.cc File ...
4 years, 6 months ago (2016-06-01 07:13:33 UTC) #12
turnidge
https://codereview.chromium.org/2011543002/diff/80001/runtime/vm/uri.cc File runtime/vm/uri.cc (right): https://codereview.chromium.org/2011543002/diff/80001/runtime/vm/uri.cc#newcode14 runtime/vm/uri.cc:14: char c = str[i]; On 2016/06/01 07:13:33, Florian Schneider ...
4 years, 6 months ago (2016-06-01 20:00:40 UTC) #13
turnidge
Also, I chose to remove the code which resolves against a relative (no-scheme, no-authority) base ...
4 years, 6 months ago (2016-06-01 20:01:57 UTC) #14
turnidge
4 years, 6 months ago (2016-06-02 19:30:03 UTC) #16
Message was sent while issue was closed.
Committed patchset #9 (id:160001) manually as
a7d46eb5a687f5b12571966c1df17660877a2ff9 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698