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

Issue 10823028: - Improve the formatting of generated source text. (Closed)

Created:
8 years, 5 months ago by Ivan Posva
Modified:
8 years, 5 months ago
Reviewers:
siva
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

- Improve the formatting of generated source text. Committed: https://code.google.com/p/dart/source/detail?r=9952

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+97 lines, -7 lines) Patch
M runtime/vm/dart.cc View 3 chunks +30 lines, -0 lines 1 comment Download
M runtime/vm/object.cc View 2 chunks +64 lines, -4 lines 0 comments Download
M runtime/vm/token.h View 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
Ivan Posva
8 years, 5 months ago (2012-07-26 00:32:59 UTC) #1
siva
8 years, 5 months ago (2012-07-26 00:51:05 UTC) #2
lgtm

https://chromiumcodereview.appspot.com/10823028/diff/1/runtime/vm/dart.cc
File runtime/vm/dart.cc (right):

https://chromiumcodereview.appspot.com/10823028/diff/1/runtime/vm/dart.cc#new...
runtime/vm/dart.cc:118: }
In the non snapshot case the print-bootstrap flat prints in the following
format:

  if (FLAG_print_bootstrap) {
    OS::Print("Bootstrap source '%s':\n%s\n",
        String::Handle(script.url()).ToCString(),
        String::Handle(script.Source()).ToCString());
  }

We should probably make the two consistent, Also I don't think the non snapshot
version prints dart:io etc.

I would think the best option might be to remove the existing implementation and
always call this new code in both cases from here.

Powered by Google App Engine
This is Rietveld 408576698