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

Issue 10919033: Rework Unparser/unparse StringBuffer management. (Closed)

Created:
8 years, 3 months ago by Anton Muhin
Modified:
8 years, 3 months ago
Reviewers:
ahe, Roman
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Rework Unparser/unparse StringBuffer management. R=smok@google.com Committed: https://code.google.com/p/dart/source/detail?r=11750

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -47 lines) Patch
M lib/compiler/implementation/dart_backend/backend.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M lib/compiler/implementation/dart_backend/emitter.dart View 1 3 chunks +17 lines, -23 lines 0 comments Download
M lib/compiler/implementation/tree/nodes.dart View 2 chunks +1 line, -11 lines 3 comments Download
M lib/compiler/implementation/tree/unparser.dart View 1 2 chunks +16 lines, -7 lines 0 comments Download
M pkg/dartdoc/mirrors/dart2js_mirror.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M tests/compiler/dart2js/unparser2_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/compiler/dart2js/unparser_test.dart View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Anton Muhin
8 years, 3 months ago (2012-08-31 17:34:45 UTC) #1
Roman
lgtm https://chromiumcodereview.appspot.com/10919033/diff/1/lib/compiler/implementation/dart_backend/emitter.dart File lib/compiler/implementation/dart_backend/emitter.dart (right): https://chromiumcodereview.appspot.com/10919033/diff/1/lib/compiler/implementation/dart_backend/emitter.dart#newcode24 lib/compiler/implementation/dart_backend/emitter.dart:24: unparser.visit(variableList.parseNode(compiler)); Can you please make a function 'unparse' ...
8 years, 3 months ago (2012-09-03 06:39:24 UTC) #2
Anton Muhin
https://chromiumcodereview.appspot.com/10919033/diff/1/lib/compiler/implementation/dart_backend/emitter.dart File lib/compiler/implementation/dart_backend/emitter.dart (right): https://chromiumcodereview.appspot.com/10919033/diff/1/lib/compiler/implementation/dart_backend/emitter.dart#newcode24 lib/compiler/implementation/dart_backend/emitter.dart:24: unparser.visit(variableList.parseNode(compiler)); On 2012/09/03 06:39:24, Roman wrote: > Can you ...
8 years, 3 months ago (2012-09-03 09:28:10 UTC) #3
Roman
lgtm
8 years, 3 months ago (2012-09-03 09:40:53 UTC) #4
ahe
https://chromiumcodereview.appspot.com/10919033/diff/4001/lib/compiler/implementation/tree/nodes.dart File lib/compiler/implementation/tree/nodes.dart (left): https://chromiumcodereview.appspot.com/10919033/diff/4001/lib/compiler/implementation/tree/nodes.dart#oldcode117 lib/compiler/implementation/tree/nodes.dart:117: } catch (e, trace) { Why was this removed? ...
8 years, 3 months ago (2012-09-18 13:29:18 UTC) #5
Anton Muhin
https://chromiumcodereview.appspot.com/10919033/diff/4001/lib/compiler/implementation/tree/nodes.dart File lib/compiler/implementation/tree/nodes.dart (left): https://chromiumcodereview.appspot.com/10919033/diff/4001/lib/compiler/implementation/tree/nodes.dart#oldcode117 lib/compiler/implementation/tree/nodes.dart:117: } catch (e, trace) { Sorry, I don't immediately ...
8 years, 3 months ago (2012-09-19 09:38:42 UTC) #6
ahe
8 years, 3 months ago (2012-09-19 10:33:12 UTC) #7
https://chromiumcodereview.appspot.com/10919033/diff/4001/lib/compiler/implem...
File lib/compiler/implementation/tree/nodes.dart (left):

https://chromiumcodereview.appspot.com/10919033/diff/4001/lib/compiler/implem...
lib/compiler/implementation/tree/nodes.dart:117: } catch (e, trace) {
On 2012/09/19 09:38:43, Anton Muhin wrote:
> Sorry, I don't immediately see what's the problem: apparently there is no
> exception thrown while unparsing.

The code is there to handle when something that isn't tested breaks. For
example, when we add a new subclass of Node.


> 
> On 2012/09/18 13:29:18, ahe wrote:
> > Why was this removed?
> > 
> > I'm looking at this stack trace right now:
> > 
> > <Received error while converting exception to string>
> > #0      Object._noSuchMethod (dart:core-patch:2496:3)
> > #1      Object.noSuchMethod (dart:core-patch:2493:18)
> > #2      Dart2JsLibraryMirror.simpleName
> >
>
(file:///Users/ahe/Dart/all/dart/pkg/dartdoc/lib/src/mirrors/dart2js_mirror.dart:495:42)
> > #3      Dart2JsLibraryMirror.canonicalName
> >
>
(file:///Users/ahe/Dart/all/dart/pkg/dartdoc/lib/src/mirrors/dart2js_mirror.dart:486:41)
> > #4      Dart2JsMirrorSystem._ensureLibraries.<anonymous closure>
> >
>
(file:///Users/ahe/Dart/all/dart/pkg/dartdoc/lib/src/mirrors/dart2js_mirror.dart:442:40)
> > #5      HashMapImplementation.forEach (bootstrap_impl:914:10)
> > #6      Dart2JsMirrorSystem._ensureLibraries
> >
>
(file:///Users/ahe/Dart/all/dart/pkg/dartdoc/lib/src/mirrors/dart2js_mirror.dart:440:33)
> > #7      Dart2JsMirrorSystem.libraries
> >
>
(file:///Users/ahe/Dart/all/dart/pkg/dartdoc/lib/src/mirrors/dart2js_mirror.dart:449:21)
> > #8      HtmlDiff.run
> > (file:///Users/ahe/Dart/all/dart/utils/apidoc/html_diff.dart:95:58)
> > #9      main
(file:///Users/ahe/Dart/all/dart/utils/apidoc/apidoc.dart:85:12)
> > 
> > If this code had been in place, I would have the information I need to debug
> and
> > implement library syntax.
>

Powered by Google App Engine
This is Rietveld 408576698