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

Issue 10887024: Move print to corelib. (Closed)

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

Description

Move print to corelib. Allow embedder customization in the VM through a static field that can be set by the embedder. Mark failing test that is unrelated to this change. The VM does not like when you import dart:core explicitly and tells you there both 'dart:core' and 'dart:core' define 'print'. R=ajohnsen@google.com,iposva@google.com BUG= Committed: https://code.google.com/p/dart/source/detail?r=11603

Patch Set 1 #

Total comments: 1

Patch Set 2 : Get rid of more builtin importing that is no longer needed. #

Total comments: 12

Patch Set 3 : Use patching in the VM #

Total comments: 2

Patch Set 4 : Address review comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+68 lines, -51 lines) Patch
M corelib/src/corelib_sources.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M corelib/src/implementation/corelib_impl_sources.gypi View 1 chunk +1 line, -0 lines 0 comments Download
A + corelib/src/implementation/print.dart View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
A + corelib/src/print.dart View 1 2 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 2 chunks +2 lines, -1 line 0 comments Download
M lib/compiler/implementation/lib/coreimpl_patch.dart View 1 2 3 1 chunk +14 lines, -2 lines 0 comments Download
M runtime/bin/builtin.cc View 1 2 chunks +0 lines, -15 lines 0 comments Download
M runtime/bin/builtin.dart View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M runtime/bin/main.cc View 1 2 3 chunks +13 lines, -11 lines 0 comments Download
M runtime/lib/lib_impl_sources.gypi View 1 2 1 chunk +1 line, -0 lines 0 comments Download
A runtime/lib/print_patch.dart View 1 2 1 chunk +20 lines, -0 lines 0 comments Download
M runtime/vm/unit_test.cc View 1 chunk +5 lines, -9 lines 0 comments Download
M tests/language/language.status View 1 2 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Mads Ager (google)
8 years, 3 months ago (2012-08-29 12:31:43 UTC) #1
Anders Johnsen
Waw, this is so much better! LGTM! https://chromiumcodereview.appspot.com/10887024/diff/1/runtime/lib/print_patch.dart File runtime/lib/print_patch.dart (right): https://chromiumcodereview.appspot.com/10887024/diff/1/runtime/lib/print_patch.dart#newcode17 runtime/lib/print_patch.dart:17: static _PrintClosure ...
8 years, 3 months ago (2012-08-29 12:39:20 UTC) #2
Ivan Posva
Ideally you could move the initialization of the closure into the embedder and the actual ...
8 years, 3 months ago (2012-08-30 00:32:13 UTC) #3
Mads Ager (google)
Ivan, could you take a quick look. Used patching instead to avoid printing to stdout ...
8 years, 3 months ago (2012-08-30 06:59:17 UTC) #4
Ivan Posva
LGTM -ip https://chromiumcodereview.appspot.com/10887024/diff/9001/lib/compiler/implementation/lib/coreimpl_patch.dart File lib/compiler/implementation/lib/coreimpl_patch.dart (right): https://chromiumcodereview.appspot.com/10887024/diff/9001/lib/compiler/implementation/lib/coreimpl_patch.dart#newcode5 lib/compiler/implementation/lib/coreimpl_patch.dart:5: // Patch file for dart:core classes. coreimpl
8 years, 3 months ago (2012-08-30 07:06:52 UTC) #5
Mads Ager (google)
8 years, 3 months ago (2012-08-30 07:08:28 UTC) #6
https://chromiumcodereview.appspot.com/10887024/diff/9001/lib/compiler/implem...
File lib/compiler/implementation/lib/coreimpl_patch.dart (right):

https://chromiumcodereview.appspot.com/10887024/diff/9001/lib/compiler/implem...
lib/compiler/implementation/lib/coreimpl_patch.dart:5: // Patch file for
dart:core classes.
On 2012/08/30 07:06:52, Ivan Posva wrote:
> coreimpl

Good catch. Thanks!

Powered by Google App Engine
This is Rietveld 408576698