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

Issue 1411853003: Service isolate requests Observatory assets from embedder (Closed)

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

Description

Service isolate requests Observatory assets from embedder - Provide a new callback to Dart_Initialize that will be called when the service isolate needs the Observatory assets - Move asset management code out of embedder and into common dart:_vmservice - Use the tar format as the archive format - Add build script to generate .cc file containing the archive - Add a simple tar parser to service isolate This makes it possible for embedders to not bake Observatory into their executable but instead load it off disk or over the network. The standalone embedder still links Observatory into the executable. R=rmacnak@google.com Committed: https://github.com/dart-lang/sdk/commit/2844eb86cac7358ccc6e638c3de41e293824098d

Patch Set 1 #

Patch Set 2 : #

Total comments: 22

Patch Set 3 : #

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+527 lines, -94 lines) Patch
M runtime/bin/bin.gypi View 11 chunks +38 lines, -5 lines 0 comments Download
M runtime/bin/dartutils.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M runtime/bin/dartutils.cc View 1 2 1 chunk +21 lines, -0 lines 0 comments Download
M runtime/bin/gen_snapshot.cc View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M runtime/bin/main.cc View 1 2 2 chunks +11 lines, -1 line 0 comments Download
A + runtime/bin/observatory_assets_empty.cc View 1 2 2 chunks +6 lines, -6 lines 0 comments Download
M runtime/bin/resources_sources.gypi View 1 chunk +0 lines, -3 lines 0 comments Download
M runtime/bin/run_vm_tests.cc View 1 chunk +1 line, -0 lines 0 comments Download
D runtime/bin/vmservice/resources.dart View 1 chunk +0 lines, -62 lines 0 comments Download
M runtime/bin/vmservice/server.dart View 1 chunk +5 lines, -5 lines 0 comments Download
M runtime/bin/vmservice/vmservice_io.dart View 1 2 3 chunks +7 lines, -4 lines 0 comments Download
M runtime/include/dart_api.h View 1 3 chunks +18 lines, -1 line 0 comments Download
M runtime/lib/vmservice.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M runtime/lib/vmservice_patch.dart View 1 chunk +1 line, -0 lines 0 comments Download
A runtime/tools/create_archive.py View 1 2 1 chunk +140 lines, -0 lines 0 comments Download
M runtime/vm/bootstrap_natives.h View 1 chunk +1 line, -0 lines 0 comments Download
M runtime/vm/dart.h View 1 chunk +2 lines, -1 line 0 comments Download
M runtime/vm/dart.cc View 2 chunks +3 lines, -1 line 0 comments Download
M runtime/vm/dart_api_impl.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M runtime/vm/service.h View 3 chunks +6 lines, -0 lines 0 comments Download
M runtime/vm/service.cc View 1 2 4 chunks +46 lines, -1 line 0 comments Download
A sdk/lib/vmservice/asset.dart View 1 2 1 chunk +205 lines, -0 lines 0 comments Download
M sdk/lib/vmservice/vmservice.dart View 2 chunks +2 lines, -0 lines 0 comments Download
M sdk/lib/vmservice/vmservice_sources.gypi View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 8 (3 generated)
Cutch
5 years, 2 months ago (2015-10-23 00:15:16 UTC) #4
rmacnak
https://chromiumcodereview.appspot.com/1411853003/diff/20001/runtime/bin/dartutils.cc File runtime/bin/dartutils.cc (right): https://chromiumcodereview.appspot.com/1411853003/diff/20001/runtime/bin/dartutils.cc#newcode287 runtime/bin/dartutils.cc:287: Dart_Handle DartUtils::ReadBytesFromFile(const char* filename) { Dead https://chromiumcodereview.appspot.com/1411853003/diff/20001/runtime/bin/dartutils.cc#newcode300 runtime/bin/dartutils.cc:300: Dart_Handle ...
5 years, 2 months ago (2015-10-23 20:54:48 UTC) #5
Cutch
https://chromiumcodereview.appspot.com/1411853003/diff/20001/runtime/bin/dartutils.cc File runtime/bin/dartutils.cc (right): https://chromiumcodereview.appspot.com/1411853003/diff/20001/runtime/bin/dartutils.cc#newcode287 runtime/bin/dartutils.cc:287: Dart_Handle DartUtils::ReadBytesFromFile(const char* filename) { On 2015/10/23 20:54:47, rmacnak ...
5 years, 2 months ago (2015-10-23 21:47:30 UTC) #6
rmacnak
lgtm
5 years, 2 months ago (2015-10-23 22:00:14 UTC) #7
Cutch
5 years, 1 month ago (2015-10-26 14:21:28 UTC) #8
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as
2844eb86cac7358ccc6e638c3de41e293824098d.

Powered by Google App Engine
This is Rietveld 408576698