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

Issue 11411176: - Remove unneeded library tags when concatenating libraries. (Closed)

Created:
8 years ago by Ivan Posva
Modified:
8 years ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

- Remove unneeded library tags when concatenating libraries. Committed: https://code.google.com/p/dart/source/detail?r=15368

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+217 lines, -25 lines) Patch
M runtime/bin/bin.gypi View 10 chunks +87 lines, -11 lines 0 comments Download
M runtime/tools/concat_library.py View 1 chunk +4 lines, -1 line 2 comments Download
M runtime/vm/vm.gypi View 18 chunks +126 lines, -13 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Ivan Posva
8 years ago (2012-11-26 20:58:57 UTC) #1
siva
https://chromiumcodereview.appspot.com/11411176/diff/1/runtime/tools/concat_library.py File runtime/tools/concat_library.py (right): https://chromiumcodereview.appspot.com/11411176/diff/1/runtime/tools/concat_library.py#newcode37 runtime/tools/concat_library.py:37: if line.startswith('#source') or line.startswith('part '): There is the danger ...
8 years ago (2012-11-27 02:18:07 UTC) #2
Ivan Posva
https://chromiumcodereview.appspot.com/11411176/diff/1/runtime/tools/concat_library.py File runtime/tools/concat_library.py (right): https://chromiumcodereview.appspot.com/11411176/diff/1/runtime/tools/concat_library.py#newcode37 runtime/tools/concat_library.py:37: if line.startswith('#source') or line.startswith('part '): On 2012/11/27 02:18:07, siva ...
8 years ago (2012-11-27 05:38:19 UTC) #3
Ivan Posva
8 years ago (2012-11-27 05:40:53 UTC) #4
On 2012/11/27 05:38:19, Ivan Posva wrote:
>
https://chromiumcodereview.appspot.com/11411176/diff/1/runtime/tools/concat_l...
> File runtime/tools/concat_library.py (right):
> 
>
https://chromiumcodereview.appspot.com/11411176/diff/1/runtime/tools/concat_l...
> runtime/tools/concat_library.py:37: if line.startswith('#source') or
> line.startswith('part '):
> On 2012/11/27 02:18:07, siva wrote:
> > There is the danger of legal lines which start with part being removed here:
> > e.g:
> > func1(
> > param1 ,
> > part ,
> > sum);
> > 
> > Also, is it a requirement that 'part' has to be the first word without any
> > whitespace?
> > e.g:
> >    part of deepshit;  // Is this legal.
> > 
> > why not do:
> > line = re.sub("part of .*;", "", line);
> 
> I understand all of these limitations (they went away with the new syntax
which
> is easier on the eyes and harder for tools). In any case we also need to
replace
> the equivalent of #source, which is "part 'uri';" so this hits two birds with
> one stone. Eventually this should go away when we load the sources directly
from
> disk for dart_no_snapshot and gen_snapshot. We still will need to find a way
to
> load the non-snapshotted sources at that point though.
> 
> Somebody with better regular expression understanding than me can certainly
> refine the above test. Currently it seems to be safe.

TBR so Lasse can make forward progress.

Powered by Google App Engine
This is Rietveld 408576698