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

Issue 24282005: Move compile-time constant registrations to the backend. (Closed)

Created:
7 years, 3 months ago by Johnni Winther
Modified:
7 years, 2 months ago
Reviewers:
karlklose, ahe, ngeoffray
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Move compile-time constant registrations to the backend. This prepares for handling compile-time constant evaluation in the resolution post-processing. BUG= R=ahe@google.com, karlklose@google.com, ngeoffray@google.com Committed: https://code.google.com/p/dart/source/detail?r=28091

Patch Set 1 #

Patch Set 2 : Move constant evaluation to post-processing #

Patch Set 3 : Reinsert default value registration. #

Patch Set 4 : Update status #

Total comments: 26

Patch Set 5 : Updated cf. comments #

Patch Set 6 : Update status #

Unified diffs Side-by-side diffs Delta from patch set Stats (+293 lines, -360 lines) Patch
M sdk/lib/_internal/compiler/implementation/compile_time_constants.dart View 1 13 chunks +8 lines, -133 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/compiler.dart View 1 2 3 4 4 chunks +7 lines, -7 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/constants.dart View 1 2 3 4 7 chunks +52 lines, -0 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/elements/modelx.dart View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/enqueue.dart View 1 4 chunks +9 lines, -4 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/js_backend/backend.dart View 1 2 3 4 6 chunks +64 lines, -52 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/mirrors_used.dart View 1 1 chunk +2 lines, -2 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/resolution/members.dart View 1 2 3 4 5 20 chunks +72 lines, -14 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/ssa/builder.dart View 1 2 3 4 5 11 chunks +30 lines, -36 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/ssa/codegen.dart View 1 2 3 4 5 2 chunks +7 lines, -10 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/typechecker.dart View 1 2 3 4 1 chunk +0 lines, -2 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/util/util.dart View 1 2 3 4 2 chunks +24 lines, -2 lines 0 comments Download
M tests/co19/co19-dart2dart.status View 1 2 3 4 5 5 chunks +4 lines, -62 lines 0 comments Download
M tests/co19/co19-dart2js.status View 1 2 3 4 5 6 chunks +5 lines, -6 lines 0 comments Download
M tests/co19/co19-runtime.status View 1 2 3 4 5 1 chunk +1 line, -3 lines 0 comments Download
M tests/compiler/dart2js/mirrors_used_test.dart View 1 2 chunks +6 lines, -12 lines 0 comments Download
M tests/compiler/dart2js/mock_compiler.dart View 1 1 chunk +1 line, -0 lines 0 comments Download
M tests/language/language_dart2js.status View 1 2 3 4 5 2 chunks +0 lines, -15 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Johnni Winther
7 years, 3 months ago (2013-09-20 11:49:36 UTC) #1
Johnni Winther
@ahe: Look at the metadata handling. @ngeoffray: Look at the backend registration.
7 years, 2 months ago (2013-09-27 15:14:02 UTC) #2
ahe
LGTM except for an excessive amount of extra lines. https://codereview.chromium.org/24282005/diff/9001/sdk/lib/_internal/compiler/implementation/constants.dart File sdk/lib/_internal/compiler/implementation/constants.dart (right): https://codereview.chromium.org/24282005/diff/9001/sdk/lib/_internal/compiler/implementation/constants.dart#newcode299 sdk/lib/_internal/compiler/implementation/constants.dart:299: ...
7 years, 2 months ago (2013-09-30 11:05:26 UTC) #3
ngeoffray
LGTM https://codereview.chromium.org/24282005/diff/9001/sdk/lib/_internal/compiler/implementation/compiler.dart File sdk/lib/_internal/compiler/implementation/compiler.dart (right): https://codereview.chromium.org/24282005/diff/9001/sdk/lib/_internal/compiler/implementation/compiler.dart#newcode127 sdk/lib/_internal/compiler/implementation/compiler.dart:127: /// Called by the backend when [constant] has ...
7 years, 2 months ago (2013-10-01 08:33:35 UTC) #4
karlklose
LGTM. https://codereview.chromium.org/24282005/diff/9001/sdk/lib/_internal/compiler/implementation/typechecker.dart File sdk/lib/_internal/compiler/implementation/typechecker.dart (right): https://codereview.chromium.org/24282005/diff/9001/sdk/lib/_internal/compiler/implementation/typechecker.dart#newcode198 sdk/lib/_internal/compiler/implementation/typechecker.dart:198: thisTypeCache = currentClass.computeType(compiler); Can you use currentClass.thisType here?
7 years, 2 months ago (2013-10-01 08:58:58 UTC) #5
Johnni Winther
https://codereview.chromium.org/24282005/diff/9001/sdk/lib/_internal/compiler/implementation/compiler.dart File sdk/lib/_internal/compiler/implementation/compiler.dart (right): https://codereview.chromium.org/24282005/diff/9001/sdk/lib/_internal/compiler/implementation/compiler.dart#newcode127 sdk/lib/_internal/compiler/implementation/compiler.dart:127: /// Called by the backend when [constant] has been ...
7 years, 2 months ago (2013-10-01 11:21:47 UTC) #6
ngeoffray
Still LGTM
7 years, 2 months ago (2013-10-01 11:27:10 UTC) #7
Johnni Winther
7 years, 2 months ago (2013-10-01 11:33:18 UTC) #8
Message was sent while issue was closed.
Committed patchset #6 manually as r28091 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698