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

Issue 2618823002: VM: Fix bug in deferred loading. (Closed)

Created:
3 years, 11 months ago by Florian Schneider
Modified:
3 years, 11 months ago
Reviewers:
rmacnak, hausner
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

VM: Fix bug in deferred loading. In some cases when loading a deferred library twice, the VM would crash/throw. Make sure we generate the correct static NoSuchMethod error when referring to a deferred library that is not loaded yet. Fixes #28278. R=rmacnak@google.com Committed: https://github.com/dart-lang/sdk/commit/9c82d88d67b44457eaaa70d80f1fd15288b8ee05

Patch Set 1 #

Total comments: 9

Patch Set 2 : improve test #

Patch Set 3 : add assertion #

Unified diffs Side-by-side diffs Delta from patch set Stats (+87 lines, -19 lines) Patch
M runtime/vm/ast.h View 1 2 2 chunks +8 lines, -4 lines 0 comments Download
M runtime/vm/parser.h View 1 chunk +2 lines, -1 line 0 comments Download
M runtime/vm/parser.cc View 10 chunks +45 lines, -14 lines 0 comments Download
A tests/language/regress_28278_lib.dart View 1 1 chunk +5 lines, -0 lines 0 comments Download
A tests/language/regress_28278_test.dart View 1 1 chunk +27 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (3 generated)
Florian Schneider
3 years, 11 months ago (2017-01-05 21:17:21 UTC) #2
hausner
DBC https://codereview.chromium.org/2618823002/diff/1/runtime/vm/ast.h File runtime/vm/ast.h (right): https://codereview.chromium.org/2618823002/diff/1/runtime/vm/ast.h#newcode587 runtime/vm/ast.h:587: const LibraryPrefix* prefix_; We don't typically store pointers ...
3 years, 11 months ago (2017-01-05 21:50:44 UTC) #4
Florian Schneider
https://codereview.chromium.org/2618823002/diff/1/runtime/vm/ast.h File runtime/vm/ast.h (right): https://codereview.chromium.org/2618823002/diff/1/runtime/vm/ast.h#newcode587 runtime/vm/ast.h:587: const LibraryPrefix* prefix_; On 2017/01/05 21:50:44, hausner wrote: > ...
3 years, 11 months ago (2017-01-05 22:07:16 UTC) #5
hausner
https://codereview.chromium.org/2618823002/diff/1/runtime/vm/ast.h File runtime/vm/ast.h (right): https://codereview.chromium.org/2618823002/diff/1/runtime/vm/ast.h#newcode587 runtime/vm/ast.h:587: const LibraryPrefix* prefix_; On 2017/01/05 22:07:16, Florian Schneider wrote: ...
3 years, 11 months ago (2017-01-05 22:39:41 UTC) #6
rmacnak
lgtm w/c https://codereview.chromium.org/2618823002/diff/1/runtime/vm/ast.h File runtime/vm/ast.h (right): https://codereview.chromium.org/2618823002/diff/1/runtime/vm/ast.h#newcode573 runtime/vm/ast.h:573: void set_prefix(const LibraryPrefix* prefix) { prefix_ = ...
3 years, 11 months ago (2017-01-05 22:50:11 UTC) #7
Florian Schneider
https://codereview.chromium.org/2618823002/diff/1/runtime/vm/ast.h File runtime/vm/ast.h (right): https://codereview.chromium.org/2618823002/diff/1/runtime/vm/ast.h#newcode573 runtime/vm/ast.h:573: void set_prefix(const LibraryPrefix* prefix) { prefix_ = prefix; } ...
3 years, 11 months ago (2017-01-06 02:12:13 UTC) #8
Florian Schneider
3 years, 11 months ago (2017-01-06 02:21:00 UTC) #10
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as
9c82d88d67b44457eaaa70d80f1fd15288b8ee05 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698