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

Issue 11640021: Re-apply "Clean up the patch file for the isolate library by introducing a new buitlin library: iso… (Closed)

Created:
8 years ago by ngeoffray
Modified:
7 years, 11 months ago
Reviewers:
ahe, kasperl
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Re-apply "Clean up the patch file for the isolate library by introducing a new buitlin library: isolate_helper.dart". This time load eagerly isolate_helper so that the native handler can see it. Committed: https://code.google.com/p/dart/source/detail?r=16500

Patch Set 1 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1346 lines, -1291 lines) Patch
M runtime/lib/isolate_patch.dart View 1 chunk +6 lines, -6 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/compiler.dart View 7 chunks +33 lines, -6 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/elements/elements.dart View 1 chunk +3 lines, -0 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart View 1 chunk +2 lines, -2 lines 0 comments Download
A sdk/lib/_internal/compiler/implementation/lib/isolate_helper.dart View 1 chunk +1248 lines, -0 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/lib/isolate_patch.dart View 1 chunk +13 lines, -1263 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/native_handler.dart View 3 chunks +1 line, -2 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/ssa/builder.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M sdk/lib/_internal/libraries.dart View 1 chunk +6 lines, -0 lines 0 comments Download
M sdk/lib/isolate/timer.dart View 1 chunk +4 lines, -4 lines 0 comments Download
M tests/compiler/dart2js/dart_backend_test.dart View 2 chunks +19 lines, -6 lines 0 comments Download
M tests/compiler/dart2js/mock_compiler.dart View 3 chunks +5 lines, -0 lines 0 comments Download
M tests/utils/dummy_compiler_test.dart View 1 chunk +2 lines, -0 lines 0 comments Download
M tests/utils/recursive_import_test.dart View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
ngeoffray
TBR. This CL has already been reviewed in: https://codereview.chromium.org/11574032/ and https://codereview.chromium.org/11549017/
8 years ago (2012-12-19 15:55:35 UTC) #1
ahe
Why was it reverted, and how was the problem that caused the revert fixed?
8 years ago (2012-12-19 16:22:46 UTC) #2
ngeoffray
On 2012/12/19 16:22:46, ahe wrote: > Why was it reverted, and how was the problem ...
8 years ago (2012-12-19 16:25:48 UTC) #3
ahe
On 2012/12/19 16:25:48, ngeoffray wrote: > On 2012/12/19 16:22:46, ahe wrote: > > Why was ...
7 years, 11 months ago (2013-01-02 13:49:58 UTC) #4
ngeoffray
7 years, 11 months ago (2013-01-10 11:09:24 UTC) #5
Message was sent while issue was closed.
On 2013/01/02 13:49:58, ahe wrote:
> On 2012/12/19 16:25:48, ngeoffray wrote:
> > On 2012/12/19 16:22:46, ahe wrote:
> > > Why was it reverted, and how was the problem that caused the revert fixed?
> > 
> > It's mentioned in the description: "This time load eagerly isolate_helper so
> > that the native handler can see it". The problem was that the native handler
> > requires to see all native classes before doing any resolution. In the
> previous
> > CL, isolate_helper.dart was only loaded once we could see the program use
> > isolates.
> 
> What changes did you make? (files and lines, please).
> 
> How was the additional changes tested?

The main change is in compiler.dart, scanBuiltinLibraries: we eagerly load the
isolate helper library instead of lazily because of the native handler. I will
try to find the regression test for the lazily loading version that used to
fail.

Powered by Google App Engine
This is Rietveld 408576698