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

Issue 2483373002: Add Kernel Isolate (Closed)

Created:
4 years, 1 month ago by hausner
Modified:
4 years ago
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Add Kernel Isolate To run a script with the Dart->Kernel parser, use the -dfe option: dart --dfe=runtime/tools/kernel-service.dart --packages=/src/d2/sdk/.packages foo.dart The front end expects a directory named patched_sdk in the build directory (patched_sdk should be a sibling of the directory that contains the dart executable.) Warning: using a debug build dart executable is very slow. It takes 2 minutes to run Hello World in a debug build, and about 7 seconds in a release build. BUG= R=asiva@google.com Committed: https://github.com/dart-lang/sdk/commit/c9399fc5571584336eeda46e5aba4b1d5a87bd0e

Patch Set 1 : wip #

Total comments: 14

Patch Set 2 : wip #

Total comments: 10

Patch Set 3 : wip #

Total comments: 2

Patch Set 4 : wip #

Patch Set 5 : wip #

Unified diffs Side-by-side diffs Delta from patch set Stats (+595 lines, -6 lines) Patch
M runtime/bin/loader.h View 1 chunk +3 lines, -0 lines 0 comments Download
M runtime/bin/loader.cc View 1 2 3 4 2 chunks +25 lines, -4 lines 0 comments Download
M runtime/bin/main.cc View 1 2 4 6 chunks +42 lines, -0 lines 0 comments Download
M runtime/include/dart_api.h View 1 1 chunk +21 lines, -0 lines 0 comments Download
A runtime/tools/kernel-service.dart View 1 2 3 1 chunk +146 lines, -0 lines 0 comments Download
M runtime/vm/dart.cc View 1 3 chunks +8 lines, -0 lines 0 comments Download
M runtime/vm/dart_api_impl.cc View 1 2 2 chunks +39 lines, -0 lines 0 comments Download
A runtime/vm/kernel_isolate.h View 1 2 3 1 chunk +57 lines, -0 lines 0 comments Download
A runtime/vm/kernel_isolate.cc View 1 2 3 1 chunk +252 lines, -0 lines 0 comments Download
M runtime/vm/service_isolate.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M runtime/vm/vm_sources.gypi View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (9 generated)
hausner
We can discuss details offline.
4 years ago (2016-12-01 19:34:26 UTC) #3
Cutch
DBC https://codereview.chromium.org/2483373002/diff/20001/runtime/bin/main.cc File runtime/bin/main.cc (right): https://codereview.chromium.org/2483373002/diff/20001/runtime/bin/main.cc#newcode912 runtime/bin/main.cc:912: Log::Print("Waiting for Kernel isolate to load.\n"); we shouldn't ...
4 years ago (2016-12-01 19:47:23 UTC) #5
Florian Schneider
dbc: https://codereview.chromium.org/2483373002/diff/20001/runtime/vm/dart.cc File runtime/vm/dart.cc (right): https://codereview.chromium.org/2483373002/diff/20001/runtime/vm/dart.cc#newcode315 runtime/vm/dart.cc:315: KernelIsolate::Run(); Please make sure that all code related ...
4 years ago (2016-12-01 20:50:43 UTC) #7
hausner
Exclude the Kernel Isolate from precompiled runtime. https://codereview.chromium.org/2483373002/diff/20001/runtime/vm/dart.cc File runtime/vm/dart.cc (right): https://codereview.chromium.org/2483373002/diff/20001/runtime/vm/dart.cc#newcode315 runtime/vm/dart.cc:315: KernelIsolate::Run(); On ...
4 years ago (2016-12-01 22:43:32 UTC) #9
siva
Publishing what I have so far, I will continue with the new version you have ...
4 years ago (2016-12-02 00:39:24 UTC) #11
siva
https://codereview.chromium.org/2483373002/diff/40001/runtime/tools/kernel-service.dart File runtime/tools/kernel-service.dart (right): https://codereview.chromium.org/2483373002/diff/40001/runtime/tools/kernel-service.dart#newcode100 runtime/tools/kernel-service.dart:100: "packages": "/src/d2/sdk/.packages", These paths here seem to indicate this ...
4 years ago (2016-12-02 20:59:38 UTC) #12
hausner
This addresses most of the comments. One more round to go. https://codereview.chromium.org/2483373002/diff/20001/runtime/bin/main.cc File runtime/bin/main.cc (right): ...
4 years ago (2016-12-03 01:29:00 UTC) #13
siva
lgtm https://codereview.chromium.org/2483373002/diff/60001/runtime/bin/loader.cc File runtime/bin/loader.cc (right): https://codereview.chromium.org/2483373002/diff/60001/runtime/bin/loader.cc#newcode646 runtime/bin/loader.cc:646: if (Dart_KernelIsolateIsRunning()) { You could potentially turn this ...
4 years ago (2016-12-05 22:36:10 UTC) #14
hausner
Thanks for the reviews. This will land soon. https://codereview.chromium.org/2483373002/diff/60001/runtime/bin/loader.cc File runtime/bin/loader.cc (right): https://codereview.chromium.org/2483373002/diff/60001/runtime/bin/loader.cc#newcode646 runtime/bin/loader.cc:646: if ...
4 years ago (2016-12-06 19:10:28 UTC) #17
hausner
4 years ago (2016-12-06 20:23:13 UTC) #19
Message was sent while issue was closed.
Committed patchset #5 (id:100001) manually as
c9399fc5571584336eeda46e5aba4b1d5a87bd0e (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698