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

Issue 2974663002: Compute source spans for IR nodes and J/K-elements (Closed)

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

Description

Patch Set 1 #

Total comments: 5

Patch Set 2 : Updated cf. comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+86 lines, -11 lines) Patch
M pkg/compiler/lib/src/backend_strategy.dart View 2 chunks +5 lines, -0 lines 0 comments Download
M pkg/compiler/lib/src/compiler.dart View 1 chunk +8 lines, -2 lines 0 comments Download
M pkg/compiler/lib/src/js_backend/element_strategy.dart View 2 chunks +3 lines, -1 line 0 comments Download
M pkg/compiler/lib/src/js_model/js_strategy.dart View 2 chunks +6 lines, -0 lines 0 comments Download
M pkg/compiler/lib/src/kernel/element_map_impl.dart View 1 2 chunks +47 lines, -1 line 0 comments Download
M pkg/compiler/lib/src/kernel/kernel_backend_strategy.dart View 2 chunks +8 lines, -0 lines 0 comments Download
M pkg/compiler/lib/src/kernel/kernel_strategy.dart View 1 chunk +1 line, -2 lines 0 comments Download
M pkg/compiler/lib/src/resolution/resolution_strategy.dart View 2 chunks +4 lines, -1 line 0 comments Download
M pkg/compiler/lib/src/types/type_mask.dart View 4 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 7 (2 generated)
Johnni Winther
3 years, 5 months ago (2017-07-07 15:57:36 UTC) #2
Siggi Cherem (dart-lang)
lgtm https://codereview.chromium.org/2974663002/diff/1/pkg/compiler/lib/src/kernel/element_map_impl.dart File pkg/compiler/lib/src/kernel/element_map_impl.dart (right): https://codereview.chromium.org/2974663002/diff/1/pkg/compiler/lib/src/kernel/element_map_impl.dart#newcode129 pkg/compiler/lib/src/kernel/element_map_impl.dart:129: ir.Location location; Let's store here just the Uri, ...
3 years, 5 months ago (2017-07-07 19:25:02 UTC) #3
Johnni Winther
https://codereview.chromium.org/2974663002/diff/1/pkg/compiler/lib/src/kernel/element_map_impl.dart File pkg/compiler/lib/src/kernel/element_map_impl.dart (right): https://codereview.chromium.org/2974663002/diff/1/pkg/compiler/lib/src/kernel/element_map_impl.dart#newcode129 pkg/compiler/lib/src/kernel/element_map_impl.dart:129: ir.Location location; On 2017/07/07 19:25:02, Siggi Cherem (dart-lang) wrote: ...
3 years, 5 months ago (2017-07-11 08:06:59 UTC) #4
Johnni Winther
Committed patchset #2 (id:20001) manually as ddad7cc116ffd1f6e75fe6e65d203ce0058d94b6 (presubmit successful).
3 years, 5 months ago (2017-07-11 08:34:54 UTC) #6
Siggi Cherem (dart-lang)
3 years, 5 months ago (2017-07-11 19:04:55 UTC) #7
Message was sent while issue was closed.
https://codereview.chromium.org/2974663002/diff/1/pkg/compiler/lib/src/kernel...
File pkg/compiler/lib/src/kernel/element_map_impl.dart (right):

https://codereview.chromium.org/2974663002/diff/1/pkg/compiler/lib/src/kernel...
pkg/compiler/lib/src/kernel/element_map_impl.dart:129: ir.Location location;
On 2017/07/11 08:06:59, Johnni Winther wrote:
> On 2017/07/07 19:25:02, Siggi Cherem (dart-lang) wrote:
> > Let's store here just the Uri, and only use location within the loop.
> 
> Done.
> 
> > Ideally, I'd like to not use Location - but it is true that right now it is
> the
> > simplest way to get the fileUri. The alternative would be walk up the tree
> until
> > we are in a procedure/field/class/library which stores a fileUri.
> 
> Long-term we should use Location (i.e. change SourceSpan to take line/position
> info). Added a TODO.

I'd like to use package:source_span for this (maybe kernel should switch to use
that too :))

I especially don't want to compute line/position here, but defer that to the
source-span logic.

Powered by Google App Engine
This is Rietveld 408576698