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

Issue 10868043: Move print to corelib. (Closed)

Created:
8 years, 4 months ago by Mads Ager (google)
Modified:
8 years, 3 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Move print to corelib. Depends on (https://chromiumcodereview.appspot.com/10867032/) to allow libraries to be imported with a prefix in the VM. BUG=

Patch Set 1 #

Patch Set 2 : For dart2js as well #

Patch Set 3 : Only failing a few tests #

Patch Set 4 : Flaf #

Patch Set 5 : Make it pass all tests. #

Total comments: 8
Unified diffs Side-by-side diffs Delta from patch set Stats (+109 lines, -63 lines) Patch
M corelib/src/corelib_sources.gypi View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M corelib/src/implementation/corelib_impl_sources.gypi View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
A + corelib/src/implementation/print.dart View 1 2 3 4 1 chunk +2 lines, -2 lines 5 comments Download
A + corelib/src/print.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M lib/compiler/implementation/lib/core.dart View 1 2 2 chunks +1 line, -8 lines 0 comments Download
M lib/compiler/implementation/lib/coreimpl.dart View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M lib/compiler/implementation/lib/coreimpl_patch.dart View 1 2 3 4 1 chunk +13 lines, -1 line 0 comments Download
M runtime/bin/builtin.cc View 3 4 1 chunk +1 line, -1 line 0 comments Download
M runtime/bin/main.cc View 2 chunks +0 lines, -5 lines 0 comments Download
M runtime/lib/lib_impl_sources.gypi View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
A + runtime/lib/print_patch.dart View 1 chunk +3 lines, -4 lines 0 comments Download
M runtime/vm/benchmark_test.h View 1 2 3 4 2 chunks +14 lines, -0 lines 0 comments Download
M runtime/vm/custom_isolate_test.cc View 1 2 3 4 3 chunks +20 lines, -1 line 0 comments Download
M runtime/vm/parser.cc View 1 2 3 4 3 chunks +6 lines, -4 lines 0 comments Download
M runtime/vm/unit_test.h View 1 2 3 4 4 chunks +37 lines, -25 lines 3 comments Download
M runtime/vm/unit_test.cc View 1 2 1 chunk +5 lines, -9 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Mads Ager (google)
I don't like the test changes that I had to do here to make all ...
8 years, 3 months ago (2012-08-28 13:27:32 UTC) #1
Anders Johnsen
https://chromiumcodereview.appspot.com/10868043/diff/10001/corelib/src/implementation/print.dart File corelib/src/implementation/print.dart (right): https://chromiumcodereview.appspot.com/10868043/diff/10001/corelib/src/implementation/print.dart#newcode5 corelib/src/implementation/print.dart:5: class Logger { The name 'Logger' seams very generic. ...
8 years, 3 months ago (2012-08-28 13:53:10 UTC) #2
Mads Ager (google)
https://chromiumcodereview.appspot.com/10868043/diff/10001/corelib/src/implementation/print.dart File corelib/src/implementation/print.dart (right): https://chromiumcodereview.appspot.com/10868043/diff/10001/corelib/src/implementation/print.dart#newcode5 corelib/src/implementation/print.dart:5: class Logger { On 2012/08/28 13:53:10, ajohnsen wrote: > ...
8 years, 3 months ago (2012-08-28 13:57:29 UTC) #3
Anders Johnsen
LGTM, but I have a hard time seeing if we have other options then changing ...
8 years, 3 months ago (2012-08-28 14:01:09 UTC) #4
Mads Ager (google)
Thanks Anders. I will wait for Ivan's comments before putting this back.
8 years, 3 months ago (2012-08-28 14:07:45 UTC) #5
Ivan Posva
https://chromiumcodereview.appspot.com/10868043/diff/10001/corelib/src/implementation/print.dart File corelib/src/implementation/print.dart (right): https://chromiumcodereview.appspot.com/10868043/diff/10001/corelib/src/implementation/print.dart#newcode5 corelib/src/implementation/print.dart:5: class Logger { On 2012/08/28 14:01:09, ajohnsen wrote: > ...
8 years, 3 months ago (2012-08-29 06:21:15 UTC) #6
Anders Johnsen
8 years, 3 months ago (2012-08-29 06:54:07 UTC) #7
https://chromiumcodereview.appspot.com/10868043/diff/10001/corelib/src/implem...
File corelib/src/implementation/print.dart (right):

https://chromiumcodereview.appspot.com/10868043/diff/10001/corelib/src/implem...
corelib/src/implementation/print.dart:5: class Logger {
On 2012/08/29 06:21:16, Ivan Posva wrote:
> On 2012/08/28 14:01:09, ajohnsen wrote:
> > On 2012/08/28 13:57:29, Mads Ager wrote:
> > > On 2012/08/28 13:53:10, ajohnsen wrote:
> > > > The name 'Logger' seams very generic. Can we pick something more
specific
> to
> > > > this?
> > > 
> > > Sure. We can call it PrintImplementation? We can decide if we want to
avoid
> > all
> > > these indirections through coreimpl once we get this in and have the
unified
> > > corelib.
> > 
> > PrintImplementation sounds good, I'm afraid we'll get conflicts in other
user
> > code with the other name. Thank you.
> 
> The conflicts with other user code would only happen with libraries importing
> coreimpl explicitly.

True, but I actually have code where i have my own Logger class, and where I
import coreimpl to get SplayTreeMap, so it's not an unlikely scenario.

Powered by Google App Engine
This is Rietveld 408576698