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

Issue 290713004: First step towards asynchronous loading of sources (Closed)

Created:
6 years, 7 months ago by hausner
Modified:
6 years, 7 months ago
Reviewers:
Ivan Posva
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

First step towards asynchronous loading of sources. With this change, sources are read asynchronously in dart code (builtin.dart) and when the i/o future completes, a callback in the VM loads and compiles the script or library code. In a next step, the i/o will be moved to the service isolate so that not all isolates have to import dart:io. Fallout from this change: 1) Loading has become a tad slower. Will have to investigate why. 2) Errors that happen during loading (file not found, compilation error in an imported library) are no longer reported at the offending import clause. This can be fixed later if necessary by passing the import clause source location to the library tag handler. Committed: https://code.google.com/p/dart/source/detail?r=36575

Patch Set 1 #

Patch Set 2 : #

Total comments: 8

Patch Set 3 : #

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+244 lines, -19 lines) Patch
M runtime/bin/builtin.dart View 1 2 3 3 chunks +95 lines, -0 lines 0 comments Download
M runtime/bin/builtin_natives.cc View 1 2 3 1 chunk +5 lines, -1 line 0 comments Download
M runtime/bin/dartutils.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M runtime/bin/dartutils.cc View 1 2 3 4 chunks +105 lines, -0 lines 0 comments Download
M runtime/bin/main.cc View 1 2 3 1 chunk +4 lines, -13 lines 0 comments Download
M runtime/vm/dart_api_impl.cc View 1 2 3 2 chunks +2 lines, -4 lines 0 comments Download
M runtime/vm/flags.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M runtime/vm/flags.cc View 1 2 3 1 chunk +9 lines, -0 lines 0 comments Download
M runtime/vm/isolate.cc View 1 2 3 1 chunk +6 lines, -1 line 0 comments Download
M tests/co19/co19-runtime.status View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M tests/standalone/http_launch_test.dart View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
hausner
6 years, 7 months ago (2014-05-19 21:46:42 UTC) #1
Ivan Posva
https://codereview.chromium.org/290713004/diff/20001/runtime/bin/builtin.dart File runtime/bin/builtin.dart (right): https://codereview.chromium.org/290713004/diff/20001/runtime/bin/builtin.dart#newcode333 runtime/bin/builtin.dart:333: _loadScript(uri, data);//native The comment here is unnecessary. https://codereview.chromium.org/290713004/diff/20001/runtime/bin/builtin.dart#newcode341 runtime/bin/builtin.dart:341: ...
6 years, 7 months ago (2014-05-21 22:02:07 UTC) #2
hausner
After our chat, I realized that unifying the two code paths as you suggest may ...
6 years, 7 months ago (2014-05-21 23:53:07 UTC) #3
hausner
Committed patchset #4 manually as r36575 (presubmit successful).
6 years, 7 months ago (2014-05-23 17:43:22 UTC) #4
hausner
6 years, 7 months ago (2014-05-23 17:43:48 UTC) #5
Message was sent while issue was closed.
Ivan's LGTM came asynchronously via chat :-)

Powered by Google App Engine
This is Rietveld 408576698