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

Issue 9254026: Split dart:builtin into dart:builtin and dart:io. (Closed)

Created:
8 years, 11 months ago by Mads Ager (google)
Modified:
8 years, 10 months ago
Reviewers:
siva, Ivan Posva
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Split dart:builtin into dart:builtin and dart:io. - dart:builtin is implicitly imported. - dart:io has to be explicitly imported. I will update the macos and windows stable test binaries when we are happy with the solution. R=iposva@google.com BUG= TEST= Committed: https://code.google.com/p/dart/source/detail?r=3537

Patch Set 1 #

Total comments: 8

Patch Set 2 : Address review comments. #

Patch Set 3 : Load the library at the right time. #

Patch Set 4 : Cosmetic changes. #

Total comments: 1

Patch Set 5 : Fix copyrights #

Total comments: 2

Patch Set 6 : Address comment and add binaries. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+338 lines, -267 lines) Patch
M frog/file_system.dart View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M frog/file_system_vm.dart View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M frog/leg/scanner/scanner_bench.dart View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
frog/leg/scanner/vm_scanner_bench.dart View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M frog/leg/tools/mini_parser.dart View 1 2 3 4 1 chunk +3 lines, -1 line 0 comments Download
M frog/minfrogc.dart View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M frog/server/frog_server.dart View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M frog/tests/frog/src/FrogServerTest.dart View 1 2 3 4 1 chunk +3 lines, -1 line 0 comments Download
M runtime/bin/bin.gypi View 7 chunks +40 lines, -6 lines 0 comments Download
M runtime/bin/buffer_list.dart View 1 4 1 chunk +1 line, -1 line 0 comments Download
M runtime/bin/builtin.h View 1 1 chunk +12 lines, -5 lines 0 comments Download
M runtime/bin/builtin.cc View 1 2 chunks +37 lines, -17 lines 0 comments Download
M runtime/bin/builtin.dart View 5 1 chunk +0 lines, -29 lines 0 comments Download
A + runtime/bin/builtin_impl_sources.gypi View 1 2 3 4 5 1 chunk +2 lines, -30 lines 0 comments Download
M runtime/bin/builtin_in.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M runtime/bin/builtin_natives.cc View 1 chunk +8 lines, -2 lines 0 comments Download
M runtime/bin/builtin_nolib.cc View 2 chunks +20 lines, -8 lines 0 comments Download
M runtime/bin/builtin_sources.gypi View 1 2 3 4 5 1 chunk +1 line, -81 lines 0 comments Download
M runtime/bin/dartutils.h View 1 2 chunks +2 lines, -1 line 0 comments Download
M runtime/bin/dartutils.cc View 1 2 chunks +9 lines, -1 line 0 comments Download
M runtime/bin/gen_snapshot.cc View 1 3 chunks +33 lines, -14 lines 0 comments Download
A runtime/bin/io.dart View 1 1 chunk +11 lines, -0 lines 0 comments Download
A + runtime/bin/io_in.cc View 2 chunks +4 lines, -6 lines 0 comments Download
A runtime/bin/io_sources.gypi View 1 1 chunk +37 lines, -0 lines 0 comments Download
M runtime/bin/main.cc View 1 2 3 4 5 2 chunks +11 lines, -4 lines 0 comments Download
A + runtime/bin/stdio.dart View 2 chunks +1 line, -22 lines 0 comments Download
M runtime/vm/parser.cc View 1 2 3 4 5 1 chunk +8 lines, -4 lines 0 comments Download
M samples/actors/samples/sssp/sssp-util.dart View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M samples/chat/chat_server_lib.dart View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M samples/chat/http.dart View 5 1 chunk +1 line, -0 lines 0 comments Download
M samples/markdown/markdown.dart View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M samples/total/src/Dartc.dart View 1 2 3 4 1 chunk +3 lines, -1 line 0 comments Download
samples/total/src/TotalRunner.dart View 1 2 3 4 1 chunk +3 lines, -1 line 0 comments Download
M tests/standalone/src/ChunkedStreamTest.dart View 5 1 chunk +2 lines, -0 lines 0 comments Download
M tests/standalone/src/DirectoryInvalidArgumentsTest.dart View 5 1 chunk +2 lines, -0 lines 0 comments Download
M tests/standalone/src/DirectoryTest.dart View 5 1 chunk +2 lines, -0 lines 0 comments Download
M tests/standalone/src/EchoServerStreamTest.dart View 5 1 chunk +1 line, -0 lines 0 comments Download
M tests/standalone/src/EchoServerTest.dart View 5 1 chunk +1 line, -0 lines 0 comments Download
M tests/standalone/src/FileInputStreamTest.dart View 5 1 chunk +2 lines, -0 lines 0 comments Download
M tests/standalone/src/FileInvalidArgumentsTest.dart View 5 1 chunk +2 lines, -0 lines 0 comments Download
M tests/standalone/src/FileTest.dart View 5 1 chunk +1 line, -0 lines 0 comments Download
M tests/standalone/src/ListInputStreamTest.dart View 5 1 chunk +2 lines, -0 lines 0 comments Download
M tests/standalone/src/ListOutputStreamTest.dart View 5 1 chunk +2 lines, -0 lines 0 comments Download
M tests/standalone/src/MultipleTimerTest.dart View 5 1 chunk +2 lines, -0 lines 0 comments Download
M tests/standalone/src/PlatformTest.dart View 5 1 chunk +2 lines, -0 lines 0 comments Download
D tests/standalone/src/ProcessBrokenPipe.dart View 1 chunk +0 lines, -19 lines 0 comments Download
A + tests/standalone/src/ProcessBrokenPipeTest.dart View 1 2 3 4 1 chunk +4 lines, -2 lines 0 comments Download
M tests/standalone/src/ProcessExitNegativeTest.dart View 5 1 chunk +2 lines, -1 line 0 comments Download
M tests/standalone/src/ProcessExitTest.dart View 5 1 chunk +1 line, -0 lines 0 comments Download
M tests/standalone/src/ProcessInvalidArgumentsTest.dart View 5 1 chunk +2 lines, -0 lines 0 comments Download
M tests/standalone/src/ProcessSegfaultTest.dart View 5 1 chunk +1 line, -0 lines 0 comments Download
M tests/standalone/src/ProcessStartExceptionTest.dart View 5 1 chunk +2 lines, -0 lines 0 comments Download
M tests/standalone/src/ProcessStdIOScript.dart View 5 1 chunk +2 lines, -0 lines 0 comments Download
M tests/standalone/src/ProcessStderrTest.dart View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M tests/standalone/src/ProcessStdoutTest.dart View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M tests/standalone/src/ProcessWorkingDirectoryTest.dart View 5 1 chunk +1 line, -0 lines 0 comments Download
M tests/standalone/src/SocketCloseTest.dart View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M tests/standalone/src/SocketExceptionTest.dart View 5 1 chunk +2 lines, -0 lines 0 comments Download
M tests/standalone/src/SocketManyConnectionsTest.dart View 5 1 chunk +1 line, -0 lines 0 comments Download
M tests/standalone/src/SocketStreamCloseTest.dart View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M tests/standalone/src/StatusFileParserTest.dart View 5 1 chunk +1 line, -0 lines 0 comments Download
M tests/standalone/src/StreamPipeTest.dart View 5 1 chunk +1 line, -0 lines 0 comments Download
M tests/standalone/src/StringStreamTest.dart View 5 1 chunk +2 lines, -0 lines 0 comments Download
M tests/standalone/src/TestRunnerTest.dart View 5 1 chunk +1 line, -0 lines 0 comments Download
M tests/standalone/src/TimerCancel1Test.dart View 5 1 chunk +2 lines, -0 lines 0 comments Download
M tests/standalone/src/TimerCancel2Test.dart View 5 1 chunk +2 lines, -0 lines 0 comments Download
tests/standalone/src/TimerCancelTest.dart View 5 1 chunk +2 lines, -0 lines 0 comments Download
M tests/standalone/src/TimerRepeatTest.dart View 5 1 chunk +2 lines, -0 lines 0 comments Download
M tests/standalone/src/TimerTest.dart View 5 1 chunk +2 lines, -0 lines 0 comments Download
M tests/stub-generator/test_config.dart View 1 2 3 4 5 1 chunk +3 lines, -1 line 0 comments Download
M tools/testing/bin/linux/dart View 0 chunks +-1 lines, --1 lines 0 comments Download
M tools/testing/bin/macos/dart View 0 chunks +-1 lines, --1 lines 0 comments Download
M tools/testing/bin/windows/dart.exe View 0 chunks +-1 lines, --1 lines 0 comments Download
M tools/testing/dart/multitest.dart View 5 1 chunk +2 lines, -0 lines 0 comments Download
M tools/testing/dart/status_file_parser.dart View 5 1 chunk +1 line, -1 line 0 comments Download
M tools/testing/dart/test_options.dart View 5 1 chunk +2 lines, -0 lines 0 comments Download
M tools/testing/dart/test_progress.dart View 1 1 chunk +1 line, -0 lines 0 comments Download
M tools/testing/dart/test_runner.dart View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M tools/testing/dart/test_suite.dart View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Mads Ager (google)
Only the changes in runtime/bin are interesting. The rest is just adding #import('dart:io') in all ...
8 years, 11 months ago (2012-01-19 13:49:18 UTC) #1
Ivan Posva
First round of comments. -Ivan http://codereview.chromium.org/9254026/diff/1/runtime/bin/buffer_list.dart File runtime/bin/buffer_list.dart (right): http://codereview.chromium.org/9254026/diff/1/runtime/bin/buffer_list.dart#newcode5 runtime/bin/buffer_list.dart:5: #library("io"); It would be ...
8 years, 11 months ago (2012-01-21 20:24:55 UTC) #2
Mads Ager (google)
Thanks Ivan! New version uploaded that loads the dart:io library in the tag handler when ...
8 years, 11 months ago (2012-01-23 11:35:38 UTC) #3
Ivan Posva
LGTM -ip http://codereview.chromium.org/9254026/diff/12001/tests/standalone/src/SocketStreamCloseTest.dart File tests/standalone/src/SocketStreamCloseTest.dart (left): http://codereview.chromium.org/9254026/diff/12001/tests/standalone/src/SocketStreamCloseTest.dart#oldcode11 tests/standalone/src/SocketStreamCloseTest.dart:11: ?
8 years, 11 months ago (2012-01-24 02:17:30 UTC) #4
Mads Ager (google)
http://codereview.chromium.org/9254026/diff/12001/tests/standalone/src/SocketStreamCloseTest.dart File tests/standalone/src/SocketStreamCloseTest.dart (left): http://codereview.chromium.org/9254026/diff/12001/tests/standalone/src/SocketStreamCloseTest.dart#oldcode11 tests/standalone/src/SocketStreamCloseTest.dart:11: On 2012/01/24 02:17:30, Ivan Posva wrote: > ? Reverted ...
8 years, 11 months ago (2012-01-24 07:47:19 UTC) #5
siva
8 years, 10 months ago (2012-02-07 02:51:12 UTC) #6
One top level question, one of the goals for splitting the dart:builtin into
dart:io and dart:builtin was to load the io stuff only if needed i.e when
somebody imports "dart:io".

The generic snapshot creator (i.e the base guy which has all the corelibs etc.)
however seems to also include dart:io in it. This means standalone dart has the
library dart:io always loaded in it.

Is this how we want it set up, the library is always loaded but visible only to
those that explicitly import it using import "dart:io"

Powered by Google App Engine
This is Rietveld 408576698