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

Issue 232563006: Insert checks before deferred calls and accesses. (Closed)

Created:
6 years, 8 months ago by sigurdm
Modified:
6 years, 8 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Insert checks before deferred calls and accesses. These checks will throw an error if the library was not loaded. R=floitsch@google.com, johnniwinther@google.com Committed: https://code.google.com/p/dart/source/detail?r=35306 Was reverted by Issue 247863005 r35308 due to failing co19-test Committed: https://code.google.com/p/dart/source/detail?r=35355

Patch Set 1 : #

Total comments: 16

Patch Set 2 : #

Total comments: 22

Patch Set 3 : #

Patch Set 4 : Forgot to stage deferred_load.dart #

Total comments: 2

Patch Set 5 : #

Patch Set 6 : Updated co19 status file (has been rebased - hence the noise) #

Patch Set 7 : Correct update to co19 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+254 lines, -66 lines) Patch
M sdk/lib/_internal/compiler/implementation/compile_time_constants.dart View 1 chunk +2 lines, -24 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/deferred_load.dart View 1 2 3 4 6 chunks +76 lines, -3 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/elements/elements.dart View 1 2 chunks +5 lines, -0 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/elements/modelx.dart View 1 5 chunks +7 lines, -1 line 0 comments Download
M sdk/lib/_internal/compiler/implementation/js_backend/backend.dart View 2 chunks +10 lines, -0 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/ssa/builder.dart View 1 2 3 4 5 6 chunks +25 lines, -3 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/ssa/ssa.dart View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M sdk/lib/_internal/lib/js_helper.dart View 1 2 3 4 5 7 chunks +25 lines, -8 lines 0 comments Download
M tests/co19/co19-dart2js.status View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M tests/compiler/dart2js_extra/deferred/deferred_class_test.dart View 1 2 chunks +3 lines, -3 lines 0 comments Download
M tests/compiler/dart2js_extra/deferred/deferred_function_test.dart View 1 2 chunks +5 lines, -8 lines 0 comments Download
M tests/language/deferred_constraints_type_annotation_old_syntax_test.dart View 1 chunk +1 line, -1 line 0 comments Download
A + tests/language/deferred_not_loaded_check_lib.dart View 1 chunk +12 lines, -8 lines 0 comments Download
A tests/language/deferred_not_loaded_check_test.dart View 1 2 1 chunk +72 lines, -0 lines 0 comments Download
M tests/language/language.status View 1 2 1 chunk +8 lines, -7 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
sigurdm
6 years, 8 months ago (2014-04-10 13:35:02 UTC) #1
Johnni Winther
lgtm https://codereview.chromium.org/232563006/diff/60001/sdk/lib/_internal/compiler/implementation/deferred_load.dart File sdk/lib/_internal/compiler/implementation/deferred_load.dart (right): https://codereview.chromium.org/232563006/diff/60001/sdk/lib/_internal/compiler/implementation/deferred_load.dart#newcode827 sdk/lib/_internal/compiler/implementation/deferred_load.dart:827: if (first is! ast.Identifier) return null; Change to: ...
6 years, 8 months ago (2014-04-11 07:34:54 UTC) #2
sigurdm
https://codereview.chromium.org/232563006/diff/60001/sdk/lib/_internal/compiler/implementation/deferred_load.dart File sdk/lib/_internal/compiler/implementation/deferred_load.dart (right): https://codereview.chromium.org/232563006/diff/60001/sdk/lib/_internal/compiler/implementation/deferred_load.dart#newcode827 sdk/lib/_internal/compiler/implementation/deferred_load.dart:827: if (first is! ast.Identifier) return null; On 2014/04/11 07:34:54, ...
6 years, 8 months ago (2014-04-11 09:11:37 UTC) #3
floitsch
LGTM. https://codereview.chromium.org/232563006/diff/100001/sdk/lib/_internal/compiler/implementation/deferred_load.dart File sdk/lib/_internal/compiler/implementation/deferred_load.dart (right): https://codereview.chromium.org/232563006/diff/100001/sdk/lib/_internal/compiler/implementation/deferred_load.dart#newcode21 sdk/lib/_internal/compiler/implementation/deferred_load.dart:21: import 'js_backend/js_backend.dart' show We should eventually split this ...
6 years, 8 months ago (2014-04-14 12:04:08 UTC) #4
floitsch
https://codereview.chromium.org/232563006/diff/100001/sdk/lib/_internal/compiler/implementation/deferred_load.dart File sdk/lib/_internal/compiler/implementation/deferred_load.dart (right): https://codereview.chromium.org/232563006/diff/100001/sdk/lib/_internal/compiler/implementation/deferred_load.dart#newcode831 sdk/lib/_internal/compiler/implementation/deferred_load.dart:831: /// Returns the prefixElement associated with the first prefix ...
6 years, 8 months ago (2014-04-14 13:14:38 UTC) #5
sigurdm
https://codereview.chromium.org/232563006/diff/100001/sdk/lib/_internal/compiler/implementation/deferred_load.dart File sdk/lib/_internal/compiler/implementation/deferred_load.dart (right): https://codereview.chromium.org/232563006/diff/100001/sdk/lib/_internal/compiler/implementation/deferred_load.dart#newcode21 sdk/lib/_internal/compiler/implementation/deferred_load.dart:21: import 'js_backend/js_backend.dart' show On 2014/04/14 12:04:08, floitsch wrote: > ...
6 years, 8 months ago (2014-04-22 11:22:48 UTC) #6
sigurdm
6 years, 8 months ago (2014-04-22 12:13:55 UTC) #7
floitsch
LGTM. https://codereview.chromium.org/232563006/diff/140001/sdk/lib/_internal/compiler/implementation/deferred_load.dart File sdk/lib/_internal/compiler/implementation/deferred_load.dart (right): https://codereview.chromium.org/232563006/diff/140001/sdk/lib/_internal/compiler/implementation/deferred_load.dart#newcode834 sdk/lib/_internal/compiler/implementation/deferred_load.dart:834: /// Precondition: send must be static. New line ...
6 years, 8 months ago (2014-04-22 12:33:44 UTC) #8
sigurdm
Committed patchset #5 manually as r35306 (presubmit successful).
6 years, 8 months ago (2014-04-23 07:56:16 UTC) #9
sigurdm
https://codereview.chromium.org/232563006/diff/140001/sdk/lib/_internal/compiler/implementation/deferred_load.dart File sdk/lib/_internal/compiler/implementation/deferred_load.dart (right): https://codereview.chromium.org/232563006/diff/140001/sdk/lib/_internal/compiler/implementation/deferred_load.dart#newcode834 sdk/lib/_internal/compiler/implementation/deferred_load.dart:834: /// Precondition: send must be static. On 2014/04/22 12:33:44, ...
6 years, 8 months ago (2014-04-23 14:01:45 UTC) #10
sigurdm
6 years, 8 months ago (2014-04-24 07:51:54 UTC) #11
Message was sent while issue was closed.
Committed patchset #7 manually as r35355 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698