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

Issue 2585223002: Access ConstantSystem through ClosedWorld. (Closed)

Created:
4 years ago by Johnni Winther
Modified:
4 years ago
CC:
reviews_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+252 lines, -242 lines) Patch
M pkg/compiler/lib/src/inferrer/inferrer_visitor.dart View 1 chunk +4 lines, -4 lines 0 comments Download
M pkg/compiler/lib/src/inferrer/type_graph_inferrer.dart View 1 chunk +1 line, -2 lines 0 comments Download
M pkg/compiler/lib/src/native/ssa.dart View 1 chunk +2 lines, -1 line 0 comments Download
M pkg/compiler/lib/src/ssa/builder.dart View 46 chunks +63 lines, -61 lines 0 comments Download
M pkg/compiler/lib/src/ssa/builder_kernel.dart View 37 chunks +67 lines, -52 lines 0 comments Download
M pkg/compiler/lib/src/ssa/codegen_helpers.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/compiler/lib/src/ssa/graph_builder.dart View 3 chunks +4 lines, -2 lines 0 comments Download
M pkg/compiler/lib/src/ssa/interceptor_simplifier.dart View 4 chunks +6 lines, -6 lines 0 comments Download
M pkg/compiler/lib/src/ssa/jump_handler.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/compiler/lib/src/ssa/nodes.dart View 3 chunks +22 lines, -19 lines 0 comments Download
M pkg/compiler/lib/src/ssa/optimize.dart View 30 chunks +53 lines, -64 lines 0 comments Download
M pkg/compiler/lib/src/ssa/ssa_branch_builder.dart View 1 chunk +2 lines, -1 line 0 comments Download
M pkg/compiler/lib/src/ssa/type_builder.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M pkg/compiler/lib/src/ssa/value_range_analyzer.dart View 5 chunks +11 lines, -11 lines 0 comments Download
M pkg/compiler/lib/src/types/constants.dart View 3 chunks +7 lines, -13 lines 2 comments Download
M pkg/compiler/lib/src/world.dart View 3 chunks +5 lines, -0 lines 0 comments Download
M tests/compiler/dart2js/concrete_type_inference_test.dart View 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 8 (2 generated)
Johnni Winther
4 years ago (2016-12-19 10:40:40 UTC) #2
Siggi Cherem (dart-lang)
lgtm https://codereview.chromium.org/2585223002/diff/1/pkg/compiler/lib/src/types/constants.dart File pkg/compiler/lib/src/types/constants.dart (right): https://codereview.chromium.org/2585223002/diff/1/pkg/compiler/lib/src/types/constants.dart#newcode67 pkg/compiler/lib/src/types/constants.dart:67: throw new SpannableAssertionFailure(CURRENT_ELEMENT_SPANNABLE, Is this a good general ...
4 years ago (2016-12-20 00:58:40 UTC) #3
Johnni Winther
https://codereview.chromium.org/2585223002/diff/1/pkg/compiler/lib/src/types/constants.dart File pkg/compiler/lib/src/types/constants.dart (right): https://codereview.chromium.org/2585223002/diff/1/pkg/compiler/lib/src/types/constants.dart#newcode67 pkg/compiler/lib/src/types/constants.dart:67: throw new SpannableAssertionFailure(CURRENT_ELEMENT_SPANNABLE, On 2016/12/20 00:58:40, Siggi Cherem (dart-lang) ...
4 years ago (2016-12-20 08:35:49 UTC) #4
Johnni Winther
Committed patchset #1 (id:1) manually as 702500281b03ad5ed18c0c6b28d60ee60f905bf8 (presubmit successful).
4 years ago (2016-12-20 08:50:40 UTC) #6
Siggi Cherem (dart-lang)
On 2016/12/20 08:35:49, Johnni Winther wrote: > https://codereview.chromium.org/2585223002/diff/1/pkg/compiler/lib/src/types/constants.dart > File pkg/compiler/lib/src/types/constants.dart (right): > > https://codereview.chromium.org/2585223002/diff/1/pkg/compiler/lib/src/types/constants.dart#newcode67 ...
4 years ago (2016-12-20 15:28:59 UTC) #7
Johnni Winther
4 years ago (2016-12-21 08:20:11 UTC) #8
Message was sent while issue was closed.
On 2016/12/20 15:28:59, Siggi Cherem (dart-lang) wrote:
> On 2016/12/20 08:35:49, Johnni Winther wrote:
> >
>
https://codereview.chromium.org/2585223002/diff/1/pkg/compiler/lib/src/types/...
> > File pkg/compiler/lib/src/types/constants.dart (right):
> > 
> >
>
https://codereview.chromium.org/2585223002/diff/1/pkg/compiler/lib/src/types/...
> > pkg/compiler/lib/src/types/constants.dart:67: throw new
> > SpannableAssertionFailure(CURRENT_ELEMENT_SPANNABLE,
> > On 2016/12/20 00:58:40, Siggi Cherem (dart-lang) wrote:
> > > Is this a good general direction to think about? (instead of calling
> > > internalError, throw and let the compiler catch it and map the message to
> > > internalError?)
> > 
> > The only difference is whether the stack-trace is prefixed by 'The compiler
> > crashed: Internal Error:' or 'The compiler crashed: Assertion failure:'. The
> > error pointing to the spannable position is in both case prefixed by
'Internal
> > Error:'.
> > 
> > Note that SpannableAssertionFailure is caught in withCurrentElement and is
> what
> > is thrown on a failure in 'invariant'.
> > 
> > I don't think it is worthwhile to propagate the 'DiagnosticReporter' purely
> for
> > assertions.
> 
> sgtm - I was hoping we could treat all internal errors that way and also not
> provide the reporter in those cases.

We should.

Powered by Google App Engine
This is Rietveld 408576698