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

Issue 273703003: Don't generate errors when failing to follow const constructor redirections. (Closed)

Created:
6 years, 7 months ago by Paul Berry
Modified:
6 years, 7 months ago
Reviewers:
Brian Wilkerson
CC:
reviews_dartlang.org, ricow1
Visibility:
Public.

Description

Don't generate errors when failing to follow const constructor redirections. In two cases (circular redirections and redirecting to a non-const constructor), the error has already been reported. The third case (external factory constructor) is not an error condition. Fixes test lib/_internal/compiler/samples/jsonify/jsonify. BUG= R=brianwilkerson@google.com Committed: https://code.google.com/p/dart/source/detail?r=35877

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+75 lines, -27 lines) Patch
M editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/constant/ConstantVisitor.java View 1 chunk +5 lines, -5 lines 0 comments Download
M editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/object/BoolState.java View 1 chunk +5 lines, -0 lines 0 comments Download
M editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/object/DartObjectImpl.java View 1 chunk +7 lines, -0 lines 0 comments Download
M editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/object/GenericState.java View 3 chunks +14 lines, -9 lines 0 comments Download
M editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/object/InstanceState.java View 1 chunk +7 lines, -0 lines 0 comments Download
M editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/object/NumState.java View 2 chunks +10 lines, -5 lines 0 comments Download
M editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/object/StringState.java View 1 chunk +5 lines, -0 lines 0 comments Download
M editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/internal/constant/ConstantVisitorTest.java View 4 chunks +9 lines, -7 lines 2 comments Download
M editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/CompileTimeErrorCodeTest.java View 1 chunk +13 lines, -0 lines 0 comments Download
M tests/lib/analyzer/analyze_library.status View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 4 (0 generated)
Paul Berry
6 years, 7 months ago (2014-05-07 17:24:58 UTC) #1
Brian Wilkerson
LGTM https://codereview.chromium.org/273703003/diff/1/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/internal/constant/ConstantVisitorTest.java File editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/internal/constant/ConstantVisitorTest.java (right): https://codereview.chromium.org/273703003/diff/1/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/internal/constant/ConstantVisitorTest.java#newcode193 editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/internal/constant/ConstantVisitorTest.java:193: assertEquals("int", value.getType().getName()); Should we add "assertFalse(value.isUnknown());" or would ...
6 years, 7 months ago (2014-05-07 17:41:06 UTC) #2
Paul Berry
https://codereview.chromium.org/273703003/diff/1/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/internal/constant/ConstantVisitorTest.java File editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/internal/constant/ConstantVisitorTest.java (right): https://codereview.chromium.org/273703003/diff/1/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/internal/constant/ConstantVisitorTest.java#newcode193 editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/internal/constant/ConstantVisitorTest.java:193: assertEquals("int", value.getType().getName()); On 2014/05/07 17:41:06, Brian Wilkerson wrote: > ...
6 years, 7 months ago (2014-05-08 00:08:59 UTC) #3
Paul Berry
6 years, 7 months ago (2014-05-08 00:24:40 UTC) #4
Message was sent while issue was closed.
Committed patchset #1 manually as r35877 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698