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

Issue 2104843002: Handle fields with initializers in constant constructors. (Closed)

Created:
4 years, 5 months ago by Johnni Winther
Modified:
4 years, 5 months ago
Reviewers:
Harry Terkelsen
CC:
reviews_dartlang.org
Base URL:
https://github.com/dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Handle fields with initializers in constant constructors. This also normalizes CompileTimeConstantEvaluator to always create an ErroneousConstantExpression for constants with compile time errors. R=het@google.com Committed: https://github.com/dart-lang/sdk/commit/95e6dde715e2164ba74a71d2f9924dd36f3d2266 Reverted: https://github.com/dart-lang/sdk/commit/fa8f7d20f3848db9676e8d1af30ceaefa1ccb21d Committed: https://github.com/dart-lang/sdk/commit/ceb053a25777b57809913ba98a52f033099e07df

Patch Set 1 #

Patch Set 2 : Fix invariants #

Total comments: 2

Patch Set 3 : Updated cf. comment. #

Patch Set 4 : Rebased #

Patch Set 5 : Fix invariants. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+148 lines, -72 lines) Patch
M pkg/compiler/lib/src/compile_time_constants.dart View 1 2 15 chunks +58 lines, -37 lines 0 comments Download
M pkg/compiler/lib/src/constants/constant_constructors.dart View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M pkg/compiler/lib/src/elements/modelx.dart View 1 2 3 4 1 chunk +16 lines, -5 lines 0 comments Download
M pkg/compiler/lib/src/inferrer/type_graph_inferrer.dart View 1 1 chunk +20 lines, -13 lines 0 comments Download
M pkg/compiler/lib/src/js_backend/backend.dart View 1 2 3 4 1 chunk +18 lines, -11 lines 0 comments Download
M pkg/compiler/lib/src/resolution/constructors.dart View 1 2 3 1 chunk +18 lines, -5 lines 0 comments Download
M pkg/compiler/lib/src/resolution/resolution.dart View 1 2 3 2 chunks +5 lines, -1 line 0 comments Download
M tests/compiler/dart2js/constant_expression_evaluate_test.dart View 2 chunks +8 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (5 generated)
Johnni Winther
4 years, 5 months ago (2016-06-29 10:42:22 UTC) #2
Harry Terkelsen
lgtm https://codereview.chromium.org/2104843002/diff/20001/pkg/compiler/lib/src/compile_time_constants.dart File pkg/compiler/lib/src/compile_time_constants.dart (right): https://codereview.chromium.org/2104843002/diff/20001/pkg/compiler/lib/src/compile_time_constants.dart#newcode736 pkg/compiler/lib/src/compile_time_constants.dart:736: if (receiverConstant == null && receiverConstant.isError) { should ...
4 years, 5 months ago (2016-06-30 16:39:03 UTC) #4
Johnni Winther
https://codereview.chromium.org/2104843002/diff/20001/pkg/compiler/lib/src/compile_time_constants.dart File pkg/compiler/lib/src/compile_time_constants.dart (right): https://codereview.chromium.org/2104843002/diff/20001/pkg/compiler/lib/src/compile_time_constants.dart#newcode736 pkg/compiler/lib/src/compile_time_constants.dart:736: if (receiverConstant == null && receiverConstant.isError) { On 2016/06/30 ...
4 years, 5 months ago (2016-07-01 08:18:03 UTC) #5
Johnni Winther
Committed patchset #3 (id:40001) manually as 95e6dde715e2164ba74a71d2f9924dd36f3d2266 (presubmit successful).
4 years, 5 months ago (2016-07-01 08:22:17 UTC) #7
Johnni Winther
Committed patchset #5 (id:80001) manually as ceb053a25777b57809913ba98a52f033099e07df (presubmit successful).
4 years, 5 months ago (2016-07-01 10:37:06 UTC) #10
Johnni Winther
PTAL @ the last patch, post recommit.
4 years, 5 months ago (2016-07-01 10:37:47 UTC) #11
Harry Terkelsen
4 years, 5 months ago (2016-07-01 15:54:46 UTC) #12
Message was sent while issue was closed.
lgtm

Powered by Google App Engine
This is Rietveld 408576698